Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 444 Bytes

v4.0.0.md

File metadata and controls

15 lines (11 loc) · 444 Bytes

v4.0.0 Migration Guide

The only breaking change in this version is that the endpoint argument to before hooks has been renamed to url. This will only affect projects where a before hook is being used to modify the request url:

- function before ({ endpoint }) {
-  return { endpoint: transform(endpoint) }
- }

+ function before ({ url }) {
+  return { url: transform(url) }
+ }

const http = configureHttp({ before })