Repository navigation
Update Astro and dependencies - #172
Merged
Merged
Conversation
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.
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.
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
engines.nodeis now>=22.23.4 <27and.nvmrc(CI) is 22.23.5. The<27cap stays, so App Platform keeps building on Node 26.npm install-scripts prunedropped theesbuild@0.28.1entry fromallowScripts, and the CI stepnpm rebuild esbuildis gone. No installed package has an install script now.strict-allow-scriptsstays on.Lockfile: 469 → 468 entries.
npm cion Linux x64 installs 370 packages, up from 363, because Starlight 0.41 keeps its own copy of the Sätteri Markdown packages.Testing
npm ci --ignore-scripts,npm audit signatures,npm run verify. All internal links are valid and 9/9 tests pass.npm auditreports nothing.npm ciwith scripts enabled andnpm run verifyon 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.mainbuild with this branch:/learn/verify-team-account→/learn/stay-safe/. The redirect pages are byte-identical.sitemap.xmlstill mirrors the index.srcset=""(an Astro 7.2.10 fix). The CSS gains-webkit-prefixes.main.astro devserves pages.