Releases: zellwk/zl-fetch
Releases · zellwk/zl-fetch
v6.0.2
v6.0.1
v6.0.0
Breaking Change
We have removed node-fetch
as a dependency in v.6.0.0
because Node v17 includes Fetch by default.
What this means is:
- If you're using Node v17 and above, you can continue using
zlFetch
normally. There will be no breaking change for you. - If you're using Node v16 and below, you need to include
node-fetch
before you callzlFetch
. You only need to include it once in your project sincenode-fetch
creates a globalfetch
object.
import 'node-fetch'
import zlFetch from 'zl-fetch'
v5.0.1
v5.0.0
- Content Type is now generated based on Body.
- Supports FormData
- Improvements to
createZlFetch
v4.1.0
v4.0.2
v4.0.1
v4.0.0
Usage related changelog:
- Breaking change: This library no longer works with CJS. It is ESM only.
- Removed
logRequestOptions
. Replaced it withdebug
instead. - Added
returnError
option.
Dev related changelog:
- Rewrote all tests in Vitest
- Tests are now all robust and no need for manual testing!
- Removed need for
btoa
dependency - Removed need for
cross-fetch
dependency - Now uses
node-fetch
underneath the hood for Node