astro
v5.0.0

Astro 5: The Content Layer API

Astro 5 introduces a new Content Layer API that makes working with content collections more powerful than ever.

January 19, 20253 min

Astro 5: The Content Layer API

Astro 5 revolutionizes how you work with content in your projects.

Content Layer API

The new Content Layer API provides a unified way to fetch and transform content:

javascript
import { defineCollection } from 'astro:content';

const blog = defineCollection({

loader: async () => { // Fetch from CMS, database, or files }, });

View Transitions

Native support for the View Transitions API enables smooth page transitions:

astro

About Us

Astro continues to be the best choice for content-heavy sites.

Key Highlights

Note
Before upgrading, we recommend reviewing the breaking changes in the official documentation.

Automate your release announcements

Shiplit turns GitHub releases into posts for Twitter, LinkedIn and Threads in seconds.

Previous
Vue 3.5: Reactivity System Improvements
Next
What's New in React 19.1