Packages

@astrojs/svelte

9.1.6 · 13 Nov 2026MIT224k / weekRepositoryHomepagenpmAtom feed

Upgrading @astrojs/svelte From 7.0.1 to 9.1.2

34 releases in betweenevery note read

Other targets from 7.0.1Newest 7.x7.2.5Latest9.1.6
  1. 7.0.1yours
  2. 12 releases
  3. 7.1.0breaking
  4. 7 releases
  5. 8.0.0major
  6. 8 releases
  7. 9.0.0major
  8. 1 release
  9. 9.1.0breaking
  10. 9.1.1breaking
  11. 9.1.2target
  12. 1 pre

Start here

Before you upgrade

Tick each one off as you go
  • Breaking9.1.1
  • Breaking9.1.0
  • Breaking9.0.0
  • Breaking8.0.0
  • Breaking8.0.0
  • Breaking7.1.0
  • Deprecated9.0.0

Security

Fixes 1 advisory affecting 7.0.1

Release by release

  1. 9.1.2

    28 Oct 20261 fix
    • Fixed

      Escapes slot names when rendering the slot wrapper elements for Svelte components

  2. 9.1.1

    Migration needed21 Oct 2026
  3. 9.1.0

    Migration needed15 Oct 2026
    • Breaking

      Increases the minimum Node.js version to 22.22.0

  4. 9.0.1

    1 Jul 20261 fix
    • Fixed

      Fixes an issue where the peerDependencies field used incorrect dependencies.

  5. 9.0.0

    Migration needed22 Jun 20262 new · 1 fix
    • Breaking

      Upgrade to Vite v8

    • Deprecated

      Importing getContainerRenderer() from the package root still works, but is now deprecated and logs a warning.

    • New

      Replaces the import entrypoint of getContainerRenderer()

    • New

      Updates @sveltejs/vite-plugin-svelte to v7. No user action is necessary.

    • Fixed

      Triggers beta prereleases for packages that are still on alpha

  6. 8.1.2

    26 May 20261 fix
    • Fixed

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

  7. 8.1.1

    13 May 20261 new
    • New

      Adds support for TypeScript v6 to peer dependencies range.

  8. 8.1.0

    28 Apr 20261 new
    • New

      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.

2 internal lines (docs, tests, tooling) left out.

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.