A library that makes the Fetch API a breeze
151eb7a
params
, param
, queries
or query
to create query parameters — no need to think much, just write code.zlFetch
before we send the request off to the server.https://github.com/zellwk/zl-fetch/compare/v5.0.1...v6.0.0
We have removed node-fetch
as a dependency in v.6.0.0
because Node v17 includes Fetch by default.
What this means is:
zlFetch
normally. There will be no breaking change for you.node-fetch
before you call zlFetch
. You only need to include it once in your project since node-fetch
creates a global fetch
object.import 'node-fetch'
import zlFetch from 'zl-fetch'
createZlFetch
Usage related changelog:
logRequestOptions
. Replaced it with debug
instead.returnError
option.Dev related changelog:
btoa
dependencycross-fetch
dependencynode-fetch
underneath the hood for Node