Packages

msw

3.0.7 · 18 Nov 2026MIT36M / weekRepositoryHomepagenpmAtom feed

Your version

0.29.0

23 May 2021Where it was published

0.49.3 is the newest release of 0.29.x.

In short

1 breaking2 new4 fixed1 internal

  • Breaking

    The onUnhandledRequest option is set to "warn" by default (previously ”bypass") (#703).

Release note

Breaking changes

  • Breaking

    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 (#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).

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.