Skip to content

Commit da8e134

Browse files
committed
Readme updated
1 parent 3bbf03c commit da8e134

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,23 @@
1919
- **Universal** – Node, Browser, Cloudflare Workers, React Native
2020
- **Zero runtime deps** – ships as dual ESM/CJS
2121

22+
## Prerequisites
23+
24+
`ffetch` requires modern AbortSignal APIs, specifically `AbortSignal.timeout` and `AbortSignal.any`.
25+
26+
- **Node.js:**
27+
- Node.js v18.8.0 and above support `AbortSignal.timeout` natively.
28+
- Node.js v20.6.0 and above support `AbortSignal.any` natively.
29+
- For older Node.js versions, you must install a polyfill such as [`abortcontroller-polyfill`](https://www.npmjs.com/package/abortcontroller-polyfill) or [`abort-controller-x`](https://www.npmjs.com/package/abort-controller-x) and ensure `AbortSignal.timeout` and `AbortSignal.any` are available globally.
30+
31+
- **Browsers:**
32+
- Most evergreen browsers (Chrome 88+, Firefox 89+, Safari 15.4+, Edge 88+) support `AbortSignal.timeout` and `AbortSignal.any`.
33+
- For older browsers, you must provide a polyfill for these APIs.
34+
35+
If `AbortSignal.timeout` is missing, `ffetch` will throw an error at runtime. See your environment's documentation or use a polyfill to ensure compatibility.
36+
37+
---
38+
2239
## Install
2340

2441
```bash

0 commit comments

Comments
 (0)