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