nock breaking changes
nock 15.0.5 (October 20, 2026) is its newest release with breaking changes, 2 of them. The first: Removed default.Definition.headers. Every breaking API change we have recorded in nock on npm: 62 breaking changes in 8 versions. Below, its 8 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 15.0.7, released November 28, 2026. Source repository
Its 14.0.0 release requires Node.js 18 or later. Node.js end of life dates.
nock 15.0.5 breaking changes
- Removed
default.Definition.headers
The TypeScript type for Definition no longer declares headers and now includes rawHeaders. TypeScript code that reads headers from Definition may need updating. npmjs.com - Signature changed
default.Definition.rawHeaders
Was rawHeaders?: ReplyHeaders; now rawHeaders?: Record<string, string | string[]>. npmjs.com
nock 15.0.1 breaking changes
- Removed
abortPendingRequests
abortPendingRequests was removed in nock 15.0.1 npmjs.com - Removed
activate
activate was removed in nock 15.0.1 npmjs.com - Removed
activeMocks
activeMocks was removed in nock 15.0.1 npmjs.com - Removed
back
back was removed in nock 15.0.1 npmjs.com - Removed
Back
Back was removed in nock 15.0.1 npmjs.com - Removed
BackContext
BackContext was removed in nock 15.0.1 npmjs.com - Removed
BackMode
BackMode was removed in nock 15.0.1 npmjs.com - Removed
BackOptions
BackOptions was removed in nock 15.0.1 npmjs.com - Removed
Body
Body was removed in nock 15.0.1 npmjs.com - Removed
cleanAll
cleanAll was removed in nock 15.0.1 npmjs.com
And 35 more in this version. Sign up to see every change
nock 15.0.0 breaking changes
- Removed
Definition.rawHeaders
Definition.rawHeaders was removed in nock 15.0.0 npmjs.com - Removed
Interceptor.delayBody
Interceptor.delayBody was removed in nock 15.0.0 npmjs.com - Removed
Interceptor.delayConnection
Interceptor.delayConnection was removed in nock 15.0.0 npmjs.com - Removed
ReplyFnContext
ReplyFnContext was removed in nock 15.0.0 npmjs.com - Signature changed
default
Was function nock(basePath: string | RegExp | Url | URL, options?: nock.Options): nock.Scope; now function nock(basePath: string | RegExp | URL, options?: nock.Options): nock.Scope. npmjs.com - Signature changed
emitter
Was let emitter: NodeJS.EventEmitter; now let emitter: NockEmitter. npmjs.com - Signature changed
Interceptor.delay
The signature of Interceptor.delay changed in nock 15.0.0 npmjs.com - Signature changed
Interceptor.reply
Was reply(replyFn: (this: ReplyFnContext, uri: string, body: Body) => ReplyFnResult | Promise<ReplyFnResult>): Scope reply(replyFnWithCallback: (this: ReplyFnContext, uri: string, body: Body, callback: (err: NodeJS.ErrnoException | null... npmjs.com - Signature changed
ReplyHeaderFunction
Was type ReplyHeaderFunction = (req: ClientRequest, res: IncomingMessage, body: string | Buffer) => string | string[]; now type ReplyHeaderFunction = (req: Request) => Promise<string | string[]>. npmjs.com
nock 15.0.0-beta.11 breaking changes
- Behavior changed
The package now ships as TypeScript compiled to ESM, which can affect how it is imported. Check require and import usage. github.com
nock 15.0.0-beta.8 breaking changes
- Behavior changed
replyWithError
Pass Error objects to replyWithError() instead of plain objects. github.com
nock 15.0.0-beta.3 breaking changes
- Behavior changed
Requests that match no interceptor now receive a 501 response instead of the previous behavior. Update tests that expect the old result. github.com
Older versions
2 older versions.
Show 2 older versions
nock 15.0.0-beta.1 breaking changes
- Behavior changed
This beta carries breaking changes listed only in the migration guide. Read the guide and update code that depends on the old API. github.com - Behavior changed
The API was changed to follow web standards, which breaks existing code. Check the migration guide for the affected calls. github.com
nock 14.0.0 breaking changes
- Removed
nock 14.0.0 no longer supports Node versions below 18. Users on older Node must upgrade Node.js to 18 or later before upgrading nock. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.