Skip to content

Commit 42bbcda

Browse files
authored
[Workers] Properly spell compatibility (#19500)
1 parent 56f4f92 commit 42bbcda

File tree

1 file changed

+3
-3
lines changed
  • src/content/docs/workers/runtime-apis/nodejs

1 file changed

+3
-3
lines changed

src/content/docs/workers/runtime-apis/nodejs/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Cloudflare Workers provides a subset of Node.js APIs in two forms:
1414
1. As built-in APIs provided by the Workers Runtime
1515
2. As polyfills that [Wrangler](/workers/wrangler/) adds to your Worker's code
1616

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).
1818

1919
## Get Started
2020

@@ -32,7 +32,7 @@ Unless otherwise specified, implementations of Node.js APIs in Workers are inten
3232

3333
## Node.js API Polyfills
3434

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.
3636

3737
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.
3838

@@ -46,7 +46,7 @@ Calling these mocked methods will either noop or will throw an error with a mess
4646

4747
This allows you to import packages that use these Node.js modules, even if certain methods are not supported.
4848

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).
5050

5151
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
5252
[Node.js APIs discussions category](https://github.com/cloudflare/workerd/discussions/categories/node-js-apis) on GitHub.

0 commit comments

Comments
 (0)