Vigia

nock を 14.x から 15.x へアップグレード

nock 14.0.17 と 15.0.1 の公開 API を、TypeScript の型から自動的に比較したものです。シグネチャの変更は破壊的変更の候補であり、確定ではありません。

概要

削除されたインポートパス0
削除されたエクスポート42
変更されたシグネチャ0
削除されたクラス/インターフェースのメンバー0
変更されたクラス/インターフェースのメンバー0
新たに非推奨0
要件の変更(engines、peer 依存関係)1
新しいエクスポート1

削除されたエクスポート

importexportkind変更前
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

変更されたシグネチャ

検出されませんでした。

削除されたクラス/インターフェースのメンバー

検出されませんでした。

変更されたクラス/インターフェースのメンバー

検出されませんでした。

新たに非推奨

検出されませんでした。

要件の変更(engines、peer 依存関係)

変更前変更後
engines.node>=18.20.0 <20 || >=20.12.1>=20.12.1
新しいエクスポート (1)
importexportkind
nockdefaultfunction

このデータを AI エージェントに渡す

Vigia は無料の MCP サーバーです。コーディングエージェントがコードを書く前に、バージョン・破壊的変更・脆弱性を確認できます。登録も API キーも不要です。

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

Cursor に追加VS Code に追加★ GitHub でスターを付ける

その他の MCP クライアント
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }

エージェント用スキル (SKILL.md):Vigia を使うタイミングをエージェントに伝えます · プルリクエスト用 GitHub Action

よくある質問

nock を 14 から 15 にアップグレードする際の破壊的変更は?

nock 14.0.17 と 15.0.1 の間で、Vigia は削除されたエクスポートを 42 件、変更されたシグネチャを 0 件、削除または変更されたクラス/インターフェースのメンバーを 0 件検出しました。

nock 15 で非推奨になったものは?

nock 15.0.1 では 0 件のエクスポートまたはメンバーが新たに非推奨になりました。

エージェント向け

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