Skip to content

chore(deps): upgrade both sites to Astro 7 - #17

Open
LKSNDRTMLKV wants to merge 5 commits into
docs/remaining-claimsfrom
chore/astro-7
Open

chore(deps): upgrade both sites to Astro 7#17
LKSNDRTMLKV wants to merge 5 commits into
docs/remaining-claimsfrom
chore/astro-7

Conversation

@LKSNDRTMLKV

Copy link
Copy Markdown
Member

Both sites were pinned to astro: ^5, and six advisories against the installed 5.18.2 have fixes that land only in 6.4.6, 7.0.4, 7.0.6 and 7.0.10 — unreachable from that line. Stacked on #16.

Real exposure today is close to zero: these are output: "static" sites with no SSR and no user input anywhere, and the vulnerable classes need dynamic parameters to exploit. The reason to do it now is that "we are pinned to a line that no longer receives security fixes" is a bad answer to a security questionnaire, it gets worse every month, and with nothing deployed a breaking upgrade is free.

Result

pnpm audit: 24 advisories → 10. All six Astro advisories cleared. The remaining ten are build-time or dev-server issues in transitive dependencies (postcss, and a Vue chain pulled in by the bundled API reference) that do not reach a static deploy.

Migration needed

Two changes, both well-documented upstream:

  • Starlight's social config changed from an object to an array of link items in v0.33.0.
  • z re-exported from astro:content is deprecated; imported from astro/zod instead.

That was the whole of it. No template, routing, or content-collection changes.

The audit gate

pnpm audit --audit-level critical is now part of CI. It is set to critical rather than high deliberately — high fails today on those ten transitive advisories, and a gate that is red on arrival is how a red CI becomes normal. Tighten it to high once they clear. Verified both ways: critical exits 0, high exits 1, so the gate demonstrably fails when it should.

Verification: both sites build · pnpm -r check 0 errors / 0 warnings / 5 hints, the same baseline as before the upgrade · 824 links resolve · leakage clean · spec matches.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 20, 2026

Copy link
Copy Markdown

Deploying odal-node-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: fda9a0b
Status: ✅  Deploy successful!
Preview URL: https://ba5db014.odal-node-docs.pages.dev
Branch Preview URL: https://chore-astro-7.odal-node-docs.pages.dev

View logs

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 20, 2026

Copy link
Copy Markdown

Deploying odal-node-landing with  Cloudflare Pages  Cloudflare Pages

Latest commit: fda9a0b
Status: ✅  Deploy successful!
Preview URL: https://a998e80d.odal-node-landing.pages.dev
Branch Preview URL: https://chore-astro-7.odal-node-landing.pages.dev

View logs

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