Svelte 5 was officially released on October 19, 2024 at Svelte Summit, and we’re excited to announce that Netlify had full support for all new Svelte features on Day 1.
What’s new in Svelte 5
The change that has everyone talking is a new pattern that Svelte calls runes. Runes is a “signal-powered reactivity API that sits at the heart of Svelte 5 and unlocks universal, fine-grained reactivity.” Learn more about Runes.
But that’s not all! There are a handful of other new features, mentioned back in April 2024 when the v5 release candidate was first available:
- Overhauled event handling with less boilerplate and more flexibility
- Better component composition through snippets
- Native TypeScript support, including inside your markup
Upgrade existing applications
If you have a Svelte 4 application on Netlify, follow the migration guide to take advantages of the latest features. Most sites can be upgraded by just running the provided migration script.
The Svelte team designed this update with the developer experience top-of-mind, providing you the option to opt into the new runes mode. This means you can first upgrade dependencies, and then make incremental (and deployable) updates over time.
Don’t wait too long, though! It is expected that the Svelte 6 or 7 will remove this compatibility.
Deploy a Svelte 5 application on Netlify
If you don’t have an application and want to get started today, follow the getting started docs to create a new project. Then add the Netlify adapter to the project, and deploy your site to Netlify!