cloudflare · Cloudflare Workers Docs
Workers Compatibility Dates
Configuring compatibility dates and flags within Miniflare to replicate specific Cloudflare Workers runtime behaviors and manage backwards-incompatible changes.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers Compatibility Dates
Configuring compatibility dates and flags within Miniflare to replicate specific Cloudflare Workers runtime behaviors and manage backwards-incompatible changes.
When To Use
Use when you need to configure Miniflare to match a specific Cloudflare Workers runtime version or toggle specific JavaScript compatibility flags during local testing.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-testing-miniflare-compatibility-dates-workflow-guide.md | Documentation explaining how Miniflare uses compatibility dates and flags to manage backwards-incompatible changes in Workers environments. | Questions about documentation explaining how Miniflare uses compatibility dates and flags to manage backwards-incompatible changes in... |
examples/workers-testing-miniflare-compatibility-dates-cloudflare-workers-minifla.text | A code snippet demonstrating how to set the compatibilityDate property within a Miniflare configuration object. | Exact payloads, commands, or snippets shown in A code snippet demonstrating how to set the compatibilityDate property within a Miniflare configuration object. |
examples/workers-testing-miniflare-compatibility-dates-cloudflare-workers-minifla-2.text | A code snippet demonstrating how to pass compatibility flags to the Miniflare constructor for testing Workers environments. | Exact payloads, commands, or snippets shown in A code snippet demonstrating how to pass compatibility flags to the Miniflare constructor for testing Workers environ... |
What This Skill Covers
- Miniflare uses compatibility dates to opt-into backwards-incompatible changes from a specific date. If one isn't set, it will default to some time far in the...
- Main sections:
Compatibility Dates,Compatibility Flags.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.cloudflare.com/workers/testing/miniflare/core/compatibility/index.md
