Astro v0.21.0 is finally here! This is by far our biggest release ever, including a ground-up rewrite of some major Astro internals. After months of development and public testing, we are so excited to get this new version of Astro into your hands, featuring:
- A new Astro compiler, written in Go
- A new build engine, powered by Vite
- Components in Markdown (like MDX, but without the JSX)
- Improved npm package support (also powered by Vite!)
- Improved errors, stack traces, HMR, and overall dev experience
- A grab-bag of other new features for you to explore
Try Astro v0.21.0 today right in your browser. Or, run
npm install astro@latest in any new or existing project directory to get started. Read our v0.21 Early Preview post for more details on what is included in this release.
Thank you to every contributor and early preview tester who made this release possible. Thank you to Nate Moore , Matthew Phillips , and Drew Powers for your tireless work over the last few months getting v0.21 out the door.
With these new long-term investments, Astro isn’t going anywhere. Next stop, v1.0!
Migrate to v0.21
Very little has changed in the v0.21.0 API to make your migration as easy as possible. Check out the new v0.21 migration guide for a full breakdown of meaningful changes.
Leave feedback, report bugs, and get involved with Astro’s development in our Discord server. You can also follow along with our community on Twitter.
Why Rewrite? Why Now?
Most people don’t know this, but the first version of the Astro compiler was originally forked from Svelte. Forking an existing compiler let us get up and running quickly, but cost us some unneccesary complexity that only grew over time.
Big rewrites are rarely easy, and this one was no exception. The timing was right for us to make a big investment in Astro now and deprecate our original forked compiler in favor of something designed with Astro in mind. This new compiler (written in Go) and new Vite-powered build engine will form a stable foundation that will last this project for years to come.