npm ky 0.13.0

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

Breaking

  • Pass input & options arguments to beforeRequest & afterResponse hooks (#163) 9181aa2
 await ky('…', {
 	hooks: {
 		beforeRequest: [
-			options => {}
+			(input, options) => {}
 		]
 		afterResponse: [
-			response => {}
+			(input, options, response) => {}
 		]
 	}
 });

Enhancements

  • Make the retry option more powerful (#110) d4ddb7a
    You can now control which HTTP methods and status codes that should cause a retry.
  • Simplify the Options TypeScript type (#165) bfdc9b5
    This should make it easier to wrap Ky when using TypeScript.

v0.12.0...v0.13.0

Don't miss a new ky release

NewReleases is sending notifications on new releases.