All Versions
45
Latest Version
Avg Release Cycle
75 days
Latest Release
1328 days ago

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.
  • 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 with FetchError.
    • ๐Ÿ›  Fix: update browser.js to support react-native environment, where self isn't available globally.
  • v2.2.1 Changes

    November 05, 2018
    • ๐Ÿ›  Fix: compress flag shouldn't overwrite existing Accept-Encoding header.
    • ๐Ÿ›  Fix: multiple import rules, where PassThrough etc. doesn't have a named export when using node <10 and --exerimental-modules flag.
    • ๐Ÿ‘ Other: Better README.
  • 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
  • v2.1.2 Changes

    March 25, 2018
    • ๐Ÿ›  Fix: allow Body methods to work on ArrayBuffer-backedBody` objects
    • ๐Ÿ›  Fix: reject promise returned by Body methods when the accumulated Buffer exceeds the maximum size
    • ๐Ÿ›  Fix: support custom Host headers with any casing
    • ๐Ÿ›  Fix: support importing fetch() from TypeScript in browser.js
    • ๐Ÿ›  Fix: handle the redirect response body properly

    ๐Ÿ‘€ See CHANGELOG.

  • 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 a fetch() or Request
    • ๐Ÿ›  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
  • 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; use require('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 or require('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); use response.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 or HEAD 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 as FetchError
    • ๐Ÿ›  Fix: fix Request and Response with null body

    Headers class

    • ๐Ÿšš Major: remove headers.getAll(); make get() 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 (requires form-data >= 2.1.0)