Repository navigation
v1.4.0 - Content Layer API Migration (Astro v6 Ready)
π Astro v6 Compatibility
This release migrates AstroDeck from the legacy Content Collections API to the modern Content Layer API, ensuring full compatibility with the upcoming Astro v6.
β¨ What's New
- Content Layer API - Uses the new
glob()loader instead of deprecatedtype: 'content' - Future-Proof - Ready for Astro v6 which removes legacy content collections entirely
- Better Performance - Up to 5x faster builds and 25-50% less memory usage
π Technical Changes
| Change | Before | After |
|---|---|---|
| Config location | src/content/config.ts |
src/content.config.ts |
| Collection definition | type: 'content' |
loader: glob({...}) |
| Entry identifier | post.slug |
post.id |
| Render function | post.render() |
render(post) |
π Upgrade Guide
This is a non-breaking upgrade for end users. Simply pull the latest changes:
git pull origin main
npm installYour existing blog posts and content will work without any changes.
Full Changelog: v1.3.0...v1.4.0