http-errors को 1.x से 2.x पर अपग्रेड करना
http-errors 1.8.1 और 2.0.1 के सार्वजनिक API की तुलना, उनके TypeScript टाइप से अपने-आप निकाली गई। बदला हुआ सिग्नेचर संभावित असंगत बदलाव है, निश्चितता नहीं।
सारांश
| हटाए गए इम्पोर्ट पाथ | 0 |
|---|---|
| हटाए गए एक्सपोर्ट | 0 |
| बदले गए सिग्नेचर | 4 |
| क्लास या इंटरफ़ेस के हटाए गए सदस्य | 0 |
| क्लास या इंटरफ़ेस के बदले गए सदस्य | 0 |
| नए डिप्रिकेटेड | 0 |
| आवश्यकताओं में बदलाव (engines, peer निर्भरताएँ) | 1 |
| नए एक्सपोर्ट | 0 |
हटाए गए एक्सपोर्ट
कुछ नहीं मिला।
बदले गए सिग्नेचर
| export | पहले | बाद में |
|---|---|---|
http-errors · UnknownError | string | number | Error | { [key: string]: any; } | string | Error | { [key: string]: any; } |
http-errors · CreateHttpError | <N extends UnknownError>(arg: N, ...rest: UnknownError[]) => HttpError<N extends number ? N : number> | interface |
http-errors · NamedConstructors | { [code: string]: HttpErrorConstructor<number>; HttpError: HttpErrorConstructor<number>; } & Record<"BadRequest" | "400", HttpErrorConstructor<400>> & Record<"Unauthorized" | "401", HttpErrorConstructor<401>> & Record<"PaymentRequired" | "402", HttpErrorConstructor<402>> & Record<"Forbidden" | "403", HttpErrorConstructor<403>> & Record<"NotFound" | "404", HttpErrorConstructor<404>> & Record<"MethodNotAllowed" | "405", HttpErrorConstructor<405>> & Record<"NotAcceptable" | "406", HttpErrorConstructor<406>> & Record<"ProxyAuthenticationRequired" | "407", HttpErrorConstructor<407>> & Record<"Reque… | { HttpError: HttpErrorConstructor<number>; } & Record<"BadRequest" | "400", HttpErrorConstructor<400>> & Record<"Unauthorized" | "401", HttpErrorConstructor<401>> & Record<"PaymentRequired" | "402", HttpErrorConstructor<402>> & Record<"Forbidden" | "403", HttpErrorConstructor<403>> & Record<"NotFound" | "404", HttpErrorConstructor<404>> & Record<"MethodNotAllowed" | "405", HttpErrorConstructor<405>> & Record<"NotAcceptable" | "406", HttpErrorConstructor<406>> & Record<"ProxyAuthenticationRequired" | "407", HttpErrorConstructor<407>> & Record<"RequestTimeout" | "408", HttpErrorConstructor<408>>… |
http-errors · HttpErrorConstructor | new (msg?: string | undefined) => HttpError<N> | interface |
क्लास या इंटरफ़ेस के हटाए गए सदस्य
कुछ नहीं मिला।
क्लास या इंटरफ़ेस के बदले गए सदस्य
कुछ नहीं मिला।
नए डिप्रिकेटेड
कुछ नहीं मिला।
आवश्यकताओं में बदलाव (engines, peer निर्भरताएँ)
| पहले | बाद में | |
|---|---|---|
engines.node | >= 0.6 | >= 0.8 |
अक्सर पूछे जाने वाले प्रश्न
http-errors को 1 से 2 पर अपग्रेड करने पर कौन-से असंगत बदलाव हैं?
http-errors 1.8.1 और 2.0.1 के बीच Vigia को 0 हटाए गए एक्सपोर्ट, 4 बदले गए सिग्नेचर और 0 हटाए या बदले गए क्लास/इंटरफ़ेस सदस्य मिले।
http-errors 2 में क्या डिप्रिकेट हुआ?
http-errors 2.0.1 में 0 एक्सपोर्ट या सदस्य नए रूप से डिप्रिकेटेड चिह्नित हैं।
एजेंटों के लिए
GET https://vigia.coredls.cloud/v1/packages/npm/http-errors/upgrade?from=1.8.1&to=2.0.1