Repository navigation
Update msw 2.15.0 → 3.0.3 (major) - #547
Merged
Merged
Conversation
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://depfu-update-npm-msw-3-0-3-head-start.voorhoede.workers.dev (commit 28764f3)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
depfu
Bot
force-pushed
the
depfu/update/npm/msw-3.0.3
branch
from
November 13, 2026 14:36
6801a05 to
a52e063
Compare
Member
|
Updated the msw test mocks for v3, following the official migration guide: https://mswjs.io/docs/migrations/2.x-to-3.x |
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.
Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳️ msw (2.15.0 → 3.0.3) · Repo · Changelog
Release Notes
3.0.3
3.0.2
3.0.1
3.0.0
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 18 commits:
chore(release): v3.0.3fix(HandlersController): dispose of reset handlers (#2810)fix: expose network context on `enable` in network sources (#2809)test(node): add jsdom cors/preflight regression tests (#2808)docs: add beehiiv to partners (#2805)chore: update github social imagechore(release): v3.0.2docs: feature "msw/http" imports in README examplesfix(vite): support `virtual:msw` imports in vitest (#2802)chore(release): v3.0.1fix: treat `CONNECT` requests as the transport mechanism (#2796)docs: remove spacing before logo, update descriptionchore(release): v3.0.0chore: run release job on `ubuntu-latest` to unlock provenancefeat!: v3.0.0 (#2692)docs: add blacksmith mention (#2780)chore: switch to blacksmith action runners (#2777)chore: switch actions to ubuntuRelease Notes
Too many releases to show here. View the full release notes.
Commits
See the full diff on Github. The new version differs by 75 commits:
chore(release): v0.45.12fix(net): keep mocked keep-alive sockets alive under Node idle socket guard (#903)fix(xhr): dispatch events natively, honoring removed listeners and replaced handlers (#900)fix(net): preserve the write encoding of single writes (latin-1 header values) (#901)chore(release): v0.45.11fix(fetch): forward client-facing stream cancelations to the stream (#891)fix(http): prevent splitting raw headers at semicolon twice (#890)chore(release): v0.45.10fix(net): forward "setNoDelay()" and "setKeepAlive()" to passthrough sockets (#886)fix(xhr): abort pending request and mocked response on ".abort()" (#885)fix: ignore the request abort that races with an already handled request (#884)chore(release): v0.45.9fix(net): prevent double event emission (#876)fix(net): improve socket interception compliance (#874)fix(http): ensure auth headers per request, never per connection (#873)fix(http): preserve paths starting with double slash (#872)chore(release): v0.45.8fix(http): abort pending requests on kept-alive sockets after a mocked response (#865)chore(release): v0.45.7fix(net): prevent overlapping writes on a passthrough tls socket after the handle swap (#855)chore(release): v0.45.6fix(http): intercept exchanges inside real "CONNECT" tunnels and TLS over provided sockets (#851)fix(ClientRequest): copy Headers subclasses that store headers outside the native store (#852)chore(release): v0.45.5fix(fetch): prevent truncating compressed responses to the first chunk (#849)fix(fetch): preserve non-compressed responses (#848)chore: migrate to pnpm@11.27.1 (#847)chore(release): v0.45.4fix: update `rettime` to 0.11.12chore(release): v0.45.3fix(ws): proper websocket handle types (#846)chore(release): v0.45.2fix(fetch): expose same request/response refs in listeners (#845)chore(release): v0.45.1fix(http): keep reconnects attributed to their initiator after dispose (#844)chore(release): v0.45.0test: improve test stability by using random portsfeat(WebSocket)!: support extensions (#842)fix(http): destroy socket on interceptor dispose (#843)chore(release): v0.44.0fix(http): passthrough non-http sockets writing on server data (#816)feat(WebSocket): support custom protocols (#840)test: bypasses a compressed response via got (#839)chore(release): v0.43.2fix(XMLHttpRequest): support header deletion in node.js (#838)chore(release): v0.43.1fix(XMLHttpRequest): consistent forbidden request headers behavior (#837)chore(release): v0.43.0feat!: re-export WebSocket types (#836)chore(release): v0.42.6fix: revert connection listener invocation (#834)chore(release): v0.42.5fix(fetch): prevent hanging on passthrough response stream cancellation (#833)fix(http): free parsers on non-HTTP upgrade (#832)fix(net): preserve passthrough writes until the client consumes EOF (#830)fix(SocketController): prevent listeners leak on TLS passthrough (#829)chore(release): v0.42.4fix(WebSocket): properly export to bundle `debug` (#827)fix(http): handle server-closed keep-alive sockets and detach completed parsers (#826)fix(http): stop observation on parser errors instead of crashing (#825)fix(http): proper HTTP/2 negotiation for mocked and passthrough (#824)fix(WebSocket): prevent infinite loop on passthrough connections (#823)chore(release): v0.42.3fix(socket): properly handle first bytes when switching socket types (#814)chore(release): v0.42.2fix(socket): move last resort passthrough to the socket level (#812)fix(socket): close connection on CONNECT request refusal (#811)chore(release): v0.42.1fix: bundle `debug` in browser build (#809)chore: delete plans generated by claudechore(release): v0.42.0feat!: TCP/TLS wrap-based interception (#770)chore: pin actions versions, add release preview job (#805)chore: pin pnpm manager versionchore: drop `cache` from `setup-node`🆕 @msw/url (added, 0.1.2)
🗑️ @open-draft/deferred-promise (removed)
🗑️ @open-draft/deferred-promise (removed)
🗑️ @open-draft/logger (removed)
🗑️ @types/statuses (removed)
🗑️ statuses (removed)
🗑️ strict-event-emitter (removed)
🗑️ graphql (removed)
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with
@depfu rebase.All Depfu comment commands