All notable changes to this project are documented in this file. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
fetchJson<T>(input, init?)— resilient fetch + JSON in one call: retries likefetchwise, throwsHttpErroron a non-2xx status (no silently-parsed error pages), returns typed JSON, and serializes ajsonbody (settingContent-Type+POST). 204 →undefined.HttpErrorclass carryingstatusand theResponse.
- Initial release.
fetchwise(input, init?)— drop-in resilientfetchwith retries.- Exponential backoff with full jitter, configurable
minDelay/maxDelay/factor. - Per-attempt
timeoutbuilt onAbortController. Retry-Afterheader support (seconds and HTTP-date).- Configurable
retryOnStatusandretryOnErrorpolicies. onRetryhook with retry context.create(defaults)factory for preconfigured clients.parseRetryAfterandTimeoutErrorexports.- Ships ESM + CJS with full TypeScript types.