Skip to content

v1.4.0 - Content Layer API Migration (Astro v6 Ready)

Choose a tag to compare

@holger1411 holger1411 released this 27 Dec 14:21
· 137 commits to main since this release

πŸš€ 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 deprecated type: '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 install

Your existing blog posts and content will work without any changes.


Full Changelog: v1.3.0...v1.4.0