Skip to content

v0.16.0

Compare
Choose a tag to compare
@sindresorhus sindresorhus released this 15 Nov 08:51

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