@astrojs/svelte
9.1.6 · 13 Nov 2026MIT224k / weekRepositoryHomepagenpmAtom feed
90 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 9.x · latest line
9.1.6
13 Nov 2026Unpins
@astrojs/*dependencies to allow versions matching the^range to be installed
Patch Changes
Unpins
@astrojs/*dependencies to allow versions matching the^range to be installed
9.1.3 – 9.1.53 releases that only update dependencies@astrojs/svelte-renderer 0.1.1@astrojs/internal-helpers 0.13.2Show each
9.1.2
28 Oct 2026Escapes slot names when rendering the slot wrapper elements for Svelte components
9.1.1
21 Oct 2026- Breaking
Bumps the minimum supported Node.js version to 22.23.4, which includes the fixes from the October 2026 Node.js security releases
This is a patch release because the Node.js support and upgrade policy allows the Core team to raise the minimum Maintenance LTS version in a patch release when a disclosed and fixed Node.js security flaw affects Astro.
9.1.0
15 Oct 2026- Breaking
Increases the minimum Node.js version to 22.22.0
The minimum supported Node.js version is now 22.22.0, the latest Node.js 22 release supported by StackBlitz. This change is in line with Astro's Node.js support policy.
9.0.1
1 Jul 2026Fixes an issue where the
peerDependenciesfield used incorrect dependencies.
9.0.0
22 Jun 2026- Breaking
Upgrade to Vite v8
Replaces the import entrypoint of
getContainerRenderer()A new
container-rendererentrypoint exportinggetContainerRenderer()has been added to the following integrations: React, Preact, Svelte, SolidJS, Vue, and MDX. This prevents bundlers from trying to bundle unrelated exports from the package root when only the Container API is used.If you are using the Container API, update your import statements to use the new entrypoint. The following example updates the
getContainerRenderer()import for React:- import { getContainerRenderer } from '@astrojs/react'; + import { getContainerRenderer } from '@astrojs/react/container-renderer';Importing
getContainerRenderer()from the package root still works, but is now deprecated and logs a warning.Updates
@sveltejs/vite-plugin-svelteto v7. No user action is necessary.
Major Changes
- Breaking
Upgrade to Vite v8
Minor Changes
Replaces the import entrypoint of
getContainerRenderer()A new
container-rendererentrypoint exportinggetContainerRenderer()has been added to the following integrations: React, Preact, Svelte, SolidJS, Vue, and MDX. This prevents bundlers from trying to bundle unrelated exports from the package root when only the Container API is used.If you are using the Container API, update your import statements to use the new entrypoint. The following example updates the
getContainerRenderer()import for React:- import { getContainerRenderer } from '@astrojs/react'; + import { getContainerRenderer } from '@astrojs/react/container-renderer';Importing
getContainerRenderer()from the package root still works, but is now deprecated and logs a warning.Updates
@sveltejs/vite-plugin-svelteto v7. No user action is necessary.
Patch Changes
Triggers beta prereleases for packages that are still on alpha
- 8.x
8.1.2
26 May 2026Fixed an issue where type errors occurred during testing library type checks because Astro overrides Svelte 5 component types.
8.1.1
13 May 2026Adds support for TypeScript v6 to peer dependencies range.
8.1.0
28 Apr 2026This change updates the Svelte integration's type shims to treat non-children
snippet props andany-typed props as optional. Previously, these were
incorrectly marked as required in Astro files, causing false-positive type
errors when using Svelte 5 components.
8.0.5
13 Apr 2026Fixes
.sveltefiles innode_modulesfailing withUnknown file extension ".svelte"when using the Cloudflare adapter withprerenderEnvironment: 'node'
8.0.4
26 Mar 2026Adds a temporary workaround for a Svelte bug causing empty class attributes in SSR output.
Using a Svelte component with generic type parameters now correctly infer props in .astro files
8.0.3
19 Mar 2026Fix Cloudflare dev SSR dependency optimization to compile
.svelte.jsand.svelte.tsdependency modules that use Svelte runes.
8.0.2
18 Mar 2026Removes temporary support for Node >=20.19.1 because Stackblitz now uses Node 22 by default
8.0.1
16 Mar 2026Updates the Astro
peerDependencies#astroto be6.0.0.
8.0.0
10 Mar 2026- Breaking
Increases minimum Node.js version to 22.12.0 - (v6 upgrade guidance)
- Breaking
Astro v6.0 upgrades to Vite v7.0 as the development server and production bundler - (v6 upgrade guidance)
Improve Svelte
childrenprop type checking
Major Changes
- Breaking
Increases minimum Node.js version to 22.12.0 - (v6 upgrade guidance)
- Breaking
Astro v6.0 upgrades to Vite v7.0 as the development server and production bundler - (v6 upgrade guidance)
Patch Changes
Improve Svelte
childrenprop type checkingLower the Node version requirement to allow running on Stackblitz until it supports v22
- 7.x
7.2.5
7 Jan 2026Improve Svelte
childrenprop type checking
7.2.4
16 Dec 2025Fixes an issue where Svelte components used in Astro files would incorrectly report type errors when using
client:*directives.
7.2.3
10 Dec 2025Fixes an issue where Svelte 5 components used in Astro files would not have proper type checking and IntelliSense.
7.2.2
6 Nov 2025Adds support for client hydration in
getContainerRenderer()The
getContainerRenderer()function is exported by Astro framework integrations to simplify the process of rendering framework components when using the experimental Container API inside a Vite or Vitest environment. This update adds the client hydration entrypoint to the returned object, enabling client-side interactivity for components rendered using this function. Previously this required users to manually callcontainer.addClientRenderer()with the appropriate client renderer entrypoint.See the
container-with-vitestdemo for a usage example, and the Container API documentation for more information on using framework components with the experimental Container API.
7.2.1
28 Oct 2025Updates
viteversion to fix CVE
7.2.0
24 Sep 2025Adds support for async server rendering
Svelte 5.36 added experimental support for async rendering. This allows you to use
awaitin your components in several new places. This worked out of the box with client-rendered components, but server-rendered components needed some extra help. This update adds support for async server rendering in Svelte components used in Astro.To use async rendering, you must enable it in your Svelte config:
// svelte.config.js export default { compilerOptions: { experimental: { async: true, }, }, };Then you can use
awaitin your components:<script> let data = await fetch('/api/data').then(res => res.json()); </script> <h1>{data.title}</h1>See the Svelte docs for more information on using
awaitin Svelte components, including inside$derivedblocks and directly in markup.Fixes a bug that prevented Svelte 5.39.1+ components rendering when multiple frameworks were present
7.1.1
8 Sep 2025Updates
viteversion to fix CVE
7.1.0
22 May 2025- Breaking
Increases minimum Node.js version to 18.20.8
Node.js 18 has now reached end-of-life and should not be used. For now, Astro will continue to support Node.js 18.20.8, which is the final LTS release of Node.js 18, as well as Node.js 20 and Node.js 22 or later. We will drop support for Node.js 18 in a future release, so we recommend upgrading to Node.js 22 as soon as possible. See Astro's Node.js support policy for more details.
:warning: Important note for users of Cloudflare Pages: The current build image for Cloudflare Pages uses Node.js 18.17.1 by default, which is no longer supported by Astro. If you are using Cloudflare Pages you should override the default Node.js version to Node.js 22. This does not affect users of Cloudflare Workers, which uses Node.js 22 by default.
7.0.13
30 Apr 2025Update vite to latest version for fixing CVE
7.0.12
29 Apr 2025Fixes SSR renderer type
7.0.11
23 Apr 2025Improves type-safety of renderers
7.0.10
14 Apr 2025Update vite to latest version to fix CVE
Updates vite to the latest version
7.0.9
31 Mar 2025Update
viteto the latest version
7.0.8
26 Mar 2025Updates the dependency
viteto the latest.
7.0.7
21 Mar 2025Hides fallback content when rendering
client:onlyisland
7.0.6
11 Mar 2025Fixes a case where
$props.id()would not be unique across multiple islands
7.0.5
27 Feb 2025Updates
esbuildandviteto the latest to avoid false positives audits warnings caused byesbuild.
7.0.4
20 Jan 2025Upgrades Vite
7.0.3
2 Jan 2025Fixes an issue where TypeScript couldn't infer the correct types of the
server.mjsfile
7.0.2
20 Dec 2024Upgrades Vite to pin esbuild
7.0.1
3 Dec 2024Fixes compatibility with Astro 5
7.0.0
3 Dec 2024- Breaking
Updates peer dependency range to support Astro 5
- Breaking
Updates
@sveltejs/vite-plugin-svelteto v5 to handle Vite 6 - Breaking
Updates Vite dependency to v6 to match Astro v5
Major Changes
- Breaking
Updates peer dependency range to support Astro 5
- Breaking
Updates
@sveltejs/vite-plugin-svelteto v5 to handle Vite 6 - Breaking
Updates Vite dependency to v6 to match Astro v5
Minor Changes
- Removed
Drops node 21 support
Patch Changes
Fixes an Reference Error that occurred during client transitions
New release to include changes from 5.7.3
- 6.x
6.0.2
21 Nov 2024Resolve
vitepeer dependency problem for strict package managers like Yarn in PnP mode.
6.0.1
15 Nov 2024Reading the note…
6.0.0
15 Nov 2024Reading the note…
- 5.x
5.7.3
6 Nov 2024Reading the note…
5.7.2
7 Oct 2024Reading the note…
5.7.1
17 Sep 2024Reading the note…
5.7.0
18 Jul 2024Reading the note…
5.6.0
17 Jun 2024Reading the note…
5.5.0
6 Jun 2024Reading the note…
5.4.0
11 Apr 2024Reading the note…
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.