Commit Graph

18 Commits

Author SHA1 Message Date
Maxim Mazurok 7b86e946b0
fix: release "Allow URL class object as an argument for fetch()" #1696 (#1716) 2023-03-11 11:47:05 +01:00
Maxim Mazurok e093030b4a
Allow URL class object as an argument for fetch() (#1696)
* allow to fetch URL

* address comments
2023-01-09 18:00:27 +01:00
Khafra 55a4870ae5
feat: add static Response.json (#1670)
* feat: add static Response.json

* fix: set content-type if it doesn't exist properly
2022-11-10 22:46:51 +01:00
Mike bcfb71c7d1
chore: remove triple-slash directives from typings (#1285) (#1287) 2022-07-13 20:39:44 +02:00
Jimmy Wärting a4ea5f9308
fix: add missing formdata export to types (#1518)
* fix: add missing formdata export to types

closes #1517 1517
2022-03-07 11:56:34 +01:00
David Glasser 9014db7998
types: support `agent: false` (#1502)
The `agent` option is (after being potentially called as as function)
passed directly to `http.request`. This is allowed to be
a boolean; `http.request` interprets `agent: false` as
"allocate a one-off Agent for this request", which is
distinct from `agent: undefined` which means to use a
default shared agent.

This PR updates the TS types to match the existing behavior.
2022-02-09 23:22:25 +01:00
Jimmy Wärting 0b43b9f905
docs: update formdata example (#1465)
* docs: update formdata and blob examples

* lint fixes

* tab to space

* tab to space

* tab to space
2022-01-22 00:36:54 +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
Clemens Wolff ff7e950359
Add typing for Response.redirect(url, status) (#1169) 2021-11-05 11:31:14 +01:00
Travis D. Warlick, Jr 2d80b0bb3f
Add support for Referrer and Referrer Policy (#1057)
* Support referrer and referrerPolicy

* Test TS types for addition of referrer and referrerPolicy

* Fix lint issues and merge error
2021-11-05 10:26:13 +01:00
dnalborczyk 965b323d9c
fix(types): declare buffer() deprecated (#1345) 2021-10-23 11:15:24 +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
Tanguy Krotoff 3b50b0c4e6
Add support for Response.error() (#1078) 2021-05-03 23:09:37 +02:00
Jiralite 1780f5ae89
fix: Add missing insecureHTTPParser in RequestInit interface (#964) 2021-03-10 21:51:31 -05: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
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
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