Skip to content

Commit 44c67b1

Browse files
committed
Add docs for v2.x
1 parent b1cd2dd commit 44c67b1

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This is a major release. Check [our upgrade guide](https://github.com/bitinn/nod
1313

1414
- Major: Node.js 0.10.x and 0.12.x support is dropped
1515
- Major: `require('node-fetch/lib/response')` etc. is now unsupported; use `require('node-fetch').Response` or ES6 module imports
16-
- Enhance: start testing on Node.js 4, 6, 8 LTS
16+
- Enhance: start testing on Node.js v4.x, v6.x, v8.x LTS, as well as v9.x stable
1717
- Enhance: use Rollup to produce a distributed bundle (less memory overhead and faster startup)
1818
- Enhance: make `Object.prototype.toString()` on Headers, Requests, and Responses return correct class strings
1919
- Other: rewrite in ES2015 using Babel
@@ -26,8 +26,8 @@ This is a major release. Check [our upgrade guide](https://github.com/bitinn/nod
2626
### HTTP requests
2727

2828
- Major: overwrite user's `Content-Length` if we can be sure our information is correct (per spec)
29+
- Fix: errors in a response are caught before the body is accessed
2930
- Fix: support WHATWG URL objects, created by `whatwg-url` package or `require('url').URL` in Node.js 7+
30-
- Fix: a regression in older v2 build where `index.es.js` doesn't require https module, causing HTTPS request to fail (alpha.8)
3131

3232
### Response and Request classes
3333

README.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,12 @@ See Matt Andrews' [isomorphic-fetch](https://github.com/matthew-andrews/isomorph
3636

3737
## Install
3838

39-
Stable release (`1.x`)
39+
Stable release (`2.x`)
4040

4141
```sh
4242
$ npm install node-fetch --save
4343
```
4444

45-
Next release (`2.x`), currently in alpha
46-
47-
```sh
48-
$ npm install node-fetch@next --save
49-
```
50-
51-
*Note: 2.x is expected to be in alpha for quite a while; due to Fetch Spec itself is still evolving and we try to follow its design. Many have been using 2.x for over 6 months, we consider it to be stable and ready for production.*
52-
53-
5445
## Usage
5546

5647
Note that documentation below is up-to-date with `2.x` releases, [see `1.x` readme](https://github.com/bitinn/node-fetch/blob/1.x/README.md), [changelog](https://github.com/bitinn/node-fetch/blob/1.x/CHANGELOG.md) and [2.x upgrade guide][UPGRADE-GUIDE.md] if you want to find out the difference.

0 commit comments

Comments
 (0)