Repository navigation
Releases: Cardoso222/fetchXY
Releases · Cardoso222/fetchXY
Release list
v0.3.0
What's Changed
Fixes
- Retry logic: successful (2xx) responses are no longer retried when
retriesis set withoutretryIf; an emptyretryIfnow means retry on any non-2xx response (#6) - Timeouts: 408s now respect
retriesandretryIf, as documented (#6) - Timer leak: the timeout timer is cleared after each request and in-flight requests are aborted via
AbortController(#6) response.retriesnow reports the originally configured value (#6)- Network errors (DNS failure, connection refused) return
status: 0with the original error message instead of a fake500 Internal server error, and are retried while retries remain (#7) - Non-JSON response bodies no longer throw;
datais leftundefinedand the real status is preserved (#7)
Improvements
Content-Type: application/jsonis set automatically when a request has adatapayload (#7)- Added MIT LICENSE file and aligned
package.jsonlicense field (#8) - Fixed
mainfield pointing to a nonexistent file (#8) - Added
fileswhitelist andengines: >=18topackage.json(#8) - New CI workflow running tests on Node 18/20/22 for every push and PR (#8)
- Fixed the publish workflow (
npm cifailed without a lockfile) (#8)
Full Changelog: v0.2.2...v0.3.0