Upgrade von nock 14.x auf 15.x
Vergleich der öffentlichen API von nock 14.0.17 und 15.0.1, automatisch aus den TypeScript-Typen berechnet. Eine geänderte Signatur ist ein möglicher Breaking Change, keine Gewissheit.
Zusammenfassung
| Entfernte Importpfade | 0 |
|---|---|
| Entfernte Exporte | 42 |
| Geänderte Signaturen | 0 |
| Entfernte Member von Klassen oder Interfaces | 0 |
| Geänderte Member von Klassen oder Interfaces | 0 |
| Neu als veraltet markiert | 0 |
| Geänderte Anforderungen (engines, Peer-Abhängigkeiten) | 1 |
| Neue Exporte | 1 |
Entfernte Exporte
| import | export | kind | Vorher |
|---|---|---|---|
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 |
Geänderte Signaturen
Keine gefunden.
Entfernte Member von Klassen oder Interfaces
Keine gefunden.
Geänderte Member von Klassen oder Interfaces
Keine gefunden.
Neu als veraltet markiert
Keine gefunden.
Geänderte Anforderungen (engines, Peer-Abhängigkeiten)
| Vorher | Nachher | |
|---|---|---|
engines.node | >=18.20.0 <20 || >=20.12.1 | >=20.12.1 |
Neue Exporte (1)
| import | export | kind |
|---|---|---|
nock | default | function |
Gib deinem KI-Agenten diese Fakten
Vigia ist ein kostenloser MCP-Server: Dein Coding-Agent prüft Versionen, Breaking Changes und Sicherheitslücken, bevor er Code schreibt. Ohne Anmeldung, ohne API-Schlüssel.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Zu Cursor hinzufügenZu VS Code hinzufügen★ Stern auf GitHub
Jeder andere MCP-Client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent-Skill (SKILL.md): sagt dem Agenten, wann er Vigia nutzen soll · GitHub Action für Pull Requests
Häufige Fragen
Welche Breaking Changes gibt es beim Upgrade von nock 14 auf 15?
Zwischen nock 14.0.17 und 15.0.1 hat Vigia 42 entfernte Exporte, 0 geänderte Signaturen und 0 entfernte oder geänderte Member von Klassen oder Interfaces gefunden.
Was wurde in nock 15 als veraltet markiert?
0 Exporte oder Member sind in nock 15.0.1 neu als veraltet markiert.
Für Agenten
GET https://vigia.coredls.cloud/v1/packages/npm/nock/upgrade?from=14.0.17&to=15.0.1