Skip to content

Releases: Cardoso222/fetchXY

v0.3.0

Choose a tag to compare

@Cardoso222 Cardoso222 released this 17 Jul 00:46

What's Changed

Fixes

  • Retry logic: successful (2xx) responses are no longer retried when retries is set without retryIf; an empty retryIf now means retry on any non-2xx response (#6)
  • Timeouts: 408s now respect retries and retryIf, as documented (#6)
  • Timer leak: the timeout timer is cleared after each request and in-flight requests are aborted via AbortController (#6)
  • response.retries now reports the originally configured value (#6)
  • Network errors (DNS failure, connection refused) return status: 0 with the original error message instead of a fake 500 Internal server error, and are retried while retries remain (#7)
  • Non-JSON response bodies no longer throw; data is left undefined and the real status is preserved (#7)

Improvements

  • Content-Type: application/json is set automatically when a request has a data payload (#7)
  • Added MIT LICENSE file and aligned package.json license field (#8)
  • Fixed main field pointing to a nonexistent file (#8)
  • Added files whitelist and engines: >=18 to package.json (#8)
  • New CI workflow running tests on Node 18/20/22 for every push and PR (#8)
  • Fixed the publish workflow (npm ci failed without a lockfile) (#8)

Full Changelog: v0.2.2...v0.3.0

Release 0.1.1

Choose a tag to compare

@Cardoso222 Cardoso222 released this 01 Dec 22:16
Added patch method