- Improves the `MissingSharp` error to include the reason Sharp failed to load, such as its prebuilt binaries not supporting the current CPU
- Avoids attributing client-only components or scripts to unrelated pages importing `astro:i18n` by bounding top-level page graph traversal at virtual page entries
- Fixes an extra page reload on the first page load after starting `astro dev` without an existing `.astro` directory
- Fixes `astro check` exiting with code 0 when `@astrojs/check` or `typescript` is not installed, so it now exits with code 1 so CI fails instead of silently skipping type checking behavior changed · inferred, marked in the notes below
- Preserves the last-modified date of cached font files and unchanged public files when copying them into the build output, respecting the resolved public-directory configuration, following source symlinks, and avoiding backdating files overwritten by build plugins
- Fixes the `glob()` loader adding files from a folder excluded with a negation pattern such as `!_docs` when they change during `astro dev`
- Fixes i18n fallback for on-demand rendered pages so locale-prefixed requests for fallback-only pages are rewritten or redirected according to `i18n.routing.fallbackType` instead of returning status `302` with no `Location` header, including encoded paths and sites with a configured `base`, while preserving query strings and explicit page statuses and redirects
- Fixes `matchAllRoutes` to consider `fallbackRoutes`, matching `matchRoute` and the production router, so dev-server i18n fallback requests resolve to the source route's metadata instead of the 404 route
- Fixes `astro check` losing the end of its output, including the `Result` summary, when stdout is piped to a slow reader, and exits with code 1 instead of crashing with an `EPIPE` stack trace when the reader closes the pipe early
- Fixes an unnecessary full page reload in `astro dev` when a content loader calls `store.clear()` or `store.delete()` and the content store has no asset imports
- Fixes pages using `<ClientRouter />` briefly showing the top of the page on reload before jumping back to the previous scroll position, with full reloads now using the browser's native scroll restoration
- Fixes an unhandled `TypeError: Cannot convert undefined or null to object` when calling `route.generate()` without arguments on static routes
1 change to check, marked in the notes below
From Astro
Patch Changes
-
#18565
cd09986Thanks @praveen-kumary! - Avoids attributing client-only components or scripts to unrelated pages importingastro:i18nby bounding top-level page graph traversal at virtual page entries -
#18608
babd96dThanks @umeraamir69! - Fixes an extra page reload on the first page load after startingastro devwithout an existing.astrodirectory -
#18589
402c0faThanks @astro-factory! - Fixesastro 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. behavior changed · inferred -
#18503
54fcdd5Thanks @SwastikTripathi! - 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. -
#18605
76cd239Thanks @astro-factory! - Fixes theglob()loader adding files from a folder excluded with a negation pattern such as!_docswhen they change duringastro dev -
#18432
ed60d82Thanks @alexmv! - Improves theMissingSharperror to include the reason Sharp failed to load, such as its prebuilt binaries not supporting the current CPU -
#18474
59543c3Thanks @miottid! - Fixes 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. -
#18541
cfa2d2bThanks @ump45nose! - FixesmatchAllRoutesto 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. -
#18602
d856064Thanks @astro-factory! - Fixesastro 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. -
#18574
da0f149Thanks @astro-factory! - Fixes an unnecessary full page reload inastro devwhen a content loader callsstore.clear()orstore.delete()and the content store has no asset imports -
#18570
e71c038Thanks @astro-factory! - Fixes 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. -
#18531
f75553bThanks @praveen-kumary! - Fixes an unhandledTypeError: Cannot convert undefined or null to objectwhen callingroute.generate()without arguments on static routes