astro@7.0.0-alpha.0
Breaking Changes📦 astroView on GitHub →
⚠ 1 breaking✨ 2 features🐛 2 fixes⚡ 1 deprecations🔧 2 symbols
Summary
This release upgrades Astro to Vite v8 and defaults to the new, faster Rust-based compiler, which enforces stricter HTML syntax validation. Several bugs related to server restarts and i18n routing have also been resolved.
⚠️ Breaking Changes
- The Go-based compiler has been removed and replaced by the Rust-based compiler (@astrojs/compiler-rs) as the default. This change introduces stricter parsing for invalid HTML syntax; unclosed HTML tags will now throw errors instead of being ignored, and the compiler no longer attempts to correct semantically invalid HTML.
Migration Steps
- Remove the `experimental.rustCompiler` setting from your `astro.config.mjs` file if it was present.
✨ New Features
- Upgraded to Vite v8.
- Replaced the Go compiler with the faster and more reliable Rust-based compiler (@astrojs/compiler-rs) as the default.
🐛 Bug Fixes
- Fixed an issue where the `--port` flag was ignored after a Vite-triggered server restart (e.g., when an .env file changes).
- Fixed an issue where i18n domains returned 404 errors when `trailingSlash` was set to `never`.
Affected Symbols
⚡ Deprecations
- The `experimental.rustCompiler` flag in `astro.config.mjs` has been removed as the Rust compiler is now the default and only compiler.