Repository navigation
@cloudflare/config@1.0.0-rc.6
Pre-releasePatch Changes
-
#17286
97bb683Thanks @jamesopstad! - Report invalid async config factories passed todefineConfig,defineWorker, anddefineContaineras type errorsPreviously, 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 asobservability: { logs: true }, were also accepted. Both are now type errors. -
#17284
5b6e6bfThanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-29Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
-
#16678
7d57524Thanks @mglewis! - Clarify theimages.url_transformations.allowed_originsdocumentationWhen
allowed_originsis set, only the listed origins are allowed. The Worker's own zone isn't included unless it's listed. -
#17286
97bb683Thanks @jamesopstad! - Report unknown properties passed todefineConfig,defineWorker, anddefineContaineras type errorsPreviously, misspelled or unsupported properties such as
compatibilityFlagtype-checked without errors. Properties that the configuration does not declare are now type errors, including in nested objects,envandexportsentries, array elements, and the result of config factories. Fields typed as open records orunknown, such asentrypointandunsafe, are not restricted. Editors also now show documentation for the fields ofenvandexportsentries. -
#17244
a332568Thanks @dario-piotrowicz! - Explain where misplaced fields belong incloudflare.config.tsvalidation errorsErrors for top-level fields such as
accountIdplaced underworkernow explain that they belong at the top level. Worker fields placed at the top level also include a hint to move them insideworker.