@astrojs/svelte
9.1.6 · 13 Nov 2026MIT224k / weekRepositoryHomepagenpmAtom feed
7.2.5 is the newest release of 7.x.
In short
1 new1 fixed
Security
1 advisory affects 7.2.0; 9.1.2 fixes them
- LowAstro: Reflected XSS via unescaped slot names in @astrojs/svelteGHSA-f4j9-crrj-867q · 12 Nov 2026Fixed in 9.1.2
Release note
Minor Changes
Adds support for async server rendering
Svelte 5.36 added experimental support for async rendering. This allows you to use
awaitin 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:
// svelte.config.js export default { compilerOptions: { experimental: { async: true, }, }, };Then you can use
awaitin 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
awaitin Svelte components, including inside$derivedblocks and directly in markup.
Patch Changes
Fixes a bug that prevented Svelte 5.39.1+ components rendering when multiple frameworks were present
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.