Features
Polyfills

Polyfills

The Edge Runtime is built on top of Web APIs available in Node.js.

If you are using an old Node.js version, then it is likely one of these Web APIs is missing. The Edge Runtime takes care of this by providing polyfills.

Under the hood, the following Web APIs are used by the Edge Runtime:

polyfillnode12node14node16node18
httpx
util.typesx
bufferx
WebCryptoxx
AbortController, AbortSignal, DOMExceptionxx
base64xx
fetch, Request, Responsexxx
URLPatternxxxx
Cachexxxx
WebStreamsxxxx

The Edge Runtime polyfills missing APIs for backward compatibility with older Node.js versions.

In the future, Node.js will become a superset of the Edge Runtime with built-in support for the available APIs.