Upgrading undici-types from 7.x to 8.x
Comparison of the public API of undici-types 7.30.0 and 8.11.2, computed automatically from their TypeScript types. A changed signature is a candidate for a breaking change, not a certainty.
Summary
| Removed import paths | 1 |
|---|---|
| Removed exports | 0 |
| Changed signatures | 3 |
| Removed class or interface members | 0 |
| Changed class or interface members | 5 |
| Newly deprecated | 0 |
| Requirement changes (engines, peer dependencies) | 0 |
| New exports | 2 |
Removed import paths
| Removed import paths |
|---|
undici-types/socks5-proxy-agent |
Removed exports
None detected.
Changed signatures
| export | Before | After |
|---|---|---|
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 |
Removed class or interface members
None detected.
Changed class or interface members
| member | Before | After |
|---|---|---|
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 |
Newly deprecated
None detected.
Requirement changes (engines, peer dependencies)
None detected.
New exports (2)
| import | export | kind |
|---|---|---|
undici-types | Dispatcher1Wrapper | class |
undici-types/header | OutgoingHttpHeaders | type |
Frequently asked questions
What are the breaking changes when upgrading undici-types from 7 to 8?
Between undici-types 7.30.0 and 8.11.2, Vigia found 0 removed exports, 3 changed signatures and 5 removed or changed class or interface members.
What became deprecated in undici-types 8?
0 exports or members are newly marked as deprecated in undici-types 8.11.2.
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/undici-types/upgrade?from=7.30.0&to=8.11.2