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 paths | 0 |
|---|---|
| Removed exports | 42 |
| Changed signatures | 0 |
| Removed class or interface members | 0 |
| Changed class or interface members | 0 |
| Newly deprecated | 0 |
| Requirement changes (engines, peer dependencies) | 1 |
| New exports | 1 |
Removed exports
| import | export | kind | Before |
|---|---|---|---|
nock | Back | interface | interface |
nock | Body | type | string | Record<string, any> |
nock | back | variable | (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; }> |
nock | load | function | (path: string): Scope[] |
nock | Scope | interface | interface |
nock | define | function | (defs: Definition[]): Scope[] |
nock | isDone | function | (): boolean |
nock | Options | interface | interface |
nock | emitter | variable | NodeJS.EventEmitter |
nock | restore | function | (): void |
nock | BackMode | type | "wild" | "dryrun" | "record" | "update" | "lockdown" |
nock | Recorder | interface | interface |
nock | activate | function | (): void |
nock | cleanAll | function | (): void |
nock | isActive | function | (): boolean |
nock | loadDefs | function | (path: string): Definition[] |
nock | recorder | variable | Recorder |
nock | ReplyBody | type | any |
nock | Definition | interface | interface |
nock | StatusCode | type | number |
nock | BackContext | interface | interface |
nock | BackOptions | interface | interface |
nock | DataMatcher | type | string | number | boolean | RegExp | DataMatcherArray | DataMatcherMap | null | undefined |
nock | Interceptor | interface | interface |
nock | activeMocks | function | (): string[] |
nock | ReplyHeaders | type | Record<string, ReplyHeaderValue> | Map<string, ReplyHeaderValue> | ReplyHeaderValue[] |
nock | pendingMocks | function | (): string[] |
nock | ReplyFnResult | type | readonly [number] | readonly [number, any] | readonly [number, any, ReplyHeaders] |
nock | DataMatcherMap | interface | interface |
nock | ReplyFnContext | interface | interface |
nock | RecorderOptions | interface | interface |
nock | DataMatcherArray | interface | interface |
nock | ReplyHeaderValue | type | string | string[] | ReplyHeaderFunction |
nock | enableNetConnect | function | (matcher?: string | RegExp | ((host: string) => boolean) | undefined): void |
nock | InterceptFunction | type | (uri: string | RegExp | ((uri: string) => boolean), requestBody?: any, interceptorOptions?: Options | undefined) => Interceptor |
nock | disableNetConnect | function | (): void |
nock | removeInterceptor | function | (interceptor: any): boolean |
nock | InterceptorSurface | interface | interface |
nock | RequestBodyMatcher | type | any |
nock | ReplyHeaderFunction | type | (req: ClientRequest, res: IncomingMessage, body: any) => string | string[] |
nock | RequestHeaderMatcher | type | string | RegExp | ((fieldValue: string) => boolean) |
nock | abortPendingRequests | function | (): 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)
| Before | After | |
|---|---|---|
engines.node | >=18.20.0 <20 || >=20.12.1 | >=20.12.1 |
New exports (1)
| import | export | kind |
|---|---|---|
nock | default | function |
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