David Frank
1daae67e9e
Fix import style to workaround node < 10 and webpack issues. ( #544 )
...
* fix import rule for stream PassThrough
* avoid named export for compatibility below node 10
* compress flag should not overwrite accept encoding header
* doc update
* 2.2.1
2018-11-05 17:42:51 +08:00
Timothy Gu
1d4ab5a0de
Switch to .mjs for ES module output for Node.js compat
...
This also reverts commit 60cf26c2f3
.
2018-07-22 14:06:25 -07:00
Timothy Gu
780598ad72
Harmonize style ( #413 )
2018-03-04 20:29:12 -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 <[email protected] >
2018-02-03 12:12:14 -08:00
Timothy Gu
60cf26c2f3
Use require() for Node.js core modules
...
Fixes : #318
2017-07-27 00:15:32 +08:00
Gajus Kuizinas
4804a40c17
Add a special case for constructing Headers with Headers ( #253 )
...
Fixes : #251 .
2017-03-20 09:22:49 -07:00
Timothy Gu
9e140039ac
Factor out Body mixin
2017-02-26 14:42:09 -08:00
Timothy Gu
f08b120771
Do not inherit from body
...
Per spec, make Body a proper mixin
2017-02-26 14:29:40 -08:00
Timothy Gu
4ae42ea5ee
Fix class names for prototypes
...
Per Web IDL specification.
2016-11-23 14:36:21 -08:00
Timothy Gu
64e239b092
Improve Body spec compliance when body is null
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
Timothy Gu
7c26fa9479
Add Babel infrastructure
...
No actual code has been changed yet.
2016-10-04 02:59:46 -07:00