Vigia

Memperbarui nock dari 14.x ke 15.x

Perbandingan API publik nock 14.0.17 dan 15.0.1, dihitung otomatis dari tipe TypeScript-nya. Tanda tangan yang berubah adalah kemungkinan perubahan tidak kompatibel, bukan kepastian.

Ringkasan

Jalur impor yang dihapus0
Ekspor yang dihapus42
Tanda tangan yang berubah0
Anggota kelas atau antarmuka yang dihapus0
Anggota kelas atau antarmuka yang berubah0
Baru ditandai usang0
Perubahan persyaratan (engines, dependensi peer)1
Ekspor baru1

Ekspor yang dihapus

importexportkindSebelum
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

Tanda tangan yang berubah

Tidak ada yang terdeteksi.

Anggota kelas atau antarmuka yang dihapus

Tidak ada yang terdeteksi.

Anggota kelas atau antarmuka yang berubah

Tidak ada yang terdeteksi.

Baru ditandai usang

Tidak ada yang terdeteksi.

Perubahan persyaratan (engines, dependensi peer)

SebelumSesudah
engines.node>=18.20.0 <20 || >=20.12.1>=20.12.1
Ekspor baru (1)
importexportkind
nockdefaultfunction

Berikan fakta ini ke agen AI Anda

Vigia adalah server MCP gratis: agen coding Anda memeriksa versi, perubahan yang merusak kompatibilitas, dan kerentanan sebelum menulis kode. Tanpa pendaftaran, tanpa kunci API.

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

Tambahkan ke CursorTambahkan ke VS Code★ Bintang di GitHub

Klien MCP lainnya
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }

Skill agen (SKILL.md): memberi tahu agen kapan memakai Vigia · GitHub Action untuk pull request

Pertanyaan umum

Apa saja perubahan tidak kompatibel saat memperbarui nock dari 14 ke 15?

Antara nock 14.0.17 dan 15.0.1, Vigia menemukan 42 ekspor yang dihapus, 0 tanda tangan yang berubah, dan 0 anggota kelas atau antarmuka yang dihapus atau berubah.

Apa yang ditandai usang di nock 15?

0 ekspor atau anggota baru ditandai usang di nock 15.0.1.

Untuk agen

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