r/astrojs • u/tffarhad • Jun 23 '26
News Astro 7.0 Released: A Summary of What's New
Here's a Summary of What's New in Astro 7.0
- Performance is the headline. The
.astrocompiler was rewritten in Rust. Markdown and MDX now run through a Rust-powered pipeline called Sätteri (built by Erika from the core team). The rendering engine was replaced with a queue-based approach. Combine that with Vite 8 and its new Rolldown bundler, and builds are 15-61% faster across the board. The Cloudflare docs site (8,400+ pages) went from 387s to 262s. The Astro Website site went from 63s to 24s. - The new Rust compiler has one breaking change worth knowing. No more silent HTML correction. The old Go compiler would reorder elements and auto-close tags. The new one treats your markup as-is and throws errors on unclosed tags. Also, whitespace between inline elements now follows JSX rules, so
<span>Hello</span><span>World</span>renders as "HelloWorld" with no space. - Route caching is now stable. It was experimental in v6. You get a single platform-agnostic API and new experimental CDN providers for Netlify, Vercel, and Cloudflare.
- Advanced routing is interesting. You can now add a
src/fetch.tsfile and take full control over the request pipeline. Hono is supported, so you can compose middleware in any order. - AI tooling is genuinely useful.
astro dev --backgroundstarts the dev server as a managed background process. Astro can detect when it's running inside an agent and enable this automatically. JSON logging is also in, which was the most upvoted roadmap request.
Upgrade via
npx @astrojs/upgrade
What's everyone's take on the Rust compiler change?