Packages

@astrojs/svelte

9.1.6 · 13 Nov 2026MIT224k / weekRepositoryHomepagenpmAtom feed

Your version

8.1.0

28 Apr 2026Where it was published

8.1.2 is the newest release of 8.x.

In short

1 new

Security

1 advisory affects 8.1.0; 9.1.2 fixes them

Release note

Minor Changes

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

    • Adds HandleSnippetProps to make Snippets optional in Astro.

    • Distinguishes between generic and non-generic components to preserve inference.

    • Updates TSX generation to apply the appropriate directive wrapper.

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.