Edge Runtime logoEdge Runtime
GitHubGitHub (opens in a new tab)
  • Introduction
  • Getting Started
  • Command-line Interface
    • Edge Runtime APIs
    • Polyfills
    • TypeScript support
    • Upgrading Nextjs
    • @edge-runtime/cookies
    • @edge-runtime/format
    • @edge-runtime/jest-environment
    • @edge-runtime/jest-expect
    • @edge-runtime/node-utils
    • @edge-runtime/ponyfill
    • @edge-runtime/primitives
    • edge-runtime
    • @edge-runtime/types
    • @edge-runtime/user-agent
    • @edge-runtime/vm
  • Changelog (opens in a new tab)
Question? Give us feedback → (opens in a new tab)Edit this page on GitHub
Features
Polyfills

Polyfills

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

The minimum Node.js version supported is v14.6.0 that is mapped to ES2019.

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

polyfillnode14node16node18
util.types (opens in a new tab)x
WebCrypto (opens in a new tab)x
AbortController, AbortSignal, DOMException (opens in a new tab)x
base64 (opens in a new tab)x
fetch, Request, Response (opens in a new tab)xx
URLPattern (opens in a new tab)xxx
WebStreams (opens in a new tab)xxx

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.

Edge Runtime APIsTypeScript support