Skip to content

feat!: v3.0.0 - #2692

Merged
kettanaito merged 110 commits into
mainfrom
feat/3.0
Sep 28, 2026
Merged

kettanaito merged 110 commits into
mainfrom
feat/3.0

Conversation

@kettanaito

@kettanaito kettanaito commented Apr 6, 2026 •

Copy link
Copy Markdown
Member

BREAKING CHANGES

  • MSW is now ESM-only (feat!: migrate to esm-only #2765).
  • Deprecate support for Node.js v18 and v20 (feat: drop support for Node.js 18, 20 #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 (chore: use Headers.getSetCookie #2730)
  • worker.stop() returns a Promise (fix: await in-flight requests from closing clients #2724). Awaiting it is relevant only for in-flight critical scenarios.
  • graphql is now exported as msw/graphql (feat!: msw/graphql, graphql as an optional peer dependency #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 compatibilty. 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 (feat(ws): rename connection event 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

Bug fixes


Roadmap

  • Migrate to ESM-only.
  • msw/ws
  • msw/http
  • Rename onUnhandledRequest and remove everything deprecated by msw/experimental, despite keeping it experimental. This is the time to drop it.
  • Decide on the root vs explicit export paths import experience. msw/graphql is the only way to consume GraphQL due to optional peer dependency on graphql.
  • Decide if HttpResponse and other common utils re-export from msw/{xyz} is necessary or not. msw/core?
  • Consider renaming msw/native to msw/react-native.
  • Decide whether to remove /native in favor of @msw/react-native or altogether.
  • Consider msw/react-native to automatically include any necessary polyfills to be fully functional once imported. If the polyfills are too many, consider @msw/react-native.
  • Support Node.js v26.
  • Revise defineNetwork and move it out from /experimental.
    • Not now. Not enough usage to make it stable.
  • Migrate to pnpm@11.
  • Support TypeScript up to 7.0 (investigate if 7.0 can be supported, too).
  • Consider dropping statuses. That's the only CJS dependency requiring a shim.
  • Update graphql version (d9f389d).
  • Remove the postinstall hook in favor of explicit msw init (Make worker autoupdate an explicit choice #1297, Issue: postinstall breaks during ci installation #2704).
  • Remove cookie management in Node.js (Stop managing cookies in node.js #2550).
  • Upgrade cookie package since it now ships ESM (drop the shim).
  • Migrate to undici@latest now that node@20 is dropped.
  • Remove graphql.* methods. Make GraphQL mocking link-first: graphql.link().
  • Delete src/core/utils/handleRequest.ts, it's no longer used by anything.
  • Reconsider life-cycle events. Things like GraphQL subscriptions or SMTP cannot have events. Are events even needed?
    • Leaving them for now. They do cover everything (REST, GraphQL, and SSE via request:*, websocket via `websocket:*).
  • Refactor WebSocket events. connection -> websocket:connection. Ensure the WebSocket connection life cycle is sufficiently represented with events.
  • Add a new websocket:error event to listen to any errors.
  • Consider lazy interceptors, if feasible.
  • Migrate to the new Interceptors architecture (feat: adopt the new interceptors architecture #2767).
  • Drop deferred-promise in favor of Promise.withResolvers().
  • Remove fallback /node, /native directories.
  • Rename all modules to kebab-case.
  • Adopt multi-project Vitest setup. Use VBM for most browser tests. Use Playwright only for multi-page/otherwise impossible tests in VBM.
  • Drop webpack and its dependencies.
  • Add http.connect(), http.query(), and any other methods we can now intercept. They wont do anything in the browser, let them be. Add Node.js tests.
    • WIP branch opened, should be a follow-up after the release.
  • Drop utils/internal/checkGlobals' and its usage in src/core/index.ts.
  • Refactor tests to use test() consistently.

Todos

  • Document the changes.
  • Write migration guidelines.
  • Stress-test the features.

@kettanaito kettanaito added the BREAKING CHANGE Pull request introducing breaking changes. label Apr 6, 2026
@coderabbitai

coderabbitai Bot commented Apr 6, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 755 files, which is 455 over the limit of 300.

To get a review, reduce the PR to 300 files or fewer by splitting it into smaller PRs or changing its base branch.

Usage-priced reviews support at most 300 files.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 22eb1bb7-96ee-43e6-a536-f18543602b0b

📥 Commits

Reviewing files that changed from the base of the PR and between 85f4bf3 and 62890a9.

â›” Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
đź“’ Files selected for processing (755)
  • .github/ISSUE_TEMPLATE/02-issue-nodejs.yml
  • .github/workflows/ci.yml
  • .github/workflows/compat.yml
  • .github/workflows/release-preview.yml
  • .github/workflows/release.yml
  • .github/workflows/smoke-test.yml
  • .github/workflows/typescript-nightly.yml
  • .gitignore
  • .node-version
  • .nvmrc
  • .oxlintrc.json
  • CHANGELOG.md
  • browser/package.json
  • cli/init.js
  • cli/invariant.js
  • cli/package.json
  • commitlint.config.js
  • config/copy-service-worker.ts
  • config/package.json
  • config/plugins/esbuild/copyWorkerPlugin.ts
  • config/plugins/esbuild/forceEsmExtensionsPlugin.ts
  • config/plugins/esbuild/graphQLImportPlugin.ts
  • config/plugins/esbuild/resolveCoreImportsPlugin.ts
  • config/plugins/rolldown/copy-worker-plugin.ts
  • config/polyfills-node.ts
  • config/replaceCoreImports.js
  • config/scripts/patch-ts.js
  • config/scripts/postinstall.js
  • global.d.ts
  • knip.json
  • native/package.json
  • node/package.json
  • package.json
  • pnpm-workspace.yaml
  • src/browser/default-network-options.ts
  • src/browser/glossary.ts
  • src/browser/index.ts
  • src/browser/setup-worker.ts
  • src/browser/sources/fallback-http-source.ts
  • src/browser/sources/service-worker-source.ts
  • src/browser/tsconfig.browser.json
  • src/browser/utils/deserialize-request.ts
  • src/browser/utils/get-absolute-worker-url.test.ts
  • src/browser/utils/get-absolute-worker-url.ts
  • src/browser/utils/get-worker-instance.ts
  • src/browser/utils/pruneGetRequestBody.test.ts
  • src/browser/utils/pruneGetRequestBody.ts
  • src/browser/utils/should-invalidate-worker.test.ts
  • src/browser/utils/should-invalidate-worker.ts
  • src/browser/utils/validate-worker-scope.ts
  • src/browser/utils/worker-channel.ts
  • src/core/experimental/compat.ts
  • src/core/experimental/define-network.test.ts
  • src/core/experimental/define-network.ts
  • src/core/experimental/frames/http-frame.test.ts
  • src/core/experimental/frames/http-frame.ts
  • src/core/experimental/frames/websocket-frame.test.ts
  • src/core/experimental/frames/websocket-frame.ts
  • src/core/experimental/handlers-controller.test.ts
  • src/core/experimental/handlers-controller.ts
  • src/core/experimental/index.ts
  • src/core/experimental/on-unhandled-frame.test.ts
  • src/core/experimental/on-unhandled-frame.ts
  • src/core/experimental/request-utils.test.ts
  • src/core/experimental/request-utils.ts
  • src/core/experimental/setup-api.ts
  • src/core/experimental/sources/interceptor-source.ts
  • src/core/experimental/sources/network-source.test.ts
  • src/core/experimental/sources/network-source.ts
  • src/core/graphql.test.ts
  • src/core/graphql.ts
  • src/core/handlers/handler.ts
  • src/core/handlers/request-handler.ts
  • src/core/index.ts
  • src/core/passthrough.test.ts
  • src/core/passthrough.ts
  • src/core/shared-options.ts
  • src/core/sharedOptions.ts
  • src/core/type-utils.ts
  • src/core/typeUtils.ts
  • src/core/utils/cookie-store.ts
  • src/core/utils/execute-handlers.ts
  • src/core/utils/handleRequest.test.ts
  • src/core/utils/handleRequest.ts
  • src/core/utils/http-status-messages.ts
  • src/core/utils/internal/attach-sibling-handlers.ts
  • src/core/utils/internal/checkGlobals.ts
  • src/core/utils/internal/dev-utils.test.ts
  • src/core/utils/internal/dev-utils.ts
  • src/core/utils/internal/disposable.ts
  • src/core/utils/internal/get-call-frame.test.ts
  • src/core/utils/internal/get-call-frame.ts
  • src/core/utils/internal/has-ref-counted.test.ts
  • src/core/utils/internal/has-ref-counted.ts
  • src/core/utils/internal/is-iterable.test.ts
  • src/core/utils/internal/is-iterable.ts
  • src/core/utils/internal/is-object.test.ts
  • src/core/utils/internal/is-object.ts
  • src/core/utils/internal/is-string-equal.test.ts
  • src/core/utils/internal/is-string-equal.ts
  • src/core/utils/internal/isHandlerKind.test.ts
  • src/core/utils/internal/isHandlerKind.ts
  • src/core/utils/internal/isIterable.ts
  • src/core/utils/internal/json-parse.test.ts
  • src/core/utils/internal/json-parse.ts
  • src/core/utils/internal/mergeRight.test.ts
  • src/core/utils/internal/mergeRight.ts
  • src/core/utils/internal/observe-response-body-stream.test.ts
  • src/core/utils/internal/observe-response-body-stream.ts
  • src/core/utils/internal/parse-multipart-data.test.ts
  • src/core/utils/internal/parse-multipart-data.ts
  • src/core/utils/internal/pipeEvents.test.ts
  • src/core/utils/internal/pipeEvents.ts
  • src/core/utils/internal/to-readonly-array.test.ts
  • src/core/utils/internal/to-readonly-array.ts
  • src/core/utils/internal/tryCatch.test.ts
  • src/core/utils/internal/tryCatch.ts
  • src/core/utils/logging/colors.ts
  • src/core/utils/logging/get-status-code-color.test.ts
  • src/core/utils/logging/get-status-code-color.ts
  • src/core/utils/logging/get-timestamp.test.ts
  • src/core/utils/logging/get-timestamp.ts
  • src/core/utils/logging/serialize-request.test.ts
  • src/core/utils/logging/serialize-request.ts
  • src/core/utils/logging/serialize-response.test.ts
  • src/core/utils/logging/serialize-response.ts
  • src/core/utils/matching/match-request-url.test.ts
  • src/core/utils/matching/match-request-url.ts
  • src/core/utils/matching/matchRequestUrl.test.ts
  • src/core/utils/matching/matchRequestUrl.ts
  • src/core/utils/matching/normalize-path.node.test.ts
  • src/core/utils/matching/normalize-path.test.ts
  • src/core/utils/matching/normalize-path.ts
  • src/core/utils/request/get-all-accepted-mime-types.test.ts
  • src/core/utils/request/get-all-accepted-mime-types.ts
  • src/core/utils/request/get-request-cookies.ts
  • src/core/utils/request/getRequestCookies.ts
  • src/core/utils/request/onUnhandledRequest.node.test.ts
  • src/core/utils/request/onUnhandledRequest.test.ts
  • src/core/utils/request/onUnhandledRequest.ts
  • src/core/utils/request/store-response-cookies.ts
  • src/core/utils/request/storeResponseCookies.ts
  • src/core/utils/request/to-public-url.node.test.ts
  • src/core/utils/request/to-public-url.test.ts
  • src/core/utils/request/to-public-url.ts
  • src/core/utils/response-decorators.ts
  • src/core/utils/to-response-init.ts
  • src/core/utils/url/cleanUrl.test.ts
  • src/core/utils/url/cleanUrl.ts
  • src/core/utils/url/get-absolute-url.node.test.ts
  • src/core/utils/url/get-absolute-url.test.ts
  • src/core/utils/url/get-absolute-url.ts
  • src/core/utils/url/is-absolute-url.test.ts
  • src/core/utils/url/is-absolute-url.ts
  • src/core/utils/url/isAbsoluteUrl.test.ts
  • src/core/ws/handleWebSocketEvent.ts
  • src/core/ws/utils/getPublicData.ts
  • src/core/ws/webSocketInterceptor.ts
  • src/graphql/graphql-handler.test.ts
  • src/graphql/graphql-handler.ts
  • src/graphql/graphql-subscription-event.ts
  • src/graphql/graphql-subscription.test.ts
  • src/graphql/graphql-subscription.ts
  • src/graphql/graphql.test.ts
  • src/graphql/graphql.ts
  • src/graphql/index.ts
  • src/graphql/parse-graphql-request.test.ts
  • src/graphql/parse-graphql-request.ts
  • src/http/http-handler.test.ts
  • src/http/http-handler.ts
  • src/http/http-response.test.ts
  • src/http/http-response.ts
  • src/http/http.test.ts
  • src/http/http.ts
  • src/http/index.test.ts
  • src/http/index.ts
  • src/http/symbols.ts
  • src/iife/index.ts
  • src/mockServiceWorker.js
  • src/native/index.ts
  • src/node/async-handlers-controller.test.ts
  • src/node/glossary.ts
  • src/node/index.ts
  • src/node/setup-server-common.ts
  • src/node/setup-server.ts
  • src/package.json
  • src/shims/cookie.ts
  • src/shims/statuses.ts
  • src/sse/index.test.ts
  • src/sse/index.ts
  • src/sse/sse.ts
  • src/tsconfig.core.build.json
  • src/tsconfig.core.json
  • src/tsconfig.node.json
  • src/tsconfig.src.json
  • src/utils/bypass.test.ts
  • src/utils/bypass.ts
  • src/utils/delay.ts
  • src/utils/get-clean-url-string.test.ts
  • src/utils/get-clean-url-string.ts
  • src/utils/get-response.test.ts
  • src/utils/get-response.ts
  • src/utils/is-common-asset-request.ts
  • src/utils/passthrough.test.ts
  • src/utils/passthrough.ts
  • src/vite/client.d.ts
  • src/vite/index.ts
  • src/vite/options.d.ts
  • src/vite/plugin.test.ts
  • src/vite/plugin.ts
  • src/vite/runtime.ts
  • src/vite/tsconfig.build.json
  • src/ws/index.ts
  • src/ws/utils/attach-websocket-logger.ts
  • src/ws/utils/get-message-length.test.ts
  • src/ws/utils/get-message-length.ts
  • src/ws/utils/get-public-data.test.ts
  • src/ws/utils/get-public-data.ts
  • src/ws/utils/truncate-message.test.ts
  • src/ws/utils/truncate-message.ts
  • src/ws/websocket-client-manager.test.ts
  • src/ws/websocket-client-manager.ts
  • src/ws/websocket-client-store.ts
  • src/ws/websocket-handler.test.ts
  • src/ws/websocket-handler.ts
  • src/ws/websocket-indexeddb-client-store.ts
  • src/ws/websocket-memory-client-store.ts
  • src/ws/websocket-upgrade.ts
  • src/ws/ws.test.ts
  • src/ws/ws.ts
  • test/README.md
  • test/browser/graphql-api/anonymous-operation.mocks.ts
  • test/browser/graphql-api/anonymous-operation.test.ts
  • test/browser/graphql-api/cookies.mocks.ts
  • test/browser/graphql-api/cookies.test.ts
  • test/browser/graphql-api/custom-predicate.mocks.ts
  • test/browser/graphql-api/custom-predicate.test.ts
  • test/browser/graphql-api/document-node.mocks.ts
  • test/browser/graphql-api/errors.mocks.ts
  • test/browser/graphql-api/errors.test.ts
  • test/browser/graphql-api/extensions.mocks.ts
  • test/browser/graphql-api/extensions.test.ts
  • test/browser/graphql-api/link.mocks.ts
  • test/browser/graphql-api/link.test.ts
  • test/browser/graphql-api/logging.mocks.ts
  • test/browser/graphql-api/logging.test.ts
  • test/browser/graphql-api/multipart-data.mocks.ts
  • test/browser/graphql-api/multipart-data.test.ts
  • test/browser/graphql-api/mutation.mocks.ts
  • test/browser/graphql-api/mutation.test.ts
  • test/browser/graphql-api/operation-reference.mocks.ts
  • test/browser/graphql-api/operation.mocks.ts
  • test/browser/graphql-api/operation.test.ts
  • test/browser/graphql-api/query.mocks.ts
  • test/browser/graphql-api/query.test.ts
  • test/browser/graphql-api/response-patching.mocks.ts
  • test/browser/graphql-api/response-patching.test.ts
  • test/browser/graphql-api/variables.mocks.ts
  • test/browser/graphql-api/variables.test.ts
  • test/browser/msw-api/context/delay.mocks.ts
  • test/browser/msw-api/context/delay.test.ts
  • test/browser/msw-api/distribution/iife.mocks.js
  • test/browser/msw-api/exception-handling.mocks.ts
  • test/browser/msw-api/exception-handling.test.ts
  • test/browser/msw-api/hard-reload.mocks.ts
  • test/browser/msw-api/hard-reload.test.ts
  • test/browser/msw-api/integrity-check-invalid.mocks.ts
  • test/browser/msw-api/integrity-check-valid.mocks.ts
  • test/browser/msw-api/integrity-check.test.ts
  • test/browser/msw-api/regression/2129-worker-use.mocks.ts
  • test/browser/msw-api/regression/handle-stream.mocks.ts
  • test/browser/msw-api/regression/handle-stream.test.ts
  • test/browser/msw-api/regression/null-body.mocks.ts
  • test/browser/msw-api/req/passthrough.mocks.ts
  • test/browser/msw-api/req/passthrough.test.ts
  • test/browser/msw-api/res/network-error.mocks.ts
  • test/browser/msw-api/res/network-error.test.ts
  • test/browser/msw-api/setup-worker/fallback-mode/fallback-mode.mocks.ts
  • test/browser/msw-api/setup-worker/input-validation.mocks.ts
  • test/browser/msw-api/setup-worker/input-validation.test.ts
  • test/browser/msw-api/setup-worker/life-cycle-events/on.mocks.ts
  • test/browser/msw-api/setup-worker/life-cycle-events/on.test.ts
  • test/browser/msw-api/setup-worker/life-cycle-events/removeAllListeners.test.ts
  • test/browser/msw-api/setup-worker/life-cycle-events/removeListener.test.ts
  • test/browser/msw-api/setup-worker/listHandlers.mocks.ts
  • test/browser/msw-api/setup-worker/listHandlers.test.ts
  • test/browser/msw-api/setup-worker/response-logging.test.ts
  • test/browser/msw-api/setup-worker/scenarios/custom-transformers.mocks.ts
  • test/browser/msw-api/setup-worker/scenarios/custom-transformers.test.ts
  • test/browser/msw-api/setup-worker/scenarios/errors/internal-error.mocks.ts
  • test/browser/msw-api/setup-worker/scenarios/errors/internal-error.test.ts
  • test/browser/msw-api/setup-worker/scenarios/errors/network-error.mocks.ts
  • test/browser/msw-api/setup-worker/scenarios/errors/network-error.test.ts
  • test/browser/msw-api/setup-worker/scenarios/fall-through.mocks.ts
  • test/browser/msw-api/setup-worker/scenarios/iframe-isolated-response/app.html
  • test/browser/msw-api/setup-worker/scenarios/iframe-isolated-response/iframe-isolated-response.mocks.ts
  • test/browser/msw-api/setup-worker/scenarios/iframe/iframe.mocks.ts
  • test/browser/msw-api/setup-worker/scenarios/iframe/multiple-workers/child.mocks.ts
  • test/browser/msw-api/setup-worker/scenarios/iframe/multiple-workers/parent.mocks.ts
  • test/browser/msw-api/setup-worker/scenarios/scope/scope-nested-quiet.mocks.ts
  • test/browser/msw-api/setup-worker/scenarios/scope/scope-nested.mocks.ts
  • test/browser/msw-api/setup-worker/scenarios/scope/scope-root.mocks.ts
  • test/browser/msw-api/setup-worker/scenarios/shared-worker/shared-worker.mocks.ts
  • test/browser/msw-api/setup-worker/scenarios/text-event-stream.mocks.ts
  • test/browser/msw-api/setup-worker/scenarios/text-event-stream.test.ts
  • test/browser/msw-api/setup-worker/start/error.mocks.ts
  • test/browser/msw-api/setup-worker/start/error.test.ts
  • test/browser/msw-api/setup-worker/start/find-worker.error.mocks.ts
  • test/browser/msw-api/setup-worker/start/find-worker.mocks.ts
  • test/browser/msw-api/setup-worker/start/find-worker.test.ts
  • test/browser/msw-api/setup-worker/start/handlers-reset.mocks.ts
  • test/browser/msw-api/setup-worker/start/handlers-reset.test.ts
  • test/browser/msw-api/setup-worker/start/on-unhandled-request/bypass.mocks.ts
  • test/browser/msw-api/setup-worker/start/on-unhandled-request/bypass.test.ts
  • test/browser/msw-api/setup-worker/start/on-unhandled-request/callback-print.mocks.ts
  • test/browser/msw-api/setup-worker/start/on-unhandled-request/callback-print.test.ts
  • test/browser/msw-api/setup-worker/start/on-unhandled-request/callback-throws.mocks.ts
  • test/browser/msw-api/setup-worker/start/on-unhandled-request/callback.mocks.ts
  • test/browser/msw-api/setup-worker/start/on-unhandled-request/callback.test.ts
  • test/browser/msw-api/setup-worker/start/on-unhandled-request/default.mocks.ts
  • test/browser/msw-api/setup-worker/start/on-unhandled-request/warn.mocks.ts
  • test/browser/msw-api/setup-worker/start/on-unhandled-request/warn.test.ts
  • test/browser/msw-api/setup-worker/start/options-sw-scope.mocks.ts
  • test/browser/msw-api/setup-worker/start/options-sw-scope.test.ts
  • test/browser/msw-api/setup-worker/start/quiet.mocks.ts
  • test/browser/msw-api/setup-worker/start/quiet.test.ts
  • test/browser/msw-api/setup-worker/start/start-after-stop.mocks.ts
  • test/browser/msw-api/setup-worker/start/start.mocks.ts
  • test/browser/msw-api/setup-worker/start/warn-on-wait-until-ready.mocks.ts
  • test/browser/msw-api/setup-worker/start/warn-on-wait-until-ready.test.ts
  • test/browser/msw-api/setup-worker/stop.mocks.ts
  • test/browser/msw-api/setup-worker/stop.test.ts
  • test/browser/msw-api/setup-worker/stop/in-flight-request.mocks.ts
  • test/browser/msw-api/setup-worker/stop/in-flight-request.test.ts
  • test/browser/msw-api/setup-worker/stop/quiet.mocks.ts
  • test/browser/msw-api/setup-worker/stop/quiet.test.ts
  • test/browser/msw-api/setup-worker/stop/removes-all-listeners.mocks.ts
  • test/browser/msw-api/setup-worker/use.mocks.ts
  • test/browser/msw-api/setup-worker/worker-passthrough-header.mocks.ts
  • test/browser/msw-api/unregister.mocks.ts
  • test/browser/rest-api/204-response.test.ts
  • test/browser/rest-api/206-response.mocks.ts
  • test/browser/rest-api/206-response.test.ts
  • test/browser/rest-api/basic.mocks.ts
  • test/browser/rest-api/basic.test.ts
  • test/browser/rest-api/body.mocks.ts
  • test/browser/rest-api/body.test.ts
  • test/browser/rest-api/context.mocks.ts
  • test/browser/rest-api/context.test.ts
  • test/browser/rest-api/cors.mocks.ts
  • test/browser/rest-api/cors.test.ts
  • test/browser/rest-api/generator.mocks.ts
  • test/browser/rest-api/generator.test.ts
  • test/browser/rest-api/headers-multiple.mocks.ts
  • test/browser/rest-api/headers-multiple.test.ts
  • test/browser/rest-api/logging.test.ts
  • test/browser/rest-api/params.mocks.ts
  • test/browser/rest-api/params.test.ts
  • test/browser/rest-api/plain-response.mocks.ts
  • test/browser/rest-api/plain-response.test.ts
  • test/browser/rest-api/query-params-warning.mocks.ts
  • test/browser/rest-api/query-params-warning.test.ts
  • test/browser/rest-api/query.mocks.ts
  • test/browser/rest-api/query.test.ts
  • test/browser/rest-api/redirect.mocks.ts
  • test/browser/rest-api/redirect.test.ts
  • test/browser/rest-api/request/body/body-arraybuffer-range.test.ts
  • test/browser/rest-api/request/body/body-arraybuffer.test.ts
  • test/browser/rest-api/request/body/body-form-data.test.ts
  • test/browser/rest-api/request/body/body-json.test.ts
  • test/browser/rest-api/request/body/body-text.test.ts
  • test/browser/rest-api/request/body/body.mocks.ts
  • test/browser/rest-api/request/matching/all.mocks.ts
  • test/browser/rest-api/request/matching/custom-predicate.mocks.ts
  • test/browser/rest-api/request/matching/custom-predicate.test.ts
  • test/browser/rest-api/request/matching/method.mocks.ts
  • test/browser/rest-api/request/matching/method.test.ts
  • test/browser/rest-api/request/matching/path-params-decode.mocks.ts
  • test/browser/rest-api/request/matching/path-params-decode.test.ts
  • test/browser/rest-api/request/matching/uri.mocks.ts
  • test/browser/rest-api/request/request-cookies.mocks.ts
  • test/browser/rest-api/request/request-cookies.test.ts
  • test/browser/rest-api/response-patching.mocks.ts
  • test/browser/rest-api/response-patching.test.ts
  • test/browser/rest-api/response/body/body-binary.mocks.ts
  • test/browser/rest-api/response/body/body-binary.test.ts
  • test/browser/rest-api/response/body/body-blob.mocks.ts
  • test/browser/rest-api/response/body/body-blob.test.ts
  • test/browser/rest-api/response/body/body-formdata.mocks.ts
  • test/browser/rest-api/response/body/body-formdata.test.ts
  • test/browser/rest-api/response/body/body-html.mocks.ts
  • test/browser/rest-api/response/body/body-html.test.ts
  • test/browser/rest-api/response/body/body-json.mocks.ts
  • test/browser/rest-api/response/body/body-json.test.ts
  • test/browser/rest-api/response/body/body-stream.mocks.ts
  • test/browser/rest-api/response/body/body-stream.test.ts
  • test/browser/rest-api/response/body/body-text.mocks.ts
  • test/browser/rest-api/response/body/body-text.test.ts
  • test/browser/rest-api/response/body/body-xml.mocks.ts
  • test/browser/rest-api/response/body/body-xml.test.ts
  • test/browser/rest-api/response/response-cookies.mocks.ts
  • test/browser/rest-api/response/response-cookies.test.ts
  • test/browser/rest-api/response/response-error.mocks.ts
  • test/browser/rest-api/response/throw-response.mocks.ts
  • test/browser/rest-api/send-beacon.mocks.ts
  • test/browser/rest-api/status.mocks.ts
  • test/browser/rest-api/status.test.ts
  • test/browser/rest-api/xhr.mocks.ts
  • test/browser/rest-api/xhr.test.ts
  • test/browser/setup/webpackHttpServer.ts
  • test/browser/sse-api/sse.mocks.ts
  • test/browser/sse-api/sse.quiet.test.ts
  • test/browser/sse-api/sse.server.connect.test.ts
  • test/browser/sse-api/sse.signal.test.ts
  • test/browser/third-party/axios-upload.browser.test.ts
  • test/browser/third-party/axios-upload.runtime.js
  • test/browser/ws-api/ws.apply.browser.test.ts
  • test/browser/ws-api/ws.client.send.test.ts
  • test/browser/ws-api/ws.clients.browser.test.ts
  • test/browser/ws-api/ws.intercept.client.browser.test.ts
  • test/browser/ws-api/ws.intercept.server.browser.test.ts
  • test/browser/ws-api/ws.runtime.js
  • test/browser/ws-api/ws.server.connect.browser.test.ts
  • test/e2e/auto-update-worker.node.test.ts
  • test/e2e/cli-init.node.test.ts
  • test/e2e/tsconfig.json
  • test/e2e/vitest.config.ts
  • test/e2e/vitest.d.ts
  • test/e2e/vitest.global.setup.ts
  • test/global.d.ts
  • test/memory/2735-memory-leak.memory.test.ts
  • test/memory/2792-frame-retention.browser.memory.test.ts
  • test/memory/2792-frame-retention.memory.test.ts
  • test/memory/vitest.config.ts
  • test/modules/browser/esm-browser.test.ts
  • test/modules/module-utils.ts
  • test/modules/node/esm-node.test.ts
  • test/msw-api/context/delay-infinite.fixture.js
  • test/msw-api/context/delay.node.test.ts
  • test/msw-api/context/delay.test.ts
  • test/msw-api/distribution/iife.pw.test.ts
  • test/msw-api/exception-handling.test.ts
  • test/msw-api/finalize.node.test.ts
  • test/msw-api/hard-reload.pw.test.ts
  • test/msw-api/integrity-check.pw.test.ts
  • test/msw-api/passthrough.node.test.ts
  • test/msw-api/passthrough.test.ts
  • test/msw-api/regression/2129-worker-use.test.ts
  • test/msw-api/regression/handle-stream.test.ts
  • test/msw-api/regression/null-body.test.ts
  • test/msw-api/response/network-error.node.test.ts
  • test/msw-api/response/network-error.test.ts
  • test/msw-api/setup-server/boundary/boundary.args.node.test.ts
  • test/msw-api/setup-server/boundary/boundary.concurrency.node.test.ts
  • test/msw-api/setup-server/boundary/boundary.handlers.node.test.ts
  • test/msw-api/setup-server/input-validation.node.test.ts
  • test/msw-api/setup-server/life-cycle-events/on.node.test.ts
  • test/msw-api/setup-server/life-cycle-events/remove-all-listeners.node.test.ts
  • test/msw-api/setup-server/life-cycle-events/remove-listener.node.test.ts
  • test/msw-api/setup-server/list-handlers.node.test.ts
  • test/msw-api/setup-server/listen-twice.node.test.ts
  • test/msw-api/setup-server/reset-handlers.node.test.ts
  • test/msw-api/setup-server/restore-handlers.node.test.ts
  • test/msw-api/setup-server/scenarios/cookies-request.node.test.ts
  • test/msw-api/setup-server/scenarios/custom-interceptors.node.test.ts
  • test/msw-api/setup-server/scenarios/custom-transformers.node.test.ts
  • test/msw-api/setup-server/scenarios/exception-handling.node.test.ts
  • test/msw-api/setup-server/scenarios/fake-timers.node.test.ts
  • test/msw-api/setup-server/scenarios/fall-through.node.test.ts
  • test/msw-api/setup-server/scenarios/fetch.node.test.ts
  • test/msw-api/setup-server/scenarios/generator.node.test.ts
  • test/msw-api/setup-server/scenarios/graphql.node.test.ts
  • test/msw-api/setup-server/scenarios/http.node.test.ts
  • test/msw-api/setup-server/scenarios/https.node.test.ts
  • test/msw-api/setup-server/scenarios/on-unhandled-request/bypass.node.test.ts
  • test/msw-api/setup-server/scenarios/on-unhandled-request/callback-throws.node.test.ts
  • test/msw-api/setup-server/scenarios/on-unhandled-request/callback.node.test.ts
  • test/msw-api/setup-server/scenarios/on-unhandled-request/default.node.test.ts
  • test/msw-api/setup-server/scenarios/on-unhandled-request/error.node.test.ts
  • test/msw-api/setup-server/scenarios/on-unhandled-request/warn.node.test.ts
  • test/msw-api/setup-server/scenarios/relative-url.node.test.ts
  • test/msw-api/setup-server/scenarios/response-patching.node.test.ts
  • test/msw-api/setup-server/scenarios/xhr.node.test.ts
  • test/msw-api/setup-server/use.node.test.ts
  • test/msw-api/setup-worker/fallback-mode/fallback-mode.pw.test.ts
  • test/msw-api/setup-worker/input-validation.browser.test.ts
  • test/msw-api/setup-worker/life-cycle-events/life-cycle-events.test.ts
  • test/msw-api/setup-worker/life-cycle-events/stop-events.browser.test.ts
  • test/msw-api/setup-worker/list-handlers.test.ts
  • test/msw-api/setup-worker/reset-handlers.test.ts
  • test/msw-api/setup-worker/response-logging.test.ts
  • test/msw-api/setup-worker/restore-handlers.test.ts
  • test/msw-api/setup-worker/scenarios/custom-transformers.test.ts
  • test/msw-api/setup-worker/scenarios/errors/internal-error.test.ts
  • test/msw-api/setup-worker/scenarios/errors/network-error.browser.test.ts
  • test/msw-api/setup-worker/scenarios/fall-through.test.ts
  • test/msw-api/setup-worker/scenarios/iframe-isolated-response/app.html
  • test/msw-api/setup-worker/scenarios/iframe-isolated-response/iframe-isolated-response.pw.test.ts
  • test/msw-api/setup-worker/scenarios/iframe-isolated-response/one.html
  • test/msw-api/setup-worker/scenarios/iframe-isolated-response/two.html
  • test/msw-api/setup-worker/scenarios/iframe/app.html
  • test/msw-api/setup-worker/scenarios/iframe/iframe.pw.test.ts
  • test/msw-api/setup-worker/scenarios/iframe/multiple-workers/iframe-multiple-workers.pw.test.ts
  • test/msw-api/setup-worker/scenarios/iframe/page-in-iframe.html
  • test/msw-api/setup-worker/scenarios/iframe/page-in-nested-iframe.html
  • test/msw-api/setup-worker/scenarios/scope/scope-validation.pw.test.ts
  • test/msw-api/setup-worker/scenarios/shared-worker/shared-worker.pw.test.ts
  • test/msw-api/setup-worker/scenarios/shared-worker/worker.js
  • test/msw-api/setup-worker/scenarios/text-event-stream.browser.test.ts
  • test/msw-api/setup-worker/start/error.pw.test.ts
  • test/msw-api/setup-worker/start/find-worker.pw.test.ts
  • test/msw-api/setup-worker/start/handlers-reset.browser.test.ts
  • test/msw-api/setup-worker/start/on-unhandled-request/bypass.browser.test.ts
  • test/msw-api/setup-worker/start/on-unhandled-request/callback-print.browser.test.ts
  • test/msw-api/setup-worker/start/on-unhandled-request/callback.browser.test.ts
  • test/msw-api/setup-worker/start/on-unhandled-request/default.browser.test.ts
  • test/msw-api/setup-worker/start/on-unhandled-request/warn.browser.test.ts
  • test/msw-api/setup-worker/start/options-sw-scope.pw.test.ts
  • test/msw-api/setup-worker/start/quiet.browser.test.ts
  • test/msw-api/setup-worker/start/start-after-stop.browser.test.ts
  • test/msw-api/setup-worker/start/start.pw.test.ts
  • test/msw-api/setup-worker/start/worker.delayed.js
  • test/msw-api/setup-worker/stop-multiple-tabs.pw.test.ts
  • test/msw-api/setup-worker/stop.browser.test.ts
  • test/msw-api/setup-worker/stop/in-flight-request.browser.test.ts
  • test/msw-api/setup-worker/stop/quiet-stop.browser.test.ts
  • test/msw-api/setup-worker/stop/removes-all-listeners.pw.test.ts
  • test/msw-api/setup-worker/stop/stop-message.browser.test.ts
  • test/msw-api/setup-worker/use.test.ts
  • test/msw-api/setup-worker/worker-passthrough-header.test.ts
  • test/msw-api/unregister.pw.test.ts
  • test/native/node-events.native.test.ts
  • test/native/tsconfig.json
  • test/native/vitest.config.ts
  • test/native/vitest.setup.ts
  • test/node/graphql-api/anonymous-operations.test.ts
  • test/node/graphql-api/response-patching.node.test.ts
  • test/node/msw-api/finalize.test.ts
  • test/node/msw-api/req/passthrough.node.test.ts
  • test/node/msw-api/setup-server/scenarios/fake-timers.node.test.ts
  • test/node/msw-api/setup-server/scenarios/http.node.test.ts
  • test/node/msw-api/setup-server/scenarios/https.node.test.ts
  • test/node/msw-api/setup-server/scenarios/on-unhandled-request/bypass.node.test.ts
  • test/node/msw-api/setup-server/scenarios/on-unhandled-request/callback.node.test.ts
  • test/node/msw-api/setup-server/scenarios/response-patching.node.test.ts
  • test/node/regressions/many-request-handlers-jsdom.test.ts
  • test/node/regressions/many-request-handlers.test.ts
  • test/node/rest-api/cookies-inheritance.node.test.ts
  • test/node/rest-api/request/matching/all.node.test.ts
  • test/node/tsconfig.json
  • test/node/vitest.config.ts
  • test/node/ws-api/ws.upgrade.test.ts
  • test/playwright.config.ts
  • test/protocols/graphql/anonymous-operation.browser.test.ts
  • test/protocols/graphql/anonymous-operations.node.test.ts
  • test/protocols/graphql/batched-queries.apollo.node.test.ts
  • test/protocols/graphql/batched-queries.batched-execute.node.test.ts
  • test/protocols/graphql/compatibility.node.test.ts
  • test/protocols/graphql/content-type.node.test.ts
  • test/protocols/graphql/cookies.browser.test.ts
  • test/protocols/graphql/cookies.node.test.ts
  • test/protocols/graphql/custom-predicate.node.test.ts
  • test/protocols/graphql/custom-predicate.test.ts
  • test/protocols/graphql/errors.test.ts
  • test/protocols/graphql/events.node.test.ts
  • test/protocols/graphql/extensions.node.test.ts
  • test/protocols/graphql/extensions.test.ts
  • test/protocols/graphql/graphql-subscription.node.test.ts
  • test/protocols/graphql/link.test.ts
  • test/protocols/graphql/logging.test.ts
  • test/protocols/graphql/multi-operation-document.node.test.ts
  • test/protocols/graphql/multipart-data.test.ts
  • test/protocols/graphql/mutation.test.ts
  • test/protocols/graphql/operation-reference.test.ts
  • test/protocols/graphql/operation.test.ts
  • test/protocols/graphql/query.test.ts
  • test/protocols/graphql/response-patching.browser.test.ts
  • test/protocols/graphql/response-patching.node.test.ts
  • test/protocols/graphql/subscription.browser.test.ts
  • test/protocols/graphql/typed-document-node.node.test.ts
  • test/protocols/graphql/typed-document-string.node.test.ts
  • test/protocols/graphql/variables.test.ts
  • test/protocols/http/204-response.test.ts
  • test/protocols/http/206-response.test.ts
  • test/protocols/http/basic.test.ts
  • test/protocols/http/body.test.ts
  • test/protocols/http/context.test.ts
  • test/protocols/http/cors.browser.test.ts
  • test/protocols/http/generator.test.ts
  • test/protocols/http/https.node.test.ts
  • test/protocols/http/logging.test.ts
  • test/protocols/http/navigate.pw.test.ts
  • test/protocols/http/params.test.ts
  • test/protocols/http/plain-response.test.ts
  • test/protocols/http/query-params-warning.test.ts
  • test/protocols/http/query.test.ts
  • test/protocols/http/redirect.test.ts
  • test/protocols/http/request/body/body-arraybuffer-range.test.ts
  • test/protocols/http/request/body/body-arraybuffer.node.test.ts
  • test/protocols/http/request/body/body-arraybuffer.test.ts
  • test/protocols/http/request/body/body-blob.node.test.ts
  • test/protocols/http/request/body/body-form-data.node.test.ts
  • test/protocols/http/request/body/body-form-data.page.html
  • test/protocols/http/request/body/body-form-data.test.ts
  • test/protocols/http/request/body/body-json.node.test.ts
  • test/protocols/http/request/body/body-json.test.ts
  • test/protocols/http/request/body/body-protobuf.node.test.ts
  • test/protocols/http/request/body/body-text.node.test.ts
  • test/protocols/http/request/body/body-text.test.ts
  • test/protocols/http/request/body/body-used.node.test.ts
  • test/protocols/http/request/matching/all.node.test.ts
  • test/protocols/http/request/matching/all.test.ts
  • test/protocols/http/request/matching/custom-predicate.node.test.ts
  • test/protocols/http/request/matching/custom-predicate.test.ts
  • test/protocols/http/request/matching/method.test.ts
  • test/protocols/http/request/matching/path-params-decode.node.test.ts
  • test/protocols/http/request/matching/path-params-decode.test.ts
  • test/protocols/http/request/matching/path-params-optional.node.test.ts
  • test/protocols/http/request/matching/relative-url.node.test.ts
  • test/protocols/http/request/matching/uri.test.ts
  • test/protocols/http/request/request-cookies.browser.test.ts
  • test/protocols/http/request/request-cookies.node.test.ts
  • test/protocols/http/request/request-credentials.browser.test.ts
  • test/protocols/http/request/request-credentials.node.test.ts
  • test/protocols/http/request/request-credentials.test.ts
  • test/protocols/http/request/request-headers-fallback.browser.test.ts
  • test/protocols/http/request/request-headers.test.ts
  • test/protocols/http/response-patching.node.test.ts
  • test/protocols/http/response-patching.test.ts
  • test/protocols/http/response/body-binary.node.test.ts
  • test/protocols/http/response/body-html.node.test.ts
  • test/protocols/http/response/body-json.node.test.ts
  • test/protocols/http/response/body-stream.node.test.ts
  • test/protocols/http/response/body-text.node.test.ts
  • test/protocols/http/response/body-xml.node.test.ts
  • test/protocols/http/response/body/body-binary.browser.test.ts
  • test/protocols/http/response/body/body-blob.test.ts
  • test/protocols/http/response/body/body-formdata.test.ts
  • test/protocols/http/response/body/body-html.test.ts
  • test/protocols/http/response/body/body-json.test.ts
  • test/protocols/http/response/body/body-stream.test.ts
  • test/protocols/http/response/body/body-text.test.ts
  • test/protocols/http/response/body/body-xml.test.ts
  • test/protocols/http/response/generator.node.test.ts
  • test/protocols/http/response/response-cookies.browser.test.ts
  • test/protocols/http/response/response-cookies.node.test.ts
  • test/protocols/http/response/response-error.node.test.ts
  • test/protocols/http/response/response-error.test.ts
  • test/protocols/http/response/response-headers.test.ts
  • test/protocols/http/response/throw-response.node.test.ts
  • test/protocols/http/response/throw-response.test.ts
  • test/protocols/http/send-beacon.browser.test.ts
  • test/protocols/http/status.test.ts
  • test/protocols/http/xhr.browser.test.ts
  • test/protocols/sse/sse.client.send.browser.test.ts
  • test/protocols/sse/sse.client.send.extraneous.browser.test.ts
  • test/protocols/sse/sse.client.send.multiline.browser.test.ts
  • test/protocols/sse/sse.finalize.browser.test.ts
  • test/protocols/sse/sse.logging.browser.test.ts
  • test/protocols/sse/sse.quiet.browser.test.ts
  • test/protocols/sse/sse.retry.browser.test.ts
  • test/protocols/sse/sse.server.connect.browser.test.ts
  • test/protocols/sse/sse.signal.browser.test.ts
  • test/protocols/sse/sse.use.browser.test.ts
  • test/protocols/sse/sse.with-credentials.browser.test.ts
  • test/protocols/websocket/on-unhandled-request/callback.node.test.ts
  • test/protocols/websocket/on-unhandled-request/error.node.test.ts
  • test/protocols/websocket/on-unhandled-request/warn.node.test.ts
  • test/protocols/websocket/ws.apply.browser.test.ts
  • test/protocols/websocket/ws.apply.node.test.ts
  • test/protocols/websocket/ws.client.send.browser.test.ts
  • test/protocols/websocket/ws.client.send.pw.test.ts
  • test/protocols/websocket/ws.clients.pw.test.ts
  • test/protocols/websocket/ws.event-patching.node.test.ts
  • test/protocols/websocket/ws.events.error.test.ts
  • test/protocols/websocket/ws.events.error.unhandled.test.ts
  • test/protocols/websocket/ws.extension.test.ts
  • test/protocols/websocket/ws.intercept.client.browser.test.ts
  • test/protocols/websocket/ws.intercept.client.node.test.ts
  • test/protocols/websocket/ws.intercept.server.browser.test.ts
  • test/protocols/websocket/ws.intercept.server.node.test.ts
  • test/protocols/websocket/ws.logging.browser.test.ts
  • test/protocols/websocket/ws.quiet.browser.test.ts
  • test/protocols/websocket/ws.server.connect.browser.test.ts
  • test/protocols/websocket/ws.server.connect.node.test.ts
  • test/protocols/websocket/ws.stop-propagation.node.test.ts
  • test/protocols/websocket/ws.unhandled-exception.node.test.ts
  • test/protocols/websocket/ws.upgrade.node.test.ts
  • test/protocols/websocket/ws.use.browser.test.ts
  • test/protocols/websocket/ws.use.node.test.ts
  • test/protocols/websocket/ws.wildcard-host.test.ts
  • test/regressions/2129-server-use.node.test.ts
  • test/regressions/2370-listen-after-close.node.test.ts
  • test/regressions/many-request-handlers-jsdom.node.test.ts
  • test/regressions/many-request-handlers.node.test.ts
  • test/regressions/mixed-graphql-http-with-query-in-body.node.test.ts
  • test/setup/browser-commands.ts
  • test/setup/network.test.ts
  • test/setup/network.ts
  • test/setup/playwright.ts
  • test/setup/vite-http-server.ts
  • test/setup/vitest-browser.ts
  • test/setup/vitest-helpers.ts
  • test/setup/vitest.ts
  • test/setup/websocket-server.ts
  • test/setup/worker-console.ts
  • test/support/alias.ts
  • test/support/environments/vitest-environment-node-websocket.ts
  • test/support/graphql-client.ts
  • test/support/graphql-server.ts
  • test/support/msw-esm/package.json
  • test/support/utils.ts
  • test/support/waitFor.ts
  • test/support/websocket-server.ts
  • test/support/ws-test-utils.ts
  • test/third-party/axios-error-response.node.test.ts
  • test/third-party/axios-timeout.node.test.ts
  • test/third-party/axios-upload.browser.test.ts
  • test/third-party/axios-upload.node.test.ts
  • test/typings/custom-handler.test-d.ts
  • test/typings/custom-resolver.test-d.ts
  • test/typings/define-network.test-d.ts
  • test/typings/graphql-custom-predicate.test-d.ts
  • test/typings/graphql-typed-document-node.test-d.ts
  • test/typings/graphql-typed-document-string.test-d.ts
  • test/typings/graphql.test-d.ts
  • test/typings/handlers-controller.test-d.ts
  • test/typings/http-custom-predicate.test-d.ts
  • test/typings/http.test-d.ts
  • test/typings/life-cycle-events.test-d.ts
  • test/typings/regressions/default-resolver-type.test-d.ts
  • test/typings/regressions/request-handler-type.test-d.ts
  • test/typings/regressions/response-body-type.test-d.ts
  • test/typings/resolver-generator.test-d.ts
  • test/typings/server-boundary.test-d.ts
  • test/typings/setup-server.test-d.ts
  • test/typings/setup-worker.test-d.ts
  • test/typings/sse.test-d.ts
  • test/typings/tsconfig.5.0.json
  • test/typings/tsconfig.5.1.json
  • test/typings/tsconfig.5.2.json
  • test/typings/tsconfig.5.3.json
  • test/typings/tsconfig.5.4.json
  • test/typings/tsconfig.5.5.json
  • test/typings/tsconfig.json
  • test/typings/vite.test-d.ts
  • test/typings/vitest.config.ts
  • test/typings/ws.test-d.ts
  • tsconfig.base.json
  • tsconfig.json
  • tsdown.config.ts
  • tsup.config.ts
  • vitest.config.mts
  • vitest.config.ts
  • vitest.setup.ts

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing Touches
đź§Ş Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/3.0

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pkg-pr-new

pkg-pr-new Bot commented Apr 6, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/msw@2692

commit: 62890a9

@kettanaito kettanaito added this to the 3.0 milestone Apr 20, 2026
@socket-security

socket-security Bot commented May 11, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​commitlint/​cli@​20.5.3 ⏵ 21.2.310010073 +196 +1100
Updatedesbuild@​0.28.1 ⏵ 0.28.292 +110073 +187100
Added@​msw/​url@​0.1.27410010089100
Updated@​ossjs/​release@​0.11.1 ⏵ 0.11.278100100 +189 -1100
Updatedvitest@​4.1.10 ⏵ 5.0.298 +1100 +279 +199100
Updatedsimple-git-hooks@​2.13.1 ⏵ 2.14.091 +110080 +1383 -2100
Updated@​types/​node@​24.13.2 ⏵ 24.19.010010081 +196 +1100
Updatedpublint@​0.3.21 ⏵ 0.3.2410010081 +193 +5100
Updatedvite@​8.1.3 ⏵ 8.3.199 +110082 +197 +2100
Updatedtough-cookie@​5.1.2 ⏵ 6.0.210010010083100
Updated@​types/​serviceworker@​0.0.194 ⏵ 0.0.202100 +110084 +194 +1100
Addedgraphql-ws@​6.3.01001008594100
Updated@​web/​dev-server@​0.4.6 ⏵ 1.0.09910090 +185100
Addedcookie@​2.0.110010010085100
Added@​vitest/​browser-playwright@​5.0.21001008698100
Updatedrettime@​0.11.11 ⏵ 0.11.12100100100 +186 -5100
Addedtsdown@​0.23.0981008896100
Updatedtypescript@​5.9.3 ⏵ 7.0.29910089 -1100100 +10
Updatedyargs@​17.7.3 ⏵ 18.2.099 +1100100 +190100
Updatedoxlint@​1.73.0 ⏵ 1.85.099 +110091 -196 +1100
Updatedtype-fest@​5.8.0 ⏵ 5.10.0100 +1100100 +191100
Updated@​fastify/​websocket@​11.2.0 ⏵ 11.3.193 -710010092 +5100
Updatedaxios@​1.18.1 ⏵ 1.20.098 +110010093100
Updatedws@​8.21.0 ⏵ 8.22.09910010093100
Updatedgraphql@​16.14.2 ⏵ 17.0.2100 +110010094100
Updated@​inquirer/​confirm@​6.1.1 ⏵ 6.3.2100100100 +395 +1100
Updatedknip@​6.25.0 ⏵ 6.38.099 +110095 +196 +1100
Updatedlint-staged@​16.4.0 ⏵ 17.6.0100 +110010095100
Updated@​commitlint/​config-conventional@​20.5.3 ⏵ 21.2.310010010096 +4100
Updated@​mswjs/​interceptors@​0.41.9 ⏵ 0.45.599 +1100100 +196100
Updatedprettier@​3.9.4 ⏵ 3.9.99810097 +199100
See 4 more rows in the dashboard

View full report

@socket-security

socket-security Bot commented May 12, 2026 •

Copy link
Copy Markdown

All alerts resolved. Learn more about Socket for GitHub.

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report

@dsonet

dsonet commented May 15, 2026

Copy link
Copy Markdown

Hey @kettanaito, thanks a lot for your great work!

Is it possible to include this feature? Here’s the link: #2357
It would be nice if it could cross the finish line.

@kettanaito

Copy link
Copy Markdown
Member Author

@dsonet GraphQL subscriptions will likely make it either to 3.0 or even to 2.0. They aren't as tedious to implement with the new architecture now. I've introduced the concept of handlers merging in the recent changes to 2.0 and that was the missing piece for the subscriptions.

As always, if your company needs that support in MSW, please consider becoming a sponsor! Thank you.

@kettanaito
kettanaito merged commit 2bb4342 into main Sep 28, 2026
12 checks passed
@kettanaito
kettanaito deleted the feat/3.0 branch September 28, 2026 15:26
@kettanaito

Copy link
Copy Markdown
Member Author

Released: v3.0.0 🎉

This has been released in v3.0.0.

Get these changes by running the following command:

npm i msw@latest

Predictable release automation by Release.

renovate Bot added a commit to cigaleapp/cigale that referenced this pull request Oct 13, 2026
##### [v3.0.2](https://github.com/mswjs/msw/releases/tag/v3.0.2)

#### v3.0.2 (2026-10-03)

##### Bug Fixes

- **vite:** support `virtual:msw` imports in vitest ([#2802](mswjs/msw#2802)) ([`e73c381`](mswjs/msw@e73c381)) [@kettanaito](https://github.com/kettanaito)
##### [v3.0.1](https://github.com/mswjs/msw/releases/tag/v3.0.1)

#### v3.0.1 (2026-09-30)

##### Bug Fixes

- treat `CONNECT` requests as the transport mechanism ([#2796](mswjs/msw#2796)) ([`7cad86a`](mswjs/msw@7cad86a)) [@kettanaito](https://github.com/kettanaito)
##### [v3.0.0](https://github.com/mswjs/msw/releases/tag/v3.0.0)

#### v3.0.0 (2026-09-28)

- v3.0.0 ([#2692](mswjs/msw#2692)) ([`2bb4342`](mswjs/msw@2bb4342)) [@kettanaito](https://github.com/kettanaito) [@Andarist](https://github.com/Andarist)

##### ⚠️ BREAKING CHANGES

- **MSW is now ESM-only** ([#2765](mswjs/msw#2765)).
- Deprecate support for Node.js v18 and v20 ([#2729](mswjs/msw#2729)). The minimal supported Node.js version is v22.
- `msw/native` is removed in favor of [`@msw/react-native`](https://github.com/mswjs/react-native).
- Require TypeScript 5.9 as the minimal version.
- Deprecate support for TypeScript 5.1 and 5.2 ([#2730](mswjs/msw#2730))
- `worker.stop()` returns a Promise ([#2724](mswjs/msw#2724)). Awaiting it is relevant only for in-flight critical scenarios.
- `graphql` is now exported as `msw/graphql` ([#2691](mswjs/msw#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 compatibilty. 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](mswjs/msw#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](mswjs/msw#2721)).
- Support GraphQL subscriptions ([#285](mswjs/msw#285), [#2763](mswjs/msw#2763)).
- Migrate from `path-to-regexp` to `@msw/url` ([#2678](mswjs/msw#2678)).
- Remove the following dependencies:
  - `graphql`
  - `path-to-regexp`
  - `picocolors`
  - `statuses`
  - `strict-event-emitter`
- Adds a Vite plugin for MSW ([#2781](mswjs/msw#2781)).
- Adds a `websocket:error` life cycle event to listen to WebSocket connection errors ([#2784](mswjs/msw#2784)).
- Support modifying the intercepted request headers in passthrough scenarios ([#2786](mswjs/msw#2786)).
- Support a new WebSocket Extension API that allows for better custom experiences ([#2791](mswjs/msw#2791)).

##### Bug fixes

- Fix an issue where preventing a page closure via the `beforeunload` listener would unregister the MSW worker ([#1105](mswjs/msw#1105)).
- Fix an issue that caused intermittent test failures in Vitest Browser Mode and Firefox if using `maxWorkers: 1` ([#2726](mswjs/msw#2726)).
- Fix an issue where in-flight requests were incorrectly passthrough when performed before calling `worker.stop()` ([#2724](mswjs/msw#2724), [#2597](mswjs/msw#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.
renovate Bot added a commit to cigaleapp/cigale that referenced this pull request Oct 17, 2026
##### [v3.0.3](https://github.com/mswjs/msw/releases/tag/v3.0.3)

#### v3.0.3 (2026-10-10)

##### Bug Fixes

- **HandlersController:** dispose of reset handlers ([#2810](mswjs/msw#2810)) ([`3818a81`](mswjs/msw@3818a81)) [@kettanaito](https://github.com/kettanaito)
- expose network context on `enable` in network sources ([#2809](mswjs/msw#2809)) ([`d1fe8e6`](mswjs/msw@d1fe8e6)) [@kettanaito](https://github.com/kettanaito)
##### [v3.0.2](https://github.com/mswjs/msw/releases/tag/v3.0.2)

#### v3.0.2 (2026-10-03)

##### Bug Fixes

- **vite:** support `virtual:msw` imports in vitest ([#2802](mswjs/msw#2802)) ([`e73c381`](mswjs/msw@e73c381)) [@kettanaito](https://github.com/kettanaito)
##### [v3.0.1](https://github.com/mswjs/msw/releases/tag/v3.0.1)

#### v3.0.1 (2026-09-30)

##### Bug Fixes

- treat `CONNECT` requests as the transport mechanism ([#2796](mswjs/msw#2796)) ([`7cad86a`](mswjs/msw@7cad86a)) [@kettanaito](https://github.com/kettanaito)
##### [v3.0.0](https://github.com/mswjs/msw/releases/tag/v3.0.0)

#### v3.0.0 (2026-09-28)

- v3.0.0 ([#2692](mswjs/msw#2692)) ([`2bb4342`](mswjs/msw@2bb4342)) [@kettanaito](https://github.com/kettanaito) [@Andarist](https://github.com/Andarist)

##### ⚠️ BREAKING CHANGES

- **MSW is now ESM-only** ([#2765](mswjs/msw#2765)).
- Deprecate support for Node.js v18 and v20 ([#2729](mswjs/msw#2729)). The minimal supported Node.js version is v22.
- `msw/native` is removed in favor of [`@msw/react-native`](https://github.com/mswjs/react-native).
- Require TypeScript 5.9 as the minimal version.
- Deprecate support for TypeScript 5.1 and 5.2 ([#2730](mswjs/msw#2730))
- `worker.stop()` returns a Promise ([#2724](mswjs/msw#2724)). Awaiting it is relevant only for in-flight critical scenarios.
- `graphql` is now exported as `msw/graphql` ([#2691](mswjs/msw#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](mswjs/msw#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](mswjs/msw#2721)).
- Support GraphQL subscriptions ([#285](mswjs/msw#285), [#2763](mswjs/msw#2763)).
- Migrate from `path-to-regexp` to `@msw/url` ([#2678](mswjs/msw#2678)).
- Remove the following dependencies:
  - `graphql`
  - `path-to-regexp`
  - `picocolors`
  - `statuses`
  - `strict-event-emitter`
- Adds a Vite plugin for MSW ([#2781](mswjs/msw#2781)).
- Adds a `websocket:error` life cycle event to listen to WebSocket connection errors ([#2784](mswjs/msw#2784)).
- Support modifying the intercepted request headers in passthrough scenarios ([#2786](mswjs/msw#2786)).
- Support a new WebSocket Extension API that allows for better custom experiences ([#2791](mswjs/msw#2791)).

##### Bug fixes

- Fix an issue where preventing a page closure via the `beforeunload` listener would unregister the MSW worker ([#1105](mswjs/msw#1105)).
- Fix an issue that caused intermittent test failures in Vitest Browser Mode and Firefox if using `maxWorkers: 1` ([#2726](mswjs/msw#2726)).
- Fix an issue where in-flight requests were incorrectly passthrough when performed before calling `worker.stop()` ([#2724](mswjs/msw#2724), [#2597](mswjs/msw#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.
renovate Bot added a commit to cigaleapp/cigale that referenced this pull request Oct 20, 2026
##### [v3.0.3](https://github.com/mswjs/msw/releases/tag/v3.0.3)

#### v3.0.3 (2026-10-10)

##### Bug Fixes

- **HandlersController:** dispose of reset handlers ([#2810](mswjs/msw#2810)) ([`3818a81`](mswjs/msw@3818a81)) [@kettanaito](https://github.com/kettanaito)
- expose network context on `enable` in network sources ([#2809](mswjs/msw#2809)) ([`d1fe8e6`](mswjs/msw@d1fe8e6)) [@kettanaito](https://github.com/kettanaito)
##### [v3.0.2](https://github.com/mswjs/msw/releases/tag/v3.0.2)

#### v3.0.2 (2026-10-03)

##### Bug Fixes

- **vite:** support `virtual:msw` imports in vitest ([#2802](mswjs/msw#2802)) ([`e73c381`](mswjs/msw@e73c381)) [@kettanaito](https://github.com/kettanaito)
##### [v3.0.1](https://github.com/mswjs/msw/releases/tag/v3.0.1)

#### v3.0.1 (2026-09-30)

##### Bug Fixes

- treat `CONNECT` requests as the transport mechanism ([#2796](mswjs/msw#2796)) ([`7cad86a`](mswjs/msw@7cad86a)) [@kettanaito](https://github.com/kettanaito)
##### [v3.0.0](https://github.com/mswjs/msw/releases/tag/v3.0.0)

#### v3.0.0 (2026-09-28)

- v3.0.0 ([#2692](mswjs/msw#2692)) ([`2bb4342`](mswjs/msw@2bb4342)) [@kettanaito](https://github.com/kettanaito) [@Andarist](https://github.com/Andarist)

##### ⚠️ BREAKING CHANGES

- **MSW is now ESM-only** ([#2765](mswjs/msw#2765)).
- Deprecate support for Node.js v18 and v20 ([#2729](mswjs/msw#2729)). The minimal supported Node.js version is v22.
- `msw/native` is removed in favor of [`@msw/react-native`](https://github.com/mswjs/react-native).
- Require TypeScript 5.9 as the minimal version.
- Deprecate support for TypeScript 5.1 and 5.2 ([#2730](mswjs/msw#2730))
- `worker.stop()` returns a Promise ([#2724](mswjs/msw#2724)). Awaiting it is relevant only for in-flight critical scenarios.
- `graphql` is now exported as `msw/graphql` ([#2691](mswjs/msw#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](mswjs/msw#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](mswjs/msw#2721)).
- Support GraphQL subscriptions ([#285](mswjs/msw#285), [#2763](mswjs/msw#2763)).
- Migrate from `path-to-regexp` to `@msw/url` ([#2678](mswjs/msw#2678)).
- Remove the following dependencies:
  - `graphql`
  - `path-to-regexp`
  - `picocolors`
  - `statuses`
  - `strict-event-emitter`
- Adds a Vite plugin for MSW ([#2781](mswjs/msw#2781)).
- Adds a `websocket:error` life cycle event to listen to WebSocket connection errors ([#2784](mswjs/msw#2784)).
- Support modifying the intercepted request headers in passthrough scenarios ([#2786](mswjs/msw#2786)).
- Support a new WebSocket Extension API that allows for better custom experiences ([#2791](mswjs/msw#2791)).

##### Bug fixes

- Fix an issue where preventing a page closure via the `beforeunload` listener would unregister the MSW worker ([#1105](mswjs/msw#1105)).
- Fix an issue that caused intermittent test failures in Vitest Browser Mode and Firefox if using `maxWorkers: 1` ([#2726](mswjs/msw#2726)).
- Fix an issue where in-flight requests were incorrectly passthrough when performed before calling `worker.stop()` ([#2724](mswjs/msw#2724), [#2597](mswjs/msw#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.
renovate Bot added a commit to cigaleapp/cigale that referenced this pull request Oct 22, 2026
##### [v3.0.3](https://github.com/mswjs/msw/releases/tag/v3.0.3)

#### v3.0.3 (2026-10-10)

##### Bug Fixes

- **HandlersController:** dispose of reset handlers ([#2810](mswjs/msw#2810)) ([`3818a81`](mswjs/msw@3818a81)) [@kettanaito](https://github.com/kettanaito)
- expose network context on `enable` in network sources ([#2809](mswjs/msw#2809)) ([`d1fe8e6`](mswjs/msw@d1fe8e6)) [@kettanaito](https://github.com/kettanaito)
##### [v3.0.2](https://github.com/mswjs/msw/releases/tag/v3.0.2)

#### v3.0.2 (2026-10-03)

##### Bug Fixes

- **vite:** support `virtual:msw` imports in vitest ([#2802](mswjs/msw#2802)) ([`e73c381`](mswjs/msw@e73c381)) [@kettanaito](https://github.com/kettanaito)
##### [v3.0.1](https://github.com/mswjs/msw/releases/tag/v3.0.1)

#### v3.0.1 (2026-09-30)

##### Bug Fixes

- treat `CONNECT` requests as the transport mechanism ([#2796](mswjs/msw#2796)) ([`7cad86a`](mswjs/msw@7cad86a)) [@kettanaito](https://github.com/kettanaito)
##### [v3.0.0](https://github.com/mswjs/msw/releases/tag/v3.0.0)

#### v3.0.0 (2026-09-28)

- v3.0.0 ([#2692](mswjs/msw#2692)) ([`2bb4342`](mswjs/msw@2bb4342)) [@kettanaito](https://github.com/kettanaito) [@Andarist](https://github.com/Andarist)

##### ⚠️ BREAKING CHANGES

- **MSW is now ESM-only** ([#2765](mswjs/msw#2765)).
- Deprecate support for Node.js v18 and v20 ([#2729](mswjs/msw#2729)). The minimal supported Node.js version is v22.
- `msw/native` is removed in favor of [`@msw/react-native`](https://github.com/mswjs/react-native).
- Require TypeScript 5.9 as the minimal version.
- Deprecate support for TypeScript 5.1 and 5.2 ([#2730](mswjs/msw#2730))
- `worker.stop()` returns a Promise ([#2724](mswjs/msw#2724)). Awaiting it is relevant only for in-flight critical scenarios.
- `graphql` is now exported as `msw/graphql` ([#2691](mswjs/msw#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](mswjs/msw#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](mswjs/msw#2721)).
- Support GraphQL subscriptions ([#285](mswjs/msw#285), [#2763](mswjs/msw#2763)).
- Migrate from `path-to-regexp` to `@msw/url` ([#2678](mswjs/msw#2678)).
- Remove the following dependencies:
  - `graphql`
  - `path-to-regexp`
  - `picocolors`
  - `statuses`
  - `strict-event-emitter`
- Adds a Vite plugin for MSW ([#2781](mswjs/msw#2781)).
- Adds a `websocket:error` life cycle event to listen to WebSocket connection errors ([#2784](mswjs/msw#2784)).
- Support modifying the intercepted request headers in passthrough scenarios ([#2786](mswjs/msw#2786)).
- Support a new WebSocket Extension API that allows for better custom experiences ([#2791](mswjs/msw#2791)).

##### Bug fixes

- Fix an issue where preventing a page closure via the `beforeunload` listener would unregister the MSW worker ([#1105](mswjs/msw#1105)).
- Fix an issue that caused intermittent test failures in Vitest Browser Mode and Firefox if using `maxWorkers: 1` ([#2726](mswjs/msw#2726)).
- Fix an issue where in-flight requests were incorrectly passthrough when performed before calling `worker.stop()` ([#2724](mswjs/msw#2724), [#2597](mswjs/msw#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.
renovate Bot added a commit to cigaleapp/cigale that referenced this pull request Oct 26, 2026
##### [v3.0.3](https://github.com/mswjs/msw/releases/tag/v3.0.3)

#### v3.0.3 (2026-10-10)

##### Bug Fixes

- **HandlersController:** dispose of reset handlers ([#2810](mswjs/msw#2810)) ([`3818a81`](mswjs/msw@3818a81)) [@kettanaito](https://github.com/kettanaito)
- expose network context on `enable` in network sources ([#2809](mswjs/msw#2809)) ([`d1fe8e6`](mswjs/msw@d1fe8e6)) [@kettanaito](https://github.com/kettanaito)
##### [v3.0.2](https://github.com/mswjs/msw/releases/tag/v3.0.2)

#### v3.0.2 (2026-10-03)

##### Bug Fixes

- **vite:** support `virtual:msw` imports in vitest ([#2802](mswjs/msw#2802)) ([`e73c381`](mswjs/msw@e73c381)) [@kettanaito](https://github.com/kettanaito)
##### [v3.0.1](https://github.com/mswjs/msw/releases/tag/v3.0.1)

#### v3.0.1 (2026-09-30)

##### Bug Fixes

- treat `CONNECT` requests as the transport mechanism ([#2796](mswjs/msw#2796)) ([`7cad86a`](mswjs/msw@7cad86a)) [@kettanaito](https://github.com/kettanaito)
##### [v3.0.0](https://github.com/mswjs/msw/releases/tag/v3.0.0)

#### v3.0.0 (2026-09-28)

- v3.0.0 ([#2692](mswjs/msw#2692)) ([`2bb4342`](mswjs/msw@2bb4342)) [@kettanaito](https://github.com/kettanaito) [@Andarist](https://github.com/Andarist)

##### ⚠️ BREAKING CHANGES

- **MSW is now ESM-only** ([#2765](mswjs/msw#2765)).
- Deprecate support for Node.js v18 and v20 ([#2729](mswjs/msw#2729)). The minimal supported Node.js version is v22.
- `msw/native` is removed in favor of [`@msw/react-native`](https://github.com/mswjs/react-native).
- Require TypeScript 5.9 as the minimal version.
- Deprecate support for TypeScript 5.1 and 5.2 ([#2730](mswjs/msw#2730))
- `worker.stop()` returns a Promise ([#2724](mswjs/msw#2724)). Awaiting it is relevant only for in-flight critical scenarios.
- `graphql` is now exported as `msw/graphql` ([#2691](mswjs/msw#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](mswjs/msw#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](mswjs/msw#2721)).
- Support GraphQL subscriptions ([#285](mswjs/msw#285), [#2763](mswjs/msw#2763)).
- Migrate from `path-to-regexp` to `@msw/url` ([#2678](mswjs/msw#2678)).
- Remove the following dependencies:
  - `graphql`
  - `path-to-regexp`
  - `picocolors`
  - `statuses`
  - `strict-event-emitter`
- Adds a Vite plugin for MSW ([#2781](mswjs/msw#2781)).
- Adds a `websocket:error` life cycle event to listen to WebSocket connection errors ([#2784](mswjs/msw#2784)).
- Support modifying the intercepted request headers in passthrough scenarios ([#2786](mswjs/msw#2786)).
- Support a new WebSocket Extension API that allows for better custom experiences ([#2791](mswjs/msw#2791)).

##### Bug fixes

- Fix an issue where preventing a page closure via the `beforeunload` listener would unregister the MSW worker ([#1105](mswjs/msw#1105)).
- Fix an issue that caused intermittent test failures in Vitest Browser Mode and Firefox if using `maxWorkers: 1` ([#2726](mswjs/msw#2726)).
- Fix an issue where in-flight requests were incorrectly passthrough when performed before calling `worker.stop()` ([#2724](mswjs/msw#2724), [#2597](mswjs/msw#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.
renovate Bot added a commit to cigaleapp/cigale that referenced this pull request Nov 5, 2026
##### [v3.0.3](https://github.com/mswjs/msw/releases/tag/v3.0.3)

#### v3.0.3 (2026-10-10)

##### Bug Fixes

- **HandlersController:** dispose of reset handlers ([#2810](mswjs/msw#2810)) ([`3818a81`](mswjs/msw@3818a81)) [@kettanaito](https://github.com/kettanaito)
- expose network context on `enable` in network sources ([#2809](mswjs/msw#2809)) ([`d1fe8e6`](mswjs/msw@d1fe8e6)) [@kettanaito](https://github.com/kettanaito)
##### [v3.0.2](https://github.com/mswjs/msw/releases/tag/v3.0.2)

##### v3.0.2 (2026-10-03)

##### Bug Fixes

- **vite:** support `virtual:msw` imports in vitest ([#2802](mswjs/msw#2802)) ([`e73c381`](mswjs/msw@e73c381)) [@kettanaito](https://github.com/kettanaito)
##### [v3.0.1](https://github.com/mswjs/msw/releases/tag/v3.0.1)

#### v3.0.1 (2026-09-30)

##### Bug Fixes

- treat `CONNECT` requests as the transport mechanism ([#2796](mswjs/msw#2796)) ([`7cad86a`](mswjs/msw@7cad86a)) [@kettanaito](https://github.com/kettanaito)
##### [v3.0.0](https://github.com/mswjs/msw/releases/tag/v3.0.0)

#### v3.0.0 (2026-09-28)

- v3.0.0 ([#2692](mswjs/msw#2692)) ([`2bb4342`](mswjs/msw@2bb4342)) [@kettanaito](https://github.com/kettanaito) [@Andarist](https://github.com/Andarist)

##### ⚠️ BREAKING CHANGES

- **MSW is now ESM-only** ([#2765](mswjs/msw#2765)).
- Deprecate support for Node.js v18 and v20 ([#2729](mswjs/msw#2729)). The minimal supported Node.js version is v22.
- `msw/native` is removed in favor of [`@msw/react-native`](https://github.com/mswjs/react-native).
- Require TypeScript 5.9 as the minimal version.
- Deprecate support for TypeScript 5.1 and 5.2 ([#2730](mswjs/msw#2730))
- `worker.stop()` returns a Promise ([#2724](mswjs/msw#2724)). Awaiting it is relevant only for in-flight critical scenarios.
- `graphql` is now exported as `msw/graphql` ([#2691](mswjs/msw#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](mswjs/msw#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](mswjs/msw#2721)).
- Support GraphQL subscriptions ([#285](mswjs/msw#285), [#2763](mswjs/msw#2763)).
- Migrate from `path-to-regexp` to `@msw/url` ([#2678](mswjs/msw#2678)).
- Remove the following dependencies:
  - `graphql`
  - `path-to-regexp`
  - `picocolors`
  - `statuses`
  - `strict-event-emitter`
- Adds a Vite plugin for MSW ([#2781](mswjs/msw#2781)).
- Adds a `websocket:error` life cycle event to listen to WebSocket connection errors ([#2784](mswjs/msw#2784)).
- Support modifying the intercepted request headers in passthrough scenarios ([#2786](mswjs/msw#2786)).
- Support a new WebSocket Extension API that allows for better custom experiences ([#2791](mswjs/msw#2791)).

##### Bug fixes

- Fix an issue where preventing a page closure via the `beforeunload` listener would unregister the MSW worker ([#1105](mswjs/msw#1105)).
- Fix an issue that caused intermittent test failures in Vitest Browser Mode and Firefox if using `maxWorkers: 1` ([#2726](mswjs/msw#2726)).
- Fix an issue where in-flight requests were incorrectly passthrough when performed before calling `worker.stop()` ([#2724](mswjs/msw#2724), [#2597](mswjs/msw#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment