Skip to content

Commit 225a390

Browse files
committed
fixup! Extracts compatibility-flags out of compatibility-dates
1 parent 35a5e77 commit 225a390

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/content/docs/workers/configuration/compatibility-dates.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ head: []
66
description: Opt into a specific version of the Workers runtime for your Workers project.
77
---
88

9-
import { CompatibilityDates } from "~/components";
10-
119
Cloudflare regularly updates the Workers runtime. These updates apply to all Workers globally and should never cause a Worker that is already deployed to stop functioning. Sometimes, though, some changes may be backwards-incompatible. In particular, there might be bugs in the runtime API that existing Workers may inadvertently depend upon. Cloudflare implements bug fixes that new Workers can opt into while existing Workers will continue to see the buggy behavior to prevent breaking deployed Workers.
1210

13-
The compatibility date (and flags) are how you, as a developer, opt into these runtime changes. Compatibility flags will often have a date in which they are enabled by default, and so, by specifying a `compatibility_date` for your Worker, you can quickly enable all of these various compatibility flags up to, and including, that date.
11+
The compatibility date and flags are how you, as a developer, opt into these runtime changes. [Compatibility flags](/workers/configuration/compatibility-flags) will often have a date in which they are enabled by default, and so, by specifying a `compatibility_date` for your Worker, you can quickly enable all of these various compatibility flags up to, and including, that date.
1412

1513
## Setting compatibility date
1614

src/content/docs/workers/configuration/compatibility-flags.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ description: Opt into a specific features of the Workers runtime for your Worker
88

99
import { CompatibilityDates } from "~/components";
1010

11-
`compatibility_flags` enable specific features. They can be useful if you want to help the Workers team test upcoming changes that are not yet enabled by default, or if you need to hold back a change that your code depends on but still want to apply other compatibility changes.
11+
Compatibility flags enable specific features. They can be useful if you want to help the Workers team test upcoming changes that are not yet enabled by default, or if you need to hold back a change that your code depends on but still want to apply other compatibility changes.
12+
13+
Compatibility flags will often have a date in which they are enabled by default, and so, by specifying a [`compatibility_date`](/workers/configuration/compatibility-dates) for your Worker, you can quickly enable all of these various compatibility flags up to, and including, that date.
1214

1315
## Setting compatibility flags
1416

0 commit comments

Comments
 (0)