astro
7.4.13 · 18 Nov 2026MIT12.5M / weekRepositoryHomepagenpmAtom feed
7.4.13 is the newest release of 7.x.
In short
1 breaking11 fixed
- Breaking
Fixes
astro checkexiting with code 0 when@astrojs/checkortypescriptis not installed. The command now exits with code 1 so CI fails instead of silently skipping type checking.
Security
1 advisory affects 7.4.6; 7.4.7 fixes them
- ModerateAstro: Image endpoint in @astrojs/node can read files from a case-variant sibling of the output directory on case-sensitive filesystemsGHSA-r3h5-4585-7x3w · 13 Nov 2026Fixed in 7.4.7
Release note
Patch Changes
Avoids attributing client-only components or scripts to unrelated pages importing
astro:i18nby bounding top-level page graph traversal at virtual page entriesFixes an extra page reload on the first page load after starting
astro devwithout an existing.astrodirectoryFixes
astro checkexiting with code 0 when@astrojs/checkortypescriptis not installed. The command now exits with code 1 so CI fails instead of silently skipping type checking.Preserves the last-modified date of cached font files and unchanged public files when copying them into the build output. Public-file timestamp preservation respects the resolved public-directory configuration, follows source symlinks, and avoids backdating files overwritten by build plugins.
Fixes the
glob()loader adding files from a folder excluded with a negation pattern such as!_docswhen they change duringastro devImproves the
MissingSharperror to include the reason Sharp failed to load, such as its prebuilt binaries not supporting the current CPUFixes i18n fallback for on-demand rendered pages. A locale-prefixed request for a page that only exists in the fallback locale (for example
/de/aboutwithfallback: { de: 'en' }) was answered with status302and noLocationheader. Such requests are now rewritten or redirected to the fallback locale according toi18n.routing.fallbackType, including encoded paths and sites with a configuredbase. Query strings are preserved, and explicit page statuses and redirects are left unchanged.Fixes
matchAllRoutesto considerfallbackRoutes, matchingmatchRouteand the production router. Dev-server i18n fallback requests now resolve to the source route's metadata instead of the 404 route, and SSR-only fallback candidates can fall through the prerender handler.Fixes
astro checklosing the end of its output, including theResultsummary, when stdout is piped to a slow reader. When the reader closes the pipe early, for exampleastro check | head,astro checknow exits with code 1 instead of crashing with anEPIPEstack trace.Fixes an unnecessary full page reload in
astro devwhen a content loader callsstore.clear()orstore.delete()and the content store has no asset importsFixes pages using
<ClientRouter />briefly showing the top of the page on reload before jumping back to the previous scroll position. Full reloads now use the browser's native scroll restoration.Fixes an unhandled
TypeError: Cannot convert undefined or null to objectwhen callingroute.generate()without arguments on static routes
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.