Konstantin Vyatkin
966a4c3c78
Test CommonJS build artifact ( #838 )
...
* common js artefact build
* add GitHub Action
2020-05-26 15:50:51 +02:00
Antoni Kepinski
d1691f990a
update changelog
2020-05-25 19:31:44 +02:00
Antoni Kepinski
9b28c86d96
release critical fix
2020-05-25 19:28:37 +02:00
Antoni Kepinski
079b11e257
fix: export
2020-05-25 19:20:30 +02:00
Antoni Kepinski
aab3c605eb
bump version
2020-05-25 17:20:25 +02:00
Antoni Kepinski
dfa32f91a6
Update CHANGELOG.md
2020-05-25 17:16:10 +02:00
Antoni Kepinski
fa627f4b0c
Follow xo linter rules more strictly ( #829 )
...
Co-authored-by: Moni <40552237+NotMoni@users.noreply.github.com>
2020-05-25 17:11:56 +02:00
Konstantin Vyatkin
b3878b9a3e
Fix default user agent string ( #818 )
...
Co-authored-by: Antoni Kepinski <xxczaki@pm.me>
2020-05-25 16:56:04 +02:00
Konstantin Vyatkin
ca4703dd15
revamp Headers module ( #834 )
...
Co-authored-by: Antoni Kepinski <xxczaki@pm.me>
2020-05-25 16:43:10 +02:00
Richie Bendall
94e5b92de1
Remove `timeout` option ( #831 )
2020-05-25 13:30:05 +02:00
Konstantin Vyatkin
4824abe41a
Breaking: Revamp TypeScript declarations ( #810 )
...
* revamp types
* add GitHub Action for TypeScript check
Co-authored-by: Linus Unnebäck <linus@folkdatorn.se>
Co-authored-by: Antoni Kepinski <xxczaki@pm.me>
2020-05-24 11:58:51 -04:00
Antoni Kepinski
eb8c89c030
Update CHANGELOG.md
2020-05-24 16:59:28 +02:00
Antoni Kepinski
a1673bf148
Update CHANGELOG.md
2020-05-24 13:05:04 +02:00
Antoni Kepinski
a3cee3f6e7
Merge branch 'master' of https://github.com/node-fetch/node-fetch
2020-05-24 12:17:13 +02:00
Antoni Kepinski
498710d555
make sure the default `highWaterMark` equals 16384
2020-05-24 12:16:34 +02:00
Richie Bendall
26966e561d
Simplify test delaying
...
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
2020-05-24 17:36:22 +12:00
Antoni Kepinski
a6a933fa5a
ignore rule
2020-05-24 00:30:41 +02:00
Antoni Kepinski
c822ff4719
Replace istanbul ignore next with c8 ignore next
2020-05-24 00:28:17 +02:00
Antoni Kepinski
ca690de1e0
update dependencies
2020-05-23 23:27:10 +02:00
Antoni Kepinski
07eb549054
Update CHANGELOG.md
2020-05-23 19:46:46 +02:00
Konstantin Vyatkin
924c12244a
use proper class inheritance ( #828 )
2020-05-23 13:41:14 -04:00
Antoni Kepinski
65d1754bb6
Update CHANGELOG.md
2020-05-23 19:35:49 +02:00
Konstantin Vyatkin
ead6b458e9
normalize export ( #827 )
2020-05-23 13:32:10 -04:00
Jonathan Stewmon
bea4a7cb73
fix: Settle `consumeBody` promise when the response closes prematurely ( #768 )
...
The stream.finished function is used consolidate the terminal cases.
The writable option must be set to false, since the body stream is
a Duplex stream, but our terminal cases only apply to the Readable side.
2020-05-23 08:28:38 -04:00
Moni
99582672e7
Add issue configuration ( #826 )
...
* added config for issues
* Update grammar
Co-authored-by: Richie Bendall <richiebendall@gmail.com>
2020-05-23 08:26:55 -04:00
Moni
1bd848b632
Update pull request template ( #825 )
...
* update pr template
* Update formatting
* Use checkboxes
Co-authored-by: Richie Bendall <richiebendall@gmail.com>
2020-05-23 08:26:34 -04:00
Konstantin Vyatkin
dde507cef7
Remove guard for Stream.Readable.destroy ( #824 )
2020-05-23 12:00:31 +02:00
Antoni Kepinski
937a254eea
Normalize badges style
2020-05-23 11:59:12 +02:00
Konstantin Vyatkin
a4293c22ae
remove custom isArrayBuffer ( #822 )
2020-05-23 00:00:20 -04:00
Konstantin Vyatkin
07c6b7490d
Move `isRedirect` function to a seperate file ( #821 )
...
* fix isRedirect export
Co-authored-by: Richie Bendall <richiebendall@gmail.com>
2020-05-23 00:00:02 -04:00
Moni
6a008c6a03
Add support issue template ( #814 )
...
* added template for support issues
* Update formatting
* Update grammar
Co-authored-by: Richie Bendall <richiebendall@gmail.com>
2020-05-22 23:29:23 -04:00
Moni
81ce2a2e8f
Add pull request template ( #815 )
...
* pr template
* Update information
Co-authored-by: Richie Bendall <richiebendall@gmail.com>
2020-05-22 23:28:41 -04:00
Moni
aa11ec753f
Add bug report issue template ( #811 )
...
* use a bug report issue template for consistency
* added ladybug emoji
* remove comment
Co-authored-by: Tim Oram <dev@mitmaro.ca>
* remove comment
Co-authored-by: Tim Oram <dev@mitmaro.ca>
* remove comment
Co-authored-by: Tim Oram <dev@mitmaro.ca>
* Cleanup formatting
* Remove initial header
Co-authored-by: Tim Oram <dev@mitmaro.ca>
Co-authored-by: Richie Bendall <richiebendall@gmail.com>
2020-05-22 23:27:31 -04:00
Moni
187ec6fe81
Add feature request issue template ( #816 )
...
* added feature issue template
* Update grammar
Co-authored-by: Richie Bendall <richiebendall@gmail.com>
2020-05-22 23:26:32 -04:00
Konstantin Vyatkin
463c417fd7
fixe glob pattern ( #823 )
2020-05-22 23:10:11 -04:00
Konstantin Vyatkin
28655e1390
Add Brotli support in Request ( #819 )
...
* document and request brotli
* Document different minimum version
Co-authored-by: Richie Bendall <richiebendall@gmail.com>
2020-05-22 22:48:14 -04:00
Konstantin Vyatkin
912348d5dc
Fix GitHub Actions ( #820 )
...
* fix test command
* use action for coverage upload
* specify branch
* limit paths
* forgot install
* fix badge
* don't need a workaround for Node 10
* shorten CI name
2020-05-22 21:42:48 -04:00
Konstantin Vyatkin
c0a977c549
Build on push to master for badge / coverage
2020-05-22 16:40:33 -04:00
Moni
29d7556870
Move to Github Actions ( #785 )
...
* Move to Github Actions
* remove Travis in favor of GitHub Actions
Signed-off-by: Moni <40552237+NotMoni@users.noreply.github.com>
Co-authored-by: Linus Unnebäck <linus@folkdatorn.se>
Co-authored-by: Konstantin Vyatkin <tino@vtkn.io>
2020-05-22 16:35:14 -04:00
Jonathan Stewmon
63d3663466
fix: disambiguate timeout behavior for response headers and body ( #770 )
...
There is a single timeout option which applies to both the receiving of
response headers and the receiving of the entire response body. Once
the response is received, the socket timeout must be cleared to allow
the timeout to apply to the receiving of the entire response body.
Without clearing the socket timeout, if the nearing the idle timeout
when the Promise for the body is created, then the request's timeout
handler will abort the request, emitting ERR_STREAM_PREMATURE_CLOSE in
the body Promise.
By clearing the socket timeout once the response headers are received,
the timeout for the entire body can be started when the body is awaited.
Since the request will no longer be aborted by the socket timeout,
destroy is called on the body to prevent it continuing to emit data
events.
2020-05-22 15:19:05 -04:00
Richie Bendall
f62376cff7
Update copyright information
...
Fixes #812
2020-05-22 13:41:51 +12:00
Antoni Kepinski
c31e620134
Update CHANGELOG.md
2020-05-21 11:12:52 +02:00
Konstantin Vyatkin
0f97d62844
drop Babel (while keeping ESM) ( #805 )
...
* drop Babel
* fix lint
* just to trigger CI
* Update package.json
Co-authored-by: Linus Unnebäck <linus@folkdatorn.se>
* fix all imports
* coverage only from Node 14.x
* remove esm
* restore travis
* fix lint
Co-authored-by: Linus Unnebäck <linus@folkdatorn.se>
2020-05-21 02:50:31 -04:00
Paul
6e12fe22ad
Fix example using `file-type` ( #804 )
2020-05-18 16:17:14 +12:00
Antoni Kepinski
8a3d2638ae
Merge branch 'master' of https://github.com/node-fetch/node-fetch
2020-05-17 19:03:39 +02:00
Antoni Kepinski
c070ffee7e
docs: improve readability
2020-05-17 19:03:31 +02:00
Antoni Kepinski
fd62e1a204
Kb -> kB
2020-05-17 18:52:09 +02:00
Antoni Kepinski
fd53bcaee3
update beta.6 changelog
2020-05-17 18:51:24 +02:00
Antoni Kepinski
7d36f3b247
Improve coverage ( #779 )
2020-05-17 15:28:26 +02:00
Antoni Kepinski
0936a9af0a
fix: change Mb to MB
2020-05-11 12:21:57 +02:00