Skip to content

fix: update deps and migrate to Astro 5.18 + Svelte 5 + Vite 6 - #215

Merged
bitkarrot merged 2 commits into
mainfrom
fix/deps-update-and-astro5-migration
Aug 19, 2026
Merged

fix: update deps and migrate to Astro 5.18 + Svelte 5 + Vite 6#215
bitkarrot merged 2 commits into
mainfrom
fix/deps-update-and-astro5-migration

Conversation

@bitkarrot

Copy link
Copy Markdown
Member

Summary

Breaking change fixes

  • Move src/content/config.ts to src/content.config.ts (Astro 5 requirement)
  • Add glob loader to post collection (Astro 5 content collections API)
  • Replace post.render() with render(post) from astro:content
  • Fix @astrojs/vercel import from /serverless to main entry
  • Change output: hybrid to output: static (hybrid removed in Astro 5)

Remaining

Astro XSS vulnerabilities require Astro 7 migration, which needs replacing @astrojs/tailwind, @astrolib/analytics, and @astrolib/seo — a separate effort.

Test plan

  • npm run build passes successfully
  • Dev server runs and pages render correctly
  • Blog posts load with new content collections API

Security and breaking change updates:
- astro 5.16 -> 5.18.2 (content collections API migration)
- svelte 4.2 -> 5.53.6 (major version upgrade)
- vite 5 -> 6.4.3
- @astrojs/vercel 9.0.2 -> 9.0.5
- axios, rollup, minimatch, undici, flatted, picomatch, brace-expansion
  and other security updates from merged Dependabot PRs

Breaking change fixes:
- Move src/content/config.ts to src/content.config.ts (Astro 5 requirement)
- Add glob loader to post collection (Astro 5 content collections API)
- Replace post.render() with render(post) from astro:content
- Fix @astrojs/vercel import from /serverless to main entry
- Change output: 'hybrid' to output: 'static' (hybrid removed in Astro 5)

Remaining: astro XSS vulnerabilities require Astro 7 migration
(requires replacing @astrojs/tailwind, @astrolib/analytics, @astrolib/seo)
In Astro 5 with glob loader, the  property was removed from
CollectionEntry. Use uid=501(bk) gid=20(staff) groups=20(staff),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),702(com.apple.sharepoint.group.2),701(com.apple.sharepoint.group.1),33(_appstore),98(_lpadmin),100(_lpoperator),204(_developer),250(_analyticsusers),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh),400(com.apple.access_remote_ae) (filename without extension) as the slug
source instead. This fixes blog post pages not being generated.
@bitkarrot
bitkarrot merged commit 8ab0dfa into main Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant