msw
3.0.7 · 18 Nov 2026MIT36.1M / weekRepositoryHomepagenpmAtom feed
Upgrading msw From 0.43.1 to 0.44.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 4
- changes to make
- 0
- advisories fixed
- 1
- new
- 0
- fixes
Before you upgrade
Tick each one off as you go- Breaking0.44.0
- Breaking0.44.0
- Breaking0.44.0
- Deprecated0.44.0
Release by release
- Breaking
req.destinationdefault value is now""(empty string), previously"document". - Breaking
req.redirectdefault value is now""follow", previously"manual". - Breaking
The library no longer exports the
parseIsomorphicRequest()function (#1316). Please useMockedRequestclass instead. - Deprecated
req.bodyis deprecated. Please use explicit request body reading methods:req.text(),req.json(),req.arrayBuffer()(other methods, likereq.formData()are currently not supported). - New
Remove unnecessary stringification of worker-client messages
- Breaking
5 other lines we could not sort, mostly version bumps
- 0.44.0
req.priority, indicates a priority of request relatively to other requests (default"auto"); - 0.44.0
req.text(), reads the request body as plain text; - 0.44.0
req.json(), reads the request body as JSON; - 0.44.0
req.arrayBuffer(), reads the request body asArrayBuffer; - 0.44.0
req.clone(), clones a request instance (i.e. so its body could be read multiple times).
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.