Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-testing-miniflare-compatibility-dates-workflow-guide.mdDocumentation 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.textA 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.textA 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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