Releases: D-Marc1/far-fetch
Releases · D-Marc1/far-fetch
v2.0.1
v2.0.0
Added
dynamicOptions()
returns dynamic options instead ofbeforeSend()
; accepts
await
.localBaseURL
option to automatically detect when working locally.- Missing testing.
Changed
beforeSend()
callback parameter now has the current URL and all the request
options as object parameters.beforeSend()
return is not longer used for dynamic options, as a dedicated
dynamicOptions()
function is now used for that.afterSend()
anderrorHandler
acceptawait
.
Fixed
- Minor typos in
README
and docs.
v1.2.0-1
Fix issue where defaultOptions in constructor got overwritten
- Change local variable to deep clone to prevent instance variable getting mutated d43e6bb
Fix overwriting issues
- Issue where options set in constructor gets overwritten and add deepMerge.
- Issue where POST overwrites headers.
Switch deep merge plugins
- Switch deep merge plugins, as lodash mutates original f131a09
Correct version to adhere to semantic versioning
- Make minor clarification for new version and correct CHANGELOG bcc5d8d
Remove setDefaultOptions(), in favor of simply returning object on beforeSend().
- Remove
setDefaultOptions()
, in favor of return onbeforeSend()
. 4589a9b
Change to response.ok, instead of response.status === 200 check
- Change to response.ok for 200-299, instead of just 200 5e2e7d1