Breaking
await ky('…', {
hooks: {
beforeRequest: [
- options => {}
+ (input, options) => {}
]
afterResponse: [
- response => {}
+ (input, options, response) => {}
]
}
});Enhancements
- Make the
retryoption more powerful (#110) d4ddb7a
You can now control which HTTP methods and status codes that should cause a retry. - Simplify the
OptionsTypeScript type (#165) bfdc9b5
This should make it easier to wrap Ky when using TypeScript.