Releases: sindresorhus/ky
Releases · sindresorhus/ky
v1.13.0
Improvements
- Add
contextoption (#772) 1e749ba - Add
retry.shouldRetryoption (#767) f0fdbd4 - Add
retry.retryOnTimeoutoption (#767) f0fdbd4 - Add
retry.jitteroption (#760) 081c924 - Allow
beforeRetryhooks to return aRequestorResponse(#774) a51bb1e
Fixes
- Fix Next.js edge runtime
nextoption support (#775) caf78d2 - Fix compatibility with a non-standard Retry-After header (#771) c488be0
v1.12.0
Improvements
- Add retry count to
afterResponseandbeforeErrorhooks (#763) 37fc250 - Add retry count to
beforeRequesthook (#754) b7572d0 - Add type guards for errors (#746) 7e1fd0b
Fixes
- Fix
dispatcheroption being ignored (#757) 5a3fc90 - Fix
hooksfield incorrectly included inNormalizedOptions(#726) (#756) 0f2f00a - Fix
searchParamsoption merging withURLSearchParamsinstances (#755) c847eec - Fix
signalmerging when using both instance and request options (#751) 2b0a100 - Fix FormData
content-typeboundary regeneration when retrying in hooks (#752) d02b636