Astro has had seven major versions since 1.0 shipped in August 2022, and the current release line is Astro 7.4 (7.4.4, October 28, 2026). Each major added one or two defining features: content collections in 2.0, view transitions and image optimization in 3.0, the dev toolbar in 4.0, the Content Layer and server islands in 5.0, stable CSP and Fonts in 6.0, and route caching with a new Markdown pipeline in 7.0.
This page summarizes the Astro versions in order, so you can tell which version a tutorial targets and what changed since.
Key Takeaways
- Current version: Astro 7.4, released October 15, 2026, with 7.4.4 on October 28, 2026.
- The biggest API shifts were content collections (2.0, redesigned in 5.0) and rendering modes (hybrid in 2.x, merged into
staticin 5.0).- Features usually arrive behind an
experimentalflag in a minor release and become stable in a later minor or major.- Old tutorials using
Astro.glob(),src/content/config.tsor<ViewTransitions />predate Astro 5 or 6.- Upgrade with
npx @astrojs/upgradeand read each major’s upgrade guide in order.
Astro versions at a glance
| Version | Released | Headline changes |
|---|---|---|
| 1.0 | August 2022 | Stable core: .astro components, islands with client:*, file-based routing, integrations, server rendering through adapters |
| 2.0 | January 2023 | Content collections with typed frontmatter; the 2.x line added hybrid rendering |
| 3.0 | August 2023 | View transitions, stable astro:assets image optimization, faster rendering |
| 4.0 | December 2023 | Dev toolbar, i18n routing, Vite 5; the 4.x line previewed actions, astro:env, server islands and the Content Layer |
| 5.0 | December 2024 | Content Layer API, server islands, astro:env, hybrid merged into static, ClientRouter |
| 6.0 | 2026 | Stable Content Security Policy and Fonts API, legacy content collections and Astro.glob() removed |
| 7.0 | June 2026 | Route caching, src/fetch.ts entrypoint, configurable logger, JSX-style whitespace, Sätteri Markdown, Vite 8, Node.js 22.12+ |
| 7.4 | October 2026 | astro build --timings, experimental parallel prerendering, experimental custom redirect pages |
Astro 1.0: the stable core
Astro spent 2021 and the first half of 2022 in 0.x releases while the core ideas settled. Version 1.0 in August 2022 fixed the public API: .astro components with a frontmatter script, file-based routing in src/pages/, Markdown pages, partial hydration through client:load, client:idle, client:visible and friends, and an integration system for React, Vue, Svelte and others.
Two ideas from 1.0 still define Astro: zero JavaScript by default, and islands. A page is HTML unless a component opts into client-side code. The islands architecture guide explains the model, which has not changed since.
Astro 2.0: content collections
Astro 2.0 (January 2023) introduced content collections: Markdown and MDX in src/content/, a schema per collection, and type errors when frontmatter doesn’t match. For blogs and docs sites, this was the release that made Astro the default choice.
The 2.x line also added hybrid rendering with output: 'hybrid', where most pages are prerendered and selected routes render on demand. That option no longer exists; Astro 5 folded it into static.
Astro 3.0: view transitions and images
Astro 3.0 (August 2023) shipped view transitions, which animate between pages using the browser’s View Transitions API with a fallback for browsers that lacked it. It also made astro:assets the stable way to optimize images with the <Image /> component, replacing the older @astrojs/image integration.
If a tutorial imports from @astrojs/image, it was written for Astro 2 or earlier. The image component guide covers the current API.
Astro 4.0 and the 4.x line
Astro 4.0 (December 2023) added the dev toolbar, an overlay in astro dev with an inspector, audits and an app API for integrations. It also added i18n routing and moved to Vite 5.
The 4.x minors were busy. Several of Astro’s current server features first appeared there as experimental flags: actions for type-safe form and RPC calls, astro:env for typed environment variables, server islands for deferring personalized components, and the Content Layer for loading collections from any source. Most of them became stable in 4.x or 5.0.
Astro 5.0: the Content Layer
Astro 5.0 (December 2024) is the release most old code breaks against. The main changes:
- Content Layer. Collections are defined in
src/content.config.tswith aloader, such asglob()for local files or a custom loader for a CMS. Entries useentry.idandrender(entry). - Server islands.
server:deferrenders a component on demand inside an otherwise static page. astro:envbecame stable.- Rendering modes.
output: 'hybrid'was removed;staticnow allows per-routeprerender = falsewhen an adapter is installed. ViewTransitionswas renamedClientRouter.- Vite 6.
The 5.x minors then introduced experimental sessions, SVG components, the Fonts API, CSP and live content collections. The content collections guide shows the Content Layer as it works today.
Astro 6.0: cleanup and stable security
Astro 6.0 (2026) graduated features that had been experimental through 5.x and removed APIs that 5.0 had deprecated:
- Content Security Policy became stable as
security.csp. See the Astro CSP guide. - Fonts API became stable under the top-level
fontskey, with downloads, self-hosting and fallback generation. - Legacy content collections were removed. A
src/content/config.tsfile without loaders now stops the build with the legacy content config error. Astro.glob()was removed. Useimport.meta.glob()orgetCollection().- A request body limit for server islands (
security.serverIslandBodySizeLimit).
The 6.x line ran through 6.4 before Astro 7.
Astro 7: the current major
Astro 7.0 (June 2026) is the current major. It added:
cacheandrouteRulesfor caching on-demand responses- A
src/fetch.tsentrypoint for composing the request pipeline - A
loggeroption with built-in JSON logging and custom loggers compressHTML: 'jsx'as the default, which removes whitespace around elements the way JSX does- Sätteri as the default Markdown processor, with remark and rehype plugins now configured through
markdown.processor - Vite 8, Zod 4 (import
zfromastro/zod) and a Node.js 22.12 minimum
Astro 7.1 added kind scoping for CSP hashes and sources. Astro 7.4 (October 15, 2026) added astro build --timings to show where build time goes, experimental parallel prerendering, experimental custom redirect pages, and notFound() for custom entrypoints. The latest patch at the time of writing is 7.4.4 (October 28, 2026). The full breakdown is in what’s new in Astro 7.
How to tell which Astro version a tutorial uses
Old code gives itself away. Use this table when a snippet from a blog post or Stack Overflow answer doesn’t work:
| If the code uses | It was written for |
|---|---|
@astrojs/image |
Astro 2 or earlier |
output: 'hybrid' |
Astro 2 to 4 |
src/content/config.ts with no loader |
Astro 2 to 4 (removed in 6) |
entry.slug, entry.render() |
Astro 2 to 4 |
<ViewTransitions /> |
Astro 3 or 4 |
Astro.glob() |
Astro 1 to 5 (removed in 6) |
experimental: { fonts: ... } or experimental: { csp: ... } |
Astro 5.x |
markdown.remarkPlugins at the top level |
Astro 6 or earlier (deprecated in 7) |
import { z } from 'astro:content' |
Astro 6 or earlier (deprecated in 7) |
To check your own project, run npx astro --version or look at astro in package.json.
How Astro releases work
Astro follows semantic versioning. Patch releases fix bugs, minor releases add features (often behind experimental flags), and majors remove deprecated APIs. Deprecations usually warn for at least one major before removal, which is why most upgrades are a matter of clearing warnings first.
Official integrations and adapters (@astrojs/mdx, @astrojs/sitemap, @astrojs/node and so on) have their own version numbers but are released to match each Astro major. The upgrade CLI handles that for you:
# Run in your project root
npx @astrojs/upgrade
The guide to upgrading between major versions walks through each jump in order. Every Komal Nakrani theme in the theme catalog is an Astro 7 project, so you start on the current major. Release notes for each version are on the Astro blog, and the upgrade guides live in the Astro docs.
FAQ
What is the latest version of Astro?
The latest release line is Astro 7.4, released on October 15, 2026, and the latest patch is 7.4.4 from October 28, 2026. Astro 7.0, the current major version, shipped in June 2026.
When was Astro 1.0 released?
Astro 1.0 was released in August 2022, after more than a year of 0.x releases. It stabilized .astro components, islands with client:* directives, file-based routing and the integration API.
What changed in Astro 5?
Astro 5 introduced the Content Layer API with loaders and src/content.config.ts, made server islands and astro:env stable, merged output: 'hybrid' into static, and renamed <ViewTransitions /> to <ClientRouter />.
Is Astro 6 or Astro 7 better for a new project?
Start new projects on Astro 7, the current major. It gets bug fixes and new features, official integrations target it, and you avoid an upgrade later. Astro 6 projects can move up with npx @astrojs/upgrade.
How do I check which Astro version I have?
Run npx astro --version in your project, or read the astro entry in package.json. npm ls astro shows the exact installed version, including any duplicate copies pulled in by other packages.