Vigia

Оновлення http-errors з 1.x до 2.x

Порівняння публічного API http-errors 1.8.1 і 2.0.1, обчислене автоматично за їхніми типами TypeScript. Змінена сигнатура — можлива несумісна зміна, а не гарантія.

Підсумок

Видалені шляхи імпорту0
Видалені експорти0
Змінені сигнатури4
Видалені члени класів або інтерфейсів0
Змінені члени класів або інтерфейсів0
Нові застарівання0
Зміни вимог (engines, peer-залежності)1
Нові експорти0

Видалені експорти

Не виявлено.

Змінені сигнатури

exportБулоСтало
http-errors · UnknownErrorstring | 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 · HttpErrorConstructornew (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