Packages

@astrojs/svelte

9.1.6 · 13 Nov 2026MIT224k / weekRepositoryHomepagenpmAtom feed

Your version

90 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 9.x · latest line
  2. 9.1.6

    13 Nov 2026
    • Unpins @astrojs/* dependencies to allow versions matching the ^ range to be installed

  3. 9.1.3 – 9.1.53 releases that only update dependencies@astrojs/svelte-renderer 0.1.1@astrojs/internal-helpers 0.13.2Show each
  4. 9.1.2

    28 Oct 2026
    • Escapes slot names when rendering the slot wrapper elements for Svelte components

  5. 9.1.1

    21 Oct 2026
  6. 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.

  7. 9.0.1

    1 Jul 2026
    • Fixes an issue where the peerDependencies field used incorrect dependencies.

  8. 9.0.0

    22 Jun 2026
    • Breaking

      Upgrade to Vite v8

    • Replaces the import entrypoint of getContainerRenderer()

      A new container-renderer entrypoint exporting getContainerRenderer() 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-svelte to v7. No user action is necessary.

  9. 8.x
  10. 8.1.2

    26 May 2026
    • Fixed an issue where type errors occurred during testing library type checks because Astro overrides Svelte 5 component types.

  11. 8.1.1

    13 May 2026
    • Adds support for TypeScript v6 to peer dependencies range.

  12. 8.1.0

    28 Apr 2026
    • 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.

  13. 8.0.5

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

  14. 8.0.4

    26 Mar 2026
    • Adds 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

  15. 8.0.3

    19 Mar 2026
    • Fix Cloudflare dev SSR dependency optimization to compile .svelte.js and .svelte.ts dependency modules that use Svelte runes.

  16. 8.0.2

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

  17. 8.0.1

    16 Mar 2026
    • Updates the Astro peerDependencies#astro to be 6.0.0.

  18. 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 children prop type checking

  19. 7.x
  20. 7.2.5

    7 Jan 2026
    • Improve Svelte children prop type checking

  21. 7.2.4

    16 Dec 2025
    • Fixes an issue where Svelte components used in Astro files would incorrectly report type errors when using client:* directives.

  22. 7.2.3

    10 Dec 2025
    • Fixes an issue where Svelte 5 components used in Astro files would not have proper type checking and IntelliSense.

  23. 7.2.2

    6 Nov 2025
    • Adds 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 call container.addClientRenderer() with the appropriate client renderer entrypoint.

      See the container-with-vitest demo for a usage example, and the Container API documentation for more information on using framework components with the experimental Container API.

  24. 7.2.1

    28 Oct 2025
    • Updates vite version to fix CVE

  25. 7.2.0

    24 Sep 2025
    • Adds support for async server rendering

      Svelte 5.36 added experimental support for async rendering. This allows you to use await in 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 await in 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 await in Svelte components, including inside $derived blocks and directly in markup.

    • Fixes a bug that prevented Svelte 5.39.1+ components rendering when multiple frameworks were present

  26. 7.1.1

    8 Sep 2025
    • Updates vite version to fix CVE

  27. 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.

  28. 7.0.13

    30 Apr 2025
    • Update vite to latest version for fixing CVE

  29. 7.0.12

    29 Apr 2025
    • Fixes SSR renderer type

  30. 7.0.11

    23 Apr 2025
    • Improves type-safety of renderers

  31. 7.0.10

    14 Apr 2025
    • Update vite to latest version to fix CVE

    • Updates vite to the latest version

  32. 7.0.9

    31 Mar 2025
    • Update vite to the latest version

  33. 7.0.8

    26 Mar 2025
    • Updates the dependency vite to the latest.

  34. 7.0.7

    21 Mar 2025
    • Hides fallback content when rendering client:only island

  35. 7.0.6

    11 Mar 2025
    • Fixes a case where $props.id() would not be unique across multiple islands

  36. 7.0.5

    27 Feb 2025
    • Updates esbuild and vite to the latest to avoid false positives audits warnings caused by esbuild.

  37. 7.0.4

    20 Jan 2025
    • Upgrades Vite

  38. 7.0.3

    2 Jan 2025
    • Fixes an issue where TypeScript couldn't infer the correct types of the server.mjs file

  39. 7.0.2

    20 Dec 2024
    • Upgrades Vite to pin esbuild

  40. 7.0.1

    3 Dec 2024
    • Fixes compatibility with Astro 5

  41. 7.0.0

    3 Dec 2024
    • Breaking

      Updates peer dependency range to support Astro 5

    • Breaking

      Updates @sveltejs/vite-plugin-svelte to v5 to handle Vite 6

    • Breaking

      Updates Vite dependency to v6 to match Astro v5

  42. 6.x
  43. 6.0.2

    21 Nov 2024
    • Resolve vite peer dependency problem for strict package managers like Yarn in PnP mode.

  44. 6.0.1

    15 Nov 2024

    Reading the note…

  45. 6.0.0

    15 Nov 2024

    Reading the note…

  46. 5.x
  47. 5.7.3

    6 Nov 2024

    Reading the note…

  48. 5.7.2

    7 Oct 2024

    Reading the note…

  49. 5.7.1

    17 Sep 2024

    Reading the note…

  50. 5.7.0

    18 Jul 2024

    Reading the note…

  51. 5.6.0

    17 Jun 2024

    Reading the note…

  52. 5.5.0

    6 Jun 2024

    Reading the note…

  53. 5.4.0

    11 Apr 2024

    Reading 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.