v0.5.0
Features
- (BREAKING) Use fetch API instead of http/https module (experimental)(#46)
- the
request
andresponse
properties in the result are now deprecated and typed as unknown. - this feature is disabled in default. Set
fetch
option totrue
or to an object including your favorite custom fetch API implementation to enable it. - See the repo's README for more info.
- the
Bug fixes
- Ensure destroying the request when the request body was a stream and emitted an error.
Changes
- Changed the default HTTP request headers.
- Changed the way to normalize HTTP header keys. (for instance,
content-type
will be normalized intoContent-Type
)
Misc
- Improve on CI execution
What's Changed
- Feat: use fetch API instead of http/https module by @mtripg6666tdr in #46
- Bump: package version to 0.5.0 by @mtripg6666tdr in #52
- Docs(README): update the description of
options.header
by @mtripg6666tdr in #53
Full Changelog: v0.4.4...v0.5.0