msw
3.0.7 · 18 Nov 2026MIT36.1M / weekRepositoryHomepagenpmAtom feed
Upgrading msw From 1.3.4 to 3.0.7
140 releases in betweenevery note read
Reading releases, release notes and advisories…
- 31
- changes to make
- 0
- advisories fixed
- 61
- new
- 174
- fixes
Start here
Before you upgrade
Tick each one off as you go- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
Security
- 2.4.8
Address
expressandpath-to-regexpvulnerabilities
Release by release
- Fixed
Preserve optional path parameters and pipes in handler paths
- Fixed
- New
Add
handlerto the "request:match" event
- New
- New
isCommonAssetRequest: add
icoto common assets - Fixed
worker: prevent the worker from going idle
- New
- Fixed
HandlersController: dispose of reset handlers
- Fixed
Expose network context on
enablein network sources
- Fixed
- Fixed
vite: support
virtual:mswimports in vitest
- Fixed
- Fixed
Treat
CONNECTrequests as the transport mechanism
- Fixed
- Breaking
MSW is now ESM-only (#2765).
- Breaking
msw/nativeis removed in favor of@msw/react-native. - Breaking
Require TypeScript 5.9 as the minimal version.
- Breaking
worker.stop()returns a Promise (#2724). Awaiting it is relevant only for in-flight critical scenarios.
- Breaking
6 other lines we could not sort, mostly version bumps
- 3.0.0
v3.0.0 (#2692) (2bb43428b79ac06f94bb8ea8aeacd6102fe31f56) @kettanaito @Andarist
- 3.0.0
path-to-regexp - 3.0.0
strict-event-emitter - 2.4.3
Revert "graphql" as optional peer dependency
- 2.0.0
contextand related exports (defaultContext,restContext,graphqlContext). - 2.0.0
composeandcreateResponseComposition
15 internal lines (docs, tests, tooling) left out.
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.