Breaking changes
- The
onUnhandledRequest
option is set to"warn"
by default (previously”bypass"
) (#703).
Features
- Adds Fallback mode. This enables MSW in browsers that don’t support Service Worker API, or in the applications that run from a static file (#688). Fallback mode is enabled internally and is not configurable.
- Running
npx msw init
now recursively creates a non-existing worker directory (#699).
Bug fixes
- Fixes an issue that resulted in a memory leak when running multiple tests dependent on
setupServer
(mswjs/interceptors#116). - Fixes an issue that resulted in a proper XML response body not being accessible under
xhrInstance.responseXML
in Node.js (#715). - Fixes an issue when an expired response cookie persisted on a mocked response after its expiration date (#708).
- Fixes an issue that resulted in ESLint complaining about the pragma comment of the worker script (#693).
Internal
- Updates dependencies to the latest versions (#747).