fetch-dedupe
Advanced tools
Changelog
v4.0.0 (2020/3/19)
Breaking Changes
bestfetch
(from fetch-dedupe
)Changelog
v3.0.0 (2018/4/12)
Breaking Changes
response[responseType]()
errors, then response.data
will be set as null
. This can be useful if you specify the responseType
as
json
, and the backend returns malformed JSON (such as an empty string or
plain text). Instead of this error going uncaught, the fetch will work as expected.Changelog
v2.1.0 (2018/2/7)
New Features
responseType
can now be specified as a function. This is useful for backends that don't
respect the Accept
header. "Enterprisey" backends frequently return text stack traces
for errors, as an example.Changelog
v2.0.0 (2018/2/4)
Breaking
dedupeOptions
is now optional. The responseType
is "json"
by default, unless the
status code is 204, in which case it will be "text"
.