msw
3.0.7 · 18 Nov 2026MIT36M / weekRepositoryHomepagenpmAtom feed
Upgrading msw From 0.28.2 to 0.29.0
1 release in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 2
- new
- 4
- fixes
Before you upgrade
Tick each one off as you go- Breaking0.29.0
Release by release
- Breaking
The
onUnhandledRequestoption is set to"warn"by default (previously”bypass") (#703). - New
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.
- New
Running
npx msw initnow recursively creates a non-existing worker directory (#699). - Fixed
Fixes an issue that resulted in a memory leak when running multiple tests dependent on
setupServer(#116). - Fixed
Fixes an issue that resulted in a proper XML response body not being accessible under
xhrInstance.responseXMLin Node.js (#715). - Fixed
Fixes an issue when an expired response cookie persisted on a mocked response after its expiration date (#708).
- Fixed
Fixes an issue that resulted in ESLint complaining about the pragma comment of the worker script (#693).
- Breaking
1 internal line (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.