v0.14.0
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
startfunction now support aquietoption, 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
mswthrowing a type violation when used with TypeScript v3.7 (unsupportedexport * assyntax) (#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
ramdadependency.