npm ky 0.16.0

latest releases: 1.14.1, 1.14.0, 1.13.0...
6 years ago

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

Don't miss a new ky release

NewReleases is sending notifications on new releases.