|
|
|
Show HN: Ffetch v5 – TypeScript-first fetch client
(npmjs.com)
|
|
1 points
by gkoos
94 days ago
|
|
ffetch v5 is out ffetch is a TypeScript-first fetch client focused on production reliability. Core functionality includes:
- timeouts (global and per-request)
- retries with exponential backoff + jitter
- lifecycle hooks (before/after/onError)
- pending request monitoring
- per-request overrides
- optional throwOnHttpError v5 introduces a public plugin lifecycle API plus first-party plugins for:
- circuit breaker
- in-flight request deduplication (with optional ttl/sweepInterval cleanup) It can wrap native fetch or any fetch-compatible implementation (undici, node-fetch, framework fetch handlers). Repo:
https://github.com/fetch-kit/ffetch |
|