msw
3.0.7 · 18 Nov 2026MIT36M / weekRepositoryHomepagenpmAtom feed
Upgrading msw From 0.26.2 to 0.27.0
1 release in betweenevery note read
- 2
- changes to make
- 0
- advisories fixed
- 3
- new
- 2
- fixes
Before you upgrade
Tick each one off as you go- Breaking0.27.0
- Breaking0.27.0
Release by release
- Breaking
The Promise returned by
worker.start()will now reject in the case of any errors during the worker registration (#607). - Breaking
The values of the
MockedRequesttype no longer have theparamskey (#561). Please use theRestRequesttype to annotate REST API requests instead. - New
Supports automatic worker script updates (#606). Respects the
msw.workerDirectoryproperty in your package.json: - New
Intercepts requests originating from an iframe (#589).
- New
Adds virtual cookie store to ensure the persistency of cookies received from the same domains across multiple requests (#435, #469).
- Fixed
Fixes an issue when a request body type generic had no effect on the response composition chain validation.
- Fixed
Fixes an issue when a 204 response threw an exception when the library emitted its
response:*life-cycle events (#570).
- Breaking
5 other lines we could not sort, mostly version bumps
- 0.27.0
RestRequestType, useRestRequestinstead. - 0.27.0
GraphQLMockedRequest, useGraphQLRequestinstead. - 0.27.0
GraphQLMockedContext, useGraphQLContextinstead. - 0.27.0
GraphQLRequestPayload, useGraphQLRequestBodyinstead. - 0.27.0
GraphQLRequestParsedResult, useParsedGraphQLRequestinstead.
3 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.