msw
3.0.7 · 18 Nov 2026MIT36M / weekRepositoryHomepagenpmAtom feed
Upgrading msw From 0.17.2 to 0.18.0
1 release in betweenevery note read
Release by release
- New
Adds support for one-time request handlers using
res.once(). Such handles will respond with a given mocked response only once upon request match: - Fixed
Fixes an issue that resulted into the following TypeScript error when installing
msw(#185, #186 ): - Fixed
Fixes an outdated GitHub repository link in the
mockServiceWorker.jsfile.
- New
3 other lines we could not sort, mostly version bumps
- 0.18.0
.use()to prepend any request handlers. Any prepended request handlers take priority over existing ones, if their predicate match. - 0.18.0
.restoreHandlers()to mark any used one-time request handlers as unused, allowing them to affect network again. - 0.18.0
.resetHandlers()to remove any request handlers added on runtime. Optionally accepts a list of next request handlers that replace the initial handlers passed tosetupServer/setupWorkercall.
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.