You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/workers/runtime-apis/nodejs/index.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Cloudflare Workers provides a subset of Node.js APIs in two forms:
14
14
1. As built-in APIs provided by the Workers Runtime
15
15
2. As polyfills that [Wrangler](/workers/wrangler/) adds to your Worker's code
16
16
17
-
You can view which APIs are supported using the [Node.js compatability matrix](https://workers-nodejs-compat-matrix.pages.dev).
17
+
You can view which APIs are supported using the [Node.js compatibility matrix](https://workers-nodejs-compat-matrix.pages.dev).
18
18
19
19
## Get Started
20
20
@@ -32,7 +32,7 @@ Unless otherwise specified, implementations of Node.js APIs in Workers are inten
32
32
33
33
## Node.js API Polyfills
34
34
35
-
When you enable the `nodejs_compat`compatability flag and set your compatibility date to `2024-09-23` or later, in addition to enabling Node.js APIs in the Workers Runtime, [Wrangler](/workers/wrangler/) will use [unenv](https://github.com/unjs/unenv) to automatically detect uses of Node.js APIs, and add polyfills where relevant.
35
+
When you enable the `nodejs_compat`compatibility flag and set your compatibility date to `2024-09-23` or later, in addition to enabling Node.js APIs in the Workers Runtime, [Wrangler](/workers/wrangler/) will use [unenv](https://github.com/unjs/unenv) to automatically detect uses of Node.js APIs, and add polyfills where relevant.
36
36
37
37
Adding polyfills maximizes compatibility with existing npm packages, while recognizing that not all APIs from Node.js make sense in the context of serverless functions.
38
38
@@ -46,7 +46,7 @@ Calling these mocked methods will either noop or will throw an error with a mess
46
46
47
47
This allows you to import packages that use these Node.js modules, even if certain methods are not supported.
48
48
49
-
For a full list of APIs supported, including information on which are mocked, see the [Node.js compatability matrix](https://workers-nodejs-compat-matrix.pages.dev).
49
+
For a full list of APIs supported, including information on which are mocked, see the [Node.js compatibility matrix](https://workers-nodejs-compat-matrix.pages.dev).
50
50
51
51
If an API you wish to use is missing and you want to suggest that Workers support it, please add a post or comment in the
52
52
[Node.js APIs discussions category](https://github.com/cloudflare/workerd/discussions/categories/node-js-apis) on GitHub.
0 commit comments