@mswjs/interceptors
0.45.12 · 11 Nov 2026MIT38M / weekRepositorynpmAtom feed
Upgrading @mswjs/interceptors From 0.42.1 to 0.45.12
22 releases in betweenevery note read
- 2
- changes to make
- 0
- advisories fixed
- 1
- new
- 38
- fixes
Before you upgrade
Tick each one off as you go- Breaking0.45.0
- Breaking0.43.0
Release by release
- Fixed
net: keep mocked keep-alive sockets alive under Node idle socket guard
- Fixed
xhr: dispatch events natively, honoring removed listeners and replaced handlers
- Fixed
net: preserve the write encoding of single writes (latin-1 header values)
- Fixed
- Fixed
fetch: forward client-facing stream cancelations to the stream
- Fixed
http: prevent splitting raw headers at semicolon twice
- Fixed
- Fixed
net: forward "setNoDelay()" and "setKeepAlive()" to passthrough sockets
- Fixed
xhr: abort pending request and mocked response on ".abort()"
- Fixed
Ignore the request abort that races with an already handled request
- Fixed
- Fixed
net: prevent double event emission
- Fixed
net: improve socket interception compliance
- Fixed
http: ensure auth headers per request, never per connection
- Fixed
http: preserve paths starting with double slash
- Fixed
- Fixed
http: abort pending requests on kept-alive sockets after a mocked response
- Fixed
- Fixed
net: prevent overlapping writes on a passthrough tls socket after the handle swap
- Fixed
- Fixed
http: intercept exchanges inside real "CONNECT" tunnels and TLS over provided sockets
- Fixed
ClientRequest: copy Headers subclasses that store headers outside the native store
- Fixed
- Fixed
fetch: prevent truncating compressed responses to the first chunk
- Fixed
fetch: preserve non-compressed responses
- Fixed
1 internal line (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.