Repository navigation
build(deps-dev): bump msw from 2.6.4 to 3.0.2 in /console - #39655
Closed
dependabot[bot] wants to merge 1 commit into
Closed
dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
Bumps [msw](https://github.com/mswjs/msw) from 2.6.4 to 3.0.2. - [Release notes](https://github.com/mswjs/msw/releases) - [Changelog](https://github.com/mswjs/msw/blob/main/CHANGELOG.md) - [Commits](mswjs/msw@v2.6.4...v3.0.2) --- updated-dependencies: - dependency-name: msw dependency-version: 3.0.2 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
Contributor
|
Superseded by #39684 |
Contributor
Author
|
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
leedqin
added a commit
that referenced
this pull request
Nov 10, 2026
### Motivation Supersedes #39655. Dependabot's version of this bump fails typecheck and several unit tests. ### Description msw is only used by tests. - `request.clone()` now keeps the declared body type, where msw 2 returned a plain `Request` whose `json()` was `any`. The three SQL handlers that destructure the body now declare it with `http.post<never, ExtendedRequest>`. - `HttpResponse` is now generic, so two pending handlers resolve a plain `Response`. - `onUnhandledRequest` is renamed to `onUnhandledFrame`. msw 3 ignores the old name at runtime, so keeping it would let unhandled requests reach the real network instead of erroring. `vitest.setup.ts` uses the new name. - msw 3 answers a few ticks later, so `AlterClusterModal`'s "closes the modal on success" test now waits for `onClose` instead of checking right after the click. - **Test server:** msw 3 mocks Node's `fetch` at the socket level (undici). When a test aborts an in-flight request, undici opens a replacement socket it never writes to. msw passes that idle socket through to the real network, and the next fetch can reuse it and fail with `fetch failed`. That made a few tests flaky under CI load. - `src/api/mocks/server.ts` now builds the server with msw's `defineNetwork` and the interceptor that patches `fetch` directly, so mocked requests never touch undici. - This uses msw's experimental API, with a TODO to return to `setupServer` once mswjs/interceptors#863 (the upstream fix, still a draft) ships. - With faster responses, one Object Explorer spinner test now holds its request open, as its sibling tests already do. msw 3 requires Node 22.12 or later. CI and the Volta pin run Node 26, and #39683 updates `engines.node`. ### Verification Existing tests, plus five consecutive full-suite runs on Node 26 (CI's Node version) with no failures. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps msw from 2.6.4 to 3.0.2.
Release notes
Sourced from msw's releases.
... (truncated)
Commits
a7fa5f0chore(release): v3.0.201b1084docs: feature "msw/http" imports in README examplese73c381fix(vite): supportvirtual:mswimports in vitest (#2802)6d6aef1chore(release): v3.0.17cad86afix: treatCONNECTrequests as the transport mechanism (#2796)975cb45docs: remove spacing before logo, update descriptionb6b50f0chore(release): v3.0.032cf523chore: run release job onubuntu-latestto unlock provenance2bb4342feat!: v3.0.0 (#2692)85f4bf3docs: add blacksmith mention (#2780)Maintainer changes
This version was pushed to npm by GitHub Actions, a new releaser for msw since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)