npm / @astrojs/svelte
@astrojs/svelte
What changed in @astrojs/svelte 6 to 9, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-25.
10 breaking2 security1 new APIs and options1 behavior and defaults1 tooling13 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@astrojs/svelte 94 changes
Breaking changes 1
The minimum supported Node.js version is now 22.22.0.
Security 1
Astro allows unauthorized third-party images in _image endpoint
New APIs and options 1
Adds a dedicated entrypoint for importing getContainerRenderer(). Importing it from the package root still works but is deprecated and logs a warning.
Fixes and other changes 1
Corrects the dependencies listed in the package’s peerDependencies field.
@astrojs/svelte 814 changes
Breaking changes 4
Removes temporary support for Node >=20.19.1 because Stackblitz now uses Node 22 by default.
The Astro peer dependency is updated to 6.0.0, changing the Astro version this integration declares compatibility with.
The minimum Node.js version increases to 22.12.0.
Astro v6 upgrades to Vite v7.0 as the development server and production bundler.
Security 1
@astrojs/netlify generates an overly-broad Netlify Image CDN allowlist because remotePatterns.pathname metacharacters are not escaped
Behavior and default changes 1
The Node version requirement is lowered to allow running on Stackblitz until it supports v22.
Tooling 1
The peer dependency range now supports TypeScript v6, allowing projects using that version to satisfy the package’s peer dependency requirements.
Fixes and other changes 7
Fixed type errors during testing library type checks caused by Astro overriding Svelte 5 component types.
Svelte component props that are non-children snippets or typed as any are treated as optional in Astro files, avoiding false-positive type errors with Svelte 5 components.
Fixes
.sveltefiles innode_modulesfailing withUnknown file extension ".svelte"when using the Cloudflare adapter withprerenderEnvironment: 'node'.Adds a temporary workaround for a Svelte bug that caused empty class attributes in SSR output.
Svelte component props now infer correctly in .astro files when the component uses generic type parameters.
Cloudflare dev SSR dependency optimization now compiles .svelte.js and .svelte.ts dependency modules that use Svelte runes.
Svelte children prop type checking is improved.
@astrojs/svelte 77 changes
Breaking changes 2
Use this dedicated entrypoint to import getContainerRenderer instead of importing it from the @astrojs/svelte package root.
Node 21 is no longer supported.
Fixes and other changes 5
Fixes incorrect type errors for Svelte components used in Astro files with client:* directives.
Fixes type checking and IntelliSense for Svelte 5 components used in Astro files.
The returned object now includes the client hydration entrypoint, enabling client-side interactivity without manually calling container.addClientRenderer().
The peer dependency range now supports Astro 5.
Fixes a Reference Error that occurred during client transitions.
@astrojs/svelte 63 changes
Breaking changes 3
The integration adds support for Svelte 5.
Svelte 3 and 4 are no longer supported.
The integration no longer adds vitePreprocess() by default when no preprocessor is configured in svelte.config.js.