---
title: "urllib 5.0.0 Breaking Changes on npm | Since.dev"
description: "What each urllib release removed, renamed or changed: 26 breaking changes in 1 version on npm, each with its source."
canonical_url: https://since.dev/packages/npm/urllib
last_updated: 2026-12-04
---

# 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

Latest version `5.0.0`, released November 25, 2026. [Source repository](https://github.com/node-modules/urllib)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

## urllib 5.0.0 breaking changes

urllib 5.0.0, released November 25, 2026: 26 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](https://github.com/node-modules/urllib/releases/tag/v5.0.0)
- **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](https://github.com/node-modules/urllib/releases/tag/v5.0.0)
- **Behavior changed** `getDispatcherPoolStats`  

getDispatcherPoolStats() now combines HTTP/1.1 and HTTP/2 counters for each origin. [github.com](https://github.com/node-modules/urllib/releases/tag/v5.0.0)
- **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](https://github.com/node-modules/urllib/releases/tag/v5.0.0)
- **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](https://github.com/node-modules/urllib/releases/tag/v5.0.0)
- **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](https://github.com/node-modules/urllib/releases/tag/v5.0.0)
- **Configuration changed**  

Declarations now use type-fest 6, which requires TypeScript 6 or later with strict enabled. [github.com](https://github.com/node-modules/urllib/releases/tag/v5.0.0)
- **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](https://github.com/node-modules/urllib/releases/tag/v5.0.0)
- **Configuration changed** `RequestOptions.signal`  

RequestOptions.signal now accepts AbortSignal or EventEmitter; this only affects code that relies on the old type. [github.com](https://github.com/node-modules/urllib/releases/tag/v5.0.0)
- **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](https://www.npmjs.com/package/urllib/v/5.0.0)
- **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](https://www.npmjs.com/package/urllib/v/5.0.0)
- **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](https://www.npmjs.com/package/urllib/v/5.0.0)
- **Signature changed** `FetchFactory.getDispatcher`  

Was getDispatcher(): Dispatcher static getDispatcher(): Dispatcher; now getDispatcher(): Dispatcher$1 static getDispatcher(): Dispatcher$1. [npmjs.com](https://www.npmjs.com/package/urllib/v/5.0.0)
- **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](https://www.npmjs.com/package/urllib/v/5.0.0)
- **Signature changed** `HttpClient.getDispatcher`  

Was getDispatcher(): Dispatcher; now getDispatcher(): Dispatcher$1. [npmjs.com](https://www.npmjs.com/package/urllib/v/5.0.0)
- **Signature changed** `HttpClient.setDispatcher`  

Was setDispatcher(dispatcher: Dispatcher): void; now setDispatcher(dispatcher: Dispatcher$1): void. [npmjs.com](https://www.npmjs.com/package/urllib/v/5.0.0)
- **Signature changed** `HttpMethod`  

Was type HttpMethod = Dispatcher.HttpMethod; now type HttpMethod = Dispatcher$1.HttpMethod. [npmjs.com](https://www.npmjs.com/package/urllib/v/5.0.0)
- **Signature changed** `IncomingHttpHeaders`  

Was interface IncomingHttpHeaders extends Except\<HTTPIncomingHttpHeaders, 'set-cookie'>; now interface IncomingHttpHeaders extends Except\<IncomingHttpHeaders$1, "set-cookie">. [npmjs.com](https://www.npmjs.com/package/urllib/v/5.0.0)
- **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](https://www.npmjs.com/package/urllib/v/5.0.0)
- **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](https://www.npmjs.com/package/urllib/v/5.0.0)
- **Signature changed** `RequestOptions.dispatcher`  

Was dispatcher?: Dispatcher; now dispatcher?: Dispatcher$1. [npmjs.com](https://www.npmjs.com/package/urllib/v/5.0.0)
- **Signature changed** `RequestOptions.signal`  

Was signal?: AbortSignal | EventEmitter; now signal?: globalThis.AbortSignal | EventEmitter. [npmjs.com](https://www.npmjs.com/package/urllib/v/5.0.0)
- **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](https://www.npmjs.com/package/urllib/v/5.0.0)
- **Signature changed** `RequestOptions2.dispatcher`  

Was dispatcher?: Dispatcher; now dispatcher?: Dispatcher$1. [npmjs.com](https://www.npmjs.com/package/urllib/v/5.0.0)
- **Signature changed** `RequestOptions2.signal`  

Was signal?: AbortSignal | EventEmitter; now signal?: globalThis.AbortSignal | EventEmitter. [npmjs.com](https://www.npmjs.com/package/urllib/v/5.0.0)
- **Signature changed** `WebFormData`  

Was class FormData extends \_FormData; now class FormData$1 extends \_FormData. [npmjs.com](https://www.npmjs.com/package/urllib/v/5.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
