urllib breaking changes
urllib 5.0.0 (November 25, 2026) is its newest release with breaking changes, 26 of them. The first: Drops CommonJS require; ships a single ES module in urllib 5.0.0. Every breaking API change we have recorded in urllib on npm: 26 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 5.0.0, released November 25, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
urllib 5.0.0 breaking changes
- Removed
urllib now ships only an ES module. Use import in ESM, or await import('urllib') inside an async CommonJS function. github.com - Behavior changed
err.cause.code
Checks on err.cause.code for HTTP/2 response-header timeouts must match UND_ERR_HEADERS_TIMEOUT instead of UND_ERR_INFO. github.com - Behavior changed
getDispatcherPoolStats
getDispatcherPoolStats() now combines HTTP/1.1 and HTTP/2 counters for each origin. github.com - Behavior changed
request
On a 303 redirect, methods other than GET or HEAD become GET and the body and content headers are dropped. A failed redirect after POST no longer resends the upload. github.com - Behavior changed
res.timing.dnslookup
res.timing.dnslookup reports milliseconds from request start until DNS lookup completes, and is 0 on a reused socket. github.com - Default changed
With undici 8, HTTPS requests use HTTP/2 when the server supports it. Pass { allowH2: false } to request() or HttpClient to force HTTP/1.1; set it on any undici Pool or Client you supply. github.com - Configuration changed
Declarations now use type-fest 6, which requires TypeScript 6 or later with strict enabled. github.com - Configuration changed
RequestOptions.rejectUnauthorized
For an HttpClient instance, configure connect.rejectUnauthorized instead of the top-level option; the exported RequestOptions type now includes rejectUnauthorized for request() and curl(). github.com - Configuration changed
RequestOptions.signal
RequestOptions.signal now accepts AbortSignal or EventEmitter; this only affects code that relies on the old type. github.com - Signature changed
curl
Was function curl<T = any>(url: RequestURL, options?: UrllibRequestOptions): Promise<HttpClientResponse<T>>; now function curl<T = any>(url: RequestURL, options?: RequestOptions): Promise<HttpClientResponse<T>>. npmjs.com - Signature changed
fetch
Was const fetch: (input: RequestInfo, init?: UrllibRequestInit) => Promise<Response>; now const fetch: (input: RequestInfo$1, init?: UrllibRequestInit) => Promise<Response$1>. npmjs.com - Signature changed
FetchFactory.fetch
Was fetch(input: RequestInfo, init?: UrllibRequestInit): Promise<Response> static fetch(input: RequestInfo, init?: UrllibRequestInit): Promise<Response>; now fetch(input: RequestInfo$1, init?: UrllibRequestInit): Promise<Response$1> static... npmjs.com - Signature changed
FetchFactory.getDispatcher
Was getDispatcher(): Dispatcher static getDispatcher(): Dispatcher; now getDispatcher(): Dispatcher$1 static getDispatcher(): Dispatcher$1. npmjs.com - Signature changed
FetchFactory.setDispatcher
Was setDispatcher(dispatcher: Agent): void static setDispatcher(dispatcher: Agent): void; now setDispatcher(dispatcher: Agent$1): void static setDispatcher(dispatcher: Agent$1): void. npmjs.com - Signature changed
HttpClient.getDispatcher
Was getDispatcher(): Dispatcher; now getDispatcher(): Dispatcher$1. npmjs.com - Signature changed
HttpClient.setDispatcher
Was setDispatcher(dispatcher: Dispatcher): void; now setDispatcher(dispatcher: Dispatcher$1): void. npmjs.com - Signature changed
HttpMethod
Was type HttpMethod = Dispatcher.HttpMethod; now type HttpMethod = Dispatcher$1.HttpMethod. npmjs.com - Signature changed
IncomingHttpHeaders
Was interface IncomingHttpHeaders extends Except<HTTPIncomingHttpHeaders, 'set-cookie'>; now interface IncomingHttpHeaders extends Except<IncomingHttpHeaders$1, "set-cookie">. npmjs.com - Signature changed
request
Was function request<T = any>(url: RequestURL, options?: UrllibRequestOptions): Promise<HttpClientResponse<T>>; now function request<T = any>(url: RequestURL, options?: RequestOptions): Promise<HttpClientResponse<T>>. npmjs.com - Signature changed
RequestOptions
Was type RequestOptions = {method?: HttpMethod | Lowercase<HttpMethod>; type?: HttpMethod | Lowercase<HttpMethod>; data?: any; content?: string | Buffer | Readable; stream?: Readable; writeStream?: Writable; files?: Array<Readable | Buffer... npmjs.com - Signature changed
RequestOptions.dispatcher
Was dispatcher?: Dispatcher; now dispatcher?: Dispatcher$1. npmjs.com - Signature changed
RequestOptions.signal
Was signal?: AbortSignal | EventEmitter; now signal?: globalThis.AbortSignal | EventEmitter. npmjs.com - Signature changed
RequestOptions2
Was type RequestOptions = {method?: HttpMethod | Lowercase<HttpMethod>; type?: HttpMethod | Lowercase<HttpMethod>; data?: any; content?: string | Buffer | Readable; stream?: Readable; writeStream?: Writable; files?: Array<Readable | Buffer... npmjs.com - Signature changed
RequestOptions2.dispatcher
Was dispatcher?: Dispatcher; now dispatcher?: Dispatcher$1. npmjs.com - Signature changed
RequestOptions2.signal
Was signal?: AbortSignal | EventEmitter; now signal?: globalThis.AbortSignal | EventEmitter. npmjs.com - Signature changed
WebFormData
Was class FormData extends _FormData; now class FormData$1 extends _FormData. npmjs.com
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.