Commit Graph

576 Commits

Author SHA1 Message Date
Timothy Gu 25ff99677d Improve Headers' iteration support
Class strings, spec-compliant forEach, etc.
2016-11-23 15:06:30 -08:00
Timothy Gu 4ae42ea5ee Fix class names for prototypes
Per Web IDL specification.
2016-11-23 14:36:21 -08:00
Timothy Gu 25d139a4d0 Officially drop support for 0.10
Current LTS releases are added.
2016-11-23 11:50:36 -08:00
Timothy Gu 049585be11 Revert to cross-env 2.0.1
The Object.assign used in that module is not polyfilled.
2016-11-23 11:43:51 -08:00
Timothy Gu 908bcaac4c Work around istanbul's bug
See istanbuljs/istanbul-lib-instrument#30.
2016-11-23 11:39:18 -08:00
Timothy Gu a355664e64 Update packages 2016-11-23 11:30:01 -08:00
Timothy Gu 31bc2835dd Start using Rollup
Smaller distributed tarball.
2016-11-23 11:18:02 -08:00
Timothy Gu 5fe80dba06 Remove dependency on babel-polyfill
This way the tests can better emulate the real Node.js environment.
2016-11-05 10:26:30 -07:00
Timothy Gu 72d34af6e2 Start test server when executed directly 2016-11-05 09:39:01 -07:00
Timothy Gu 4a9a3246f6 Remove dependency on Node.js' util module
Closes #194.
2016-11-04 21:52:18 -07:00
Timothy Gu 76cb57cace Support WHATWG URL objects
Fixes #175.
2016-10-15 10:19:52 -07:00
Timothy Gu b092a8ed12 Add test for constructing Request with parsed URL object 2016-10-15 10:19:52 -07:00
Timothy Gu 53e1055845 Use Object.create(null) for Headers' internal map
Suggested by @jimmywarting.
2016-10-15 10:03:10 -07:00
Timothy Gu 1b951701ec Remove logic to skip if not HTML in textConverted
As this function is now separated from the general purpose text(), we
should be more specific in our purpose.
2016-10-15 09:41:52 -07:00
Timothy Gu d3b4161d7c Add a new res.textConverted() and always use UTF-8 for res.text()
Also uses iconv-lite directly instead of using the "encoding" package.

Fixes #184.
2016-10-15 09:41:52 -07:00
Timothy Gu c7a912cf5b Merge branch 'master' into v2
Conflicts:
	.gitignore
	package.json
2016-10-15 09:31:58 -07:00
Timothy Gu d708acfb9c Cache node_modules in Travis
[ci skip]
2016-10-15 09:17:47 -07:00
Timothy Gu 8f3e886c7f Switch to Codecov
Fixes #186.
2016-10-15 09:17:47 -07:00
Timothy Gu f829b71ddb Use babel-runtime's Iterator implementation 2016-10-15 08:21:51 -07:00
Timothy Gu 2a7ef63bc4 Add FOLLOW_SPEC mode 2016-10-15 08:21:51 -07:00
Timothy Gu 2cafdcb5e4 Validate headers 2016-10-15 08:21:51 -07:00
Timothy Gu fba873d3fe Make sure to coerce header values to string 2016-10-15 08:21:51 -07:00
Timothy Gu ba226399d4 Construct Headers object in a spec-compliant fashion 2016-10-15 08:21:51 -07:00
Timothy Gu 82c1e78184 Allow constructing Headers with an Array 2016-10-15 08:21:51 -07:00
Timothy Gu a914cca577 Remove all information related to Coveralls 2016-10-13 00:46:01 -07:00
Timothy Gu ba8c392965 Cache node_modules in Travis
[ci skip]
2016-10-13 00:42:26 -07:00
Timothy Gu b9b0341db7 Add Codecov badges and settings 2016-10-13 00:40:36 -07:00
Timothy Gu ea111626e9 Switch to Codecov
Fixes #186.
2016-10-13 00:32:52 -07:00
Timothy Gu 67326e3873 Condense class toString tests 2016-10-12 20:51:19 -07:00
Timothy Gu c2c6550e54 Use loose mode when compiling Babel 2016-10-12 18:18:37 -07:00
Timothy Gu 4d81cb4877 Test @@toStringTag getter of all classes 2016-10-12 17:29:33 -07:00
Timothy Gu 0f65af3fd8 Split Headers iterable test into four 2016-10-12 17:29:33 -07:00
Timothy Gu c3a121a360 Add support for Body#arrayBuffer 2016-10-12 17:29:33 -07:00
Timothy Gu 64e239b092 Improve Body spec compliance when body is null 2016-10-12 17:29:33 -07:00
Timothy Gu 9d3cc52601 Body: store fewer things in the class
Incorporates some changes from #140, by Gabriel Wicke
<gwicke@wikimedia.org>.
2016-10-12 17:29:33 -07:00
Timothy Gu a0be6aa34a Simplify Request constructor
Also make Request more standard compliant:

> The `url` attribute's getter must return request's url, **serialized.**
2016-10-12 17:29:33 -07:00
Timothy Gu 838071247d Convert all files to ES2015 (#182)
Elements of this commit come from #140 by @gwicke.
2016-10-10 11:50:04 -07:00
Timothy Gu 993d4cdea1 Convert Headers to ES2015 and implement Iterable interface (#180)
Closes #127, #174.
2016-10-08 20:51:01 -07:00
Dan Dascalescu e67b3a8579 Fix run-on sentence about Options (#168)
[ci skip]
2016-10-08 13:37:49 -07:00
Chris Veness f30cce86c4 Add 'post JSON' example to readme (#173) 2016-10-08 13:35:19 -07:00
Timothy Gu 2874af4218 Use cross-env@2.0.1 to support Node.js < v4 2016-10-04 03:07:44 -07:00
Timothy Gu 7c26fa9479 Add Babel infrastructure
No actual code has been changed yet.
2016-10-04 02:59:46 -07:00
David Frank 3c053ce327 1.6.3 2016-09-26 14:16:41 +08:00
David Frank 2af4c00a67 be more open in form-data dependency 2016-09-26 14:16:32 +08:00
David Frank 0bc2886d10 Merge pull request #170 from bitinn/form-data-2
* testing both form-data 1.x and 2.x support
* a document for error handling
* changelog update
2016-09-26 14:08:11 +08:00
David Frank 2b9eadd989 changelog update 2016-09-26 14:03:28 +08:00
David Frank ff38361a9e a document for error handling 2016-09-26 14:03:00 +08:00
David Frank d4a225018f changelog update 2016-09-26 13:35:30 +08:00
David Frank 523a6920aa testing both form-data 1.x and 2.x support 2016-09-26 12:58:04 +08:00
David Frank b2e6cca648 1.6.2 2016-09-24 17:53:11 +08:00