π Patch Changes
- #15004
16f3994Thanks @antonyfaris! - Fixes an issue where Svelte components used in Astro files would incorrectly report type errors when usingclient:*directives.
16f3994 Thanks @antonyfaris! - Fixes an issue where Svelte components used in Astro files would incorrectly report type errors when using client:* directives.4264a36 Thanks @antonyfaris! - Fixes an issue where Svelte 5 components used in Astro files would not have proper type checking and IntelliSense.#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.
e3175d9 Thanks @GameRoMan! - Updates vite version to fix CVE#14430 78011ba Thanks @ascorbic! - Adds support for async server rendering
Svelte 5.36 added experimental support for async rendering. This allows you to use await in your components in several new places. This worked out of the box with client-rendered components, but server-rendered components needed some extra help. This update adds support for async server rendering in Svelte components used in Astro.
To use async rendering, you must enable it in your Svelte config:
export default { compilerOptions: { experimental: { async: true, }, },};Then you can use await in your components:
<script> let data = await fetch('/api/data').then(res => res.json());</script><h1>{data.title}</h1>See the Svelte docs for more information on using await in Svelte components, including inside $derived blocks and directly in markup.
c24a8f4 Thanks @jsparkdev! - Updates vite version to fix CVE#13809 3c3b492 Thanks @ascorbic! - Increases minimum Node.js version to 18.20.8
Node.js 18 has now reached end-of-life and should not be used. For now, Astro will continue to support Node.js 18.20.8, which is the final LTS release of Node.js 18, as well as Node.js 20 and Node.js 22 or later. We will drop support for Node.js 18 in a future release, so we recommend upgrading to Node.js 22 as soon as possible. See Astroβs Node.js support policy for more details.
:warning: Important note for users of Cloudflare Pages: The current build image for Cloudflare Pages uses Node.js 18.17.1 by default, which is no longer supported by Astro. If you are using Cloudflare Pages you should override the default Node.js version to Node.js 22. This does not affect users of Cloudflare Workers, which uses Node.js 22 by default.
c3e80c2 Thanks @jsparkdev! - update vite to latest version for fixing CVEe1cd1ae Thanks @florian-lefebvre! - Fixes SSR renderer typea19a185 Thanks @florian-lefebvre! - Improves type-safety of renderers#13596 3752519 Thanks @jsparkdev! - update vite to latest version to fix CVE
#13547 360cb91 Thanks @jsparkdev! - Updates vite to the latest version
ff9d69e Thanks @jsparkdev! - update vite to the latest versiona98ae5b Thanks @ematipico! - Updates the dependency vite to the latest.80926fa Thanks @ematipico! - Updates esbuild and vite to the latest to avoid false positives audits warnings caused by esbuild.4f2fd0a Thanks @Princesseuh! - Fixes compatibility with Astro 5