Skip to content

Releases: manuscriptmastr/fetch-friends

Update dependencies

24 Feb 18:47
c8accba
Compare
Choose a tag to compare

No breaking changes.

Update dependencies

11 Nov 18:53
Compare
Choose a tag to compare
  • Updates dependencies
  • No API changes

Bugfix: CommonJS and Node 12+

30 Jul 14:01
f95845d
Compare
Choose a tag to compare
  • Fixes an issue where running Node 12+ while requireing fetch-friends resulted in the error ERR_REQUIRE_ESM.
  • No breaking changes.

Initial release!

25 Jun 18:52
Compare
Choose a tag to compare

fetch-friends is the natural result of a simple "wrist-slap" philosophy:

  1. Developers know the fetch API
  2. Developers need specific behaviors on top of fetch
  3. Developers know exactly which ones they need and don't need
  4. Developers should not need to abandon fetch for HTTP libraries that supply easy behaviors like timeout, setting async tokens, or adding a body 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 fetching!