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
Moni
73b7a08974
Add link for license ( #794 )
2020-05-08 10:28:14 +12:00
Richie Bendall
a5cdc147f2
Update XO
...
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
2020-05-06 23:56:49 +12:00
Richie Bendall
553bb5dc56
Export `AbortError` ( Fixes : #792 )
...
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
2020-05-06 23:47:43 +12:00
Moni
3fd3da8c94
fix whitespace
2020-05-01 15:07:54 -04:00
Antoni Kepinski
2a61567ac3
link the mentioned issue
2020-04-22 11:52:33 +02:00
Antoni Kepinski
4f73c8a766
bump beta version & update devDependencies
2020-04-22 11:40:46 +02:00
Antoni Kepinski
4f69cb796d
revert change
2020-04-22 11:40:30 +02:00
Antoni Kepinski
177fc45793
add changelog for `v3.0.0-beta.5`
2020-04-22 11:40:25 +02:00
Antoni Kepinski
3cdda5baa0
lint types
2020-04-21 11:16:17 +02:00
Antoni Kepinski
605a25a3c5
remove obsolate config file
2020-04-21 11:10:02 +02:00
Antoni Kepinski
c81531d73b
Replace isomorphic-fetch with isomorphic-unfetch (no longer maintained)
2020-04-20 22:03:25 +02:00
Antoni Kepinski
631a4b2437
fix question mark stripped from url when no params are given (#7… ( #782 )
...
* fix question mark stripped from url when no params are given (#776 )
* add more tests
* whitespace
* modify the server to handle the new tests
Co-authored-by: dzek69 <git-public@dzek.eu>
2020-04-20 21:42:51 +02:00
Artem Bykov
9250a1e155
Fix the path to tests file in error handling doc ( #781 )
2020-04-20 18:04:38 +02:00
Antoni Kepinski
6e1b579ce0
lint
2020-04-15 11:11:52 +02:00
John Lees-Miller
3898eff16c
docs: Add more complete stream download example ( #645 )
...
* Add more complete stream download example
* Change header size
Co-authored-by: Antoni Kepinski <xxczaki@pm.me>
2020-04-15 11:00:15 +02:00
Antoni Kepinski
7c6031f4c1
docs: update information about cookies
2020-04-15 10:53:59 +02:00