Use workerd's compatibility date for Cloudflare defaults - #17819
Conversation
…scaffolding Replace `new Date().toISOString().slice(0, 10)` with a hardcoded `CLOUDFLARE_COMPATIBILITY_DATE` constant. workerd rejects dates newer than ~7 days past its build date, so using today's date can produce a wrangler.jsonc that fails immediately. Fixes #17796
🦋 Changeset detectedLatest commit: 9dfd074 The changes in this PR will be included in the next version bump. This PR includes changesets to release 424 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
| 📦 Package | 📏 Size |
|---|---|
| @cloudflare/workerd-linux-64@1.20260820.1 | 151.4 MB |
| miniflare@5.20260820.0-alpha | 26.4 MB |
| wrangler@4.125.0 | 24.5 MB |
| @esbuild/linux-x64@0.28.1 | 11.4 MB |
| @cloudflare/workers-types@4.20260527.1 → @cloudflare/workers-types@5.20260825.1 | -9.6 MB |
| @cloudflare/vite-plugin@1.39.0 → @cloudflare/vite-plugin@1.53.1 | 8.6 MB |
| workerd@1.20260820.1 | 5 MB |
| undici@7.29.0 | 1.6 MB |
| ws@8.21.0 | 151.1 kB |
| esbuild@0.28.1 | 147 kB |
Total size change: 219.7 MB
Merging this PR will improve performance by 16.82%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ⚡ | Simulation | Build: full server site |
1.6 s | 1.4 s | +16.82% |
Tip
Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.
Comparing cloudflare-compatibility-date (9dfd074) with main (a0d2fe3)1
Footnotes
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [astro](https://astro.build) ([source](https://github.com/withastro/astro/tree/HEAD/packages/astro)) | [`7.2.6` → `7.2.7`](https://renovatebot.com/diffs/npm/astro/7.2.6/7.2.7) |  |  | --- ### Release Notes <details> <summary>withastro/astro (astro)</summary> ### [`v7.2.7`](https://github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#727) [Compare Source](https://github.com/withastro/astro/compare/astro@7.2.6...astro@7.2.7) ##### Patch Changes - [#​17415](withastro/astro#17415) [`55d38c8`](withastro/astro@55d38c8) Thanks [@​iseraph-dev](https://github.com/iseraph-dev)! - Deserializes each route once when loading the SSR manifest - [#​17772](withastro/astro#17772) [`023b48b`](withastro/astro@023b48b) Thanks [@​matthewp](https://github.com/matthewp)! - Fixes route selection for normalized request paths in adapter and development request handling - [#​17819](withastro/astro#17819) [`633855b`](withastro/astro@633855b) Thanks [@​matthewp](https://github.com/matthewp)! - Updates generated and default Cloudflare `compatibility_date` values to match the installed runtime and requires Wrangler `^4.125.0` - [#​17813](withastro/astro#17813) [`ae26d18`](withastro/astro@ae26d18) Thanks [@​matthewp](https://github.com/matthewp)! - Fixes `rewrite()` and `next(payload)` for GET and HEAD requests with host-provided bodies - [#​17816](withastro/astro#17816) [`a0d2fe3`](withastro/astro@a0d2fe3) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes the experimental `svgOptimizer` not generating unique per-file ID prefixes when using SVGO's `prefixIds` plugin </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC40OS4xIiwidXBkYXRlZEluVmVyIjoiNDQuNDkuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
Changes
@astrojs/cloudflare/infoand align Cloudflare dependencies.Testing
Docs