What problem does it solve?
This knowledge patch fills gaps between model training cutoffs and real-world Astro changes so developers and AI assistants avoid generating deprecated patterns, broken APIs, or incompatible configurations when working with Astro projects.
Core Features & Use Cases
- Breaking changes & migration guidance: Notes on Node 22 minimum, removed APIs, Zod 4 migration, and upgraded dependencies (Vite 7, Shiki 4).
- Content and caching updates: Live collections, retainBody behavior, and experimental route caching guidance for SSR and API routes.
- Fonts, assets, and security: Built-in Fonts API, experimental SVGO, image background handling, and Content Security Policy configuration with auto-generated hashes.
- Use Case: Audit or update an existing Astro codebase or generated code to ensure compatibility with Astro 5.16–6.0, including dependency bumps and configuration changes.
Quick Start
Load the astro-knowledge-patch and update or validate Astro code for compatibility with versions 5.16 through 6.0, focusing on Node 22, the Fonts API, live collections, CSP, route caching, and dependency upgrades.