Timothy Gu
6a9828e0b5
Update CHANGELOG
2018-03-04 20:43:54 -08:00
Timothy Gu
c7765c4498
Merge remote-tracking branch 'origin/master'
2018-03-04 20:42:55 -08:00
Timothy Gu
ccaeae096f
v2.1.0
2018-03-04 20:41:56 -08:00
Timothy Gu
780598ad72
Harmonize style ( #413 )
2018-03-04 20:29:12 -08:00
Timothy Gu
119138ef64
Update existing algorithm step numbers
2018-03-04 20:25:16 -08:00
Timothy Gu
35722f19e5
Significant rework of redirection
...
- Handle Location-less redirect like non-redirect response.
- Include bodies when redirecting to non-POST 301/302 and all 307/308
response.
Co-authored-by: Gregor Martynus <gregor@martynus.net>
2018-03-04 20:25:16 -08:00
Gregor Martynus
fc539951ca
Support ArrayBuffer as body ( #408 )
2018-03-04 16:40:39 -08:00
Timothy Gu
feae6d6ec8
Ignore illegal HTTP headers
...
Fixes : #411
2018-03-04 13:12:36 -08:00
Timothy Gu
1592ca1148
Use caseless Headers handling
...
This is unfortunately impossible to test, since the Node.js HTTP library
lower-cases all incoming headers. However, this matters for outgoing
HTTP requests. See the linked issues from the linked Fetch Standard pull
request.
See: https://github.com/whatwg/fetch/pull/476
2018-03-04 13:03:48 -08:00
Timothy Gu
a8f6d79c39
Simplify header validity check
...
See: nodejs/node@9f55eac346
See: nodejs/node@862389b0aa
2018-03-04 12:21:40 -08:00
Timothy Gu
c0950b7b9f
v2.0.0
2018-02-03 12:34:24 -08:00
Timothy Gu
44c67b11a3
Add docs for v2.x
2018-02-03 12:33:32 -08:00
Timothy Gu
b1cd2dd438
Better compliance with Web IDL
...
- Make read-only attributes actually read-only
- Set @@toStringTag on the prototype only
- Make prototype methods/getters enumerable
Based on #354 .
Co-authored-by: Benjamin Seber <seber@synyx.de>
2018-02-03 12:12:14 -08:00
Timothy Gu
dccef32e81
Refactor tests
2018-02-03 12:11:50 -08:00
Timothy Gu
bc6f0da3ac
Remove Blob#close per spec change
...
See https://github.com/w3c/FileAPI/pull/68 .
2018-02-03 11:19:32 -08:00
Timothy Gu
8c7c179fef
Add some more internal API docs
2018-02-03 11:19:32 -08:00
Timothy Gu
5774bf4229
Update dependencies
2018-02-03 11:19:31 -08:00
Moritz
19b115f9dc
Add error event hander for the body stream even if the body isn't accessed ( #379 )
...
Fixes #378
2018-01-27 11:20:05 -08:00
David Frank
a9c76c19ac
adding comment to recommend 2.x branch ( #367 )
2017-11-22 17:55:39 +08:00
David Frank
3345b652e4
fix a small oversight in request class
...
lowercase method name does not trigger type error properly (#362 )
2017-11-19 12:44:02 +08:00
David Frank
6192398c46
Travis CI fix ( #366 )
...
* a quick test to see if we can drop npm install before script
* adding node 8 lts
2017-11-19 12:22:28 +08:00
David Frank
d1a3b1ee34
2.0.0-alpha.9
...
* changelog update
2017-09-24 13:46:17 +08:00
Timothy Gu
cf5975cb5c
Support TypeScript import ( #332 )
...
Fixes #307 .
2017-09-24 13:06:41 +08:00
Johnny Hauser
e2603d31c7
add browser.js to npm published files ( #343 )
2017-09-20 01:18:49 -07:00
Timothy Gu
e7c1ef88ed
Update deps ( #320 )
2017-07-28 12:12:54 +08:00
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