Releases: manuscriptmastr/fetch-friends
Releases · manuscriptmastr/fetch-friends
Update dependencies
No breaking changes.
Update dependencies
- Updates dependencies
- No API changes
Bugfix: CommonJS and Node 12+
- Fixes an issue where running Node 12+ while
require
ingfetch-friends
resulted in the errorERR_REQUIRE_ESM
. - No breaking changes.
Initial release!
fetch-friends
is the natural result of a simple "wrist-slap" philosophy:
- Developers know the
fetch
API - Developers need specific behaviors on top of
fetch
- Developers know exactly which ones they need and don't need
- Developers should not need to abandon
fetch
for HTTP libraries that supply easy behaviors liketimeout
, setting async tokens, or adding abody
argument.
Higher order functions allow us to decorate fetch
without changing its interface. No one need ever know your version of fetch
retrieves a token only once. Plus, fetch-friends
works with any function you write with the signature fetch => (url, opts?) => Promise<Response>
. (The README includes a couple of my favorites.)
Happy fetch
ing!