github withastro/astro @astrojs/svelte@8.1.0

8 hours ago

Minor Changes

  • #16466 31b6198 Thanks @fkatsuhiro! - 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.

Don't miss a new astro release

NewReleases is sending notifications on new releases.