| name | description | updated |
|---|---|---|
latest-astro |
Latest Astro features from versions 4.x through 5.x (mid 2024 to 2025) |
2026-01-11 |
Comprehensive knowledge about Astro framework features released from mid-2024 through 2025
This skill contains up-to-date knowledge about Astro framework features, API changes, and best practices from versions 4.x through 5.x (2024-2025). Astro has evolved significantly with major releases introducing the Content Layer API, Server Islands, enhanced Actions API, and performance improvements.
- Official Astro Blog - Latest release announcements
- Astro Changelog - Complete changelog
- Upgrade to Astro v5 Guide - Migration docs
- 2024 Year in Review
- Announcement
- Content Layer API - New content management system
- Server Islands (experimental) - Hybrid static/dynamic rendering
- React Server Components support
- Enhanced Image component
- Improved Dev Toolbar
- Announcement
- Experimental sessions feature
- Improved image caching
- Announcement
- Tailwind 4 support - New Vite-based integration
- Config value access in pages
- Better trailing slash handling
- Announcement
- 1.5-2x faster SSR response times
- Automatic session storage setup
- Netlify bundling controls
- Announcement
- Remote image optimization in Markdown
- Enhanced dev/preview server security
- Announcement
- Type-safe sessions
- Better Markdown compatibility
- Announcement
- Netlify skew protection - Zero-config deployment IDs
- Granular font preload filtering
- New adapter APIs for fetch headers
- Announcement
- Experimental SVG optimization
- Enhanced interactive CLI
- Docs
- Breaking changes and feature stabilization
The Content Layer is a major evolution in content management, replacing and enhancing Content Collections.
Key Features:
- Content schemas with validation
- Frontmatter validation
- Full TypeScript support
- Support for external content sources (CMS, APIs)
- Deep Dive Guide
Resources:
Server Islands combine static HTML with dynamic server-generated content for optimal performance.
Resources:
Type-safe backend function calls from the client with built-in validation.
Resources:
Astro is actively working on RSC support as a simpler alternative to Next.js.
Resources:
Astro's client directives control when and how JavaScript is hydrated:
| Directive | Behavior |
|---|---|
client:load |
Hydrate immediately on page load |
client:idle |
Hydrate when browser is idle |
client:visible |
Hydrate when scrolled into view |
client:media={...} |
Hydrate based on media query |
client:only |
Server-side rendering disabled |
Resources:
-
Astro DB - Fully-managed SQL database
-
Prisma - Type-safe ORM
-
Drizzle ORM - Lightweight TypeScript ORM
Resources:
Features:
- Configure default language
- Compute relative page URLs
- Accept browser-preferred languages
- Fallback languages per locale
New in 2024-2025:
- Remote image optimization in Markdown (5.4)
- Better caching for images
- SVG optimization (experimental, 5.16)
Resources:
Performance:
- 1.5-2x faster SSR response times (5.3)
Resources:
Resources:
New in 2025:
- Production-ready middleware with dependency injection (September 2025)
- Security improvements to prevent URL encoding bypass (5.15.7)
Supported UI Frameworks:
- React (including React 19 support in 5.14)
- Vue
- Svelte
- Preact
- Solid
- Lit
Resources:
Tailwind 4 now uses a Vite plugin instead of @astrojs/tailwind:
Resources:
Resources:
Features:
- Animated transitions between views
- Built-in options: fade, slide, none
- Forward/backward navigation animations
- Fully customizable
- Enhanced interactive CLI (5.16)
- Vite & integration versions in
astro infooutput
Astro continues to lead in performance:
- Ships 90% less JavaScript by default
- 40% faster than competitors
- Zero JS baseline with targeted hydration (~5 KB vs 200+ KB)
- Use Content Layer for structured content management
- Leverage Server Islands for hybrid static/dynamic content
- Choose appropriate client directives for optimal hydration
- Use Actions API for type-safe form handling
- Enable View Transitions for smoother navigation
- Utilize Astro DB or Prisma/Drizzle for database needs
- Server Islands - Hybrid rendering
- SVG Optimization - Build-time SVGO (5.16)
- Sessions - Type-safe session storage (5.1+)
- React Server Components - Active development
- Official Upgrade Guide
- Content Collections → Content Layer migration
- Breaking changes documented
- v6 Upgrade Guide
- Breaking changes and feature removals