svelte@5.51.0

sveltejs/sveltesvelte@5.51.0Feb 13, 2026by github-actions[bot]

AI Summary

This minor release introduces `TrustedTypes` support for secure HTML handling where supported and includes fixes for sanitizing template literal special characters in SSR attribute values.

Key Highlights

  • Use `TrustedTypes` for HTML handling where supported
  • Sanitize template-literal-special-characters in SSR attribute values
  • Preserve delegated event handlers as long as one or more root components are using them

New Features

  • Use `TrustedTypes` for HTML handling where supported

Full Release Notes

### Minor Changes

-   feat: Use `TrustedTypes` for HTML handling where supported ([#16271](https://github.com/sveltejs/svelte/pull/16271))

### Patch Changes

-   fix: sanitize template-literal-special-characters in SSR attribute values ([#17692](https://github.com/sveltejs/svelte/pull/17692))

-   fix: follow-up formatting in `print()` — flush block-level elements into separate sequences ([#17699](https://github.com/sveltejs/svelte/pull/17699))

-   fix: preserve delegated event handlers as long as one or more root components are using them ([#17695](https://github.com/sveltejs/svelte/pull/17695))