astro@6.3.2
📦 astroView on GitHub →
🐛 9 fixes🔧 2 symbols
Summary
This patch release addresses several bugs, including issues with `Astro.cache` initialization, HMR errors with the Cloudflare adapter, and memory leaks in the compiler. Dependencies were also updated.
🐛 Bug Fixes
- Fixes a regression where `Astro.cache` was `undefined` when `experimental.cache` was not configured, ensuring `Astro.cache` is always defined as a no-op shim.
- Fixes `HTMLElement is not defined` error during HMR when using components with client-side scripts (e.g. Starlight <Tabs>) and the Cloudflare adapter.
- Fixes non-prerendered routes failing when a dynamic prerendered route exists in the same project with `prerenderEnvironment: 'node'`.
- Fixes memory leak by ensuring the Astro compiler is correctly freed at the end of the build.
- Tightens `isRemotePath()` to reject control characters after a leading slash and fixes the dev image endpoint origin check.
- Improves validation messages for `security.csp.directives` when `script-src` or `style-src` are incorrectly placed in the `directives` array.
- Fixes `assetsPrefix` not being available on `build` from `astro:config/server`.
- Rejects double-encoded URL paths with a 400 response instead of silently falling back to partial decoding.
- Fixes `&` characters appearing as raw entity strings (e.g. `&`) in `<meta>` tags when viewed in link previews or raw HTML.