* remove buffer example
* show example of posting and getting a formdata instance
* recommend using builtin AbortController
* recommend posting blob instead of stream
* we do support formdata
In the 'Handling client and server errors', the class HTTPResponseError constructor has to call 'super()' before accessing 'this.response'
Not doing this throws the following exception: "ReferenceError: Must call super constructor in derived class before accessing 'this' or returning from derived constructor"
Fix: This just changes the order so super(...) is first, then this.response...
MDN Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/super#using_super_in_classes
Mention the Host header in the default request headers table.
According to the standard [RFC 7230 Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing |https://httpwg.org/specs/rfc7230.html#header.host]
"A client MUST send a Host header field in all HTTP/1.1 request messages."
* 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>
* 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
* 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>