Skip to content

chore(deps): update dependency msw to v3 - #550

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/msw-3.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/msw-3.x

Conversation

@renovate

@renovate renovate Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
msw (source) ^2.7.3 → ^3.0.0 age confidence

Release Notes

mswjs/msw (msw)

v3.0.4

Compare Source

v3.0.4 (2026-11-06)

Bug Fixes

v3.0.3

Compare Source

v3.0.3 (2026-10-10)

Bug Fixes

v3.0.2

Compare Source

v3.0.2 (2026-10-03)
Bug Fixes

v3.0.1

Compare Source

v3.0.1 (2026-09-30)
Bug Fixes

v3.0.0

Compare Source

v3.0.0 (2026-09-28)
⚠️ BREAKING CHANGES
  • MSW is now ESM-only (#​2765).
  • Deprecate support for Node.js v18 and v20 (#​2729). The minimal supported Node.js version is v22.
  • msw/native is removed in favor of @msw/react-native.
  • Require TypeScript 5.9 as the minimal version.
  • Deprecate support for TypeScript 5.1 and 5.2 (#​2730)
  • worker.stop() returns a Promise (#​2724). Awaiting it is relevant only for in-flight critical scenarios.
  • graphql is now exported as msw/graphql (#​2691). GraphQL is now handled as a proper optional peer dependency.
  • Removes the handleRequest() utility. Please use the defineNetwork() API instead.
  • GraphQLLinkHandlers type has been renamed to GraphQLLink.
  • The file:// requests now throw in Node.js as they normally do (not supported by fetch).
  • The Content-Length request header is now removed by bypass().
  • HTTP-to-WebSocket upgrade requests performed via fetch() now throw in Node.js as they normally do (not supported by fetch).
  • Cookies are no longer managed in Node.js for better compatibility. Instead, whatever is the default behavior of your environment that's the cookie behavior you get. This has no effect on the browser.
  • WebSocket connection life cycle event has been renamed to websocket:connection (#​2783).
  • onUnhandledRequest option has been renamed to onUnhandledFrame.
  • The library no longer patches setTimeout to circumvent fake timers in test runners. You should advance the fake timers normally for delayed mocked responses to resolve.
  • The library no longer returns a mocked cookie string on request.headers.get('cookie') in the handlers. It returns null in all environments. Please use the cookies resolver argument to have cookie-based logic.
Features
  • Supports Node.js v24 and v26.
  • Supports TypeScript v6.0 and v7.0.
  • You can import individual utilities, like delay or passthrough, from the new msw/utils entrypoint for smaller footprint on your bundle.
  • Support GraphQL v17.0.
  • Support intercepting page navigations and form submissions (#​2721).
  • Support GraphQL subscriptions (#​285, #​2763).
  • Migrate from path-to-regexp to @msw/url (#​2678).
  • Remove the following dependencies:
    • graphql
    • path-to-regexp
    • picocolors
    • statuses
    • strict-event-emitter
  • Adds a Vite plugin for MSW (#​2781).
  • Adds a websocket:error life cycle event to listen to WebSocket connection errors (#​2784).
  • Support modifying the intercepted request headers in passthrough scenarios (#​2786).
  • Support a new WebSocket Extension API that allows for better custom experiences (#​2791).
Bug fixes
  • Fix an issue where preventing a page closure via the beforeunload listener would unregister the MSW worker (#​1105).
  • Fix an issue that caused intermittent test failures in Vitest Browser Mode and Firefox if using maxWorkers: 1 (#​2726).
  • Fix an issue where in-flight requests were incorrectly passthrough when performed before calling worker.stop() (#​2724, #​2597).
  • Fix an issue where persisting cookies in localStorage would cause a maximum quota exceeded errors.
  • Fix various issues related to the network interception in Node.js.

Configuration

📅 Schedule: (in timezone America/Vancouver)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.


Thanks for the PR!

Deployments, as required, will be available below:

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are deployed in:

@renovate
renovate Bot enabled auto-merge (squash) October 5, 2026 16:34
@renovate
renovate Bot force-pushed the renovate/msw-3.x branch 5 times, most recently from c32875b to 083a5bc Compare October 14, 2026 18:45
@renovate
renovate Bot force-pushed the renovate/msw-3.x branch 3 times, most recently from d3b70ea to 1e926eb Compare October 15, 2026 22:24
@renovate
renovate Bot force-pushed the renovate/msw-3.x branch from 1e926eb to 088c85f Compare October 15, 2026 23:24
@renovate
renovate Bot force-pushed the renovate/msw-3.x branch from 088c85f to 72cc990 Compare October 16, 2026 04:40
@renovate
renovate Bot force-pushed the renovate/msw-3.x branch from 72cc990 to 46e5fc1 Compare October 17, 2026 01:20
@renovate
renovate Bot force-pushed the renovate/msw-3.x branch from 46e5fc1 to 84d0670 Compare October 17, 2026 04:23
@renovate
renovate Bot force-pushed the renovate/msw-3.x branch from 66e5373 to 4085842 Compare October 20, 2026 23:22
@renovate
renovate Bot force-pushed the renovate/msw-3.x branch from 4085842 to aac4d87 Compare October 21, 2026 02:54
@renovate
renovate Bot force-pushed the renovate/msw-3.x branch from aac4d87 to 5d4ef20 Compare October 21, 2026 18:19
@renovate
renovate Bot force-pushed the renovate/msw-3.x branch from 5d4ef20 to 644b1fe Compare October 24, 2026 19:37
@renovate
renovate Bot force-pushed the renovate/msw-3.x branch from 644b1fe to d1f07ca Compare October 26, 2026 12:27
@renovate
renovate Bot force-pushed the renovate/msw-3.x branch from d1f07ca to bbd8b11 Compare October 27, 2026 02:51
@renovate
renovate Bot force-pushed the renovate/msw-3.x branch from bbd8b11 to 2dddd1a Compare October 28, 2026 04:11
@renovate
renovate Bot force-pushed the renovate/msw-3.x branch from 2dddd1a to bcdf74c Compare October 29, 2026 03:49
@renovate
renovate Bot force-pushed the renovate/msw-3.x branch from bcdf74c to 1b9759a Compare October 29, 2026 20:20
@renovate
renovate Bot force-pushed the renovate/msw-3.x branch from 1b9759a to d6fbc61 Compare October 30, 2026 06:49
@renovate
renovate Bot force-pushed the renovate/msw-3.x branch from d6fbc61 to 46f4867 Compare November 2, 2026 23:41
@renovate
renovate Bot force-pushed the renovate/msw-3.x branch from 46f4867 to 343cae3 Compare November 3, 2026 03:37
@renovate
renovate Bot force-pushed the renovate/msw-3.x branch from 343cae3 to a583d18 Compare November 4, 2026 07:36

This branch was successfully deployed

1 active deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants