Zl Fetch Versions Save

A library that makes the Fetch API a breeze

v6.0.2

6 months ago
  • expose create in addition to createZlFetch 5e8a033
  • Cleanup d8451db

https://github.com/zellwk/zl-fetch/compare/v6.0.1...v6.0.2

v6.0.1

10 months ago

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.

https://github.com/zellwk/zl-fetch/compare/v6.0.0...v6.0.1

v6.0.0

11 months ago
  • Refactor 250c3e0
  • Update readme cdn version f715713

https://github.com/zellwk/zl-fetch/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

1 year ago
  • trims values in toObject 0079fcd
  • Update naming 5c7efbb

https://github.com/zellwk/zl-fetch/compare/v5.0.0...v5.0.1

v5.0.0

1 year ago
  • Content Type is now generated based on Body.
  • Supports FormData
  • Improvements to createZlFetch

https://github.com/zellwk/zl-fetch/compare/v4.1.1...v5.0.0

v4.1.0

1 year ago
  • Update zlFetch to create instance 87e77bd
  • Cleanup package.json ffa76b0
  • Fix readme typo a5085d5

https://github.com/zellwk/zl-fetch/compare/v4.0.2...v4.1.0

v4.0.2

1 year ago
  • Some code cleanup 4f01e68
  • Update readme 0e3fe52

https://github.com/zellwk/zl-fetch/compare/v4.0.1...v4.0.2

v4.0.1

1 year ago
  • Bind windows to fetch so it works on Browsers d5983f7
  • Added exports to package.json to let it work with Node environments

https://github.com/zellwk/zl-fetch/compare/v4.0.0...v4.0.1

v4.0.0

1 year ago

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

https://github.com/zellwk/zl-fetch/compare/v3.4.0...v4.0.0

v3.4.0

2 years ago
  • Add support to receive x-www-form-urlencoded response d5d526a

https://github.com/zellwk/zl-fetch/compare/v3.3.0...v3.4.0