🌳 Tiny & elegant JavaScript HTTP client based on the browser Fetch API
MIT License
Bot releases are hidden (Show)
onDownloadProgress
(#444) d48ed95https://github.com/sindresorhus/ky/compare/v0.31.0...v0.31.1
BeforeRetryState
type (#442) e4077b9onDownloadProgress
(#441) f34fb1fhttps://github.com/sindresorhus/ky/compare/v0.30.0...v0.31.0
Content-Type
header for JSON requests (#429) d00864fhttps://github.com/sindresorhus/ky/compare/v0.29.0...v0.30.0
beforeError
hook (#417) 616d276https://github.com/sindresorhus/ky/compare/v0.28.7...v0.29.0
https://github.com/sindresorhus/ky/compare/v0.28.6...v0.28.7
https://github.com/sindresorhus/ky/compare/v0.28.5...v0.28.6
https://github.com/sindresorhus/ky/compare/v0.28.4...v0.28.5
https://github.com/sindresorhus/ky/compare/v0.28.3...v0.28.4
https://github.com/sindresorhus/ky/compare/v0.28.2...v0.28.3
Options
TypeScript type 3ad1eabmain
field in package.json (#342) 1338996https://github.com/sindresorhus/ky/compare/v0.28.1...v0.28.2
searchParams
option TypeScript type (#344) 010b082https://github.com/sindresorhus/ky/compare/v0.28.0...v0.28.1
HTTPError
and TimeoutError
named exports 6ec7fd7HTTPError
messages (#333) ca098f8searchParams
in .create()
and .extend()
(#335) b3c9e88throwHttpErrors
option is false (#334) eefcde5https://github.com/sindresorhus/ky/compare/v0.27.0...v0.28.0
searchParams
string (#325) 5815518https://github.com/sindresorhus/ky/compare/v0.26.0...v0.27.0
request
and options
to HTTPError
(#309) 519d17eonDownloadProgress
throws an exception (#301) 87c94fdky.stop
as return type in BeforeRetryHook
TypeScript type (#307) b86ff0aBeforeRetryHook
and NormalizedOptions
TypeScript type definitions (#308) 5da3da0ky.stop
(#314) 0ced1f1https://github.com/sindresorhus/ky/compare/v0.25.1...v0.26.0
https://github.com/sindresorhus/ky/compare/v0.25.0...v0.25.1
dom
library in your tsconfig, you need to do this now.TimeoutError#request
(#299) 599a45bhttps://github.com/sindresorhus/ky/compare/v0.24.0...v0.25.0
response
property for the first argument passed to beforeRetry
hooks (#276) 9876da1error.response
instead. See https://github.com/sindresorhus/ky/pull/276 for details.beforeRetry
hook (#276) 9876da1https://github.com/sindresorhus/ky/compare/v0.23.0...v0.24.0
fetch
implementation (#273) ccda3b9https://github.com/sindresorhus/ky/compare/v0.22.0...v0.23.0
searchParams
even in non-browsers (#271) c9e5206parseJson
option (#272) 95e7fd7https://github.com/sindresorhus/ky/compare/v0.21.0...v0.22.0
Request
to TimeoutError
(#267) b9dbd19https://github.com/sindresorhus/ky/compare/v0.20.0...v0.21.0