David Frank
863449de2e
Merge pull request #319 from bitinn/v2-alpha-8
...
prepare next release (alpha.8)
2017-07-27 01:09:52 +08:00
David Frank
ec852307f2
prepare next release, and start to take note in changelog on what each alpha release fixes
2017-07-27 00:43:40 +08:00
Timothy Gu
60cf26c2f3
Use require() for Node.js core modules
...
Fixes : #318
2017-07-27 00:15:32 +08:00
David Frank
2edb4c0266
2.0.0-alpha.7
2017-07-25 12:10:11 +08:00
David Frank
721a9aa6b6
Merge pull request #315 from bitinn/fix-test
...
Fix test cases for #314 , #292
2017-07-22 21:26:50 +08:00
David Frank
9bd099a779
workaround slow nodejs 8 spawn on travis ci by increasing timeout for test cases
2017-07-22 21:11:25 +08:00
David Frank
70cd403914
do not make request to example.com, use local server instead, avoid UnhandledPromiseRejectionWarning altogether
2017-07-22 21:04:59 +08:00
David Frank
a89bd94545
Merge pull request #308 from jkantr/exclude-node-5
...
explicitly exclude node 5 from engines directive
2017-07-22 20:39:12 +08:00
David Frank
2b359c1ea1
V2 alpha.6 ( #313 )
...
2.0.0-alpha.6
* changelog update for new release
* version bump
2017-07-22 01:59:59 +08:00
jared kantrowitz
76506a8b2b
explicitly exclude node 5 from engines directive
2017-07-07 14:04:30 -04:00
Jared Kantrowitz
432cd8a31e
remove `encoding` as a dependency, throw detailed Error if not installed ( #302 )
...
* remove `encoding` as a dependency, throw descriptive Error if textConverted() is used without it in env
* remove rollup ext dep resolution since we don't need it
* switch to programmer error, rm unneeded test conditions, bump timeout for slow CI
* more kill `encoding` dep PR changes
keep blank "dependencies" prop in package.json so rollup's external config func doesn't seize
add ext dep checks back to the rollup config
no implicit var
clarify test comment
* [squash] alter travis cfg to test with and without `encoding`, various
fix devDeps
separate `encoding` tests to their own block
* [squash] fixing nits
* [squash] ci: full matrix of form-data versions and encoding existence
and nits
2017-07-02 12:32:48 -04:00
Jared Kantrowitz
76e8ad8b24
refactor deprecated `new Buffer` with Buffer.from and Buffer.alloc ( #299 )
...
* refactor deprecated `new Buffer` with Buffer.from and Buffer.alloc
* don't need new ArrayBuffer instance when already an ArrayBuffer
2017-06-19 20:41:05 -04:00
jared kantrowitz
6b990d0631
use synchronous try/catch to fix codecov missing lines
2017-06-19 20:31:15 -04:00
jared kantrowitz
1804041726
wrap JSON.parse's SynaxError with FetchError
2017-06-19 20:31:15 -04:00
Jared Kantrowitz
553d50e804
Accept URLSearchParams as body ( #297 )
...
Fixes : #296
2017-06-12 13:29:50 +08:00
David Frank
fa58aa0ab1
Merge pull request #291 from bitinn/2.x-npm-5-release
...
2.0.0-alpha.5 release
2017-06-03 20:21:46 +08:00
David Frank
062763a110
2.0.0-alpha.5
2017-06-03 18:47:44 +08:00
David Frank
5060ac10f1
Merge pull request #289 from bitinn/2.x-fix-tests-for-node-8
...
2.x branch: fix testcases for node 8 and npm 5
2017-06-03 18:18:34 +08:00
David Frank
fdc2344b63
changelog update
2017-06-03 18:08:33 +08:00
David Frank
c24d591794
fix test server for node 8, which changes keepalive connection handling
2017-06-03 18:01:13 +08:00
David Frank
a2b032c0df
switch from prepublish to prepare in package.json, also ignore npm 5 lock file
2017-06-03 17:59:26 +08:00
David Frank
0674a0b544
Merge pull request #280 from bitinn/readme-update
...
Update README.md
2017-05-24 13:21:31 +08:00
David Frank
31c3a7f95c
Merge pull request #281 from bitinn/changelog-update
...
Update CHANGELOG.md
2017-05-24 13:21:23 +08:00
David Frank
ed2f241df7
Update README.md
...
point to actual readme instead
2017-05-24 13:15:28 +08:00
David Frank
c02f09c60d
Update CHANGELOG.md
...
mention 1.x changelog, so we don't have to update changelog file on both branch.
2017-05-24 13:13:50 +08:00
David Frank
b38e4a4257
Update README.md
...
point people to the new 1.x branch readme and changelog
2017-05-24 13:09:32 +08:00
David Frank
e225c6ce2f
Merge pull request #277 from bitinn/readme-update-3
...
Update README.md
2017-05-20 12:19:25 +08:00
David Frank
0fff17fbe9
Update README.md
...
Actually fix the readme this time...
2017-05-20 12:15:24 +08:00
David Frank
05f8de4548
Merge pull request #276 from bitinn/readme-update
...
Mention 2.x alpha in the main readme
2017-05-15 20:34:01 +08:00
David Frank
38d75d5a1f
Mention 2.x alpha in the main readme
2017-05-15 20:24:52 +08:00
David Frank
9cea8719eb
Merge pull request #275 from bitinn/v2-alpha-4
...
2.0.0 alpha 4
2017-05-15 20:09:24 +08:00
David Frank
2d986a7999
get ready for alpha 4 release
2017-05-15 19:47:12 +08:00
David Frank
770388db1b
only enable Z_SYNC_FLUSH for gzip response
2017-05-15 19:45:04 +08:00
David Frank
2a1a565641
Merge pull request #271 from bitinn/fix-package-json
...
Use full filename at browser field
2017-05-12 13:10:40 +08:00
David Frank
a170290460
Use full filename at browser field
2017-05-12 13:04:51 +08:00
David Frank
1dba86665a
Merge pull request #264 from m59peacemaker/master
...
use browser natives when bundled for the browser
2017-05-12 13:00:44 +08:00
David Frank
7fb7ea52a8
Merge pull request #267 from AlexTes/patch-1
...
Document response.ok convenience property
2017-05-12 12:09:04 +08:00
David Frank
524d237e55
Merge pull request #269 from AlexTes/patch-2
...
Small improvements to the error-handling wording
2017-05-12 12:07:15 +08:00
Alexander Tesfamichael
1797181feb
Small improvements to the error-handling wording
2017-05-11 10:02:28 +02:00
Alexander Tesfamichael
70e8483ac6
Document response.ok convenience property
2017-04-30 19:59:33 +02:00
Johnny Hauser
5f02f36500
use browser natives when bundled for the browser
2017-04-09 13:42:50 -05:00
Kat Marchán
e5ff203ef4
Revert "Allow passing agent option as an object ( #236 )" ( #263 )
...
This reverts commit ec29e3d264
.
This patch prevents any agent being passed in which is not explicitly
an instance of `http.Agent`. This makes `node-fetch` no longer
compatible with https://npm.im/proxy-agent , which is one example of a
library that does not directly inherit from `http.Agent` directly.
Sorry for the revert -- I don't have an alternative patch because I
don't believe this is something node-fetch should be doing
automatically, because of how much of a limitation this could impose.
The original PR stated that this was to prevent requiring http/https,
and the effect would effectively be to force creation of an Agent on
every call. Note that this is already the behavior specified for
http.Agent when http.request received `false`. (See the bottom of the
[section on http.Agent in the Node
docs](https://nodejs.org/dist/latest-v7.x/docs/api/http.html#http_class_http_agent ).
Cheers, and with apologies to @ahmadnassri for reverting their PR.
2017-04-08 18:33:46 -07:00
Ahmad Nassri
ec29e3d264
Allow passing agent option as an object ( #236 )
2017-04-03 02:54:31 -07:00
Kat Marchán
09f2e30557
headers.get: add space to join ( #257 )
...
The behavior was changed in whatwg/fetch#504 .
2017-04-02 08:43:46 -07:00
Gajus Kuizinas
4804a40c17
Add a special case for constructing Headers with Headers ( #253 )
...
Fixes : #251 .
2017-03-20 09:22:49 -07:00
Grzegorz Graczyk
a1e76b97e1
More lenient gzip decompression ( #239 )
...
Ref: https://github.com/nodejs/node/issues/8701#issuecomment-268224481
Ref: https://github.com/request/request/issues/2482
Ref: https://github.com/request/request/pull/2492
Fixes: http://www.mantovanispa.it
Fixes : #139
2017-02-27 10:02:45 -08:00
Timothy Gu
047799b742
Remove babel-plugin-transform-runtime
2017-02-26 21:56:29 -08:00
Timothy Gu
da159b9547
Prettify .babelrc
2017-02-26 21:54:54 -08:00
Timothy Gu
eb1959ed09
Drop babel-runtime
...
Fixes #243 .
2017-02-26 21:46:53 -08:00
Timothy Gu
397eab7757
compress: use spec nomenclature
2017-02-26 21:27:27 -08:00