node-fetch breaking changes
node-fetch 3.3.2 (July 25, 2023) is its newest release with breaking changes. The first: Stops sending a default connection close header on requests in node-fetch 3.3.2. Every breaking API change we have recorded in node-fetch on npm: 128 breaking changes in 12 versions. Below, its 12 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 3.3.2, released July 25, 2023. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 2.6.13 to 3.3.2: 98 breaking changes in 9 versions.
- From 2.0.0 to 3.3.2: 100 breaking changes in 11 versions.
node-fetch 3.3.2 breaking changes
- Behavior changed
Requests no longer include the default Connection: close header, so connections may be kept open. Code that relied on that header being sent should set it explicitly. github.com
node-fetch 3.3.1 breaking changes
- Signature changed
default
Was function fetch(url: RequestInfo, init?: RequestInit): Promise<Response>; now function fetch(url: URL | RequestInfo, init?: RequestInit): Promise<Response>. npmjs.com - Signature changed
Request.constructor
Was constructor(input: RequestInfo, init?: RequestInit); now constructor(input: URL | RequestInfo, init?: RequestInit). npmjs.com
node-fetch 3.2.9 breaking changes
- Behavior changed
Secure headers are no longer forwarded when a redirect changes protocol. Code relying on those headers being sent across a protocol change must adjust. github.com
node-fetch 3.2.4 breaking changes
- Behavior changed
Request methods that are not standard HTTP methods are now sent exactly as given instead of being converted to uppercase. Code that relied on the uppercased form must pass the uppercase method itself. github.com
node-fetch 3.2.1 breaking changes
- Removed
AbortSignal
AbortSignal was removed in node-fetch 3.2.1 npmjs.com - Removed
BodyMixin
BodyMixin was removed in node-fetch 3.2.1 npmjs.com - Removed
ResponseType
ResponseType was removed in node-fetch 3.2.1 npmjs.com - Signature changed
RequestInit.agent
Was agent?: Agent | ((parsedUrl: URL) => Agent); now agent?: RequestOptions['agent'] | ((parsedUrl: URL) => RequestOptions['agent']). npmjs.com
node-fetch 3.1.1 breaking changes
- Behavior changed
GET and HEAD requests with a non-empty body are now disallowed. Code that sent a body with these methods must change the method or remove the body. github.com - Behavior changed
Sensitive headers such as cookies and authentication are no longer sent to a different host after a redirect. Code that relied on those headers reaching a redirected host must set them explicitly. github.com
Older versions
6 older versions, each with its first changes. Sign up to see every change
Show 6 older versions
node-fetch 3.1.0 breaking changes
- Behavior changed
Body.body
Body.body now returns a node:stream stream rather than its previous form. Code that depends on the old type of Body.body may need to adjust. github.com - Signature changed
BodyInit
Was type BodyInit = | Blob | Buffer | URLSearchParams | NodeJS.ReadableStream | string; now type BodyInit = | Blob | Buffer | URLSearchParams | FormData | NodeJS.ReadableStream | string. npmjs.com
node-fetch 3.0.0 breaking changes
- Removed
AbortError.constructor
new AbortError() was removed in node-fetch 3.0.0 npmjs.com - Removed
Blob
Blob was removed in node-fetch 3.0.0 npmjs.com
And 82 more in this version.
node-fetch 3.0.0-beta.10 breaking changes
- Behavior changed
res.blob().stream
Code that expects a Node.js stream from res.blob().stream() must be updated to work with a WHATWG ReadableStream. github.com
node-fetch 2.6.13 breaking changes
- Behavior changed
Requests no longer include a default Connection: close header. Code that relied on that header being sent by default must set it explicitly. github.com
node-fetch 2.6.11 breaking changes
- Behavior changed
The earlier change that stripped a byte order mark from text and json results is reverted, so those results may again include the BOM. Code that relied on the BOM being stripped must handle it itself. github.com
node-fetch 2.0.0 breaking changes
- Removed
Headers.getAll
Headers.getAll was removed in node-fetch 2.0.0 npmjs.com - Signature changed
Body.json
The signature of Body.json changed in node-fetch 2.0.0 npmjs.com
And 26 more in this version.
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.