Commit Graph

479 Commits

Author SHA1 Message Date
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
Richie Bendall ebbf45cc67
refactor: Use built-in AbortSignal for typings (#747)
* refactor: Use built-in AbortSignal for typings

Signed-off-by: Richie Bendall <richiebendall@gmail.com>

* lint

* chore: Update dependencies

Signed-off-by: Richie Bendall <richiebendall@gmail.com>

Co-authored-by: Antoni Kepinski <xxczaki@pm.me>
2020-04-14 14:22:40 +02:00
Richie Bendall d15476bb5d
Compile CJS modules as a seperate set of files (#778)
* Switch to seperate babel compilation

Signed-off-by: Richie Bendall <richiebendall@gmail.com>

* resolve merge conflict

* add missing devDependency

* fix wrong name

* Specify ES version under `module` property and specify `sideEffects`

Co-authored-by: Antoni Kepinski <xxczaki@pm.me>
2020-04-14 13:03:24 +02:00
Max Dumas 736baf300b
fix: Import URL and URLSearchParams in typings (#761)
This change adds an explicit import for the URL and URLSearchParams typings from the Node standard library `'url'` module.

This was needed to prevent the TypeScript compiler from issuing errors when compiling against targets where URL and URLSearchParams are not ambiently available.

Co-authored-by: Antoni Kepinski <xxczaki@pm.me>
2020-04-14 12:20:02 +02:00
Antoni Kepinski 766204fede
update coverage badge 2020-04-14 12:03:27 +02:00
Antoni Kepinski 8f3c540794
fix coverage report & update scripts 2020-04-14 11:59:32 +02:00
Antoni Kepinski 5ecb48eec6
add @pika/plugin-build-node to @pika/pack pipeline 2020-04-13 16:48:21 +02:00
Saksama Terminal 33532c29e0
fix: Ensure search parameters are included in URL path (#759)
* fix search params missing from url path

* fix search params missing from url path

* Trigger travis ci

Co-authored-by: Antoni Kepinski <xxczaki@pm.me>
2020-04-13 16:23:26 +02:00
Antoni Kepinski b1bd179891
update dependencies 2020-04-13 13:42:53 +02:00
Antoni Kepinski 55b6004581
lint 2020-04-13 13:42:35 +02:00
Richie Bendall bb9c96de80
Fix indention
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
2020-04-04 17:07:01 +13:00
Antoni Kepinski c167190c6e
revert fix: Properly export fetch 2020-03-28 19:03:23 +01:00