Skip to content

Releases: zellwk/zl-fetch

v6.0.2

22 Nov 04:00
Compare
Choose a tag to compare

v6.0.1...v6.0.2

v6.0.1

09 Aug 02:26
Compare
Choose a tag to compare

151eb7a

  • Allowed users to use params, param, queries or query to create query parameters — no need to think much, just write code.
  • Minor cleanup to remove these properties away from zlFetch before we send the request off to the server.

v6.0.0...v6.0.1

v6.0.0

12 Jul 10:53
Compare
Choose a tag to compare

v5.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 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'

v5.0.1

17 Apr 10:49
Compare
Choose a tag to compare

v5.0.0...v5.0.1

v5.0.0

15 Apr 18:26
Compare
Choose a tag to compare
  • Content Type is now generated based on Body.
  • Supports FormData
  • Improvements to createZlFetch

v4.1.1...v5.0.0

v4.1.0

05 Nov 10:22
Compare
Choose a tag to compare

v4.0.2...v4.1.0

v4.0.2

20 Sep 19:44
Compare
Choose a tag to compare

v4.0.1...v4.0.2

v4.0.1

20 Sep 10:10
Compare
Choose a tag to compare
  • Bind windows to fetch so it works on Browsers d5983f7
  • Added exports to package.json to let it work with Node environments

v4.0.0...v4.0.1

v4.0.0

20 Sep 08:20
Compare
Choose a tag to compare

Usage related changelog:

  • Breaking change: This library no longer works with CJS. It is ESM only.
  • Removed logRequestOptions. Replaced it with debug 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

v3.4.0...v4.0.0

v3.4.0

24 Dec 05:31
Compare
Choose a tag to compare
  • Add support to receive x-www-form-urlencoded response d5d526a

v3.3.0...v3.4.0