ترقية nock من 14.x إلى 15.x
مقارنة الواجهة العامة لـ nock بين 14.0.17 و15.0.1، محسوبة تلقائيًا من أنواع 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 |
زوّد وكيل الذكاء الاصطناعي بهذه البيانات
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؟
عُلِّم 0 من الصادرات أو الأعضاء حديثًا على أنها موقوفة في nock 15.0.1.
للوكلاء
GET https://vigia.coredls.cloud/v1/packages/npm/nock/upgrade?from=14.0.17&to=15.0.1