npm / nock
nock
What changed in nock 14 to 15, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
8 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initnock 151 changes
Fixes and other changes 1
Empty request bodies are no longer decompressed.
nock 147 changes
Fixes and other changes 7
Calling nock.removeInterceptor now removes the interceptor from scope.interceptors.
The response handler now guards against requests aborted by an AbortSignal.
Reverts the change that applied body delay before the response end.
Applies the body delay before the response ends.
Added rawHeaders to Definition to align the type with runtime behavior.
Prevents a crash when query params have conflicting dot-notation keys.
Updated @mswjs/interceptors to fix a memory leak.