Svelte 5.56.8
Svelte 5.56.8 has been released. The latest patch in the Svelte 5.x line ships with targeted bug fixes addressing component lifecycle behavior and form element handling.
What Changed
Version 5.56.8 is a maintenance release focused on two specific fixes that impact real-world application behavior. The Svelte team continues the steady cadence of patches that has characterized the 5.56 series, with five releases in the last ten days alone.
Bug Fixes
- Component destruction fix — Corrected an issue where calling the destroy function on a component could lead to unexpected behavior in certain lifecycle scenarios. This resolves edge cases where cleanup logic would not fire properly, particularly in components using reactive statements with external subscriptions.
- Select element preservation — Fixed a bug where
<select>elements would lose their selected state when spread attributes omitted a value. This was a subtle issue affecting dynamic form components that rely on the spread operator for attribute delegation. The fix ensures selected options persist correctly regardless of how attributes are passed.
Why It Matters
While neither fix qualifies as a headline feature, both address pain points that developers encounter in production applications. The select element fix, in particular, is significant for anyone building complex form UIs with Svelte’s component composition patterns — it removes a class of bug that was difficult to diagnose without deep framework knowledge.
What’s Next
The Svelte team maintains an active release schedule, and the 5.56.x branch continues to receive rapid patches. Users can expect further refinements as the project builds toward the next minor release. For now, upgrading to 5.56.8 is recommended for any project using spread attributes on select elements or relying on programmatic component destruction.
Upgrade by running npm update svelte or updating your package.json dependency to ^5.56.8.