Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jun 8, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
astro (source) 5.13.2 -> 5.15.8 age adoption passing confidence

Release Notes

withastro/astro (astro)

v5.15.8

Compare Source

Patch Changes
  • #​14772 00c579a Thanks @​matthewp! - Improves the security of Server Islands slots by encrypting them before transmission to the browser, matching the security model used for props. This improves the integrity of slot content and prevents injection attacks, even when component templates don't explicitly support slots.

    Slots continue to work as expected for normal usage—this change has no breaking changes for legitimate requests.

  • #​14771 6f80081 Thanks @​matthewp! - Fix middleware pathname matching by normalizing URL-encoded paths

    Middleware now receives normalized pathname values, ensuring that encoded paths like /%61dmin are properly decoded to /admin before middleware checks. This prevents potential security issues where middleware checks might be bypassed through URL encoding.

v5.15.7

Compare Source

Patch Changes

v5.15.6

Compare Source

Patch Changes
  • #​14751 18c55e1 Thanks @​delucis! - Fixes hydration of client components when running the dev server and using a barrel file that re-exports both Astro and UI framework components.

  • #​14750 35122c2 Thanks @​florian-lefebvre! - Updates the experimental Fonts API to log a warning if families with a conflicting cssVariable are provided

  • #​14737 74c8852 Thanks @​Arecsu! - Fixes an error when using transition:persist with components that use declarative Shadow DOM. Astro now avoids re-attaching a shadow root if one already exists, preventing "Unable to re-attach to existing ShadowDOM" navigation errors.

  • #​14750 35122c2 Thanks @​florian-lefebvre! - Updates the experimental Fonts API to allow for more granular configuration of remote font families

    A font family is defined by a combination of properties such as weights and styles (e.g. weights: [500, 600] and styles: ["normal", "bold"]), but you may want to download only certain combinations of these.

    For greater control over which font files are downloaded, you can specify the same font (ie. with the same cssVariable, name, and provider properties) multiple times with different combinations. Astro will merge the results and download only the required files. For example, it is possible to download normal 500 and 600 while downloading only italic 500:

    // astro.config.mjs
    import { defineConfig, fontProviders } from 'astro/config';
    
    export default defineConfig({
      experimental: {
        fonts: [
          {
            name: 'Roboto',
            cssVariable: '--roboto',
            provider: fontProviders.google(),
            weights: [500, 600],
            styles: ['normal'],
          },
          {
            name: 'Roboto',
            cssVariable: '--roboto',
            provider: fontProviders.google(),
            weights: [500],
            styles: ['italic'],
          },
        ],
      },
    });

v5.15.5

Compare Source

Patch Changes
  • #​14712 91780cf Thanks @​florian-lefebvre! - Fixes a case where build's process.env would be inlined in the server output

  • #​14713 666d5a7 Thanks @​florian-lefebvre! - Improves fallbacks generation when using the experimental Fonts API

  • #​14743 dafbb1b Thanks @​matthewp! - Improves X-Forwarded header validation to prevent cache poisoning and header injection attacks. Now properly validates X-Forwarded-Proto, X-Forwarded-Host, and X-Forwarded-Port headers against configured allowedDomains patterns, rejecting malformed or suspicious values. This is especially important when running behind a reverse proxy or load balancer.

v5.15.4

Compare Source

Patch Changes
  • #​14703 970ac0f Thanks @​ArmandPhilippot! - Adds missing documentation for some public utilities exported from astro:i18n.

  • #​14715 3d55c5d Thanks @​ascorbic! - Adds support for client hydration in getContainerRenderer()

    The getContainerRenderer() function is exported by Astro framework integrations to simplify the process of rendering framework components when using the experimental Container API inside a Vite or Vitest environment. This update adds the client hydration entrypoint to the returned object, enabling client-side interactivity for components rendered using this function. Previously this required users to manually call container.addClientRenderer() with the appropriate client renderer entrypoint.

    See the container-with-vitest demo for a usage example, and the Container API documentation for more information on using framework components with the experimental Container API.

  • #​14711 a4d284d Thanks @​deining! - Fixes typos in documenting our error messages and public APIs.

  • #​14701 9be54c7 Thanks @​florian-lefebvre! - Fixes a case where the experimental Fonts API would filter available font files too aggressively, which could prevent the download of woff files when using the google provider

v5.15.3

Compare Source

Patch Changes
  • #​14627 b368de0 Thanks @​matthewp! - Fixes skew protection support for images and font URLs

    Adapter-level query parameters (assetQueryParams) are now applied to all image and font asset URLs, including:

    • Dynamic optimized images via /_image endpoint
    • Static optimized image files
    • Font preload tags and font requests when using the experimental Fonts API
  • #​14631 3ad33f9 Thanks @​KurtGokhan! - Adds the astro/jsx-dev-runtime export as an alias for astro/jsx-runtime

v5.15.2

Compare Source

Patch Changes
  • #​14623 c5fe295 Thanks @​delucis! - Fixes a leak of server runtime code when importing SVGs in client-side code. Previously, when importing an SVG file in client code, Astro could end up adding code for rendering SVGs on the server to the client bundle.

  • #​14621 e3175d9 Thanks @​GameRoMan! - Updates vite version to fix CVE

v5.15.1

Compare Source

Patch Changes

v5.15.0

Compare Source

Minor Changes
  • #​14543 9b3241d Thanks @​matthewp! - Adds two new adapter configuration options assetQueryParams and internalFetchHeaders to the Adapter API.

    Official and community-built adapters can now use client.assetQueryParams to specify query parameters that should be appended to asset URLs (CSS, JavaScript, images, fonts, etc.). The query parameters are automatically appended to all generated asset URLs during the build process.

    Adapters can also use client.internalFetchHeaders to specify headers that should be included in Astro's internal fetch calls (Actions, View Transitions, Server Islands, Prefetch).

    This enables features like Netlify's skew protection, which requires the deploy ID to be sent with both internal requests and asset URLs to ensure client and server versions match during deployments.

  • #​14489 add4277 Thanks @​dev-shetty! - Adds a new Copy to Clipboard button to the error overlay stack trace.

    When an error occurs in dev mode, you can now copy the stack trace with a single click to more easily share it in a bug report, a support thread, or with your favorite LLM.

  • #​14564 5e7cebb Thanks @​florian-lefebvre! - Updates astro add cloudflare to scaffold more configuration files

    Running astro add cloudflare will now emit wrangler.jsonc and public/.assetsignore, allowing your Astro project to work out of the box as a worker.

Patch Changes
  • #​14591 3e887ec Thanks @​matthewp! - Adds TypeScript support for the components prop on MDX Content component when using await render(). Developers now get proper IntelliSense and type checking when passing custom components to override default MDX element rendering.

  • #​14598 7b45c65 Thanks @​delucis! - Reduces terminal text styling dependency size by switching from kleur to picocolors

  • #​13826 8079482 Thanks @​florian-lefebvre! - Adds the option to specify in the preload directive which weights, styles, or subsets to preload for a given font family when using the experimental Fonts API:

    ---
    import { Font } from 'astro:assets';
    ---
    
    <Font
      cssVariable="--font-roboto"
      preload={[{ subset: 'latin', style: 'normal' }, { weight: '400' }]}
    />

    Variable weight font files will be preloaded if any weight within its range is requested. For example, a font file for font weight 100 900 will be included when 400 is specified in a preload object.

v5.14.8

Compare Source

Patch Changes
  • #​14590 577d051 Thanks @​matthewp! - Fixes image path resolution in content layer collections to support bare filenames. The image() helper now normalizes bare filenames like "cover.jpg" to relative paths "./cover.jpg" for consistent resolution behavior between markdown frontmatter and JSON content collections.

v5.14.7

Compare Source

Patch Changes
  • #​14582 7958c6b Thanks @​florian-lefebvre! - Fixes a regression that caused Actions to throw errors while loading

  • #​14567 94500bb Thanks @​matthewp! - Fixes the actions endpoint to return 404 for non-existent actions instead of throwing an unhandled error

  • #​14566 946fe68 Thanks @​matthewp! - Fixes handling malformed cookies gracefully by returning the unparsed value instead of throwing

    When a cookie with an invalid value is present (e.g., containing invalid URI sequences), Astro.cookies.get() now returns the raw cookie value instead of throwing a URIError. This aligns with the behavior of the underlying cookie package and prevents crashes when manually-set or corrupted cookies are encountered.

  • #​14142 73c5de9 Thanks @​P4tt4te! - Updates handling of CSS for hydrated client components to prevent duplicates

  • #​14576 2af62c6 Thanks @​aprici7y! - Fixes a regression that caused Astro.site to always be undefined in getStaticPaths()

v5.14.6

Compare Source

Patch Changes
⚠️ Breaking change for experimental live content collections only

Feedback showed that this did not make sense to set at the loader level, since the loader does not know how long each individual entry should be cached for.

If your live loader returns cache hints with maxAge, you need to remove this property:

return {
  entries: [...],
  cacheHint: {
    tags: ['my-tag'],
-   maxAge: 60,
    lastModified: new Date(),
  },
};

The cacheHint object now only supports tags and lastModified properties. If you want to set the max age for a page, you can set the headers manually:

v5.14.5

Compare Source

Patch Changes
  • #​14525 4f55781 Thanks @​penx! - Fixes defineLiveCollection() types

  • #​14441 62ec8ea Thanks @​upsuper! - Updates redirect handling to be consistent across static and server output, aligning with the behavior of other adapters.

    Previously, the Node.js adapter used default HTML files with meta refresh tags when in static output. This often resulted in an extra flash of the page on redirect, while also not applying the proper status code for redirections. It's also likely less friendly to search engines.

    This update ensures that configured redirects are always handled as HTTP redirects regardless of output mode, and the default HTML files for the redirects are no longer generated in static output. It makes the Node.js adapter more consistent with the other official adapters.

    No change to your project is required to take advantage of this new adapter functionality. It is not expected to cause any breaking changes. However, if you relied on the previous redirecting behavior, you may need to handle your redirects differently now. Otherwise you should notice smoother redirects, with more accurate HTTP status codes, and may potentially see some SEO gains.

  • #​14506 ec3cbe1 Thanks @​abdo-spices! - Updates the <Font /> component so that preload links are generated after the style tag, as recommended by capo.js

v5.14.4

Compare Source

Patch Changes

v5.14.3

Compare Source

Patch Changes
  • #​14505 28b2a1d Thanks @​matthewp! - Fixes Cannot set property manifest error in test utilities by adding a protected setter for the manifest property

  • #​14235 c4d84bb Thanks @​toxeeec! - Fixes a bug where the "tap" prefetch strategy worked only on the first clicked link with view transitions enabled

v5.14.1

Compare Source

Patch Changes

v5.14.0

Compare Source

Minor Changes
  • #​13520 a31edb8 Thanks @​openscript! - Adds a new property routePattern available to GetStaticPathsOptions

    This provides the original, dynamic segment definition in a routing file path (e.g. /[...locale]/[files]/[slug]) from the Astro render context that would not otherwise be available within the scope of getStaticPaths(). This can be useful to calculate the params and props for each page route.

    For example, you can now localize your route segments and return an array of static paths by passing routePattern to a custom getLocalizedData() helper function. The params object will be set with explicit values for each route segment (e.g. locale, files, and slug). Then, these values will be used to generate the routes and can be used in your page template via Astro.params.

v5.13.11

Compare Source

Patch Changes
  • #​14409 250a595 Thanks @​louisescher! - Fixes an issue where astro info would log errors to console in certain cases.

  • #​14398 a7df80d Thanks @​idawnlight! - Fixes an unsatisfiable type definition when calling addServerRenderer on an experimental container instance

  • #​13747 120866f Thanks @​jp-knj! - Adds automatic request signal abortion when the underlying socket closes in the Node.js adapter

    The Node.js adapter now automatically aborts the request.signal when the client connection is terminated. This enables better resource management and allows applications to properly handle client disconnections through the standard AbortSignal API.

  • #​14428 32a8acb Thanks @​drfuzzyness! - Force sharpService to return a Uint8Array if Sharp returns a SharedArrayBuffer

  • #​14411 a601186 Thanks @​GameRoMan! - Fixes relative links to docs that could not be opened in the editor.

v5.13.10

Compare Source

Patch Changes

v5.13.9

Compare Source

Patch Changes

v5.13.8

Compare Source

Patch Changes
  • #​14300 bd4a70b Thanks @​louisescher! - Adds Vite version & integration versions to output of astro info

  • #​14341 f75fd99 Thanks @​delucis! - Fixes support for declarative Shadow DOM when using the <ClientRouter> component

  • #​14350 f59581f Thanks @​ascorbic! - Improves error reporting for content collections by adding logging for configuration errors that had previously been silently ignored. Also adds a new error that is thrown if a live collection is used in content.config.ts rather than live.config.ts.

  • #​14343 13f7d36 Thanks @​florian-lefebvre! - Fixes a regression in non node runtimes

v5.13.7

Compare Source

Patch Changes

v5.13.6

Compare Source

Patch Changes

v5.13.5

Compare Source

Patch Changes
  • #​14286 09c5db3 Thanks @​ematipico! - BREAKING CHANGES only to the experimental CSP feature

    The following runtime APIs of the Astro global have been renamed:

    • Astro.insertDirective to Astro.csp.insertDirective
    • Astro.insertStyleResource to Astro.csp.insertStyleResource
    • Astro.insertStyleHash to Astro.csp.insertStyleHash
    • Astro.insertScriptResource to Astro.csp.insertScriptResource
    • Astro.insertScriptHash to Astro.csp.insertScriptHash

    The following runtime APIs of the APIContext have been renamed:

    • ctx.insertDirective to ctx.csp.insertDirective
    • ctx.insertStyleResource to ctx.csp.insertStyleResource
    • ctx.insertStyleHash to ctx.csp.insertStyleHash
    • ctx.insertScriptResource to ctx.csp.insertScriptResource
    • ctx.insertScriptHash to ctx.csp.insertScriptHash
  • #​14283 3224637 Thanks @​ematipico! - Fixes an issue where CSP headers were incorrectly injected in the development server.

  • #​14275 3e2f20d Thanks @​florian-lefebvre! - Adds support for experimental CSP when using experimental fonts

    Experimental fonts now integrate well with experimental CSP by injecting hashes for the styles it generates, as well as font-src directives.

    No action is required to benefit from it.

  • #​14280 4b9fb73 Thanks @​ascorbic! - Fixes a bug that caused cookies to not be correctly set when using middleware sequences

  • #​14276 77281c4 Thanks @​ArmandPhilippot! - Adds a missing export for resolveSrc, a documented image services utility.

v5.13.4

Compare Source

Patch Changes
  • #​14260 86a1e40 Thanks @​jp-knj! - Fixes Astro.url.pathname to respect trailingSlash: 'never' configuration when using a base path. Previously, the root path with a base would incorrectly return /base/ instead of /base when trailingSlash was set to 'never'.

  • #​14248 e81c4bd Thanks @​julesyoungberg! - Fixes a bug where actions named 'apply' do not work due to being a function prototype method.

v5.13.3

Compare Source

Patch Changes
  • #​14239 d7d93e1 Thanks @​wtchnm! - Fixes a bug where the types for the live content collections were not being generated correctly in dev mode

  • #​14221 eadc9dd Thanks @​delucis! - Fixes JSON schema support for content collections using the file() loader

  • #​14229 1a9107a Thanks @​jonmichaeldarby! - Ensures Astro.currentLocale returns the correct locale during SSG for pages that use a locale param (such as [locale].astro or [locale]/index.astro, which produce [locale].html)


Configuration

📅 Schedule: 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.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title chore(deps): update dependency astro to v5.9.1 chore(deps): update dependency astro to v5.9.2 Jun 9, 2025
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.9.2 chore(deps): update dependency astro to v5.9.3 Jun 13, 2025
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.9.3 chore(deps): update dependency astro to v5.9.4 Jun 17, 2025
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.9.4 chore(deps): update dependency astro to v5.10.0 Jun 19, 2025
@renovate renovate bot force-pushed the renovate/astro-monorepo branch from 61c3fea to 06165b5 Compare June 22, 2025 10:46
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.10.0 chore(deps): update dependency astro to v5.10.1 Jun 23, 2025
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.10.1 chore(deps): update dependency astro to v5.10.2 Jul 1, 2025
@renovate renovate bot force-pushed the renovate/astro-monorepo branch 2 times, most recently from eef1d7e to fa8d9b2 Compare July 3, 2025 11:14
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.10.2 chore(deps): update dependency astro to v5.11.0 Jul 3, 2025
@renovate renovate bot force-pushed the renovate/astro-monorepo branch from fa8d9b2 to e244703 Compare July 14, 2025 11:04
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.11.0 chore(deps): update dependency astro to v5.11.1 Jul 14, 2025
@renovate renovate bot force-pushed the renovate/astro-monorepo branch from e244703 to a47e2cd Compare July 16, 2025 17:28
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.11.1 chore(deps): update dependency astro to v5.11.2 Jul 16, 2025
@renovate renovate bot force-pushed the renovate/astro-monorepo branch from a47e2cd to 9aca667 Compare July 17, 2025 20:14
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.11.2 chore(deps): update dependency astro to v5.12.0 Jul 17, 2025
@renovate renovate bot force-pushed the renovate/astro-monorepo branch from 9aca667 to 62c7b08 Compare July 21, 2025 18:10
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.12.0 chore(deps): update dependency astro to v5.12.1 Jul 21, 2025
@renovate renovate bot force-pushed the renovate/astro-monorepo branch from 62c7b08 to bb28088 Compare July 22, 2025 23:37
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.12.1 chore(deps): update dependency astro to v5.12.2 Jul 22, 2025
@renovate renovate bot force-pushed the renovate/astro-monorepo branch from bb28088 to cd731e0 Compare July 23, 2025 19:39
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.12.2 chore(deps): update dependency astro to v5.12.3 Jul 23, 2025
@renovate renovate bot force-pushed the renovate/astro-monorepo branch from cd731e0 to 445db75 Compare July 28, 2025 11:48
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.12.3 chore(deps): update dependency astro to v5.12.4 Jul 28, 2025
@renovate renovate bot force-pushed the renovate/astro-monorepo branch from 445db75 to cb17c63 Compare August 7, 2025 11:15
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.12.4 chore(deps): update dependency astro to v5.12.8 Aug 7, 2025
@renovate renovate bot force-pushed the renovate/astro-monorepo branch from cb17c63 to 0705477 Compare August 8, 2025 16:36
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.12.8 chore(deps): update dependency astro to v5.12.9 Aug 8, 2025
@renovate renovate bot force-pushed the renovate/astro-monorepo branch 2 times, most recently from 5b5dcf0 to 8a52aeb Compare August 13, 2025 13:49
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.14.3 chore(deps): update dependency astro to v5.14.4 Oct 12, 2025
@renovate renovate bot force-pushed the renovate/astro-monorepo branch from 5616c69 to 9cf1d8b Compare October 14, 2025 18:14
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.14.4 chore(deps): update dependency astro to v5.14.5 Oct 14, 2025
@renovate renovate bot force-pushed the renovate/astro-monorepo branch from 9cf1d8b to 808f231 Compare October 18, 2025 03:07
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.14.5 chore(deps): update dependency astro to v5.14.6 Oct 18, 2025
@renovate renovate bot force-pushed the renovate/astro-monorepo branch from 808f231 to 64a9ded Compare October 20, 2025 16:57
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.14.6 chore(deps): update dependency astro to v5.14.7 Oct 20, 2025
@renovate renovate bot force-pushed the renovate/astro-monorepo branch 2 times, most recently from 0aa9272 to dc5c6a2 Compare October 21, 2025 21:43
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.14.7 chore(deps): update dependency astro to v5.14.8 Oct 21, 2025
@renovate renovate bot force-pushed the renovate/astro-monorepo branch from dc5c6a2 to 2e8c18e Compare October 23, 2025 14:06
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.14.8 chore(deps): update dependency astro to v5.15.0 Oct 23, 2025
@renovate renovate bot force-pushed the renovate/astro-monorepo branch from 2e8c18e to 2e34459 Compare October 23, 2025 16:58
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.15.0 chore(deps): update dependency astro to v5.15.1 Oct 23, 2025
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.15.1 chore(deps): update dependency astro to v5.15.2 Oct 28, 2025
@renovate renovate bot force-pushed the renovate/astro-monorepo branch 2 times, most recently from 1bb8f15 to 75789de Compare October 30, 2025 20:34
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.15.2 chore(deps): update dependency astro to v5.15.3 Oct 30, 2025
@renovate renovate bot force-pushed the renovate/astro-monorepo branch from 75789de to 47dbb43 Compare November 6, 2025 18:37
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.15.3 chore(deps): update dependency astro to v5.15.4 Nov 6, 2025
@renovate renovate bot force-pushed the renovate/astro-monorepo branch 2 times, most recently from 49b5025 to 2414a3e Compare November 10, 2025 23:54
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.15.4 chore(deps): update dependency astro to v5.15.5 Nov 10, 2025
@renovate renovate bot force-pushed the renovate/astro-monorepo branch from 2414a3e to 611c082 Compare November 13, 2025 21:03
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.15.5 chore(deps): update dependency astro to v5.15.6 Nov 13, 2025
@renovate renovate bot force-pushed the renovate/astro-monorepo branch from 611c082 to 985f70f Compare November 14, 2025 11:38
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.15.6 chore(deps): update dependency astro to v5.15.7 Nov 14, 2025
@renovate renovate bot force-pushed the renovate/astro-monorepo branch from 985f70f to fcc21cb Compare November 15, 2025 17:41
@renovate renovate bot changed the title chore(deps): update dependency astro to v5.15.7 chore(deps): update dependency astro to v5.15.8 Nov 15, 2025
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.

0 participants