NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #115 most downloaded on npm
A light-weight module that brings Fetch API to node.js
Last release 3 years ago
no release in 18 months
Ships fairly regularly
a new release about every 6 weeks
Most releases are documented
notes for 52 of the last 60 stable releases
9 versions withdrawn
withdrawn after publishing
12 years old
96 releases · first in 2015
completely remove support for form-data package
form-data package is no longer supportedIt now needs a spec compatible FormData to be sent
remove EventTarget from the isAbortSignal
One column per quarter.
# 4.0.0-beta.2 (2022-01-27) ### chore * completely remove .buffer() (#1485) (1c775f1) ### BREAKING CHANGES * body.buffer() has been removed
# 4.0.0-beta.1 (2022-01-27) * drop support for Node 12 (8c1fe41) ### BREAKING CHANGES * drop support for Node 12
release "Allow URL class object as an argument for fetch()" #1696
3.3.0 (2022-11-10) Features add static Response.json
## 3.2.10 (2022-07-31) ### Bug Fixes * ReDoS referrer
Headers: don't forward secure headers on protocol change
## 3.2.8 (2022-07-12) ### Bug Fixes * possibly flaky test
## 3.2.7 (2022-07-11) ### Bug Fixes * always warn Request.data
undefined reference to response.body when aborted
use space in accept-encoding values (#1572) (a92b5d5), closes #1571
don't uppercase unknown methods
## 3.2.3 (2022-03-11) ### Bug Fixes * handle bom in text and json
add missing formdata export to types (#1518) (a4ea5f9), closes #1517
## 3.2.1 (2022-03-01) ### Bug Fixes * cancel request example import
export Blob, File and FormData + utilities
Recommended to upgrade, to not leak sensitive cookie and authentication header information to 3th party host while a redirect occurred
Recommended to upgrade, to not leak sensitive cookie and authentication header information to 3th party host while a redirect occurred
Full Changelog: https://github.com/node-fetch/node-fetch/compare/v3.1.0...v3.1.1
fix(types): declare buffer() deprecated by @dnalborczyk in https://github.com/node-fetch/node-fetch/pull/1345
Body.body into a node:stream by @jimmywarting in https://github.com/node-fetch/node-fetch/pull/924url to URL by @dhritzkiv in https://github.com/node-fetch/node-fetch/pull/1318BodyMixin.formData() and constructing bodies with FormData by @jimmywarting in https://github.com/node-fetch/node-fetch/pull/1314Full Changelog: https://github.com/node-fetch/node-fetch/compare/v3.0.0...v3.1.0
version 3 is going out of a long beta period and switches to stable
version 3 is going out of a long beta period and switches to stable
One major change is that it's now a ESM only package See changelog for more information about all the changes.
See CHANGELOG for details.
See CHANGELOG for details.
This package is now a ESM only package. To import fetch you either have to use ```js import fetch from 'node-fetch';
This package is now a ESM only package. To import fetch you either have to use
import fetch from 'node-fetch';
// Or if you are still using commonjs or want to lazy
// import fetch then the async import works fine
import('node-fetch')
res.blob().stream() now returns a whatwg ReadableStream instadSee CHANGELOG for details.
This is an important security release. It is strongly recommended to update as soon as possible.
This is an important security release. It is strongly recommended to update as soon as possible.
See CHANGELOG for details.
See CHANGELOG for details.
See CHANGELOG for details.
See CHANGELOG for details.
See CHANGELOG for details.
See CHANGELOG for details.
See CHANGELOG for details.
See CHANGELOG for details.
See CHANGELOG for details.
Nothing published for this version
Nothing published for this version
Nothing published for this version
See CHANGELOG for details.
See CHANGELOG for details.
2.7.0 (2023-08-23) Features AbortError
socket variable testing for undefined
2.6.10 (2023-05-08) Bug Fixes handle bom in text and json
2.6.9 (2023-01-30) Bug Fixes "global is not defined"
headers: don't forward secure headers on protocol change ( #1605 ) ( fddad0e ), closes #1599
global variable in browser.js (#1534) (8bb6e31)Recommended to upgrade, to not leak sensitive cookie and authentication header information to 3th party host while a redirect occurred
Recommended to upgrade, to not leak sensitive cookie and authentication header information to 3th party host while a redirect occurred
Full Changelog: https://github.com/node-fetch/node-fetch/compare/v2.6.6...v2.6.7
fix(URL): prefer built in URL version when available and fallback to whatwg by @jimmywarting in https://github.com/node-fetch/node-fetch/pull/1352
Full Changelog: https://github.com/node-fetch/node-fetch/compare/v2.6.5...v2.6.6
Nothing published for this version
Nothing published for this version
Nothing published for this version
fixed main path in package.json
fixed main path in package.json
This is an important security release. It is strongly recommended to update as soon as possible.
This is an important security release. It is strongly recommended to update as soon as possible.
See CHANGELOG for details.
See CHANGELOG.
See CHANGELOG.
See CHANGELOG.
See CHANGELOG.
See CHANGELOG.
See CHANGELOG.
See CHANGELOG.
See CHANGELOG.
See CHANGELOG.
See CHANGELOG.
See CHANGELOG.
See CHANGELOG.
Nothing published for this version
Fix: allow Body methods to work on ArrayBuffer-backed Body` objects
Body methods to work on ArrayBuffer-backed Body` objectsBody methods when the accumulated Buffer exceeds the maximum sizeHost headers with any casingfetch() from TypeScript in browser.jsSee CHANGELOG.
Fix packaging errors in version 2.1.0.
See CHANGELOG.
Fix packaging errors in version 2.1.0.
Enhance: allow using ArrayBuffer as the body of a fetch() or Request
See CHANGELOG:
body of a fetch() or RequestHeaders object internally with the given case, for compatibility with older servers that incorrectly treated header names in a case-sensitive mannerLocation header just like non-redirect responsesThis is a major release. See upgrade guide on how to upgrade from v1.x, and the changelog for all changes.
This is a major release. See upgrade guide on how to upgrade from v1.x, and the changelog for all changes.
see changelog for details
see changelog for details
see changelog for details
see changelog for details
see changelog for details
see changelog for details
Your coding agent can read these notes before it upgrades. Set up the MCP server →