Commit Graph

525 Commits

Author SHA1 Message Date
Konstantin Vyatkin 91155d6be6
fix: min semver Node version (#874)
* fix semver node version

* add package.json to editorconfig
2020-06-11 15:27:45 -04:00
Antoni Kepinski 2c005872ae
Release 3.0.0-beta.7 (#869) 2020-06-11 11:29:21 +02:00
Nick K a38b533ad6
feat: Implement form-data encoding (#603)
Co-authored-by: Steve Moser <contact@stevemoser.org>
Co-authored-by: Antoni Kepinski <xxczaki@pm.me>
Co-authored-by: Richie Bendall <richiebendall@gmail.com>
Co-authored-by: Konstantin Vyatkin <tino@vtkn.io>
Co-authored-by: aeb-sia <50743092+aeb-sia@users.noreply.github.com>
Co-authored-by: Nazar Mokrynskyi <nazar@mokrynskyi.com>
Co-authored-by: Erick Calder <e@arix.com>
Co-authored-by: Yaacov Rydzinski <yaacovCR@gmail.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-10 22:31:35 +02:00
Konstantin Vyatkin 2d796bde76
upgrade fetch-blob to 1.0.7 (#870)
Co-authored-by: Antoni Kepinski <xxczaki@pm.me>
2020-06-10 21:14:32 +02:00
Richie Bendall e945b6b846
Update logging statement for commonjs artifact testing (#868) 2020-06-10 08:30:07 -04:00
Konstantin Vyatkin 8f406b789a
chore: remove code duplication in custom errors (#842)
* remove code duplication in custom errors

* check using base class
2020-06-10 07:17:35 -04:00
Konstantin Vyatkin 1cb9070cce
[Spec] Should check body _source_ on redirect (#866)
* correct stream tests

* bump Node.JS min to 10.17

* lint
2020-06-10 07:16:51 -04:00
Konstantin Vyatkin df1a4fafa9
fix: Correct Node versions were not installed on test matrix (#846)
* fix Node install and add engines

* use minimum-node-version
2020-06-09 20:26:24 -04:00
Konstantin Vyatkin 5c909797d6
Polyfill `http.validateHeaderName` and `http.validateHeaderValue` (#843)
* prefer native node function

* use RegExp from Node 14.3
2020-06-09 19:51:22 -04:00
arc298 1973503453
fix: updates README to use correct response variable in Advanced Usage (#862)
Co-authored-by: arc298 <rarcega@users.noreply.github.com>
2020-06-05 22:24:32 +02:00
Moni d351058cae
Update Url (#864) 2020-06-05 19:00:13 +02:00
Matti Schneider b121feb8f5
Fix Headers import statement (#859) 2020-06-04 13:33:22 -04:00
Christian Kruse af7e67f504
Add insecureHTTPParser Parameter (#856)
Keep whitespace consistent
2020-06-04 11:54:02 -04:00
Konstantin Vyatkin 69d25b904a
Fix Data URI handling and drop all URL analysis RegExps (#853)
* add breaking test
* don't use RegExp for URLs
2020-05-31 11:15:27 -04:00
Moni dd7811e7e8
Enable blank issue creation (#850) 2020-05-30 16:30:13 +12:00
Konstantin Vyatkin bab5fdc088
Create Code of Conduct (#849)
Doing my compulsory social work as my apologies over two inappropriate tone comments in recent PRs. Not sure which email address we should put here for enforcement, so, I've put @jimmywarting who very politely called my attention on this matter.
2020-05-29 18:46:08 +02:00
Konstantin Vyatkin 7b376a0266
remove tsc from dependencies (#847) 2020-05-29 08:46:02 +02:00
Maxime LUCE e6bfe4d419
fix: improve TypeScript types (#841)
* fix: improve TypeScript types

* fix: disable allowSyntheticDefaultImports and esModuleInterop

* fix: improve HeadersInit types (js/ts)

* fix: fully match types to build index.cjs

* fix: allow Iterable<Iterable<string>> in HeadersInit
2020-05-28 20:41:26 -04:00
Konstantin Vyatkin 769f75d054
Drop custom Promises and refactor to `async` functions (#845)
* refactor to async

* no custsom promises anymore

* restore server premature handler

* simplify

* fixing break

* lint

* remove promise dependency

* fix docs
2020-05-28 23:57:57 +02:00
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