nock を 14.x から 15.x へアップグレード
nock 14.0.17 と 15.0.1 の公開 API を、TypeScript の型から自動的に比較したものです。シグネチャの変更は破壊的変更の候補であり、確定ではありません。
概要
| 削除されたインポートパス | 0 |
|---|---|
| 削除されたエクスポート | 42 |
| 変更されたシグネチャ | 0 |
| 削除されたクラス/インターフェースのメンバー | 0 |
| 変更されたクラス/インターフェースのメンバー | 0 |
| 新たに非推奨 | 0 |
| 要件の変更(engines、peer 依存関係) | 1 |
| 新しいエクスポート | 1 |
削除されたエクスポート
| import | export | kind | 変更前 |
|---|---|---|---|
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 |
変更されたシグネチャ
検出されませんでした。
削除されたクラス/インターフェースのメンバー
検出されませんでした。
変更されたクラス/インターフェースのメンバー
検出されませんでした。
新たに非推奨
検出されませんでした。
要件の変更(engines、peer 依存関係)
| 変更前 | 変更後 | |
|---|---|---|
engines.node | >=18.20.0 <20 || >=20.12.1 | >=20.12.1 |
新しいエクスポート (1)
| import | export | kind |
|---|---|---|
nock | default | function |
このデータを 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