Commit Graph

159 Commits

Author SHA1 Message Date
Jimmy Wärting 81b1378bb3
feat: export Blob, File and FormData + utilities (#1463)
* feat: export FormData, Blob and Files

* use import from index instead

* sort a-z

* explicit export

* bump version

* xo lint
2022-01-20 21:42:44 +01:00
Gregor Martynus b2f5d8d3fa
ci: semantic-release (#1270)
* ci: semantic-release

* docs(CONTRIBUTING): initial version

* ci(semantic-pull-request): Always validate the PR title, and ignore the commits

* docs(CONTRIBUTING): ammend note on "Create a merge commit" button

* Update CONTRIBUTING.md

* Update semantic.yml
2022-01-20 19:41:36 +01:00
Jimmy Wärting 015798edc6
test: Modernize and convert some test in `main.js` to async/await (#1456)
* convert some test to async/await

* Update main.js

* use await

Co-authored-by: Linus Unnebäck <linus@folkdatorn.se>

* take back should accept custom HoSt header

* remove trailing space

Co-authored-by: Linus Unnebäck <linus@folkdatorn.se>
2022-01-17 21:48:43 +01:00
Jimmy Wärting 1028f83708
test: Update major busboy version (#1457)
* test: update busboy

* make linter happy
2022-01-17 16:37:55 +01:00
Jimmy Wärting 36e47e8a64
3.1.1 release (#1451) 2022-01-16 13:24:18 +01:00
Jimmy Wärting 1493d046bc
core: Don't use global buffer (#1422)
* remove unused file

* two test is coveraged by the Uint8Array test

* use arrayBuffer to test base64 instead

* avoid testing buffer

* avoid using Buffer

* import buffer module

* use one same textEncoder

* import stream consumer that can test iterable objects

* fix a test

* fix test where type should be empty
2021-12-21 20:34:30 +01:00
Jimmy Wärting 30c3cfe1d2
update fetch-blob (#1371) 2021-11-10 16:46:19 +01:00
Jimmy Wärting 109bd21313
release minor change (3.1.0) (#1364) 2021-11-08 19:13:47 +01:00
Jimmy Wärting 3944f24770
feat(Body): Added support for `BodyMixin.formData()` and constructing bodies with FormData (#1314)
Added support for body toFormData
2021-11-08 12:51:49 +01:00
dependabot[bot] 0a672754ce
Bump mocha from 8.4.0 to 9.1.3 (#1339)
Bumps [mocha](https://github.com/mochajs/mocha) from 8.4.0 to 9.1.3.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v8.4.0...v9.1.3)

---
updated-dependencies:
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-04 22:33:53 +01:00
dependabot[bot] 300eb56732
Bump data-uri-to-buffer from 3.0.1 to 4.0.0 (#1319)
Bumps [data-uri-to-buffer](https://github.com/TooTallNate/node-data-uri-to-buffer) from 3.0.1 to 4.0.0.
- [Release notes](https://github.com/TooTallNate/node-data-uri-to-buffer/releases)
- [Commits](https://github.com/TooTallNate/node-data-uri-to-buffer/compare/3.0.1...4.0.0)

---
updated-dependencies:
- dependency-name: data-uri-to-buffer
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-27 12:13:38 +02:00
Jimmy Wärting 2603c67f18
V3 stable release (#1257)
* making v3 stable
2021-08-31 17:54:19 +02:00
Antoni Kepinski b50fbc1057
Require Node.js 12.20.0 and move to ESM (#1141)
* Use ESM import in runkit example file

* Update dependencies, version and transition to ESM

* Use ESM imports, add ESM-related info

* Remove rollup

* Lint TypeScript-related files

* Update dependency

* Lint & update dependency

* Lint

* Remove commonjs tests

* chore: update changelog

* Remove commonjs GitHub action

* Update funding.yml

* Update linter rules

* Lint

* Fix tsd

* Remove unnecessary types

* Simplify

* Use top-level await

* Update GitHub Actions

* Use Mocha with ESM

* Revamp

* specify what node version

* update formdata-node dep

* remove lint from example using top await

* updated name and link to formdata-polyfill

* Stop recommend form-data

* filter example - it has many duplicate variables

* Update type definitions to ESM

* Remove unused lint rule disable comment

* Remove leftover rollup and dist folder

* updated depn

* updated d.ts

* lint

* Fix breaking changes with blob v3 stream()

* revert eslint comment

* revert back to xo 0.39

Don't want to deal with all those new rules right now. will fix it later
fixed some of them...

* none TS fan trying to fix type definition

* Give me a break

* Test on all minimum supported Node.js versions (#1170)

* Test on all minimum supported Node.js versions

* Tweak Node.js workaround version range

* Handle Node.js 16 aborted error message

* fix node version string compare

Co-authored-by: Jimmy Wärting <jimmy@warting.se>

* bumped fetch-blob version

* import from dom lib

* rm unused comment

* updated required version in docs

* fixed named import

* set lowest support to 12.20.0

* comment explaining both

* rm log

Co-authored-by: Jimmy Wärting <jimmy@warting.se>
Co-authored-by: Linus Unnebäck <linus@folkdatorn.se>
2021-07-18 22:15:19 +02:00
Travis D. Warlick, Jr d8fc32d6b2
Fully test both AbortController implementations, Bump abortcontroller-polyfill to 1.7.1 (#1065) 2021-03-04 10:01:38 -05:00
Antoni Kepinski 7d190b46f8
update dependencies 2020-09-05 14:49:09 +02:00
Antoni Kepinski 53b40fb3ea
update version number 2020-09-05 14:46:35 +02:00
Antoni Kepinski 64c5c296a0
Release 3.0.0-beta.8 (#912)
Co-authored-by: Richie Bendall <richiebendall@gmail.com>
2020-08-10 10:39:52 +02:00
Rhys Evans b7076bb24f
Export package.json (#908)
* Export package.json

* Correct exports structure to support multiple modules
2020-08-07 00:10:06 +02:00
dependabot-preview[bot] 8fed3137f8
Bump tsd from 0.11.0 to 0.13.1 (#895)
Bumps [tsd](https://github.com/SamVerschueren/tsd) from 0.11.0 to 0.13.1.
- [Release notes](https://github.com/SamVerschueren/tsd/releases)
- [Commits](https://github.com/SamVerschueren/tsd/compare/v0.11.0...v0.13.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-09 16:09:46 +02:00
Konstantin Vyatkin 0f0e6253ae
remove parted dependency (#883) 2020-06-13 11:43:45 +02:00
Konstantin Vyatkin 96431ed4a1
remove string-to-arraybuffer (#882) 2020-06-13 03:13:50 -04:00
Konstantin Vyatkin 1fdc218a64
fix window.fetch (#875) 2020-06-11 15:52:02 -04:00
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
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 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
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 9b28c86d96
release critical fix 2020-05-25 19:28:37 +02:00
Antoni Kepinski aab3c605eb
bump version 2020-05-25 17:20:25 +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 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
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 ca690de1e0
update dependencies 2020-05-23 23:27:10 +02: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 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
Richie Bendall a5cdc147f2
Update XO
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
2020-05-06 23:56:49 +12:00
Antoni Kepinski 4f73c8a766
bump beta version & update devDependencies 2020-04-22 11:40:46 +02:00
Antoni Kepinski 3cdda5baa0
lint types 2020-04-21 11:16:17 +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
Antoni Kepinski 6e1b579ce0
lint 2020-04-15 11:11:52 +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
Antoni Kepinski 8f3c540794
fix coverage report & update scripts 2020-04-14 11:59:32 +02:00