@mswjs/interceptors
0.45.12 · 11 Nov 2026MIT38M / weekRepositorynpmAtom feed
0.45.12 is the newest release of 0.41.x.
In short
1 breaking1 new2 fixed
- Breaking
BREAKING CHANGE: The CJS bundle of the package no longer contains the named default export at /presets/node.
Release note
Warning
BREAKING CHANGE: The CJS bundle of the package no longer contains the named default export at /presets/node. You should consider requiring the package as follows now:
-const { default: preset } = require('@mswjs/interceptors/presets/node')
+const preset = require('@mswjs/interceptors/presets/node') Features
Use
tsdownfor bundling
Bug Fixes
ClientRequest: remove passthrough socket listeners on close (#755) (2ccab59) @Stanzilla @kettanaito
ClientRequest: correctly free HTTP parsers
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.