npm msw 0.14.0

latest releases: 2.6.4, 2.6.3, 2.6.2...
4 years ago

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

  • 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.

Internal

  • Bundle size is 20KB smaller due to removing ramda dependency.

Don't miss a new msw release

NewReleases is sending notifications on new releases.