Skip to content

v1.10.2

Latest

Choose a tag to compare

@dpdanpittman dpdanpittman released this 07 Nov 00:28
· 15 commits to main since this release
Immutable release. Only release title and notes can be modified.
v1.10.2
f9cae46

Fixed

  • cloudflare-version.yml: no more doubled environment suffix on build-output configs. Under standard and chain topology, --env <wranglerEnv> was passed even when workingDirectory held an environment-resolved wrangler.json, which is what the Cloudflare Vite plugin emits. Wrangler then added the environment to the Worker name a second time. provider-devtool's staging candidate deployed as provider-registry-devtool-staging-staging. A release would have deployed provider-registry-devtool-production and moved the production custom domains onto a Worker with no secrets.
  • A new "Resolve Wrangler environment" step runs after Build and produces the one --env value every wrangler command uses: deploy, versions upload and d1 migrations apply.
    • When the config file in workingDirectory, or the declared wranglerConfig, has targetEnvironment, wrangler runs without --env. The run fails if targetEnvironment differs from the target's wranglerEnv, so a staging build can never deploy as production.
    • A .wrangler/deploy/config.json redirect keeps --env. D1 migrations don't follow the redirect and need --env to pick the target's database. Wrangler accepts a matching --env on a redirected config, and the step fails early if the redirect target was built for another environment.
    • JSON and JSONC (comments, trailing commas) are both read. In TOML, only a top-level targetEnvironment counts.
    • Configs without targetEnvironment, and single topology, behave exactly as before.

Upgrade

  • Callers pick this up through the cloudflare-version.yml pin used by cloudflare-pr.yml, cloudflare-main.yml and cloudflare-release.yml. The helper bundle is unchanged.

(#63, pins in #64)