Skip to content

Releases: sindresorhus/ky

v0.21.0

12 Jul 13:45
Compare
Choose a tag to compare

v0.20.0...v0.21.0

v0.20.0

16 May 10:48
Compare
Choose a tag to compare
  • Add ability to remove headers using ky.extend() (#235) 70826b2

v0.19.1...v0.20.0

v0.19.1

17 Apr 13:06
Compare
Choose a tag to compare
  • Fix the NormalizedOptions.headers TypeScript type (#243)
  • Ensure HTTPError always has a defined message (#249)

v0.19.0

06 Mar 15:28
Compare
Choose a tag to compare
  • Add TimeoutError and HTTPError to ky TypeScript namespace (#241) 9c9dfe9
  • Delete Content-Type header for multipart requests (#211) d547e89

v0.18.0...v0.19.0

v0.18.0

27 Feb 18:30
Compare
Choose a tag to compare
  • Fix request cancellation on timeout (#238) 041e935
  • Add response to beforeRetry hook and change its parameter to be a single object (#201) 3f3e14d
    • Migrate:
-(request, options, error, retryCount) => {
+({request, response, options, error, retryCount}) => {

v0.17.0...v0.18.0

v0.17.0

02 Feb 19:23
Compare
Choose a tag to compare

Breaking

  • Require Node.js 10 if you use it in Node.js 7c1d371
  • Move named exports to properties of default export (#206) cf6ca95
    • HTTPError and TimeoutError are now properties on the default export ky instead of individual named exports.
    • If you use the UMD build, you no longer need the .default property: const ky = require('ky/umd').default;const ky = require('ky/umd');

Fixes

v0.16.2...v0.17.0

v0.16.2

19 Jan 07:33
Compare
Choose a tag to compare
  • Fix handling of falsy value with the json option (#223) b20779b

v0.16.1...v0.16.2

v0.16.1

26 Nov 06:24
Compare
Choose a tag to compare
  • Remove content-type header check for FormData body (#208) 2078a15

v0.16.0...v0.16.1

v0.16.0

15 Nov 08:51
Compare
Choose a tag to compare

Breaking

  • Hooks now always receive a Request instance as the first argument instead of the input URL, which could previously either be a string, Request, or URL (#180) c5821a7

Enhancements

  • Pass all Ky options to hooks (#188) a5c249e
  • Allow overriding the default accept headers (#200) 65f38f9
  • Add ability to stop retries in beforeRetry hooks (#198) 0bc6fb1
  • beforeRequest hooks can now return a Request instance to replace the existing request (#180)

Fixes

Docs

  • Document prefixUrl reasonings (#175) 4e05289
  • Improve example in documentation for using umd.js (#190) 3b87b93

Meta

v0.15.0...v0.16.0

v0.15.0

03 Oct 06:33
Compare
Choose a tag to compare

v0.14.0...v0.15.0