@astrojs/svelte
9.1.6 · 13 Nov 2026MIT224k / weekRepositoryHomepagenpmAtom feed
Upgrading @astrojs/svelte From 8.0.2 to 8.1.2
6 releases in betweenevery note read
Security
1 advisory still affects 8.1.2
- Astro: Reflected XSS via unescaped slot names in @astrojs/sveltelow · GHSA-f4j9-crrj-867q
Upgrading to 9.1.2 clears it.
Release by release
- Fixed
Fixed an issue where type errors occurred during testing library type checks because Astro overrides Svelte 5 component types.
- Fixed
- New
Adds support for TypeScript v6 to peer dependencies range.
- New
- New
This change updates the Svelte integration's type shims to treat non-children snippet props and
any-typed props as optional. Previously, these were incorrectly marked as required in Astro files, causing false-positive type errors when using Svelte 5 components.
- New
- Fixed
Fixes
.sveltefiles innode_modulesfailing withUnknown file extension ".svelte"when using the Cloudflare adapter withprerenderEnvironment: 'node'
- Fixed
- New
Adds a temporary workaround for a Svelte bug causing empty class attributes in SSR output.
- Fixed
Using a Svelte component with generic type parameters now correctly infer props in .astro files
- New
- Fixed
Fix Cloudflare dev SSR dependency optimization to compile
.svelte.jsand.svelte.tsdependency modules that use Svelte runes.
- Fixed
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.