Packages

msw

3.0.7 · 18 Nov 2026MIT36M / weekRepositoryHomepagenpmAtom feed

Your version

0.14.0

24 Apr 2020Where it was published

0.49.3 is the newest release of 0.14.x.

In short

1 breaking1 new4 fixed1 internal

  • Breaking

    start() function now accepts an options object:

Release note

This release bumps the integrity of mockServiceWorker.js. Please follow the error instructions in your browser's console to update the worker file to the latest version.

Breaking changes

  • Breaking

    start() function now accepts an options object:

- start('./custom/sw/path.js', { ... })
+ start({ serviceWorker: { url: './custom/sw/path.js', options: { ... } })

Features

  • start function now support a quiet option, allowing to opt-out from the logs in browser's console (#111, #113)

start({ quiet: true })

Bug fixes

  • Fixes a console error when opening the DevTools (#107, #116)

  • Fixes an error message when opening DevTools (#107).

  • Fixes a TypeScript types issue, which resulted into msw throwing a type violation when used with TypeScript v3.7 (unsupported export * as syntax) (#114, #117, ).

  • Fixes a bug that resulted into broken URL matching when using both path parameters and wildcards in a single path.

  • Fixes a bug that forbid having a one character long path parameters.

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.