Packages

@mswjs/interceptors

0.45.12 · 11 Nov 2026MIT38M / weekRepositorynpmAtom feed

Upgrading @mswjs/interceptors From 0.41.7 to 0.45.12

26 releases in betweenevery note read

  1. 0.41.7yours
  2. 2 releases
  3. 0.42.0major
  4. 6 releases
  5. 0.43.0major
  6. 2 releases
  7. 0.44.0major
  8. 0.45.0major
  9. 11 releases
  10. 0.45.12target

Before you upgrade

Tick each one off as you go
  • Breaking0.45.0
  • Breaking0.43.0
  • Breaking0.42.0
  • Breaking0.42.0
  • Breaking0.42.0
  • Breaking0.42.0
  • Breaking0.42.0

Release by release

  1. 0.45.12

    11 Nov 20263 fixes
    • 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)

  2. 0.45.11

    1 Nov 20262 fixes
    • Fixed

      fetch: forward client-facing stream cancelations to the stream

    • Fixed

      http: prevent splitting raw headers at semicolon twice

  3. 0.45.10

    27 Oct 20263 fixes
    • 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

  4. 0.45.9

    17 Oct 20264 fixes
    • 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

  5. 0.45.8

    13 Oct 20261 fix
    • Fixed

      http: abort pending requests on kept-alive sockets after a mocked response

  6. 0.45.7

    4 Oct 20261 fix
    • Fixed

      net: prevent overlapping writes on a passthrough tls socket after the handle swap

  7. 0.45.6

    29 Sep 20262 fixes
    • 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

  8. 0.45.5

    28 Sep 20262 fixes
    • Fixed

      fetch: prevent truncating compressed responses to the first chunk

    • Fixed

      fetch: preserve non-compressed responses

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.