Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 2.78 KB

astro-021-release.mdx

File metadata and controls

51 lines (36 loc) · 2.78 KB
title description publishDate permalink lang socialImage coverImageAlt authors
Astro 0.21
Astro v0.21.0 is finally here!
November 19, 2021
en
/src/content/blog/_images/astro-021-release/social.webp
Astro v0.21 Release Notes
fred

import Mention from "/src/components/Mention.astro" import Note from "/src/components/Note.astro"

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 , , and 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.

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.

A huge thank you to Rich Harris and the entire Svelte team—you built an incredible open source compiler and it served Astro so well in its early days!