svelte@5.46.1

sveltejs/sveltesvelte@5.46.1Dec 24, 2025by github-actions[bot]

AI Summary

A patch release addressing type safety in event handlers and async behavior issues.

Key Highlights

  • Type fix for `currentTarget` in `on` function
  • Fix for static optimization after `await`
  • Fix for infinite loops during HMR with `await`

Full Release Notes

### Patch Changes

-   fix: type `currentTarget` in `on` function ([#17370](https://github.com/sveltejs/svelte/pull/17370))

-   fix: skip static optimisation for stateless deriveds after `await` ([#17389](https://github.com/sveltejs/svelte/pull/17389))

-   fix: prevent infinite loop when HMRing a component with an `await` ([#17380](https://github.com/sveltejs/svelte/pull/17380))