November marks the five-year anniversary of the addition of Mock Service Worker to a package.json file. This latest update, Version 2.0, is a significant milestone for MSW, with a refined public API that supports Fetch API primitives and numerous bug fixes. The author has partnered with Egghead to offer a comprehensive introduction to Mock Service Worker through a course consisting of 20+ lessons. The article discusses the changes in the API, moving away from a composition API to a more standardized approach using Request and Response from the Fetch API. The new version also brings full compatibility with ESM, code splitting, and improvements in the interception algorithm. The author encourages users to migrate to the new version and expresses gratitude to the contributors who made this release possible.
https://mswjs.io/blog/introducing-msw-2.0/