http-client
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -1,2 +0,3 @@ | ||
## HEAD | ||
## [2.3.0] | ||
> Mar 14, 2016 | ||
@@ -7,3 +8,3 @@ - Add callback support to all `fetch` methods | ||
[HEAD]: https://github.com/mjackson/http-client/compare/latest...HEAD | ||
[2.3.0]: https://github.com/mjackson/http-client/compare/v2.2.1...v2.3.0 | ||
@@ -10,0 +11,0 @@ ## [2.2.1] |
{ | ||
"name": "http-client", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "Compose HTTP clients using JavaScript's fetch API", | ||
@@ -5,0 +5,0 @@ "author": "Michael Jackson", |
@@ -21,11 +21,9 @@ # http-client [![Travis][build-badge]][build] [![npm package][npm-badge]][npm] | ||
> Node version `>=4` is required. | ||
Then, use as you would anything else: | ||
Then with a module bundler like [webpack](https://webpack.github.io/), use as you would anything else: | ||
```js | ||
// using an ES6 transpiler, like babel | ||
// using ES6 modules | ||
import { fetch, createFetch } from 'http-client' | ||
// not using an ES6 transpiler | ||
// using CommonJS modules | ||
var fetch = require('http-client').fetch | ||
@@ -37,3 +35,3 @@ var createFetch = require('http-client').createFetch | ||
In node, http-client automatically uses the [node-fetch](https://github.com/bitinn/node-fetch) library under the hood so no extra configuration is necessary. Be sure to read about the [known differences](https://github.com/bitinn/node-fetch/blob/master/LIMITS.md) between node-fetch and [the fetch spec](https://fetch.spec.whatwg.org/). | ||
In node, http-client automatically uses the [node-fetch](https://github.com/bitinn/node-fetch) library under the hood so no extra configuration is necessary. You'll need to be running node >= 4. Be sure to read about the [known differences](https://github.com/bitinn/node-fetch/blob/master/LIMITS.md) between node-fetch and [the fetch spec](https://fetch.spec.whatwg.org/). | ||
@@ -66,3 +64,3 @@ The UMD build is also available on [npmcdn](https://npmcdn.com): | ||
http-client also exports a "global" `fetch` function if you need it. | ||
http-client also exports a "global" `fetch` function if you need it (i.e. don't want middleware). | ||
@@ -75,3 +73,3 @@ ## Using Callbacks | ||
All `fetch` functions in `http-client` support a trailing `callback` argument that you can use to handle responses and/or errors just like you're used to doing in node.js. | ||
All `fetch` functions in http-client support a trailing `callback` argument that you can use to handle responses and/or errors just like you're used to doing in node.js. | ||
@@ -78,0 +76,0 @@ ```js |
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
47110
261