Skip to content

⚙️ Support

Browsers

Any build provided assumes that the runtime supports native ES Modules and Fetch API, so the following browsers and versions are supported:

  • Chrome >= 87
  • Edge >= 88
  • Firefox >= 78
  • Safari >= 14

Node.js

You are all set if using v18+.

If you are on a pre-v18:

  1. Install node-fetch and abort-controller as dependencies
  2. Set the following overrides:
    ts
    import fetch from "node-fetch";
    import AbortController from "abort-controller"
    
    globalThis.fetch = fetch;
    globalThis.Headers = fetch.Headers;
    globalThis.AbortController = AbortController;

Deno

Supported on v1.28+ using the npm: import prefix.

Bun

Supported.

Builds provided

Depending on your project's bundler you are using the import strategy could vary, for this reason the package provides different builds.

Once installed, the package includes different modules to ensure the best compatibility to your module bundler/importer, you need to choose the right one depending on your project setup.

Here is the list of modules included:

FormatFilename
ES Module (default)lib/index.js
UMDlib/index.umd.js
CommonJslib/index.common.js
CommonJs ES3lib/index.es3.common.js
CommonJs ES6lib/index.es6.common.js

Required APIs

If you are not any of the above mentioned runtime environments, please make sure that yours supports:

Released under the MIT License.