Skip to content

@cloudflare/config@1.0.0-rc.6

Pre-release
Pre-release

Choose a tag to compare

@workers-devprod workers-devprod released this 01 Dec 12:03
· 2 commits to main since this release
Immutable release. Only release title and notes can be modified.
b1e0183

Patch Changes

  • #17286 97bb683 Thanks @jamesopstad! - Report invalid async config factories passed to defineConfig, defineWorker, and defineContainer as type errors

    Previously, async factories and factories returning a promise type-checked without errors even when their result was not a valid configuration, such as a Worker without compatibilityDate. Factories returning a value that shares no properties with the expected type, such as observability: { logs: true }, were also accepted. Both are now type errors.

  • #17284 5b6e6bf Thanks @dependabot! - Update DEFAULT_COMPAT_DATE to 2026-11-29

    Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.

  • #16678 7d57524 Thanks @mglewis! - Clarify the images.url_transformations.allowed_origins documentation

    When allowed_origins is set, only the listed origins are allowed. The Worker's own zone isn't included unless it's listed.

  • #17286 97bb683 Thanks @jamesopstad! - Report unknown properties passed to defineConfig, defineWorker, and defineContainer as type errors

    Previously, misspelled or unsupported properties such as compatibilityFlag type-checked without errors. Properties that the configuration does not declare are now type errors, including in nested objects, env and exports entries, array elements, and the result of config factories. Fields typed as open records or unknown, such as entrypoint and unsafe, are not restricted. Editors also now show documentation for the fields of env and exports entries.

  • #17244 a332568 Thanks @dario-piotrowicz! - Explain where misplaced fields belong in cloudflare.config.ts validation errors

    Errors for top-level fields such as accountId placed under worker now explain that they belong at the top level. Worker fields placed at the top level also include a hint to move them inside worker.