Repository navigation
Upgrade Astro to v7 to clear Dependabot alerts - #1
Merged
Merged
Conversation
Bumps astro 5.3.0 -> 7.1.3 and @astrojs/node 9.1.0 -> 11.0.2, which clears all open Dependabot advisories (SSRF, XSS, auth bypass, DoS, cache poisoning). Also bumps @astrojs/mdx and @astrojs/check. Migration work required by the two major versions: - Content Collections: the legacy API was removed in v6, so src/content/config.ts moves to src/content.config.ts and all four collections now use glob() loaders. entry.render() -> render(entry) and entry.slug -> entry.id at the two call sites. - Zod 4 (bundled in Astro 7) dropped the z.oboolean() shorthand. - Astro 7 defaults to the Satteri markdown processor, which would silently drop the custom inline-footnote remarkRehype handlers. They now run via unified() from @astrojs/markdown-remark. Note: @yeskunall/astro-umami has no Astro 7 peer support. It still installs because the integration is currently commented out, but re-enabling it needs an upstream release. Astro 6 also dropped Node 18/20, so Node >= 22.12 is now required.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps
astro5.3.0 → 7.1.3 and@astrojs/node9.1.0 → 11.0.2, clearing all 27 open Dependabot advisories (SSRF, XSS, auth bypass, DoS, cache poisoning). Also bumps@astrojs/mdx4.0.8 → 7.0.3 and@astrojs/check0.9.4 → 0.9.9.Target versions were taken from the
first_patched_versionfield on each open alert rather than the advisory titles — the highest requirements were astro 7.1.0 and @astrojs/node 11.0.2.Migration work required by the two major versions
src/content/config.tsmoves tosrc/content.config.tsand all four collections (posts, nav, experience, links) now useglob()loaders.entry.render()→render(entry)andentry.slug→entry.idat the two call sites.z.oboolean()shorthand →z.boolean().remarkRehypehandlers inastro.config.mjs. They now run throughunified()from@astrojs/markdown-remark.Verification
astro check— 0 errors, 0 warningsastro build— clean/,/posts,/posts/astrid,/experience,/about-meall 200, clean log/posts/astrid/(the glob loader still honours theslug:frontmatter override)bun install --frozen-lockfileverified from scratch in a clean dir, so the Docker build path is intactNotes
@yeskunall/astro-umamideclares peerastro: ^3 || ^4 || ^5 || ^6— no v7 support. It only installs cleanly because the integration is currently commented out in the config. Re-enabling Umami will need an upstream release or a replacement.oven/bunimage are fine; worth checking anything else in the deploy path.