Skip to content

Update Astro and dependencies - #172

Merged
HDauven merged 5 commits into
mainfrom
update-dependencies
Nov 19, 2026
Merged

HDauven merged 5 commits into
mainfrom
update-dependencies

Conversation

@HDauven

@HDauven HDauven commented Nov 19, 2026

Copy link
Copy Markdown
Member

Updates Astro and sharp, and refreshes two packages in the lockfile, so the dependency tree is on current patched releases. Every version is at least seven days old, so the release-age check passes with no exceptions, and there are no overrides.

Changes

  • Astro 7.1.3 → 7.4.11, the newest release past the seven-day window. Its dependency ranges also move devalue 5.8.2 → 6.0.3, vite 8.1.5 → 8.3.8, svgo 4.0.2 → 4.1.0, smol-toml 1.7.0 → 1.9.1, zod 4.4.3 → 4.6.7, postcss 8.5.22 → 8.5.32, nanoid 3.3.16 → 3.3.20 and source-map-js 1.2.1 → 1.2.2.
  • sharp 0.35.3 → 0.35.5.
  • Lockfile only: js-yaml 4.3.0 → 4.3.2 and postcss-selector-parser 6.1.4 → 6.1.6. Their dependents already accept these versions.
  • Node: Astro 7.4.2 and later need Node 22.23.4, so engines.node is now >=22.23.4 <27 and .nvmrc (CI) is 22.23.5. The <27 cap stays, so App Platform keeps building on Node 26.
  • esbuild approval removed: Astro 7.4 no longer depends on esbuild, so npm install-scripts prune dropped the esbuild@0.28.1 entry from allowScripts, and the CI step npm rebuild esbuild is gone. No installed package has an install script now. strict-allow-scripts stays on.
  • Not changed: Starlight 0.41.4 and starlight-links-validator 0.25.2. Their ranges already allow the patched packages. The next Starlight line (0.42) has breaking changes, and none of these updates need it.

Lockfile: 469 → 468 entries. npm ci on Linux x64 installs 370 packages, up from 363, because Starlight 0.41 keeps its own copy of the Sätteri Markdown packages.

Testing

  • Ran the CI steps locally on Node 22.23.5 with npm 11.18.0: release-age check (468 entries, all at least 7 days old), npm ci --ignore-scripts, npm audit signatures, npm run verify. All internal links are valid and 9/9 tests pass. npm audit reports nothing.
  • Ran npm ci with scripts enabled and npm run verify on Node 26.13.1 with npm 11.18.0, matching the App Platform setup. Both pass, and the output is byte-identical to the Node 22 build.
  • Compared the main build with this branch:
    • Same 111 HTML pages and 247 files.
    • All 31 redirects resolve, including /learn/verify-team-account → /learn/stay-safe/. The redirect pages are byte-identical.
    • Same 79 sitemap URLs, and sitemap.xml still mirrors the index.
    • Identical Pagefind index: same hash, 79/79 fragments.
    • Visible text is unchanged on every page. The HTML differs only in the generator tag, asset hashes, whitespace and equivalent minified inline scripts, and Markdown images no longer get an empty srcset="" (an Astro 7.2.10 fix). The CSS gains -webkit- prefixes.
  • Checked both builds in Chromium: 12 pages (home, Stay safe and its old URL, tabs, images, code blocks, glossary, tokenomics, 404), plus search, tab switching and the mobile menu. There were no console errors besides the expected 404 and no broken images, and all 14 screenshots are pixel-identical to main.
  • astro dev serves pages.

Astro 7.4.2 and later need Node 22.23.4 or newer, which carries the
October 2026 Node.js security fixes. Raise the engine floor to match,
and point CI at 22.23.5, the current Node 22 LTS security release.

The <27 cap stays, so App Platform keeps building on Node 26.
sharp 0.35.4 and 0.35.5 ship libvips builds with fixed libheif and
librsvg. Astro uses sharp to optimise the docs' raster images at build
time.
Astro 7.4.11 is the newest release that is at least seven days old, as
the release-age check requires. It includes the fixes released in
Astro 7.2.4 through 7.4.7, and its dependency ranges move devalue,
vite, svgo, smol-toml, zod, postcss, nanoid and source-map-js to
patched versions.

Astro 7.4 no longer depends on esbuild, so esbuild leaves the tree.
The build keeps the same pages, redirects, sitemap and search index,
and page text is unchanged. The HTML differs in asset hashes,
whitespace, the generator tag and minified inline scripts, and Markdown
images no longer carry an empty srcset attribute. The CSS bundle gains
-webkit- prefixes.
Their dependents (Starlight, @astrojs/internal-helpers and Expressive
Code's postcss-nested) already accept the patched releases, so only the
lockfile changes: js-yaml 4.3.0 to 4.3.2 and postcss-selector-parser
6.1.4 to 6.1.6, which no longer needs cssesc.
Astro 7.4 no longer depends on esbuild, and no installed package needs
an install script any more (`npm install-scripts ls` reports none). The
allowScripts entry for esbuild@0.28.1 and the CI step that rebuilt
esbuild no longer do anything, so remove both. strict-allow-scripts
stays on, so a future dependency with an install script still needs an
explicit approval.
@HDauven
HDauven merged commit fcd0bc8 into main Nov 19, 2026
1 check passed
@HDauven
HDauven deleted the update-dependencies branch November 19, 2026 18:48
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