unstale

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

@unstale/cli 0.2.6 on npm

@astrojs/svelte 94 changes

Breaking changes 1

  • The minimum supported Node.js version is now 22.22.0.

    9.1.0release notes

Security 1

  • Astro allows unauthorized third-party images in _image endpoint

    9.1.1security advisory

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.

    9.0.0release notes

Fixes and other changes 1

  • Corrects the dependencies listed in the package’s peerDependencies field.

    9.0.1release notes

@astrojs/svelte 814 changes

Breaking changes 4

  • Removes temporary support for Node >=20.19.1 because Stackblitz now uses Node 22 by default.

    8.0.2release notes

  • The Astro peer dependency is updated to 6.0.0, changing the Astro version this integration declares compatibility with.

    8.0.1release notes

  • The minimum Node.js version increases to 22.12.0.

    8.0.0release notes

  • Astro v6 upgrades to Vite v7.0 as the development server and production bundler.

    8.0.0release notes

Security 1

  • @astrojs/netlify generates an overly-broad Netlify Image CDN allowlist because remotePatterns.pathname metacharacters are not escaped

    8.1.2security advisory

Behavior and default changes 1

  • The Node version requirement is lowered to allow running on Stackblitz until it supports v22.

    8.0.0release notes

Tooling 1

  • The peer dependency range now supports TypeScript v6, allowing projects using that version to satisfy the package’s peer dependency requirements.

    8.1.1release notes

Fixes and other changes 7

  • Fixed type errors during testing library type checks caused by Astro overriding Svelte 5 component types.

    8.1.2release notes

  • 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.0release notes

  • Fixes .svelte files in node_modules failing with Unknown file extension ".svelte" when using the Cloudflare adapter with prerenderEnvironment: 'node'.

    8.0.5release notes

  • Adds a temporary workaround for a Svelte bug that caused empty class attributes in SSR output.

    8.0.4release notes

  • Svelte component props now infer correctly in .astro files when the component uses generic type parameters.

    8.0.4release notes

  • Cloudflare dev SSR dependency optimization now compiles .svelte.js and .svelte.ts dependency modules that use Svelte runes.

    8.0.3release notes

  • Svelte children prop type checking is improved.

    7.2.5, 8.0.0release notesrelease notes

@astrojs/svelte 77 changes

Breaking changes 2

  • Use this dedicated entrypoint to import getContainerRenderer instead of importing it from the @astrojs/svelte package root.

    7.0.0upgrade guide

  • Node 21 is no longer supported.

    7.0.0release notes

Fixes and other changes 5

  • Fixes incorrect type errors for Svelte components used in Astro files with client:* directives.

    7.2.4release notes

  • Fixes type checking and IntelliSense for Svelte 5 components used in Astro files.

    7.2.3release notes

  • The returned object now includes the client hydration entrypoint, enabling client-side interactivity without manually calling container.addClientRenderer().

    7.2.2release notes

  • The peer dependency range now supports Astro 5.

    7.0.0release notes

  • Fixes a Reference Error that occurred during client transitions.

    7.0.0release notes

@astrojs/svelte 63 changes

Breaking changes 3

  • The integration adds support for Svelte 5.

    6.0.0release notes

  • Svelte 3 and 4 are no longer supported.

    6.0.0release notes

  • The integration no longer adds vitePreprocess() by default when no preprocessor is configured in svelte.config.js.

    6.0.0release notes