svelte
5.58.0 · 18 Nov 2026MIT10.4M / weekRepositoryHomepagenpmAtom feed
Upgrading svelte From 3.59.2 to 4.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 21
- changes to make
- 0
- advisories fixed
- 10
- new
- 14
- fixes
Before you upgrade
Tick each one off as you go- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
Security
7 advisories still affect 4.0.0
- Svelte has a potential mXSS vulnerability due to improper HTML escapingmoderate · GHSA-8266-84wp-wv5c
- Svelte SSR attribute spreading includes inherited properties from prototype chainmoderate · GHSA-crpf-4hrx-3jrp
- Svelte affected by cross-site scripting via spread attributes in Svelte SSRmoderate · GHSA-f7gr-6p89-r883
Upgrading to 5.55.7 clears them.
Release by release
- Breaking
Minimum supported Node version is now Node 16
- Breaking
Minimum supported webpack version is now webpack 5
- Breaking
Bundlers must specify the
browsercondition when building a frontend bundle for the browser - Breaking
Minimum supported vite-plugin-svelte version is now 2.4.1. SvelteKit users can upgrade to 1.20.0 or newer to ensure a compatible version
- Breaking
1 internal line (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.