# What changed in @astrojs/svelte

> 28 changes in @astrojs/svelte 6 to 9 from its official release notes, upgrade guides and advisories: 10 breaking, 2 security, 1 new APIs and options. Each one cited. Sources checked 2026-10-25. HTML: https://unstale.sh/npm/@astrojs/svelte/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @astrojs/svelte 9

### Breaking changes

- The minimum supported Node.js version is now 22.22.0. (9.1.0) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/svelte%409.1.0)

### Security

- Astro allows unauthorized third-party images in _image endpoint (9.1.1) — [security advisory](https://github.com/advisories/GHSA-XF8X-J4P2-F749)

### New APIs and options

- Adds a dedicated entrypoint for importing getContainerRenderer(). Importing it from the package root still works but is deprecated and logs a warning. (9.0.0) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/svelte%409.0.0)

### Fixes and other changes

- Corrects the dependencies listed in the package’s peerDependencies field. (9.0.1) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/svelte%409.0.1)

## @astrojs/svelte 8

### Breaking changes

- Removes temporary support for Node >=20.19.1 because Stackblitz now uses Node 22 by default. (8.0.2) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/svelte%408.0.2)
- The Astro peer dependency is updated to 6.0.0, changing the Astro version this integration declares compatibility with. (8.0.1) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/svelte%408.0.1)
- The minimum Node.js version increases to 22.12.0. (8.0.0) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/svelte%408.0.0)
- Astro v6 upgrades to Vite v7.0 as the development server and production bundler. (8.0.0) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/svelte%408.0.0)

### Security

- @astrojs/netlify generates an overly-broad Netlify Image CDN allowlist because remotePatterns.pathname metacharacters are not escaped (8.1.2) — [security advisory](https://github.com/advisories/GHSA-HP3V-MFQW-H74C)

### Behavior and default changes

- The Node version requirement is lowered to allow running on Stackblitz until it supports v22. (8.0.0) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/svelte%408.0.0)

### Tooling

- The peer dependency range now supports TypeScript v6, allowing projects using that version to satisfy the package’s peer dependency requirements. (8.1.1) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/svelte%408.1.1)

### Fixes and other changes

- Fixed type errors during testing library type checks caused by Astro overriding Svelte 5 component types. (8.1.2) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/svelte%408.1.2)
- 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. (8.1.0) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/svelte%408.1.0)
- Fixes `.svelte` files in `node_modules` failing with `Unknown file extension ".svelte"` when using the Cloudflare adapter with `prerenderEnvironment: 'node'`. (8.0.5) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/svelte%408.0.5)
- Adds a temporary workaround for a Svelte bug that caused empty class attributes in SSR output. (8.0.4) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/svelte%408.0.4)
- Svelte component props now infer correctly in .astro files when the component uses generic type parameters. (8.0.4) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/svelte%408.0.4)
- Cloudflare dev SSR dependency optimization now compiles .svelte.js and .svelte.ts dependency modules that use Svelte runes. (8.0.3) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/svelte%408.0.3)
- Svelte children prop type checking is improved. (7.2.5, 8.0.0) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/svelte%408.0.0), [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/svelte%407.2.5)

## @astrojs/svelte 7

### Breaking changes

- Use this dedicated entrypoint to import getContainerRenderer instead of importing it from the @astrojs/svelte package root. (7.0.0) — [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v7)
- Node 21 is no longer supported. (7.0.0) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/svelte%407.0.0)

### Fixes and other changes

- Fixes incorrect type errors for Svelte components used in Astro files with client:* directives. (7.2.4) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/svelte%407.2.4)
- Fixes type checking and IntelliSense for Svelte 5 components used in Astro files. (7.2.3) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/svelte%407.2.3)
- The returned object now includes the client hydration entrypoint, enabling client-side interactivity without manually calling container.addClientRenderer(). (7.2.2) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/svelte%407.2.2)
- The peer dependency range now supports Astro 5. (7.0.0) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/svelte%407.0.0)
- Fixes a Reference Error that occurred during client transitions. (7.0.0) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/svelte%407.0.0)

## @astrojs/svelte 6

### Breaking changes

- The integration adds support for Svelte 5. (6.0.0) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/svelte%406.0.0)
- Svelte 3 and 4 are no longer supported. (6.0.0) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/svelte%406.0.0)
- The integration no longer adds vitePreprocess() by default when no preprocessor is configured in svelte.config.js. (6.0.0) — [release notes](https://github.com/withastro/astro/releases/tag/%40astrojs/svelte%406.0.0)
