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