Vigia

Upgrading nock from 14.x to 15.x

Comparison of the public API of nock 14.0.17 and 15.0.1, computed automatically from their TypeScript types. A changed signature is a candidate for a breaking change, not a certainty.

Summary

Removed import paths0
Removed exports42
Changed signatures0
Removed class or interface members0
Changed class or interface members0
Newly deprecated0
Requirement changes (engines, peer dependencies)1
New exports1

Removed exports

importexportkindBefore
nockBackinterfaceinterface
nockBodytypestring | Record<string, any>
nockbackvariable(fixtureName: string, nockedFn: (nockDone: () => void) => void): void | (fixtureName: string, options: BackOptions, nockedFn: (nockDone: () => void) => void): void | (fixtureName: string, options?: BackOptions | undefined): Promise<{ nockDone: () => void; context: BackContext; }>
nockloadfunction(path: string): Scope[]
nockScopeinterfaceinterface
nockdefinefunction(defs: Definition[]): Scope[]
nockisDonefunction(): boolean
nockOptionsinterfaceinterface
nockemittervariableNodeJS.EventEmitter
nockrestorefunction(): void
nockBackModetype"wild" | "dryrun" | "record" | "update" | "lockdown"
nockRecorderinterfaceinterface
nockactivatefunction(): void
nockcleanAllfunction(): void
nockisActivefunction(): boolean
nockloadDefsfunction(path: string): Definition[]
nockrecordervariableRecorder
nockReplyBodytypeany
nockDefinitioninterfaceinterface
nockStatusCodetypenumber
nockBackContextinterfaceinterface
nockBackOptionsinterfaceinterface
nockDataMatchertypestring | number | boolean | RegExp | DataMatcherArray | DataMatcherMap | null | undefined
nockInterceptorinterfaceinterface
nockactiveMocksfunction(): string[]
nockReplyHeaderstypeRecord<string, ReplyHeaderValue> | Map<string, ReplyHeaderValue> | ReplyHeaderValue[]
nockpendingMocksfunction(): string[]
nockReplyFnResulttypereadonly [number] | readonly [number, any] | readonly [number, any, ReplyHeaders]
nockDataMatcherMapinterfaceinterface
nockReplyFnContextinterfaceinterface
nockRecorderOptionsinterfaceinterface
nockDataMatcherArrayinterfaceinterface
nockReplyHeaderValuetypestring | string[] | ReplyHeaderFunction
nockenableNetConnectfunction(matcher?: string | RegExp | ((host: string) => boolean) | undefined): void
nockInterceptFunctiontype(uri: string | RegExp | ((uri: string) => boolean), requestBody?: any, interceptorOptions?: Options | undefined) => Interceptor
nockdisableNetConnectfunction(): void
nockremoveInterceptorfunction(interceptor: any): boolean
nockInterceptorSurfaceinterfaceinterface
nockRequestBodyMatchertypeany
nockReplyHeaderFunctiontype(req: ClientRequest, res: IncomingMessage, body: any) => string | string[]
nockRequestHeaderMatchertypestring | RegExp | ((fieldValue: string) => boolean)
nockabortPendingRequestsfunction(): void

Changed signatures

None detected.

Removed class or interface members

None detected.

Changed class or interface members

None detected.

Newly deprecated

None detected.

Requirement changes (engines, peer dependencies)

BeforeAfter
engines.node>=18.20.0 <20 || >=20.12.1>=20.12.1
New exports (1)
importexportkind
nockdefaultfunction

Give your AI agent these facts

Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.

claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp

Add to CursorAdd to VS Code★ Star on GitHub

Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }

Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests

Frequently asked questions

What are the breaking changes when upgrading nock from 14 to 15?

Between nock 14.0.17 and 15.0.1, Vigia found 42 removed exports, 0 changed signatures and 0 removed or changed class or interface members.

What became deprecated in nock 15?

0 exports or members are newly marked as deprecated in nock 15.0.1.

For agents

GET https://vigia.coredls.cloud/v1/packages/npm/nock/upgrade?from=14.0.17&to=15.0.1