Оновлення undici-types з 7.x до 8.x
Порівняння публічного API undici-types 7.30.0 і 8.11.2, обчислене автоматично за їхніми типами TypeScript. Змінена сигнатура — можлива несумісна зміна, а не гарантія.
Підсумок
| Видалені шляхи імпорту | 1 |
|---|---|
| Видалені експорти | 0 |
| Змінені сигнатури | 3 |
| Видалені члени класів або інтерфейсів | 0 |
| Змінені члени класів або інтерфейсів | 5 |
| Нові застарівання | 0 |
| Зміни вимог (engines, peer-залежності) | 0 |
| Нові експорти | 2 |
Видалені шляхи імпорту
| Видалені шляхи імпорту |
|---|
undici-types/socks5-proxy-agent |
Видалені експорти
Не виявлено.
Змінені сигнатури
| export | Було | Стало |
|---|---|---|
undici-types · deleteCookie | (headers: Headers, name: string, attributes?: { name?: string | undefined; domain?: string | undefined; } | undefined): void | (headers: Headers, name: string, attributes?: { path?: string | undefined; domain?: string | undefined; } | undefined): void |
undici-types/cookies · deleteCookie | (headers: Headers, name: string, attributes?: { name?: string | undefined; domain?: string | undefined; } | undefined): void | (headers: Headers, name: string, attributes?: { path?: string | undefined; domain?: string | undefined; } | undefined): void |
undici-types/dispatcher · UndiciHeaders | string[] | Record<string, string | string[]> | IncomingHttpHeaders | Iterable<[string, string | string[] | undefined]> | null | string[] | OutgoingHttpHeaders | Iterable<[string, string | string[] | undefined]> | null |
Видалені члени класів або інтерфейсів
Не виявлено.
Змінені члени класів або інтерфейсів
| member | Було | Стало |
|---|---|---|
Client.connect | (options: ClientConnectOptions): Promise<ConnectData<null>> | (options: ClientConnectOptions, callback: (err: Error | null, data: ConnectData<null>) => void): void | <TOpaque = null>(options: ClientConnectOptions<TOpaque>): Promise<ConnectData<TOpaque>> | <TOpaque = null>(options: ClientConnectOptions<TOpaque>, callback: (err: Error | null, data: ConnectData<TOpaque>) => void): void |
MockClient.connect | (options: ClientConnectOptions): Promise<ConnectData<null>> | (options: ClientConnectOptions, callback: (err: Error | null, data: ConnectData<null>) => void): void | <TOpaque = null>(options: ClientConnectOptions<TOpaque>): Promise<ConnectData<TOpaque>> | <TOpaque = null>(options: ClientConnectOptions<TOpaque>, callback: (err: Error | null, data: ConnectData<TOpaque>) => void): void |
Client.connect | (options: ClientConnectOptions): Promise<ConnectData<null>> | (options: ClientConnectOptions, callback: (err: Error | null, data: ConnectData<null>) => void): void | <TOpaque = null>(options: ClientConnectOptions<TOpaque>): Promise<ConnectData<TOpaque>> | <TOpaque = null>(options: ClientConnectOptions<TOpaque>, callback: (err: Error | null, data: ConnectData<TOpaque>) => void): void |
default.connect | (options: ClientConnectOptions): Promise<ConnectData<null>> | (options: ClientConnectOptions, callback: (err: Error | null, data: ConnectData<null>) => void): void | <TOpaque = null>(options: ClientConnectOptions<TOpaque>): Promise<ConnectData<TOpaque>> | <TOpaque = null>(options: ClientConnectOptions<TOpaque>, callback: (err: Error | null, data: ConnectData<TOpaque>) => void): void |
default.connect | (options: ClientConnectOptions): Promise<ConnectData<null>> | (options: ClientConnectOptions, callback: (err: Error | null, data: ConnectData<null>) => void): void | <TOpaque = null>(options: ClientConnectOptions<TOpaque>): Promise<ConnectData<TOpaque>> | <TOpaque = null>(options: ClientConnectOptions<TOpaque>, callback: (err: Error | null, data: ConnectData<TOpaque>) => void): void |
Нові застарівання
Не виявлено.
Зміни вимог (engines, peer-залежності)
Не виявлено.
Нові експорти (2)
| import | export | kind |
|---|---|---|
undici-types | Dispatcher1Wrapper | class |
undici-types/header | OutgoingHttpHeaders | type |
Поширені запитання
Які несумісні зміни під час оновлення undici-types з 7 до 8?
Між undici-types 7.30.0 і 8.11.2 Vigia знайшла видалених експортів: 0, змінених сигнатур: 3, видалених або змінених членів класів та інтерфейсів: 5.
Що застаріло в undici-types 8?
У undici-types 8.11.2 новими застарілими позначено експортів або членів: 0.
Для агентів
GET https://vigia.coredls.cloud/v1/packages/npm/undici-types/upgrade?from=7.30.0&to=8.11.2