undici-types breaking changes
Updated December 4, 2026
On this page
Latest version 8.14.1. Source repository
Its 7.0.0 release drops Node.js 18. Node.js end of life dates.
- From 7.30.2 to 8.6.0: 24 breaking changes in 7 versions.
- From 7.0.0 to 8.6.0: 49 breaking changes in 17 versions.
undici-types 8.6.0 breaking changes
- Signature changed
deleteCookie
Was function deleteCookie (headers: Headers, name: string, attributes?: {name?: string, domain?: string}): void; now function deleteCookie (headers: Headers, name: string, attributes?: {path?: string, domain?: string}): void. npmjs.com
undici-types 8.5.0 breaking changes
- Behavior changed
EventSource
EventSource behavior was changed to match the specification. Code that depended on the previous non-spec behavior may need review. github.com - Behavior changed
parseSetCookie
parseSetCookie no longer percent-decodes cookie values, so encoded sequences such as %0D%0A stay as written. Code that relied on decoded values must decode them itself. github.com - Behavior changed
ProxyAgent
ProxyAgent with a SOCKS5 proxy now applies requestTls options such as ca, cert, key, rejectUnauthorized and servername. Setups that depended on them being ignored will see different TLS behavior. github.com - Behavior changed
Socks5ProxyAgent
Socks5ProxyAgent no longer shares one pool across origins. Users who reuse one agent for several origins should create a separate agent instance per origin. github.com - Behavior changed
WebSocket
The WebSocket payload limit now applies to the total size of a fragmented message and limits the number of fragments. Large or heavily fragmented messages from untrusted servers may now be rejected. github.com
undici-types 8.4.0 breaking changes
- Signature changed
buildConnector.BuildOptions
Was type BuildOptions = (ConnectionOptions | TcpNetConnectOpts | IpcNetConnectOpts) & {allowH2?: boolean; maxCachedSessions?: number | null; socketPath?: string | null; timeout?: number | null; port?: number; keepAlive?: boolean | null... npmjs.com - Signature changed
interceptors.RedirectInterceptorOpts
Was type RedirectInterceptorOpts = {maxRedirections?: number, throwOnMaxRedirect?: boolean}; now type RedirectInterceptorOpts = {maxRedirections?: number, throwOnMaxRedirect?: boolean, stripHeadersOnRedirect?: string[]... npmjs.com
undici-types 8.3.0 breaking changes
- Removed
Dispatcher.RequestOptions.throwOnError
The throwOnError option was removed from the Dispatcher.RequestOptions type. Code that sets this option in typed request options must stop using it. github.com - Behavior changed
The package's type declarations were changed so they no longer alter the @types/node declarations. Code that relied on the previous global type interference may need adjusting. github.com - Signature changed
Client.connect
Was override connect (options: ClientConnectOptions): Promise<Dispatcher.ConnectData> override connect (options: ClientConnectOptions, callback: (err: Error | null, data: Dispatcher.ConnectData) => void): void; now override connect<TOpaque... npmjs.com
undici-types 8.2.0 breaking changes
- Behavior changed
Requests with malformed content-length headers are now rejected instead of being sent. Check that request headers carry valid content-length values. github.com - Behavior changed
A NaN value for the highWaterMark request option is now rejected during option validation. Pass a valid number instead. github.com - Signature changed
Dispatcher.DispatchController.rawHeaders
Was rawHeaders?: Buffer[] | string[] | null; now rawHeaders?: Buffer[] | string[] | IncomingHttpHeaders | null. npmjs.com - Signature changed
Dispatcher.DispatchController.rawTrailers
Was rawTrailers?: Buffer[] | string[] | null; now rawTrailers?: Buffer[] | string[] | IncomingHttpHeaders | null. npmjs.com - Signature changed
EnvHttpProxyAgent.Options.headers
Was headers?: IncomingHttpHeaders; now headers?: OutgoingHttpHeaders. npmjs.com - Signature changed
interceptors.RedirectInterceptorOpts
Was type RedirectInterceptorOpts = {maxRedirections?: number}; now type RedirectInterceptorOpts = {maxRedirections?: number, throwOnMaxRedirect?: boolean}. npmjs.com
undici-types 8.0.3 breaking changes
- Removed
Stale interceptors option types are removed from constructor and pool options, so code that type-checks against them may fail to compile. github.com - Removed
AbortSignal
The legacy AbortSignal alias is removed from undici-types because @types/node now provides it. Import AbortSignal from @types/node instead. github.com
Older versions
16 older versions, each with its first changes. Sign up to see every change
Show 16 older versions
undici-types 8.0.0 breaking changes
- Removed
interceptors.DecompressInterceptorOpts.maxSize
DecompressInterceptorOpts.maxSize was removed in undici-types 8.0.0 npmjs.com - Signature changed
Dispatcher.DispatchController.rawHeaders
Was rawHeaders?: Buffer[] | string[] | IncomingHttpHeaders | null; now rawHeaders?: Buffer[] | string[] | null. npmjs.com
And 3 more in this version.
undici-types 7.30.2 breaking changes
- Behavior changed
Cache entries written to persistent SQLite storage by vulnerable 7.x releases are now invalidated, so users must expect those stored entries to be discarded and refetched. github.com - Behavior changed
A 304 Not Modified response must now match the cached URL and stored validator before the cached body is replayed, so some previously accepted revalidations will fail. github.com
And 1 more in this version.
undici-types 7.29.1 breaking changes
- Behavior changed
Cache reads and writes are restricted to safe HTTP methods, so responses to POST or DELETE are no longer cached; successful unsafe requests still invalidate entries. github.com - Behavior changed
Oversized chunked responses without Content-Length are now aborted instead of being treated as truncated successes. github.com
And 3 more in this version.
undici-types 7.29.0 breaking changes
- Behavior changed
Partial responses whose Content-Length does not match Content-Range are now rejected, so code that previously received such responses may now get an error. github.com - Behavior changed
Whitespace around = in qualified no-cache and private directives is normalized, and the cache applies more conservative decisions, so some responses may now be cached differently. github.com
And 1 more in this version.
undici-types 7.28.0 breaking changes
- Behavior changed
Whitespace-padded qualified Cache-Control field names are now trimmed, which changes which responses are cached in shared mode. github.com - Behavior changed
parseSetCookie
Cookie values are now kept as sent instead of being percent-decoded. Sanitize values before forwarding them into response headers if your code relies on the decoded form. github.com
And 2 more in this version.
undici-types 7.24.7 breaking changes
- Signature changed
RedirectHandler.constructor
Was constructor (dispatch: Dispatcher.Dispatch, maxRedirections: number, opts: Dispatcher.DispatchOptions, handler: Dispatcher.DispatchHandler, redirectionLimitReached: boolean); now constructor (dispatch: Dispatcher.Dispatch... npmjs.com - Signature changed
Request.clone
Was readonly clone: () => Request; now public clone (): Request. npmjs.com
And 3 more in this version.
undici-types 7.24.2 breaking changes
- Removed
WebSocketInit.maxDecompressedMessageSize
The maxDecompressedMessageSize option has been removed, so code that sets it should stop passing it. npmjs.com
undici-types 7.24.0 breaking changes
- Signature changed
interceptors.DeduplicateInterceptorOpts
Was type DeduplicateInterceptorOpts = {methods?: DeduplicateMethods[] skipHeaderNames?: string[] excludeHeaderNames?: string[]}; now type DeduplicateInterceptorOpts = {methods?: DeduplicateMethods[] skipHeaderNames?: string[]... npmjs.com
undici-types 7.23.0 breaking changes
- Signature changed
buildConnector.BuildOptions
Was type BuildOptions = (ConnectionOptions | TcpNetConnectOpts | IpcNetConnectOpts) & {allowH2?: boolean; maxCachedSessions?: number | null; socketPath?: string | null; timeout?: number | null; port?: number; keepAlive?: boolean | null... npmjs.com
undici-types 7.22.0 breaking changes
- Default changed
deduplicate
Requests with non-safe HTTP methods are no longer deduplicated by default. If you relied on deduplication for those requests, opt in explicitly. github.com
undici-types 7.19.0 breaking changes
- Behavior changed
MockAgent
MockAgent origin matching now normalizes case and URL forms, so intercepts may match requests they did not match before. Check existing mock origins and tests that depend on exact matching. github.com
undici-types 7.0.0 breaking changes
- Removed
Support for third-party fetch implementations was removed in fetch. github.com - Removed
Node.js v18 is no longer supported by this release. github.com
And 91 more in this version.
undici-types 7.0.0-alpha.9 breaking changes
- Behavior changed
responseError
The responseError interceptor error now includes a body property; code depending on the previous error shape may be affected. github.com - Signature changed
end
The statusMessage argument of end is now optional; code relying on its previous position or requirement may need updating. github.com
undici-types 7.0.0-alpha.8 breaking changes
- Removed
Node.js v18 is no longer supported; upgrade Node.js to a supported version before using this release. github.com
undici-types 7.0.0-alpha.7 breaking changes
- Behavior changed
Redirect responses with status 301 and 302 switch the request method to GET, which may change existing request behavior. github.com
undici-types 7.0.0-alpha.2 breaking changes
- Removed
Support for third-party fetch implementations was removed. Code relying on it must be updated. github.com - Removed
throwOnError
The throwOnError option was removed. Code that sets it will no longer have effect or may break. github.com
And 1 more in this version.
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.