@astrojs/svelte
9.1.6 · 13 Nov 2026MIT224k / weekRepositoryHomepagenpmAtom feed
Upgrading @astrojs/svelte From 8.0.3 to 9.1.2
10 releases in betweenevery note read
Start here
Before you upgrade
Tick each one off as you go- Breaking9.1.1
- Breaking9.1.0
- Breaking9.0.0
- Deprecated9.0.0
Security
Fixes 1 advisory affecting 8.0.3
- Astro: Reflected XSS via unescaped slot names in @astrojs/sveltelow · GHSA-f4j9-crrj-867q
Release by release
- Fixed
Escapes slot names when rendering the slot wrapper elements for Svelte components
- Fixed
- Breaking
Bumps the minimum supported Node.js version to 22.23.4, which includes the fixes from the October 2026 Node.js security releases
- Breaking
- Breaking
Increases the minimum Node.js version to 22.22.0
- Breaking
- Fixed
Fixes an issue where the
peerDependenciesfield used incorrect dependencies.
- Fixed
- Breaking
Upgrade to Vite v8
- Deprecated
Importing
getContainerRenderer()from the package root still works, but is now deprecated and logs a warning. - New
Replaces the import entrypoint of
getContainerRenderer() - New
Updates
@sveltejs/vite-plugin-svelteto v7. No user action is necessary. - Fixed
Triggers beta prereleases for packages that are still on alpha
- Breaking
- 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
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.