Change8

@astrojs/svelte@8.1.0

📦 astroView on GitHub →
3 features🐛 1 fixes🔧 1 symbols

Summary

This minor release updates the Svelte integration type shims to correctly handle optional props for Svelte 5 components, resolving false-positive type errors.

✨ New Features

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

🐛 Bug Fixes

  • Updated the Svelte integration's type shims to treat non-children snippet props and any-typed props as optional, resolving false-positive type errors when using Svelte 5 components.

Affected Symbols