#184557af66fc Thanks @astro-factory! - Fixes the astro-check binary ignoring its first two command-line arguments, so flags such as --help, --root, --watch, and --tsconfig are respected again. If your scripts padded the arguments to work around this (for example, astro-check -- -- --tsconfig ./tsconfig.app.json), remove the padding.
#18636b4de3b5 Thanks @umeraamir69! - Shares one process unhandledRejection listener across app handlers so standalone mode no longer treats in-request rejections as outside request context
#187437c8dad5 Thanks @EnesKartal! - Adds Content-Type: text/plain; charset=utf-8 header to 400 responses for undecodable URLs in standalone mode.
#18770c850735 Thanks @astro-factory! - Fixes the dev toolbar's a11y-missing-content audit reporting anchors and headings that are hidden with visibility: hidden or are inside an aria-hidden="true" subtree
#18536d044365 Thanks @KoenRijpstra! - Fixes server bundles including every renderable content collection entry when no server-rendered route calls render() from astro:content
#18740c7a2f1d Thanks @astro-factory! - Fixes i18n.fallback failing with i18nNoLocaleFoundInPath when the fallback target is a locale defined with a custom path
#1866075ac226 Thanks @NetBr3ak! - Fixes <Font preload> emitting no preload links when a requested weight range such as "400 700" sits inside a variable font file's range such as "400 900"
#18758273d7da Thanks @astro-factory! - Fixes astro dev status, astro dev logs, and the astro preview equivalents treating a server started with ASTRO_DEV_BACKGROUND=0 or ASTRO_PREVIEW_BACKGROUND=0 as a background server
#1865833c931e Thanks @hood! - Improves startup time of every astro command for projects that don't configure fonts, by loading the font resolution dependencies only when fonts are used
#1877101c942d Thanks @astro-factory! - Fixes the dev toolbar's audit fetching loading="lazy" images again to measure them, which froze animated SVGs in Safari and downloaded images the page meant to load later
#18711bf5a170 Thanks @astro-factory! - Fixes the dev server blocking cross-origin requests from an origin allowed by a security.allowedDomains entry with a default port, such as { hostname: 'staging.myapp.com', protocol: 'https', port: '443' }. BaseApp.validateForwardedHost() now applies the same allowedDomains rules as the rest of Astro.
#18733c6ab3c5 Thanks @Marve10s! - Fixes hydration of framework components receiving sparse array props by serializing holes as undefined
#184092917650 Thanks @matthewp! - Fixes a typo in the error message shown when a font cssVariable is invalid
#187096f1a2a8 Thanks @ematipico! - Reduces memory usage during astro build by releasing content collection entries from memory once the content layer sync is complete.
#1871359052e7 Thanks @delucis! - Unpins @astrojs/* dependencies to allow versions matching the ^ range to be installed
#1864108e2cee Thanks @astro-factory! - Validates the protocol, host and port from X-Forwarded-Proto, X-Forwarded-Host and X-Forwarded-Port together against each security.allowedDomains entry, instead of one at a time:
A forwarded protocol is only applied when an entry allows it for the host in use.
A forwarded port is only applied when the entry for that host lists it.
A forwarded host without a forwarded protocol is validated with the protocol of the server.
An entry with port: '443' (or '80' for http) now matches a host that doesn't include a port.
#1865193a9057 Thanks @umeraamir69! - Returns 400 Bad Request for malformed percent-encoded paths in the dev server and static preview instead of bubbling into a 500
#18672e901468 Thanks @astro-factory! - Fixes astro check reporting @astrojs/check as missing when the package is installed but throws while loading. The original error is now shown instead of an install prompt.
#1864108e2cee Thanks @astro-factory! - Fixes security.allowedDomains accepting non-HTTP(S) X-Forwarded-Proto values (such as ftp or ws) when the list mixes patterns with and without a protocol
#1868662bb716 Thanks @astro-factory! - Fixes astro build deleting the license file generated by Vite's build.license option. Astro now removes only its own Vite manifest from the .vite/ output folder.
#18629e9916e1 Thanks @decrek! - Fixes spreading an object onto an element with scoped styles changing that object. When the same object was spread on every render, for example a constant imported from another module, its class grew with every request.
#1864108e2cee Thanks @astro-factory! - Tightens how security.allowedDomains validates the Host and X-Forwarded-Host headers. Only a plain hostname with an optional port is accepted, and the validated host is applied to Astro.url exactly as it was matched.
#186218a61493 Thanks @marcalexiei! - Fixes the dev toolbar's audit freezing an image's CSS animations in Safari, by reading the image's size from the request that loaded it instead of fetching it again
#18691f787792 Thanks @ematipico! - Improves startup time of astro commands by loading SVGO only when svgoOptimizer() optimizes an SVG, instead of whenever astro/config is imported
#18678ea63d76 Thanks @astro-factory! - Fixes duplicate CSS loading for hydrated islands that share modules or are imported through a path alias. The client build no longer emits and preloads stylesheets that are already linked on the page by the server build.
#18681bf1828b Thanks @astro-factory! - Fixes static builds skipping or failing on pages whose getStaticPaths() params contain characters like % or \, and warns when a prerendered page is skipped because it returned an empty error response
#18630c904827 Thanks @astro-factory! - Fixes bundled scripts and hydrated islands being blocked when security.csp.scriptDirective.strictDynamic is enabled. Astro now adds the hash of every bundled script to script-src and renders an import map with their integrity in the <head>.
#18611f98e8a8 Thanks @matthewp! - Fixes bundling of a <script src> that uses a root-relative path to a project file outside src/, such as /lib/analytics.ts. The error asking for is:inline is now shown only when the path points to a file in public/.
#186881999c84 Thanks @astro-factory! - Fixes errors thrown after a page has started streaming bypassing the configured logger. They are now reported once through it, as one error record, in both production and astro dev
7da442b Thanks @matthewp! - Fixes the image endpoint treating directories whose names differ only by letter case as being inside the build output directory on case-sensitive filesystems
#18565cd09986 Thanks @praveen-kumary! - Avoids attributing client-only components or scripts to unrelated pages importing astro:i18n by bounding top-level page graph traversal at virtual page entries
#18608babd96d Thanks @umeraamir69! - Fixes an extra page reload on the first page load after starting astro dev without an existing .astro directory
#18589402c0fa Thanks @astro-factory! - Fixes astro check exiting with code 0 when @astrojs/check or typescript is not installed. The command now exits with code 1 so CI fails instead of silently skipping type checking.
#1850354fcdd5 Thanks @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.
#1860576cd239 Thanks @astro-factory! - Fixes the glob() loader adding files from a folder excluded with a negation pattern such as !_docs when they change during astro dev
#18432ed60d82 Thanks @alexmv! - Improves the MissingSharp error to include the reason Sharp failed to load, such as its prebuilt binaries not supporting the current CPU
#1847459543c3 Thanks @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/about with fallback: { de: 'en' }) was answered with status 302 and no Location header. Such requests are now rewritten or redirected to the fallback locale according to i18n.routing.fallbackType, including encoded paths and sites with a configured base. Query strings are preserved, and explicit page statuses and redirects are left unchanged.
#18541cfa2d2b Thanks @ump45nose! - Fixes matchAllRoutes to consider fallbackRoutes, matching matchRoute and 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.
#18602d856064 Thanks @astro-factory! - Fixes astro check losing the end of its output, including the Result summary, when stdout is piped to a slow reader. When the reader closes the pipe early, for example astro check | head, astro check now exits with code 1 instead of crashing with an EPIPE stack trace.
#18574da0f149 Thanks @astro-factory! - 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
#18570e71c038 Thanks @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.
#18531f75553b Thanks @praveen-kumary! - Fixes an unhandled TypeError: Cannot convert undefined or null to object when calling route.generate() without arguments on static routes
#18558fac3c50 Thanks @astro-factory! - Fixes astro dev status and other background server commands deleting the lock file of a running dev or preview server when run from a sandbox or as another user that is not permitted to signal its process
#1855910dae2f Thanks @astro-factory! - Fixes import.meta.env values containing $ sequences (such as $$ or $&) being corrupted in astro build when server code reads the import.meta.env object directly, for example with const { MY_SECRET } = import.meta.env
#18544e3bec3d Thanks @skezo! - Fixes request paths with invalid percent-encoding (e.g. /%C0%AF or a bare %) being logged as an Invalid URL encoding error and routed with the undecoded path. These requests now return a 400, the same as a path that is encoded too many times.
#18520e023aba Thanks @matthewp! - Makes rendering of string tag names stricter and consistent across .astro dynamic tags, JSX, and MDX. Only the leading part of the string that is a valid element name is rendered, so characters such as / or = can no longer change the generated markup. A string that does not start with a valid element name (for example '!--' or '') now throws an error instead of producing invalid HTML.
#18488e4e25fa Thanks @umeraamir69! - CSP no longer hashes empty children on external stylesheets and scripts, which was inserting the SHA-256 of the empty string into script-src and style-src.
#18500e5a3a1b Thanks @astro-factory! - Fixes <Image> and <Picture> emitting duplicate srcset candidates when densities contains equivalent values such as 1 and '1x'
#18517c3185b7 Thanks @okxint! - Fix unhandled AbortError rejection when ClientRouter skips a pending view transition
#18497c712113 Thanks @astro-factory! - Fixes an uncaught TypeError in the browser when a server:defer island request fails due to a network error. The fallback content is kept, as it is for non-200 responses.
#18525d0240b9 Thanks @astro-factory! - Fixes a DEP0190 deprecation warning printed by astro info on Node.js 24 and later
#18522776b9a6 Thanks @astro-factory! - Fixes memoryCache() serving an empty body for cached pages that return an empty 404 or 500 response. These responses now render the 404 or 500 error page on every request.
#18511d060ff9 Thanks @astro-factory! - Fixes transition:name styles missing in dev when the element is inside a component that is only rendered through another component with no styles or scripts
#184945fe699c Thanks @astro-factory! - Fixes the astro CLI refusing to run on StackBlitz by allowing Node.js >=22.22.0 inside WebContainers, whose Node.js version users cannot change
#18506bf43a60 Thanks @astro-factory! - Fixes <ClientRouter /> animating scroll restoration on back/forward navigation when scroll-behavior: smooth is set. Saved scroll positions are now restored instantly, matching the browser's native behavior.
#184768ea79a2 Thanks @astro-factory! - Fixes a DataCloneError crash when building pages that render SVG imports with <Image /> or getImage() while experimental.parallelPrerender is enabled.
#185046dbd737 Thanks @astro-factory! - Fixes <Picture> emitting a duplicate 1x candidate in <source>srcset when densities includes 1
#185247524889 Thanks @astro-factory! - Fixes type errors reported in Astro's built-in <Image />, <Picture />, <Code />, <Debug /> and <ClientRouter /> components when type-checking a project that extends astro/tsconfigs/strictest with tsc and @astrojs/ts-content-mapper
#184933773941 Thanks @astro-factory! - Fixes scoped styles of unused Astro components being included in the build when those components are re-exported from a barrel file
#185121151b9e Thanks @jp-knj! - Fixes CSP hashes added with Astro.csp from components rendered inside <body> being left out of the CSP <meta> element in static builds, including MDX pages
#18430dda9ec3 Thanks @Abhirup-99! - Speeds up content sync with experimental.collectionStorage: "chunked" by computing each character's UTF-8 width from its code point instead of encoding every character through TextEncoder. On a store of ~44k entries this cuts the chunking step from about 60 seconds to well under a second, with byte-identical output.
#184385e0eaa4 Thanks @astro-factory! - Fixes astro dev with @astrojs/cloudflare failing with Calling `require` for "node-fetch" when a server dependency such as cross-fetch requires node-fetch
#18376a4e201d Thanks @okxint! - Fixes astro dev treating a stale lock file containing a Linux thread ID as a running Astro server. A successful process lookup with no matching PID now marks the lock as stale, preventing astro dev stop and astro dev --force from killing the unrelated process that owns the thread.
#18467d1fb7d3 Thanks @astro-factory! - Fixes the defineConfig() types for i18n.defaultLocale, i18n.fallback, and i18n.domains so they accept a custom locale's path instead of its codes, matching how Astro validates and uses these values
This is a patch release because the Node.js support and upgrade policy allows the Core team to raise the minimum Maintenance LTS version in a patch release when a disclosed and fixed Node.js security flaw affects Astro.
#184517a0ba6f Thanks @DenisCDev! - Fixes astro sync, astro check and astro build replacing the optimized dependencies of a dev server running in the same project, which broke framework islands in that dev server until it was restarted with --force
#18336e943003 Thanks @astro-factory! - Fixes inline styles in dev so that framework-transformed CSS is used, such as scoped styles and v-bind() in Vue single-file components
#18399829fc00 Thanks @astro-factory! - Fixes a dev server error (Could not find server component name) for a server:defer island that imports astro:actions or astro:config/server, when its page was not the first island page loaded after starting the server
#183304db9e0d Thanks @Samuteg! - Fixes the astro:env/server virtual module being generated with invalid JS in dev when any environment variable contains $ replacement patterns ($`, $&, $', $1, …). The inlined env JSON was passed as a string to String.replace, so e.g. the KITTY_PUBLIC_KEY value set by default in Kitty terminals corrupted the module and broke dev with Failed to parse source for import analysis
This PR contains the following updates:
| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [@astrojs/check](https://github.com/withastro/astro/tree/main/packages/language-tools/astro-check) ([source](https://github.com/withastro/astro/tree/HEAD/packages/language-tools/astro-check)) | [`0.9.11` → `0.9.12`](https://renovatebot.com/diffs/npm/@astrojs%2fcheck/0.9.11/0.9.12) |  |  |
| [@astrojs/node](https://docs.astro.build/en/guides/integrations-guide/node/) ([source](https://github.com/withastro/astro/tree/HEAD/packages/integrations/node)) | [`11.1.9` → `11.1.14`](https://renovatebot.com/diffs/npm/@astrojs%2fnode/11.1.9/11.1.14) |  |  |
| [astro](https://astro.build) ([source](https://github.com/withastro/astro/tree/HEAD/packages/astro)) | [`7.4.1` → `7.4.13`](https://renovatebot.com/diffs/npm/astro/7.4.1/7.4.13) |  |  |
---
### Release Notes
<details>
<summary>withastro/astro (@​astrojs/check)</summary>
### [`v0.9.12`](https://github.com/withastro/astro/blob/HEAD/packages/language-tools/astro-check/CHANGELOG.md#0912)
[Compare Source](https://github.com/withastro/astro/compare/@astrojs/check@0.9.11...@astrojs/check@0.9.12)
##### Patch Changes
- [#​18455](https://github.com/withastro/astro/pull/18455) [`7af66fc`](https://github.com/withastro/astro/commit/7af66fc785d85b1df1f98e7123a52b2306250985) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes the `astro-check` binary ignoring its first two command-line arguments, so flags such as `--help`, `--root`, `--watch`, and `--tsconfig` are respected again. If your scripts padded the arguments to work around this (for example, `astro-check -- -- --tsconfig ./tsconfig.app.json`), remove the padding.
- Updated dependencies \[[`044148d`](https://github.com/withastro/astro/commit/044148d5cfbc90e0277b3205a52ec73bc452bb7e)]:
- [@​astrojs/language-server](https://github.com/astrojs/language-server)@2.17.3
</details>
<details>
<summary>withastro/astro (@​astrojs/node)</summary>
### [`v11.1.14`](https://github.com/withastro/astro/blob/HEAD/packages/integrations/node/CHANGELOG.md#11114)
[Compare Source](https://github.com/withastro/astro/compare/@astrojs/node@11.1.13...@astrojs/node@11.1.14)
##### Patch Changes
- [#​18636](https://github.com/withastro/astro/pull/18636) [`b4de3b5`](https://github.com/withastro/astro/commit/b4de3b5e229c3ea5fb0c651c9a9953240b54d0ed) Thanks [@​umeraamir69](https://github.com/umeraamir69)! - Shares one process `unhandledRejection` listener across app handlers so standalone mode no longer treats in-request rejections as outside request context
- [#​18743](https://github.com/withastro/astro/pull/18743) [`7c8dad5`](https://github.com/withastro/astro/commit/7c8dad5fa900261d79c240e68d95ae93ad491f3d) Thanks [@​EnesKartal](https://github.com/EnesKartal)! - Adds `Content-Type: text/plain; charset=utf-8` header to `400` responses for undecodable URLs in standalone mode.
### [`v11.1.13`](https://github.com/withastro/astro/blob/HEAD/packages/integrations/node/CHANGELOG.md#11113)
[Compare Source](https://github.com/withastro/astro/compare/@astrojs/node@11.1.12...@astrojs/node@11.1.13)
##### Patch Changes
- [#​18713](https://github.com/withastro/astro/pull/18713) [`59052e7`](https://github.com/withastro/astro/commit/59052e72668578a341a2c412769ead56d570fbe5) Thanks [@​delucis](https://github.com/delucis)! - Unpins `@astrojs/*` dependencies to allow versions matching the `^` range to be installed
### [`v11.1.12`](https://github.com/withastro/astro/blob/HEAD/packages/integrations/node/CHANGELOG.md#11112)
[Compare Source](https://github.com/withastro/astro/compare/@astrojs/node@11.1.11...@astrojs/node@11.1.12)
##### Patch Changes
- Updated dependencies \[[`57137ed`](https://github.com/withastro/astro/commit/57137ed304b8f4220c8ae03606039bd521f1e005)]:
- [@​astrojs/internal-helpers](https://github.com/astrojs/internal-helpers)@0.13.2
### [`v11.1.11`](https://github.com/withastro/astro/blob/HEAD/packages/integrations/node/CHANGELOG.md#11111)
[Compare Source](https://github.com/withastro/astro/compare/@astrojs/node@11.1.10...@astrojs/node@11.1.11)
##### Patch Changes
- Updated dependencies \[[`7da442b`](https://github.com/withastro/astro/commit/7da442bb286e0c29e1c9e1add6727b7cbf434f1a)]:
- [@​astrojs/internal-helpers](https://github.com/astrojs/internal-helpers)@0.13.1
### [`v11.1.10`](https://github.com/withastro/astro/blob/HEAD/packages/integrations/node/CHANGELOG.md#11110)
[Compare Source](https://github.com/withastro/astro/compare/@astrojs/node@11.1.9...@astrojs/node@11.1.10)
##### Patch Changes
- [#​18563](https://github.com/withastro/astro/pull/18563) [`8a92f7c`](https://github.com/withastro/astro/commit/8a92f7c7cc2df893a23ba0d75e40d2825741761d) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes on-demand routes receiving an empty request body on Node.js 26 when `staticHeaders` is enabled
</details>
<details>
<summary>withastro/astro (astro)</summary>
### [`v7.4.13`](https://github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#7413)
[Compare Source](https://github.com/withastro/astro/compare/astro@7.4.12...astro@7.4.13)
##### Patch Changes
- [#​18770](https://github.com/withastro/astro/pull/18770) [`c850735`](https://github.com/withastro/astro/commit/c85073521bda842b52e8a531e0f5aa8f0c775670) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes the dev toolbar's `a11y-missing-content` audit reporting anchors and headings that are hidden with `visibility: hidden` or are inside an `aria-hidden="true"` subtree
- [#​18536](https://github.com/withastro/astro/pull/18536) [`d044365`](https://github.com/withastro/astro/commit/d04436561ab1cc214a92f9a06b6f1c669865ed13) Thanks [@​KoenRijpstra](https://github.com/KoenRijpstra)! - Fixes server bundles including every renderable content collection entry when no server-rendered route calls `render()` from `astro:content`
- [#​18740](https://github.com/withastro/astro/pull/18740) [`c7a2f1d`](https://github.com/withastro/astro/commit/c7a2f1d16a08bab8c9e2d380e0991fb22a5bafc1) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes `i18n.fallback` failing with `i18nNoLocaleFoundInPath` when the fallback target is a locale defined with a custom `path`
- [#​18660](https://github.com/withastro/astro/pull/18660) [`75ac226`](https://github.com/withastro/astro/commit/75ac226035c5fccf5fcc0c69e07cebba1dda7ad7) Thanks [@​NetBr3ak](https://github.com/NetBr3ak)! - Fixes `<Font preload>` emitting no preload links when a requested weight range such as `"400 700"` sits inside a variable font file's range such as `"400 900"`
- [#​18758](https://github.com/withastro/astro/pull/18758) [`273d7da`](https://github.com/withastro/astro/commit/273d7da528a1f28556ade4a5eebc2201173057e6) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes `astro dev status`, `astro dev logs`, and the `astro preview` equivalents treating a server started with `ASTRO_DEV_BACKGROUND=0` or `ASTRO_PREVIEW_BACKGROUND=0` as a background server
- [#​18658](https://github.com/withastro/astro/pull/18658) [`33c931e`](https://github.com/withastro/astro/commit/33c931ef1d594508fe9ed8e2a98d41bec36c6abf) Thanks [@​hood](https://github.com/hood)! - Improves startup time of every `astro` command for projects that don't configure `fonts`, by loading the font resolution dependencies only when fonts are used
- [#​18771](https://github.com/withastro/astro/pull/18771) [`01c942d`](https://github.com/withastro/astro/commit/01c942da6308d5b89bd5e3910559f7c255acae20) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes the dev toolbar's audit fetching `loading="lazy"` images again to measure them, which froze animated SVGs in Safari and downloaded images the page meant to load later
- [#​18711](https://github.com/withastro/astro/pull/18711) [`bf5a170`](https://github.com/withastro/astro/commit/bf5a17080454d2696e2cd40cc7e03a76d73efc57) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes the dev server blocking cross-origin requests from an origin allowed by a `security.allowedDomains` entry with a default `port`, such as `{ hostname: 'staging.myapp.com', protocol: 'https', port: '443' }`. `BaseApp.validateForwardedHost()` now applies the same `allowedDomains` rules as the rest of Astro.
- [#​18733](https://github.com/withastro/astro/pull/18733) [`c6ab3c5`](https://github.com/withastro/astro/commit/c6ab3c583a98dc2033cfa41085546f88979cbf7f) Thanks [@​Marve10s](https://github.com/Marve10s)! - Fixes hydration of framework components receiving sparse array props by serializing holes as undefined
- Updated dependencies \[[`c6ab3c5`](https://github.com/withastro/astro/commit/c6ab3c583a98dc2033cfa41085546f88979cbf7f)]:
- [@​astrojs/runtime](https://github.com/astrojs/runtime)@0.1.2
### [`v7.4.12`](https://github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#7412)
[Compare Source](https://github.com/withastro/astro/compare/astro@7.4.11...astro@7.4.12)
##### Patch Changes
- [#​18409](https://github.com/withastro/astro/pull/18409) [`2917650`](https://github.com/withastro/astro/commit/29176503c5bddedb4671eafc468c73a44e076b00) Thanks [@​matthewp](https://github.com/matthewp)! - Fixes a typo in the error message shown when a font `cssVariable` is invalid
- [#​18709](https://github.com/withastro/astro/pull/18709) [`6f1a2a8`](https://github.com/withastro/astro/commit/6f1a2a82735a1d75799d241276050e71493d656a) Thanks [@​ematipico](https://github.com/ematipico)! - Reduces memory usage during `astro build` by releasing content collection entries from memory once the content layer sync is complete.
- [#​18713](https://github.com/withastro/astro/pull/18713) [`59052e7`](https://github.com/withastro/astro/commit/59052e72668578a341a2c412769ead56d570fbe5) Thanks [@​delucis](https://github.com/delucis)! - Unpins `@astrojs/*` dependencies to allow versions matching the `^` range to be installed
- Updated dependencies \[[`59052e7`](https://github.com/withastro/astro/commit/59052e72668578a341a2c412769ead56d570fbe5)]:
- [@​astrojs/markdown-satteri](https://github.com/astrojs/markdown-satteri)@0.4.10
- [@​astrojs/vite-plugin-astro](https://github.com/astrojs/vite-plugin-astro)@0.1.3
### [`v7.4.11`](https://github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#7411)
[Compare Source](https://github.com/withastro/astro/compare/astro@7.4.10...astro@7.4.11)
##### Patch Changes
- [#​18641](https://github.com/withastro/astro/pull/18641) [`08e2cee`](https://github.com/withastro/astro/commit/08e2cee8b3ca41db0aa158549e51d2046fbd57a4) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Validates the protocol, host and port from `X-Forwarded-Proto`, `X-Forwarded-Host` and `X-Forwarded-Port` together against each `security.allowedDomains` entry, instead of one at a time:
- A forwarded protocol is only applied when an entry allows it for the host in use.
- A forwarded port is only applied when the entry for that host lists it.
- A forwarded host without a forwarded protocol is validated with the protocol of the server.
- An entry with `port: '443'` (or `'80'` for `http`) now matches a host that doesn't include a port.
- [#​18651](https://github.com/withastro/astro/pull/18651) [`93a9057`](https://github.com/withastro/astro/commit/93a9057fdcee6273a3b2199bc80b788039c3ac87) Thanks [@​umeraamir69](https://github.com/umeraamir69)! - Returns 400 Bad Request for malformed percent-encoded paths in the dev server and static preview instead of bubbling into a 500
- [#​18672](https://github.com/withastro/astro/pull/18672) [`e901468`](https://github.com/withastro/astro/commit/e901468eafb752f51192940040d4217e8e88e5bf) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes `astro check` reporting `@astrojs/check` as missing when the package is installed but throws while loading. The original error is now shown instead of an install prompt.
- [#​18641](https://github.com/withastro/astro/pull/18641) [`08e2cee`](https://github.com/withastro/astro/commit/08e2cee8b3ca41db0aa158549e51d2046fbd57a4) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes `security.allowedDomains` accepting non-HTTP(S) `X-Forwarded-Proto` values (such as `ftp` or `ws`) when the list mixes patterns with and without a `protocol`
- [#​18686](https://github.com/withastro/astro/pull/18686) [`62bb716`](https://github.com/withastro/astro/commit/62bb716444159e733dad6c82a436e82577c53d05) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes `astro build` deleting the license file generated by Vite's `build.license` option. Astro now removes only its own Vite manifest from the `.vite/` output folder.
- [#​18629](https://github.com/withastro/astro/pull/18629) [`e9916e1`](https://github.com/withastro/astro/commit/e9916e1bff5f3e740d533a6f504630bd6c528ddf) Thanks [@​decrek](https://github.com/decrek)! - Fixes spreading an object onto an element with scoped styles changing that object. When the same object was spread on every render, for example a constant imported from another module, its `class` grew with every request.
- [#​18641](https://github.com/withastro/astro/pull/18641) [`08e2cee`](https://github.com/withastro/astro/commit/08e2cee8b3ca41db0aa158549e51d2046fbd57a4) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Tightens how `security.allowedDomains` validates the `Host` and `X-Forwarded-Host` headers. Only a plain hostname with an optional port is accepted, and the validated host is applied to `Astro.url` exactly as it was matched.
- Updated dependencies \[[`d13beeb`](https://github.com/withastro/astro/commit/d13beeb66c753f03cbdbf4509cf2c527c816f1a4), [`e9916e1`](https://github.com/withastro/astro/commit/e9916e1bff5f3e740d533a6f504630bd6c528ddf)]:
- [@​astrojs/markdown-satteri](https://github.com/astrojs/markdown-satteri)@0.4.9
- [@​astrojs/runtime](https://github.com/astrojs/runtime)@0.1.1
- [@​astrojs/vite-plugin-astro](https://github.com/astrojs/vite-plugin-astro)@0.1.2
### [`v7.4.10`](https://github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#7410)
[Compare Source](https://github.com/withastro/astro/compare/astro@7.4.9...astro@7.4.10)
##### Patch Changes
- [#​18621](https://github.com/withastro/astro/pull/18621) [`8a61493`](https://github.com/withastro/astro/commit/8a61493b016c6ef46320f77ee57fc8a3dee4ab6e) Thanks [@​marcalexiei](https://github.com/marcalexiei)! - Fixes the dev toolbar's audit freezing an image's CSS animations in Safari, by reading the image's size from the request that loaded it instead of fetching it again
- [#​18691](https://github.com/withastro/astro/pull/18691) [`f787792`](https://github.com/withastro/astro/commit/f7877920f114223ddd4446d6a2867b305e5676d1) Thanks [@​ematipico](https://github.com/ematipico)! - Improves startup time of `astro` commands by loading SVGO only when `svgoOptimizer()` optimizes an SVG, instead of whenever `astro/config` is imported
- [#​18678](https://github.com/withastro/astro/pull/18678) [`ea63d76`](https://github.com/withastro/astro/commit/ea63d761902e0e3d82773e8ae741ff5c58585ce3) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes duplicate CSS loading for hydrated islands that share modules or are imported through a path alias. The client build no longer emits and preloads stylesheets that are already linked on the page by the server build.
- Updated dependencies \[[`57137ed`](https://github.com/withastro/astro/commit/57137ed304b8f4220c8ae03606039bd521f1e005)]:
- [@​astrojs/internal-helpers](https://github.com/astrojs/internal-helpers)@0.13.2
- [@​astrojs/markdown-satteri](https://github.com/astrojs/markdown-satteri)@0.4.8
- [@​astrojs/vite-plugin-astro](https://github.com/astrojs/vite-plugin-astro)@0.1.1
### [`v7.4.9`](https://github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#749)
[Compare Source](https://github.com/withastro/astro/compare/astro@7.4.8...astro@7.4.9)
##### Patch Changes
- [#​18681](https://github.com/withastro/astro/pull/18681) [`bf1828b`](https://github.com/withastro/astro/commit/bf1828be165eacff239f752c394d9048ecc02ee5) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes static builds skipping or failing on pages whose `getStaticPaths()` params contain characters like `%` or `\`, and warns when a prerendered page is skipped because it returned an empty error response
- [#​18630](https://github.com/withastro/astro/pull/18630) [`c904827`](https://github.com/withastro/astro/commit/c904827015f4a71e890ac51919adada9c219a3e9) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes bundled scripts and hydrated islands being blocked when `security.csp.scriptDirective.strictDynamic` is enabled. Astro now adds the hash of every bundled script to `script-src` and renders an import map with their `integrity` in the `<head>`.
- [#​18611](https://github.com/withastro/astro/pull/18611) [`f98e8a8`](https://github.com/withastro/astro/commit/f98e8a8a90d25d0423763c61badc005c92c282d9) Thanks [@​matthewp](https://github.com/matthewp)! - Fixes bundling of a `<script src>` that uses a root-relative path to a project file outside `src/`, such as `/lib/analytics.ts`. The error asking for `is:inline` is now shown only when the path points to a file in `public/`.
- [#​18688](https://github.com/withastro/astro/pull/18688) [`1999c84`](https://github.com/withastro/astro/commit/1999c842f8c9e2cd577207550359941f6a2e5691) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes errors thrown after a page has started streaming bypassing the configured `logger`. They are now reported once through it, as one `error` record, in both production and `astro dev`
- Updated dependencies \[[`c904827`](https://github.com/withastro/astro/commit/c904827015f4a71e890ac51919adada9c219a3e9), [`5083c65`](https://github.com/withastro/astro/commit/5083c6540cfe47fb9658ce71f424a3a03448ffaf), [`1999c84`](https://github.com/withastro/astro/commit/1999c842f8c9e2cd577207550359941f6a2e5691), [`5083c65`](https://github.com/withastro/astro/commit/5083c6540cfe47fb9658ce71f424a3a03448ffaf), [`f98e8a8`](https://github.com/withastro/astro/commit/f98e8a8a90d25d0423763c61badc005c92c282d9), [`f98e8a8`](https://github.com/withastro/astro/commit/f98e8a8a90d25d0423763c61badc005c92c282d9)]:
- [@​astrojs/runtime](https://github.com/astrojs/runtime)@0.1.0
- [@​astrojs/vite-plugin-astro](https://github.com/astrojs/vite-plugin-astro)@0.1.0
### [`v7.4.8`](https://github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#748)
[Compare Source](https://github.com/withastro/astro/compare/astro@7.4.7...astro@7.4.8)
##### Patch Changes
- [#​18616](https://github.com/withastro/astro/pull/18616) [`d747a53`](https://github.com/withastro/astro/commit/d747a535f523b92b6514a9f4b25f49922d748bcf) Thanks [@​florian-lefebvre](https://github.com/florian-lefebvre)! - Updates CLI argument parsing
### [`v7.4.7`](https://github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#747)
[Compare Source](https://github.com/withastro/astro/compare/astro@7.4.6...astro@7.4.7)
##### Patch Changes
- [`7da442b`](https://github.com/withastro/astro/commit/7da442bb286e0c29e1c9e1add6727b7cbf434f1a) Thanks [@​matthewp](https://github.com/matthewp)! - Fixes the image endpoint treating directories whose names differ only by letter case as being inside the build output directory on case-sensitive filesystems
- Updated dependencies \[[`7da442b`](https://github.com/withastro/astro/commit/7da442bb286e0c29e1c9e1add6727b7cbf434f1a)]:
- [@​astrojs/internal-helpers](https://github.com/astrojs/internal-helpers)@0.13.1
- [@​astrojs/markdown-satteri](https://github.com/astrojs/markdown-satteri)@0.4.7
### [`v7.4.6`](https://github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#746)
[Compare Source](https://github.com/withastro/astro/compare/astro@7.4.5...astro@7.4.6)
##### Patch Changes
- [#​18565](https://github.com/withastro/astro/pull/18565) [`cd09986`](https://github.com/withastro/astro/commit/cd0998612eb9f48946991479d68590a1407ee5e0) Thanks [@​praveen-kumary](https://github.com/praveen-kumary)! - Avoids attributing client-only components or scripts to unrelated pages importing `astro:i18n` by bounding top-level page graph traversal at virtual page entries
- [#​18608](https://github.com/withastro/astro/pull/18608) [`babd96d`](https://github.com/withastro/astro/commit/babd96d1f16b8ea5a699693fb725a759d9fa03de) Thanks [@​umeraamir69](https://github.com/umeraamir69)! - Fixes an extra page reload on the first page load after starting `astro dev` without an existing `.astro` directory
- [#​18589](https://github.com/withastro/astro/pull/18589) [`402c0fa`](https://github.com/withastro/astro/commit/402c0fae01d251c97298c255804008ff566802f9) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes `astro check` exiting with code 0 when `@astrojs/check` or `typescript` is not installed. The command now exits with code 1 so CI fails instead of silently skipping type checking.
- [#​18503](https://github.com/withastro/astro/pull/18503) [`54fcdd5`](https://github.com/withastro/astro/commit/54fcdd5dedc982a77f1590e26247d57dd1802da9) Thanks [@​SwastikTripathi](https://github.com/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](https://github.com/withastro/astro/pull/18605) [`76cd239`](https://github.com/withastro/astro/commit/76cd2398642bd77b61b9880dcfc7b78d513cb048) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes the `glob()` loader adding files from a folder excluded with a negation pattern such as `!_docs` when they change during `astro dev`
- [#​18432](https://github.com/withastro/astro/pull/18432) [`ed60d82`](https://github.com/withastro/astro/commit/ed60d82935d5768c3fcf67ce508e1f4edbfe25d6) Thanks [@​alexmv](https://github.com/alexmv)! - Improves the `MissingSharp` error to include the reason Sharp failed to load, such as its prebuilt binaries not supporting the current CPU
- [#​18474](https://github.com/withastro/astro/pull/18474) [`59543c3`](https://github.com/withastro/astro/commit/59543c3ad52e7141bcd6365cd70e8b51f18ccbd4) Thanks [@​miottid](https://github.com/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/about` with `fallback: { de: 'en' }`) was answered with status `302` and no `Location` header. Such requests are now rewritten or redirected to the fallback locale according to `i18n.routing.fallbackType`, including encoded paths and sites with a configured `base`. Query strings are preserved, and explicit page statuses and redirects are left unchanged.
- [#​18541](https://github.com/withastro/astro/pull/18541) [`cfa2d2b`](https://github.com/withastro/astro/commit/cfa2d2b9e36ad610f6e7c27643e9157be3584a79) Thanks [@​ump45nose](https://github.com/ump45nose)! - Fixes `matchAllRoutes` to consider `fallbackRoutes`, matching `matchRoute` and 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](https://github.com/withastro/astro/pull/18602) [`d856064`](https://github.com/withastro/astro/commit/d8560645033aac84fe61d4f4b3462f55a9d2eb89) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes `astro check` losing the end of its output, including the `Result` summary, when stdout is piped to a slow reader. When the reader closes the pipe early, for example `astro check | head`, `astro check` now exits with code 1 instead of crashing with an `EPIPE` stack trace.
- [#​18574](https://github.com/withastro/astro/pull/18574) [`da0f149`](https://github.com/withastro/astro/commit/da0f149de58001fa5564d083acbae34e7b4a1b1f) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - 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
- [#​18570](https://github.com/withastro/astro/pull/18570) [`e71c038`](https://github.com/withastro/astro/commit/e71c038f31194280b44515bf53cf449a5313baf9) Thanks [@​astro-factory](https://github.com/apps/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](https://github.com/withastro/astro/pull/18531) [`f75553b`](https://github.com/withastro/astro/commit/f75553b8bbe6cb9b72d8fda0059198ab3330f089) Thanks [@​praveen-kumary](https://github.com/praveen-kumary)! - Fixes an unhandled `TypeError: Cannot convert undefined or null to object` when calling `route.generate()` without arguments on static routes
### [`v7.4.5`](https://github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#745)
[Compare Source](https://github.com/withastro/astro/compare/astro@7.4.4...astro@7.4.5)
##### Patch Changes
- [#​18558](https://github.com/withastro/astro/pull/18558) [`fac3c50`](https://github.com/withastro/astro/commit/fac3c50463ce9c290bdccb1d6dba30dc7ca4d779) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes `astro dev status` and other background server commands deleting the lock file of a running dev or preview server when run from a sandbox or as another user that is not permitted to signal its process
- [#​18559](https://github.com/withastro/astro/pull/18559) [`10dae2f`](https://github.com/withastro/astro/commit/10dae2f31486cc0a6a04d1f3d7f5ab7fa8889b30) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes `import.meta.env` values containing `$` sequences (such as `$$` or `$&`) being corrupted in `astro build` when server code reads the `import.meta.env` object directly, for example with `const { MY_SECRET } = import.meta.env`
- [#​18544](https://github.com/withastro/astro/pull/18544) [`e3bec3d`](https://github.com/withastro/astro/commit/e3bec3d2c770cb53771dad723db57a2ebf931b42) Thanks [@​skezo](https://github.com/skezo)! - Fixes request paths with invalid percent-encoding (e.g. `/%C0%AF` or a bare `%`) being logged as an `Invalid URL encoding` error and routed with the undecoded path. These requests now return a `400`, the same as a path that is encoded too many times.
- [#​18520](https://github.com/withastro/astro/pull/18520) [`e023aba`](https://github.com/withastro/astro/commit/e023abac912d7cb6af2b9fb5107ef5dabc667096) Thanks [@​matthewp](https://github.com/matthewp)! - Makes rendering of string tag names stricter and consistent across `.astro` dynamic tags, JSX, and MDX. Only the leading part of the string that is a valid element name is rendered, so characters such as `/` or `=` can no longer change the generated markup. A string that does not start with a valid element name (for example `'!--'` or `''`) now throws an error instead of producing invalid HTML.
### [`v7.4.4`](https://github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#744)
[Compare Source](https://github.com/withastro/astro/compare/astro@7.4.3...astro@7.4.4)
##### Patch Changes
- [#​18344](https://github.com/withastro/astro/pull/18344) [`df838da`](https://github.com/withastro/astro/commit/df838da6c6d965504fae0d89e12d3e67bdd0f4c6) Thanks [@​edmundhung](https://github.com/edmundhung)! - Allows `astro add` to configure tagged versions of official adapters
### [`v7.4.3`](https://github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#743)
[Compare Source](https://github.com/withastro/astro/compare/astro@7.4.2...astro@7.4.3)
##### Patch Changes
- [#​18488](https://github.com/withastro/astro/pull/18488) [`e4e25fa`](https://github.com/withastro/astro/commit/e4e25fa7d47e702985cbb1ee633d4ffb92f8dad6) Thanks [@​umeraamir69](https://github.com/umeraamir69)! - CSP no longer hashes empty children on external stylesheets and scripts, which was inserting the SHA-256 of the empty string into `script-src` and `style-src`.
- [#​18500](https://github.com/withastro/astro/pull/18500) [`e5a3a1b`](https://github.com/withastro/astro/commit/e5a3a1bdec268933f01a0da3fbeb4e38bdf455c9) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes `<Image>` and `<Picture>` emitting duplicate `srcset` candidates when `densities` contains equivalent values such as `1` and `'1x'`
- [#​18517](https://github.com/withastro/astro/pull/18517) [`c3185b7`](https://github.com/withastro/astro/commit/c3185b764e14f50664b0e63ec665804fdecf685e) Thanks [@​okxint](https://github.com/okxint)! - Fix unhandled `AbortError` rejection when `ClientRouter` skips a pending view transition
- [#​18497](https://github.com/withastro/astro/pull/18497) [`c712113`](https://github.com/withastro/astro/commit/c7121132acc25ee3a7f3dc6dd36240f031537878) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes an uncaught `TypeError` in the browser when a `server:defer` island request fails due to a network error. The fallback content is kept, as it is for non-200 responses.
- [#​18525](https://github.com/withastro/astro/pull/18525) [`d0240b9`](https://github.com/withastro/astro/commit/d0240b9d5738a97f0b8ad100b76bce8b7527e4cd) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes a `DEP0190` deprecation warning printed by `astro info` on Node.js 24 and later
- [#​18522](https://github.com/withastro/astro/pull/18522) [`776b9a6`](https://github.com/withastro/astro/commit/776b9a6124a8d5aef8e280a8af4f8ba68c80e65b) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes `memoryCache()` serving an empty body for cached pages that return an empty `404` or `500` response. These responses now render the `404` or `500` error page on every request.
- [#​18511](https://github.com/withastro/astro/pull/18511) [`d060ff9`](https://github.com/withastro/astro/commit/d060ff9b68f737af2788e521635afb6f6a84b029) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes `transition:name` styles missing in dev when the element is inside a component that is only rendered through another component with no styles or scripts
- [#​18494](https://github.com/withastro/astro/pull/18494) [`5fe699c`](https://github.com/withastro/astro/commit/5fe699c888d0423db75cac3f0939409d7eb28e37) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes the `astro` CLI refusing to run on StackBlitz by allowing Node.js `>=22.22.0` inside WebContainers, whose Node.js version users cannot change
- [#​18506](https://github.com/withastro/astro/pull/18506) [`bf43a60`](https://github.com/withastro/astro/commit/bf43a6042f8a9e87c2cef1b4c36700d4e941c35f) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes `<ClientRouter />` animating scroll restoration on back/forward navigation when `scroll-behavior: smooth` is set. Saved scroll positions are now restored instantly, matching the browser's native behavior.
- [#​18476](https://github.com/withastro/astro/pull/18476) [`8ea79a2`](https://github.com/withastro/astro/commit/8ea79a282e53b83c65f69c9013f5eeb5d97aadb1) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes a `DataCloneError` crash when building pages that render SVG imports with `<Image />` or `getImage()` while `experimental.parallelPrerender` is enabled.
- [#​18504](https://github.com/withastro/astro/pull/18504) [`6dbd737`](https://github.com/withastro/astro/commit/6dbd73764f8a0f16d696f276b634e32631982aab) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes `<Picture>` emitting a duplicate `1x` candidate in `<source>` `srcset` when `densities` includes `1`
- [#​18524](https://github.com/withastro/astro/pull/18524) [`7524889`](https://github.com/withastro/astro/commit/75248890363ce7de03e5d9b56605958323752dc4) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes type errors reported in Astro's built-in `<Image />`, `<Picture />`, `<Code />`, `<Debug />` and `<ClientRouter />` components when type-checking a project that extends `astro/tsconfigs/strictest` with `tsc` and `@astrojs/ts-content-mapper`
- [#​18493](https://github.com/withastro/astro/pull/18493) [`3773941`](https://github.com/withastro/astro/commit/377394179293d1f898c49d38a5b28cf9b21641a9) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes scoped styles of unused Astro components being included in the build when those components are re-exported from a barrel file
- [#​18512](https://github.com/withastro/astro/pull/18512) [`1151b9e`](https://github.com/withastro/astro/commit/1151b9e0d05e850fa3638a927ac9f66179010e00) Thanks [@​jp-knj](https://github.com/jp-knj)! - Fixes CSP hashes added with `Astro.csp` from components rendered inside `<body>` being left out of the CSP `<meta>` element in static builds, including MDX pages
- Updated dependencies \[[`6cf3423`](https://github.com/withastro/astro/commit/6cf3423e4c62af5e54a2676c8304a209ab1e064d), [`edfbf4a`](https://github.com/withastro/astro/commit/edfbf4ab34ff007ae8f7188af76a023a15c9443d)]:
- [@​astrojs/telemetry](https://github.com/astrojs/telemetry)@3.4.2
- [@​astrojs/markdown-satteri](https://github.com/astrojs/markdown-satteri)@0.4.6
### [`v7.4.2`](https://github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#742)
[Compare Source](https://github.com/withastro/astro/compare/astro@7.4.1...astro@7.4.2)
##### Patch Changes
- [#​18430](https://github.com/withastro/astro/pull/18430) [`dda9ec3`](https://github.com/withastro/astro/commit/dda9ec395c89a1420abb3b8f88b5c7f1f385f82e) Thanks [@​Abhirup-99](https://github.com/Abhirup-99)! - Speeds up content sync with `experimental.collectionStorage: "chunked"` by computing each character's UTF-8 width from its code point instead of encoding every character through `TextEncoder`. On a store of \~44k entries this cuts the chunking step from about 60 seconds to well under a second, with byte-identical output.
- [#​18438](https://github.com/withastro/astro/pull/18438) [`5e0eaa4`](https://github.com/withastro/astro/commit/5e0eaa4415a9081efdaeb3d9af3717ce3226ad18) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes `astro dev` with `@astrojs/cloudflare` failing with ``Calling `require` for "node-fetch"`` when a server dependency such as `cross-fetch` requires `node-fetch`
- [#​18376](https://github.com/withastro/astro/pull/18376) [`a4e201d`](https://github.com/withastro/astro/commit/a4e201d79f19caa6bf4222f42167aeb602c066e6) Thanks [@​okxint](https://github.com/okxint)! - Fixes `astro dev` treating a stale lock file containing a Linux thread ID as a running Astro server. A successful process lookup with no matching PID now marks the lock as stale, preventing `astro dev stop` and `astro dev --force` from killing the unrelated process that owns the thread.
- [#​18467](https://github.com/withastro/astro/pull/18467) [`d1fb7d3`](https://github.com/withastro/astro/commit/d1fb7d36dad440c57d62b071e752ae220cca2baa) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes the `defineConfig()` types for `i18n.defaultLocale`, `i18n.fallback`, and `i18n.domains` so they accept a custom locale's `path` instead of its `codes`, matching how Astro validates and uses these values
- [#​18475](https://github.com/withastro/astro/pull/18475) [`cf27e70`](https://github.com/withastro/astro/commit/cf27e70a9057ce29ade2a8a843bd9275a696e9ab) Thanks [@​ematipico](https://github.com/ematipico)! - Bumps the minimum supported Node.js version to 22.23.4, which includes the fixes from the [October 2026 Node.js security releases](https://nodejs.org/en/blog/vulnerability/october-2026-security-releases)
This is a patch release because the [Node.js support and upgrade policy](https://docs.astro.build/en/upgrade-astro/#nodejs-support-and-upgrade-policies) allows the Core team to raise the minimum Maintenance LTS version in a patch release when a disclosed and fixed Node.js security flaw affects Astro.
- [#​18451](https://github.com/withastro/astro/pull/18451) [`7a0ba6f`](https://github.com/withastro/astro/commit/7a0ba6f48ebae256a1ce49de4f1c62c009ff94e2) Thanks [@​DenisCDev](https://github.com/DenisCDev)! - Fixes `astro sync`, `astro check` and `astro build` replacing the optimized dependencies of a dev server running in the same project, which broke framework islands in that dev server until it was restarted with `--force`
- [#​18336](https://github.com/withastro/astro/pull/18336) [`e943003`](https://github.com/withastro/astro/commit/e943003259c3bb4d528d3d49c8ccd3eb8f84b8b5) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes inline styles in dev so that framework-transformed CSS is used, such as scoped styles and `v-bind()` in Vue single-file components
- [#​18399](https://github.com/withastro/astro/pull/18399) [`829fc00`](https://github.com/withastro/astro/commit/829fc00629ef715fc606b89c6e684ca93f9253b9) Thanks [@​astro-factory](https://github.com/apps/astro-factory)! - Fixes a dev server error (`Could not find server component name`) for a `server:defer` island that imports `astro:actions` or `astro:config/server`, when its page was not the first island page loaded after starting the server
- [#​18330](https://github.com/withastro/astro/pull/18330) [`4db9e0d`](https://github.com/withastro/astro/commit/4db9e0d1e6a54c2300b96a0ff0cfaf5c188cecda) Thanks [@​Samuteg](https://github.com/Samuteg)! - Fixes the `astro:env/server` virtual module being generated with invalid JS in dev when any environment variable contains `$` replacement patterns (`` $` ``, `$&`, `$'`, `$1`, …). The inlined env JSON was passed as a string to `String.replace`, so e.g. the `KITTY_PUBLIC_KEY` value set by default in Kitty terminals corrupted the module and broke dev with `Failed to parse source for import analysis`
- Updated dependencies \[[`cf27e70`](https://github.com/withastro/astro/commit/cf27e70a9057ce29ade2a8a843bd9275a696e9ab)]:
- [@​astrojs/telemetry](https://github.com/astrojs/telemetry)@3.4.1
- [@​astrojs/markdown-satteri](https://github.com/astrojs/markdown-satteri)@0.4.5
</details>
---
### Configuration
📅 **Schedule**: (in timezone Europe/Berlin)
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNjguMyIsInVwZGF0ZWRJblZlciI6IjQ0LjI1Ny42IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR contains the following updates:
0.9.11→0.9.1211.1.9→11.1.147.4.1→7.4.13Release Notes
withastro/astro (@astrojs/check)
v0.9.12Compare Source
Patch Changes
7af66fcThanks @astro-factory! - Fixes theastro-checkbinary ignoring its first two command-line arguments, so flags such as--help,--root,--watch, and--tsconfigare respected again. If your scripts padded the arguments to work around this (for example,astro-check -- -- --tsconfig ./tsconfig.app.json), remove the padding.044148d]:withastro/astro (@astrojs/node)
v11.1.14Compare Source
Patch Changes
#18636
b4de3b5Thanks @umeraamir69! - Shares one processunhandledRejectionlistener across app handlers so standalone mode no longer treats in-request rejections as outside request context#18743
7c8dad5Thanks @EnesKartal! - AddsContent-Type: text/plain; charset=utf-8header to400responses for undecodable URLs in standalone mode.v11.1.13Compare Source
Patch Changes
59052e7Thanks @delucis! - Unpins@astrojs/*dependencies to allow versions matching the^range to be installedv11.1.12Compare Source
Patch Changes
57137ed]:v11.1.11Compare Source
Patch Changes
7da442b]:v11.1.10Compare Source
Patch Changes
8a92f7cThanks @astro-factory! - Fixes on-demand routes receiving an empty request body on Node.js 26 whenstaticHeadersis enabledwithastro/astro (astro)
v7.4.13Compare Source
Patch Changes
#18770
c850735Thanks @astro-factory! - Fixes the dev toolbar'sa11y-missing-contentaudit reporting anchors and headings that are hidden withvisibility: hiddenor are inside anaria-hidden="true"subtree#18536
d044365Thanks @KoenRijpstra! - Fixes server bundles including every renderable content collection entry when no server-rendered route callsrender()fromastro:content#18740
c7a2f1dThanks @astro-factory! - Fixesi18n.fallbackfailing withi18nNoLocaleFoundInPathwhen the fallback target is a locale defined with a custompath#18660
75ac226Thanks @NetBr3ak! - Fixes<Font preload>emitting no preload links when a requested weight range such as"400 700"sits inside a variable font file's range such as"400 900"#18758
273d7daThanks @astro-factory! - Fixesastro dev status,astro dev logs, and theastro previewequivalents treating a server started withASTRO_DEV_BACKGROUND=0orASTRO_PREVIEW_BACKGROUND=0as a background server#18658
33c931eThanks @hood! - Improves startup time of everyastrocommand for projects that don't configurefonts, by loading the font resolution dependencies only when fonts are used#18771
01c942dThanks @astro-factory! - Fixes the dev toolbar's audit fetchingloading="lazy"images again to measure them, which froze animated SVGs in Safari and downloaded images the page meant to load later#18711
bf5a170Thanks @astro-factory! - Fixes the dev server blocking cross-origin requests from an origin allowed by asecurity.allowedDomainsentry with a defaultport, such as{ hostname: 'staging.myapp.com', protocol: 'https', port: '443' }.BaseApp.validateForwardedHost()now applies the sameallowedDomainsrules as the rest of Astro.#18733
c6ab3c5Thanks @Marve10s! - Fixes hydration of framework components receiving sparse array props by serializing holes as undefinedUpdated dependencies [
c6ab3c5]:v7.4.12Compare Source
Patch Changes
#18409
2917650Thanks @matthewp! - Fixes a typo in the error message shown when a fontcssVariableis invalid#18709
6f1a2a8Thanks @ematipico! - Reduces memory usage duringastro buildby releasing content collection entries from memory once the content layer sync is complete.#18713
59052e7Thanks @delucis! - Unpins@astrojs/*dependencies to allow versions matching the^range to be installedUpdated dependencies [
59052e7]:v7.4.11Compare Source
Patch Changes
#18641
08e2ceeThanks @astro-factory! - Validates the protocol, host and port fromX-Forwarded-Proto,X-Forwarded-HostandX-Forwarded-Porttogether against eachsecurity.allowedDomainsentry, instead of one at a time:port: '443'(or'80'forhttp) now matches a host that doesn't include a port.#18651
93a9057Thanks @umeraamir69! - Returns 400 Bad Request for malformed percent-encoded paths in the dev server and static preview instead of bubbling into a 500#18672
e901468Thanks @astro-factory! - Fixesastro checkreporting@astrojs/checkas missing when the package is installed but throws while loading. The original error is now shown instead of an install prompt.#18641
08e2ceeThanks @astro-factory! - Fixessecurity.allowedDomainsaccepting non-HTTP(S)X-Forwarded-Protovalues (such asftporws) when the list mixes patterns with and without aprotocol#18686
62bb716Thanks @astro-factory! - Fixesastro builddeleting the license file generated by Vite'sbuild.licenseoption. Astro now removes only its own Vite manifest from the.vite/output folder.#18629
e9916e1Thanks @decrek! - Fixes spreading an object onto an element with scoped styles changing that object. When the same object was spread on every render, for example a constant imported from another module, itsclassgrew with every request.#18641
08e2ceeThanks @astro-factory! - Tightens howsecurity.allowedDomainsvalidates theHostandX-Forwarded-Hostheaders. Only a plain hostname with an optional port is accepted, and the validated host is applied toAstro.urlexactly as it was matched.Updated dependencies [
d13beeb,e9916e1]:v7.4.10Compare Source
Patch Changes
#18621
8a61493Thanks @marcalexiei! - Fixes the dev toolbar's audit freezing an image's CSS animations in Safari, by reading the image's size from the request that loaded it instead of fetching it again#18691
f787792Thanks @ematipico! - Improves startup time ofastrocommands by loading SVGO only whensvgoOptimizer()optimizes an SVG, instead of wheneverastro/configis imported#18678
ea63d76Thanks @astro-factory! - Fixes duplicate CSS loading for hydrated islands that share modules or are imported through a path alias. The client build no longer emits and preloads stylesheets that are already linked on the page by the server build.Updated dependencies [
57137ed]:v7.4.9Compare Source
Patch Changes
#18681
bf1828bThanks @astro-factory! - Fixes static builds skipping or failing on pages whosegetStaticPaths()params contain characters like%or\, and warns when a prerendered page is skipped because it returned an empty error response#18630
c904827Thanks @astro-factory! - Fixes bundled scripts and hydrated islands being blocked whensecurity.csp.scriptDirective.strictDynamicis enabled. Astro now adds the hash of every bundled script toscript-srcand renders an import map with theirintegrityin the<head>.#18611
f98e8a8Thanks @matthewp! - Fixes bundling of a<script src>that uses a root-relative path to a project file outsidesrc/, such as/lib/analytics.ts. The error asking foris:inlineis now shown only when the path points to a file inpublic/.#18688
1999c84Thanks @astro-factory! - Fixes errors thrown after a page has started streaming bypassing the configuredlogger. They are now reported once through it, as oneerrorrecord, in both production andastro devUpdated dependencies [
c904827,5083c65,1999c84,5083c65,f98e8a8,f98e8a8]:v7.4.8Compare Source
Patch Changes
d747a53Thanks @florian-lefebvre! - Updates CLI argument parsingv7.4.7Compare Source
Patch Changes
7da442bThanks @matthewp! - Fixes the image endpoint treating directories whose names differ only by letter case as being inside the build output directory on case-sensitive filesystems7da442b]:v7.4.6Compare Source
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.#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 routesv7.4.5Compare Source
Patch Changes
#18558
fac3c50Thanks @astro-factory! - Fixesastro dev statusand other background server commands deleting the lock file of a running dev or preview server when run from a sandbox or as another user that is not permitted to signal its process#18559
10dae2fThanks @astro-factory! - Fixesimport.meta.envvalues containing$sequences (such as$$or$&) being corrupted inastro buildwhen server code reads theimport.meta.envobject directly, for example withconst { MY_SECRET } = import.meta.env#18544
e3bec3dThanks @skezo! - Fixes request paths with invalid percent-encoding (e.g./%C0%AFor a bare%) being logged as anInvalid URL encodingerror and routed with the undecoded path. These requests now return a400, the same as a path that is encoded too many times.#18520
e023abaThanks @matthewp! - Makes rendering of string tag names stricter and consistent across.astrodynamic tags, JSX, and MDX. Only the leading part of the string that is a valid element name is rendered, so characters such as/or=can no longer change the generated markup. A string that does not start with a valid element name (for example'!--'or'') now throws an error instead of producing invalid HTML.v7.4.4Compare Source
Patch Changes
df838daThanks @edmundhung! - Allowsastro addto configure tagged versions of official adaptersv7.4.3Compare Source
Patch Changes
#18488
e4e25faThanks @umeraamir69! - CSP no longer hashes empty children on external stylesheets and scripts, which was inserting the SHA-256 of the empty string intoscript-srcandstyle-src.#18500
e5a3a1bThanks @astro-factory! - Fixes<Image>and<Picture>emitting duplicatesrcsetcandidates whendensitiescontains equivalent values such as1and'1x'#18517
c3185b7Thanks @okxint! - Fix unhandledAbortErrorrejection whenClientRouterskips a pending view transition#18497
c712113Thanks @astro-factory! - Fixes an uncaughtTypeErrorin the browser when aserver:deferisland request fails due to a network error. The fallback content is kept, as it is for non-200 responses.#18525
d0240b9Thanks @astro-factory! - Fixes aDEP0190deprecation warning printed byastro infoon Node.js 24 and later#18522
776b9a6Thanks @astro-factory! - FixesmemoryCache()serving an empty body for cached pages that return an empty404or500response. These responses now render the404or500error page on every request.#18511
d060ff9Thanks @astro-factory! - Fixestransition:namestyles missing in dev when the element is inside a component that is only rendered through another component with no styles or scripts#18494
5fe699cThanks @astro-factory! - Fixes theastroCLI refusing to run on StackBlitz by allowing Node.js>=22.22.0inside WebContainers, whose Node.js version users cannot change#18506
bf43a60Thanks @astro-factory! - Fixes<ClientRouter />animating scroll restoration on back/forward navigation whenscroll-behavior: smoothis set. Saved scroll positions are now restored instantly, matching the browser's native behavior.#18476
8ea79a2Thanks @astro-factory! - Fixes aDataCloneErrorcrash when building pages that render SVG imports with<Image />orgetImage()whileexperimental.parallelPrerenderis enabled.#18504
6dbd737Thanks @astro-factory! - Fixes<Picture>emitting a duplicate1xcandidate in<source>srcsetwhendensitiesincludes1#18524
7524889Thanks @astro-factory! - Fixes type errors reported in Astro's built-in<Image />,<Picture />,<Code />,<Debug />and<ClientRouter />components when type-checking a project that extendsastro/tsconfigs/strictestwithtscand@astrojs/ts-content-mapper#18493
3773941Thanks @astro-factory! - Fixes scoped styles of unused Astro components being included in the build when those components are re-exported from a barrel file#18512
1151b9eThanks @jp-knj! - Fixes CSP hashes added withAstro.cspfrom components rendered inside<body>being left out of the CSP<meta>element in static builds, including MDX pagesUpdated dependencies [
6cf3423,edfbf4a]:v7.4.2Compare Source
Patch Changes
#18430
dda9ec3Thanks @Abhirup-99! - Speeds up content sync withexperimental.collectionStorage: "chunked"by computing each character's UTF-8 width from its code point instead of encoding every character throughTextEncoder. On a store of ~44k entries this cuts the chunking step from about 60 seconds to well under a second, with byte-identical output.#18438
5e0eaa4Thanks @astro-factory! - Fixesastro devwith@astrojs/cloudflarefailing withCalling `require` for "node-fetch"when a server dependency such ascross-fetchrequiresnode-fetch#18376
a4e201dThanks @okxint! - Fixesastro devtreating a stale lock file containing a Linux thread ID as a running Astro server. A successful process lookup with no matching PID now marks the lock as stale, preventingastro dev stopandastro dev --forcefrom killing the unrelated process that owns the thread.#18467
d1fb7d3Thanks @astro-factory! - Fixes thedefineConfig()types fori18n.defaultLocale,i18n.fallback, andi18n.domainsso they accept a custom locale'spathinstead of itscodes, matching how Astro validates and uses these values#18475
cf27e70Thanks @ematipico! - Bumps the minimum supported Node.js version to 22.23.4, which includes the fixes from the October 2026 Node.js security releasesThis is a patch release because the Node.js support and upgrade policy allows the Core team to raise the minimum Maintenance LTS version in a patch release when a disclosed and fixed Node.js security flaw affects Astro.
#18451
7a0ba6fThanks @DenisCDev! - Fixesastro sync,astro checkandastro buildreplacing the optimized dependencies of a dev server running in the same project, which broke framework islands in that dev server until it was restarted with--force#18336
e943003Thanks @astro-factory! - Fixes inline styles in dev so that framework-transformed CSS is used, such as scoped styles andv-bind()in Vue single-file components#18399
829fc00Thanks @astro-factory! - Fixes a dev server error (Could not find server component name) for aserver:deferisland that importsastro:actionsorastro:config/server, when its page was not the first island page loaded after starting the server#18330
4db9e0dThanks @Samuteg! - Fixes theastro:env/servervirtual module being generated with invalid JS in dev when any environment variable contains$replacement patterns ($`,$&,$',$1, …). The inlined env JSON was passed as a string toString.replace, so e.g. theKITTY_PUBLIC_KEYvalue set by default in Kitty terminals corrupted the module and broke dev withFailed to parse source for import analysisUpdated dependencies [
cf27e70]:Configuration
📅 Schedule: (in timezone Europe/Berlin)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate CLI.
9b4812bf33to0d8f7721e90d8f7721e9tobf037a2f0abf037a2f0atoe6985bf79ae6985bf79ato2a77b345662a77b34566to77a796881177a7968811toe198173f57e198173f57toe8311adaa2e8311adaa2to5e66d863705e66d86370tof3ce94b8f0f3ce94b8f0to350abf4c42350abf4c42to9a5897d9099a5897d909to926571596a926571596ato5041f2e3505041f2e350to7507ad559cView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.