node-fetch
Advanced tools
Comparing version 2.0.0-alpha.4 to 2.0.0-alpha.5
@@ -16,3 +16,3 @@ | ||
- 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 4, 6, 7 | ||
- Enhance: start testing on Node.js 4, 6, 8 LTS | ||
- Enhance: use Rollup to produce a distributed bundle (less memory overhead and faster startup) | ||
@@ -22,2 +22,3 @@ - Enhance: make `Object.prototype.toString()` on Headers, Requests, and Responses return correct class strings | ||
- Other: use Codecov for code coverage tracking | ||
- Other: update package.json script for npm 5 | ||
@@ -55,2 +56,6 @@ ### HTTP requests | ||
## backport releases (v1.7.0 and beyond) | ||
See [changelog on 1.x branch](https://github.com/bitinn/node-fetch/blob/1.x/CHANGELOG.md) for details. | ||
## v1.6.3 | ||
@@ -57,0 +62,0 @@ |
{ | ||
"name": "node-fetch", | ||
"version": "2.0.0-alpha.4", | ||
"version": "2.0.0-alpha.5", | ||
"description": "A light-weight module that brings window.fetch to node.js", | ||
@@ -17,3 +17,3 @@ "main": "lib/index.js", | ||
"build": "cross-env BABEL_ENV=rollup rollup -c", | ||
"prepublish": "npm run build", | ||
"prepare": "npm run build", | ||
"test": "cross-env BABEL_ENV=test mocha --compilers js:babel-register test/test.js", | ||
@@ -20,0 +20,0 @@ "report": "cross-env BABEL_ENV=coverage nyc --reporter lcov --reporter text mocha -R spec test/test.js", |
@@ -26,3 +26,3 @@ | ||
- Decode content encoding (gzip/deflate) properly, and convert string output (such as `res.text()` and `res.json()`) to UTF-8 automatically. | ||
- Useful extensions such as timeout, redirect limit, response size limit, [explicit errors][] for troubleshooting. | ||
- Useful extensions such as timeout, redirect limit, response size limit, [explicit errors](https://github.com/bitinn/node-fetch/blob/master/ERROR-HANDLING.md) for troubleshooting. | ||
@@ -39,2 +39,4 @@ | ||
Stable release (`1.x`) | ||
```sh | ||
@@ -44,5 +46,12 @@ $ npm install node-fetch --save | ||
Next release (`2.x`), currently in alpha | ||
```sh | ||
$ npm install node-fetch@next --save | ||
``` | ||
## Usage | ||
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](https://github.com/bitinn/node-fetch/blob/master/UPGRADE-GUIDE.md) if you want to find out the difference. | ||
```javascript | ||
@@ -49,0 +58,0 @@ import fetch from 'node-fetch'; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
88392
401