---
title: "nock 15.0.5 Breaking Changes on npm | Since.dev"
description: "What each nock release removed, renamed or changed: 62 breaking changes in 8 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/nock
last_updated: 2026-12-04
---

# 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

Latest version `15.0.7`, released November 28, 2026. [Source repository](https://github.com/nock/nock)

Its 14.0.0 release requires [Node.js 18](https://since.dev/calendar/nodejs/18.md) or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [14.0.0](#v-14-0-0) to [15.0.5](#v-15-0-5): 61 breaking changes in 7 versions.

## nock 15.0.5 breaking changes

nock 15.0.5, released October 20, 2026: 2 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](https://www.npmjs.com/package/nock/v/15.0.5)
- **Signature changed** `default.Definition.rawHeaders`  

Was rawHeaders?: ReplyHeaders; now rawHeaders?: Record\<string, string | string\[\]>. [npmjs.com](https://www.npmjs.com/package/nock/v/15.0.5)

## nock 15.0.1 breaking changes

nock 15.0.1, released October 6, 2026: 45 breaking changes.

- **Removed** `abortPendingRequests`  

abortPendingRequests was removed in nock 15.0.1 [npmjs.com](https://www.npmjs.com/package/nock/v/15.0.1)
- **Removed** `activate`  

activate was removed in nock 15.0.1 [npmjs.com](https://www.npmjs.com/package/nock/v/15.0.1)
- **Removed** `activeMocks`  

activeMocks was removed in nock 15.0.1 [npmjs.com](https://www.npmjs.com/package/nock/v/15.0.1)
- **Removed** `back`  

back was removed in nock 15.0.1 [npmjs.com](https://www.npmjs.com/package/nock/v/15.0.1)
- **Removed** `Back`  

Back was removed in nock 15.0.1 [npmjs.com](https://www.npmjs.com/package/nock/v/15.0.1)
- **Removed** `BackContext`  

BackContext was removed in nock 15.0.1 [npmjs.com](https://www.npmjs.com/package/nock/v/15.0.1)
- **Removed** `BackMode`  

BackMode was removed in nock 15.0.1 [npmjs.com](https://www.npmjs.com/package/nock/v/15.0.1)
- **Removed** `BackOptions`  

BackOptions was removed in nock 15.0.1 [npmjs.com](https://www.npmjs.com/package/nock/v/15.0.1)
- **Removed** `Body`  

Body was removed in nock 15.0.1 [npmjs.com](https://www.npmjs.com/package/nock/v/15.0.1)
- **Removed** `cleanAll`  

cleanAll was removed in nock 15.0.1 [npmjs.com](https://www.npmjs.com/package/nock/v/15.0.1)

And 35 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## nock 15.0.0 breaking changes

nock 15.0.0, released September 29, 2025: 9 breaking changes.

- **Removed** `Definition.rawHeaders`  

Definition.rawHeaders was removed in nock 15.0.0 [npmjs.com](https://www.npmjs.com/package/nock/v/15.0.0)
- **Removed** `Interceptor.delayBody`  

Interceptor.delayBody was removed in nock 15.0.0 [npmjs.com](https://www.npmjs.com/package/nock/v/15.0.0)
- **Removed** `Interceptor.delayConnection`  

Interceptor.delayConnection was removed in nock 15.0.0 [npmjs.com](https://www.npmjs.com/package/nock/v/15.0.0)
- **Removed** `ReplyFnContext`  

ReplyFnContext was removed in nock 15.0.0 [npmjs.com](https://www.npmjs.com/package/nock/v/15.0.0)
- **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](https://www.npmjs.com/package/nock/v/15.0.0)
- **Signature changed** `emitter`  

Was let emitter: NodeJS.EventEmitter; now let emitter: NockEmitter. [npmjs.com](https://www.npmjs.com/package/nock/v/15.0.0)
- **Signature changed** `Interceptor.delay`  

The signature of Interceptor.delay changed in nock 15.0.0 [npmjs.com](https://www.npmjs.com/package/nock/v/15.0.0)
- **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](https://www.npmjs.com/package/nock/v/15.0.0)
- **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](https://www.npmjs.com/package/nock/v/15.0.0)

## nock 15.0.0-beta.11 breaking changes

nock 15.0.0-beta.11, released September 29, 2025: 1 breaking change.

- **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](https://github.com/nock/nock/releases/tag/v15.0.0-beta.11)

## nock 15.0.0-beta.8 breaking changes

nock 15.0.0-beta.8, released September 29, 2025: 1 breaking change.

- **Behavior changed** `replyWithError`  

Pass Error objects to replyWithError() instead of plain objects. [github.com](https://github.com/nock/nock/releases/tag/v15.0.0-beta.8)

## nock 15.0.0-beta.3 breaking changes

nock 15.0.0-beta.3, released September 29, 2025: 1 breaking change.

- **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](https://github.com/nock/nock/releases/tag/v15.0.0-beta.3)

## Older versions

2 older versions.

### nock 15.0.0-beta.1 breaking changes

nock 15.0.0-beta.1, released September 29, 2025: 2 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](https://github.com/nock/nock/releases/tag/v15.0.0-beta.1)
- **Behavior changed**  

The API was changed to follow web standards, which breaks existing code. Check the migration guide for the affected calls. [github.com](https://github.com/nock/nock/releases/tag/v15.0.0-beta.1)

### nock 14.0.0 breaking changes

nock 14.0.0, released January 24, 2025: 1 breaking change.

- **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](https://github.com/nock/nock/releases/tag/v14.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
