astro@6.4.7
📦 astroView on GitHub →
✨ 1 features🐛 10 fixes🔧 3 symbols
Summary
This patch release focuses on numerous bug fixes, including resolving issues with URL encoding, stale CSS during development, and incorrect bundling in hybrid mode. It also improves diagnostics for parsing errors and fixes HMR for middleware files.
✨ New Features
- Added a JSON schema to the Wrangler configuration file generated when running 'astro add cloudflare'.
🐛 Bug Fixes
- Fixed getRelativeLocaleUrl, getAbsoluteLocaleUrl, and getAbsoluteLocaleUrlList to strip trailing slashes when 'trailingSlash: 'never'' is configured.
- Fixed double URL-encoded paths returning 400 Bad Request on on-demand routes by replacing rejection with iterative decoding.
- Fixed prerendered redirect targets being incorrectly bundled into the SSR function in hybrid mode, preventing massive bundle size inflation.
- Fixed honouring compressHTML when joining head elements.
- Fixed custom elements in MDX having their children's 'slot' attribute stripped by the JSX runtime; the 'slot' attribute is now correctly preserved.
- Fixed stale inline CSS in server-rendered HTML after CSS file edits during dev by invalidating per-route dev CSS virtual modules.
- Fixed CSS from 'client:only' islands leaking to unrelated pages when Rollup bundles non-CSS-importing modules into the same chunk as CSS-importing modules.
- Fixed HMR not triggering for files inside the 'src/middleware/' directory during dev.
- Fixed support for numeric IDs in YAML frontmatter when using content collection references.
- Improved the diagnostics emitted when Astro parses incorrect '.astro' files.