All Versions
45
Latest Version
Avg Release Cycle
75 days
Latest Release
1597 days ago
Changelog History
Page 2
Changelog History
Page 2
-
v2.4.0 Changes
April 26, 2019- โจ Enhance: added
Brotli
compression support (using node's zlib). - โจ Enhance: updated
Blob
implementation per spec. - ๐ Fix: set content type automatically for
URLSearchParams
. - ๐ Fix:
Headers
now reject empty header names. - ๐ Fix: test cases, as node 12+ no longer accepts invalid header response.
- โจ Enhance: added
-
v2.3.0 Changes
November 13, 2018- โจ Enhance: added
AbortSignal
support, with README example. - โจ Enhance: handle invalid
Location
header during redirect by rejecting them explicitly withFetchError
. - ๐ Fix: update
browser.js
to support react-native environment, whereself
isn't available globally.
- โจ Enhance: added
-
v2.2.1 Changes
November 05, 2018- ๐ Fix:
compress
flag shouldn't overwrite existingAccept-Encoding
header. - ๐ Fix: multiple
import
rules, wherePassThrough
etc. doesn't have a named export when using node <10 and--exerimental-modules
flag. - ๐ Other: Better README.
- ๐ Fix:
-
v2.2.0 Changes
July 22, 2018- โจ Enhance: Support all
ArrayBuffer
view types - โจ Enhance: Support Web Workers
- โจ Enhance: Support Node.js'
--experimental-modules
mode; deprecate.es.js
file - ๐ Fix: Add
__esModule
property to the exports object - ๐ Other: Better example in README for writing response to a file
- โ Other: More tests for Agent
- โจ Enhance: Support all
-
v2.1.2 Changes
March 25, 2018- ๐ Fix: allow
Body
methods to work on ArrayBuffer-backed
Body` objects - ๐ Fix: reject promise returned by
Body
methods when the accumulatedBuffer
exceeds the maximum size - ๐ Fix: support custom
Host
headers with any casing - ๐ Fix: support importing
fetch()
from TypeScript inbrowser.js
- ๐ Fix: handle the redirect response body properly
๐ See CHANGELOG.
- ๐ Fix: allow
-
v2.1.1 Changes
March 05, 2018๐ See CHANGELOG.
๐ Fix packaging errors in version 2.1.0.
-
v2.1.0 Changes
March 05, 2018๐ See CHANGELOG:
- โจ Enhance: allow using ArrayBuffer as the
body
of afetch()
orRequest
- ๐ Fix: store HTTP headers of a
Headers
object internally with the given case, for compatibility with older servers that incorrectly treated header names in a case-sensitive manner - ๐ Fix: silently ignore invalid HTTP headers
- ๐ Fix: handle HTTP redirect responses without a
Location
header just like non-redirect responses - ๐ Fix: include bodies when following a redirection when appropriate
- โจ Enhance: allow using ArrayBuffer as the
-
v2.0.0 Changes
๐ This is a major release. Check our upgrade guide for an overview on some key differences between v1 and v2.
General changes
- ๐ Major: Node.js 0.10.x and 0.12.x support is dropped
- ๐ Major:
require('node-fetch/lib/response')
etc. is now unsupported; userequire('node-fetch').Response
or ES6 module imports - โจ Enhance: start testing on Node.js v4.x, v6.x, v8.x LTS, as well as v9.x stable
- โจ Enhance: use Rollup to produce a distributed bundle (less memory overhead and faster startup)
- โจ Enhance: make
Object.prototype.toString()
on Headers, Requests, and Responses return correct class strings - Other: rewrite in ES2015 using Babel
- Other: use Codecov for code coverage tracking
- โก๏ธ Other: update package.json script for npm 5
- Other:
encoding
module is now optional (alpha.7) - ๐ฆ Other: expose browser.js through package.json, avoid bundling mishaps (alpha.9)
- 0๏ธโฃ Other: allow TypeScript to
import
node-fetch by exposing default (alpha.9)
HTTP requests
- Major: overwrite user's
Content-Length
if we can be sure our information is correct (per spec) - ๐ Fix: errors in a response are caught before the body is accessed
- ๐ Fix: support WHATWG URL objects, created by
whatwg-url
package orrequire('url').URL
in Node.js 7+
Response and Request classes
- Major:
response.text()
no longer attempts to detect encoding, instead always opting for UTF-8 (per spec); useresponse.textConverted()
for the v1 behavior - โช Major: make
response.json()
throw error instead of returning an empty object on 204 no-content respose (per spec; reverts behavior changed in v1.6.2) - Major: internal methods are no longer exposed
- Major: throw error when a
GET
orHEAD
Request is constructed with a non-null body (per spec) - โจ Enhance: add
response.arrayBuffer()
(also applies to Requests) - โจ Enhance: add experimental
response.blob()
(also applies to Requests) - โจ Enhance:
URLSearchParams
is now accepted as a body - โจ Enhance: wrap
response.json()
json parsing error asFetchError
- ๐ Fix: fix Request and Response with
null
body
Headers class
- ๐ Major: remove
headers.getAll()
; makeget()
return all headers delimited by commas (per spec) - โจ Enhance: make Headers iterable
- โจ Enhance: make Headers constructor accept an array of tuples
- โจ Enhance: make sure header names and values are valid in HTTP
- ๐ Fix: coerce Headers prototype function parameters to strings, where applicable
๐ Documentation
- โจ Enhance: more comprehensive API docs
- โจ Enhance: add a list of default headers in README
-
v1.7.0 Changes
๐ See changelog on 1.x branch for details.
-
v1.6.3 Changes
- โจ Enhance: error handling document to explain
FetchError
design - ๐ Fix: support
form-data
2.x releases (requiresform-data
>= 2.1.0)
- โจ Enhance: error handling document to explain