Zum Inhalt springen

Svelte Release Notes

Einträge
181
Quellen
2
Zuletzt aktualisiert

Folge Svelte, um die Release Notes in deinen Feed zu holen.

Svelte

Verbesserungen bei Formularen und Remote-Funktionen

Formulare und Remote-Funktionen in SvelteKit wurden verbessert: submit gibt einen Boolean zurück, eine neue .live(...)-Abfragefunktion und unterstützte Felder für Booleans sind hinzugekommen, mit einigen Breaking Changes.

This month we got a bunch of improvements in SvelteKit’s forms and remote functions. Plus, a new query function (.live(...)) that makes accessing real-time data from the server easier.

Keep an eye out for a few breaking changes in remote functions, if you’re using those. Otherwise, enjoy all the new SvelteKit features and bug fixes in the latest versions of Svelte.

Let’s dive in!

What’s new in SvelteKit

  • Form submit now returns a boolean to indicate submission validity for enhanced remote forms (2.57.0, Docs, #15530)
  • Breaking: requested(...) now requires limit and yields { arg, query } entries instead of returning the validated argument directly (2.58.0, Docs, #15739)
  • requested(...) now supports query.batch(...), which makes batch remote query workflows easier to inspect in request-time logic (2.59.0, Docs, #15751)
  • submit and hidden remote form fields can now accept booleans and numbers directly (2.60.0, Docs, #15802) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

SvelteKit unterstützt TypeScript 6.0

SvelteKit 2.56.0 unterstützt TypeScript 6.0, Formularfelder können Standardwerte über field.as(type, value) festlegen, der Transport nutzt hydratable für reichere Datentypen, und Remote-Funktionen haben Breaking Changes.

This month we got a ton of improvements to SvelteKit’s remote functions, TypeScript 6.0 support and the experimental release of community plugins in the Svelte CLI.

Svelte was also featured in ThoughtWorks Technology Radar!

Big month, bigger showcase... so let’s dive in!

What’s new in SvelteKit

  • SvelteKit now supports TypeScript 6.0 (2.56.0, Docs, #15595)
  • form fields can now specify a default value using field.as(type, value), reducing boilerplate for pre-populated forms (2.56.0, Docs, #15577)
  • Remote function transport now uses hydratable, enabling richer data types in query results (2.56.0, #15533)
  • Form submit now returns a boolean to indicate submission validity for enhanced form remote functions (2.57.0, Docs, #15530)
  • Remote Function Breaking Changes (2.56.0)
    • Client-requested query refreshes must obtain permission from the server (#15562) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Best Practices Leitfaden und MCP-Verbesserungen

Im April wurde ein neuer Best-Practices-Leitfaden ergänzt, die OpenCode-Konfiguration in sv verbessert, svelte.config.js enthält nun Funktionen für Optionen und neue Typen in svelte/motion wurden exportiert.

This month, a new best practices guide was added to the Svelte docs. Check it out, if you haven’t already!

On the code side, the Svelte MCP got even easier to use with improvements to the official OpenCode package. Combined with the improvements to svelte.config.js, server-side error boundaries in SvelteKit and better types all around, this month is full of great improvements!

As always, there’s plenty in the showcase too!

What’s new in Svelte and SvelteKit

  • MCP: Svelte’s OpenCode config can now be found in sv’s .opencode/ folder - including the generated svelte.json plugin config (sv@0.12.6, Docs, #977)
  • svelte.config.js now contains functions for setting certain options (css, runes, customElement) so that there’s a single source of truth for everything that needs to interact with Svelte config (svelte@5.54.0, Docs, #17951)
  • svelte/motion now exports TweenOptions, SpringOptions, SpringUpdateOptions and Updater - these types cover the public method signatures of spring and tweened (svelte@5.55.0, Docs, #17967) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Neuigkeiten aus März 2026

Svelte 5.50 unterstützt createContext bei programmatischer Komponentenerstellung, {@html} akzeptiert jetzt TrustedHTML, Kommentare in HTML-Tags, Server-Fehler-Grenzen und CSP in hydratable für SvelteKit.

This month, we got a ton of new features across Svelte, SvelteKit and even the Svelte CLI. Plus, the State of JS 2025 is out and Svelte continues to hold the top spot among reactive frameworks in terms of positive sentiment.

So, without further ado, let’s dive in!

What’s new in Svelte

For a full list of changes - including all the important bugfixes that went into the releases this month - check out the Svelte compiler’s CHANGELOG

What’s new in SvelteKit

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Neue Features und Sicherheitspatches im Februar

Svelte 5.47 ermöglicht anpassbare <select>-Elemente, exportiert den CSS-Parser als parseCss, fügt ShadowRootInit für Custom Elements hinzu; Sicherheitspatches für 5 Schwachstellen wurden veröffentlicht.

This month brings a few new features to Svelte and SvelteKit and quite a few new libraries from around the community.

Also, in case you missed it last month, the Svelte maintainers released patches for 5 vulnerabilities across the Svelte ecosystem. So be sure you’re up to date by reading the blog post, CVEs affecting the Svelte ecosystem.

Now, without further ado, let’s dive in...

What’s new in Svelte & SvelteKit

  • To support newer browsers that allow it, you can now customize <select> elements using CSS and rich HTML content (svelte@5.47.0, Docs, #17429)
  • Svelte’s CSS parser is now exported from svelte/compiler as parseCss. It’s a partial but lightweight CSS AST parser that is currently being used in SvelteKit (svelte@5.48.0, #17496)
  • A ShadowRootInit object can now be passed to attachShadow() when shadow root is created with a customElement (svelte@5.49.0, Docs, #17088) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Sicherheitsupdates für Svelte-Ökosystem

Es wurden Patches für fünf Sicherheitslücken in devalue, svelte, @sveltejs/kit und @sveltejs/adapter-node veröffentlicht, die Nutzer auf die genannten Versionen aktualisieren sollten.

We’ve released patches for 5 vulnerabilities across devalue, svelte, @sveltejs/kit, and @sveltejs/adapter-node. Here’s what you need to know:

Upgrade now

If you’re using any of these packages, upgrade them to their corresponding non-vulnerable versions:

  • devalue: 5.6.2
  • svelte: 5.46.4
  • @sveltejs/kit: 2.49.5
  • @sveltejs/adapter-node: 5.5.1

For cross-dependent packages — svelte and @sveltejs/kit depend on devalue — patched versions already include upgraded dependencies.

Commentary

We’re extremely thankful to all of the security researchers who responsibly disclosed these vulnerabilities and worked with us to get them fixed, to the security team at Vercel who helped us navigate the disclosure process, and to the maintainers who worked to publish the fixes.

Over the last few weeks, we’ve seen a spate of high profile vulnerabilities affecting popular tools across the web development ecosystem. While they are unfortunate, it has been encouraging to see the community pulling together to keep end users safe. Using the lessons learned from these vulnerabilities, we will invest in processes that will help catch future bugs during the writing and review phases, before they go live. …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Neuerungen im Januar 2026

Im Januar gibt es eine csp-Option für hydratable, der Vercel-Adapter unterstützt Node 24, das Svelte-CLI setups Cloudflare-Projekte automatisch und das MCP bietet eine JS-API.

During the December holiday season, the Svelte team shared 24 days of Svelte knowledge, tips, and insights to unwrap in 2025’s Advent of Svelte. Learn more about under-utilized Svelte features through a series of fun and interactive videos!

There were also a bunch of improvements and showcase items across the Svelte ecosystem this last month. So let’s have a look...

What’s new in Svelte & SvelteKit

  • The hydratable option (which adds an inline <script> block to the head) now has a csp option in render to support Content Security Policies (svelte@5.46.0, Docs, #17338)
  • The Vercel adapter now supports Node 24 (adapter-vercel@6.2.0/adapter-auto@7.0.0, #14982 and #14737)
  • The Svelte CLI is now able to fully setup a SvelteKit project for Cloudflare Workers/Pages development (sv@0.11.0, Docs, #851)
  • The Svelte MCP now exposes tools as both a JS API and CLI (mcp@0.1.16, #128) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Svelte Society Website komplett erneuert

Die neue Svelte Society Website bietet einen dynamischen Feed mit aktuellen Svelte-Inhalten, über den Nutzer Pakete einreichen sowie Inhalte liken und speichern können; zudem gibt es neue APIs wie hydratable und print in Svelte.

Just in time for the end of the year, there’s a new Svelte Society Website! It brings a whole new experience. Instead of just being a site with static resources, it now serves a dynamic feed of all the latest Svelte content out there. Videos, libraries, events, etc.

Instead of opening PRs to add libraries and packages you can now just submit them on the website. If you find an interesting package, head on over and submit it. Logged in users also have the ability to like and save content. So be sure to try it out and share your feedback!

There’s a bunch of updates to SvelteKit and a showcase to cover, so lets dive in...

What’s new in Svelte & SvelteKit

  • hydratable API is a low-level API to coordinate hydration between the server and client (svelte@5.44.0, Docs, #17154)
  • print converts a Svelte AST node back into Svelte source code. It is primarily intended for tools that parse and transform components using the compiler’s modern AST representation (svelte@5.45.0, Docs, #16188) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Advent of Svelte 2025 gestartet

Vom 1. bis 24. Dezember öffnet sich täglich ein Türchen mit kurzen Videos zu Svelte-Features, beginnend mit einer Demo zur $inspect-Rune, auf advent.sveltesociety.dev/2025.

It’s Advent of Svelte time!

This year, we’re doing something different: every day between now and Christmas, a new door will be unlocked on advent.sveltesociety.dev/2025. Behind each door is a short video about a feature in Svelte that you might not have heard about, or a useful tip on how to get the most out of the framework.

We’re kicking things off with a demo of the $inspect(...) rune. Check back every day for updates!

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Offizieller Svelte MCP-Server verfügbar

Der offizielle Svelte MCP-Server ist verfügbar und ersetzt das Kopieren der Doku für LLMs; außerdem unterstützen createContext-Typen, die $state.eager-Rune und die fork-API die Entwicklung.

The official Svelte MCP server (for all your agentic needs) is now available with its own section of the docs site and GitHub repo. If you haven’t gotten a chance to try it out with the AI of your choice, definitely take it for a spin. It should replace the copy/pasting of the Svelte docs that’s often required to get LLMs to write valid Svelte 5 code and can provide suggestions on the generated code with static analysis.

But it’s not just AIs that have been writing code; our maintainers have too! Let’s take a look at what they’ve been up to in Svelte/Kit before diving into our community showcase...

What’s new in Svelte

  • createContext passes types with a stored context - replacing the need to type every getContext return value (5.40.0, Docs, #16948)
  • The $state.eager(value) rune will update the UI immediately instead of waiting for the corresponding await to resolve (5.41.0, Docs, #16849)
  • The fork API lets you change some state ‘offscreen’ in such a way that you can discover any async work resulting from the state change without committing it to the screen. (5.42.0, Docs, #17004) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Verbesserungen bei Remote-Funktionen und Async SSR

Remote-Funktionen erhielten neue Batching-Tools und verbesserte Leistung; experimentelles Async SSR ist verfügbar, und die event-Eigenschaft wird nun bei Navigationen bereitgestellt.

There were lots of improvements to remote functions this month - including new batching tools and improved performance via lazy discovery. For more info, check out the Docs and PR links in each bullet. Async SSR is also available for those who would like to try it out while it’s still experimental. It’s included when the config option in svelte.config.js has the compilerOptions.experimental.async setting enabled.

We’ve got a hefty showcase this month too, so let’s dive in!

What’s new in Svelte, SvelteKit and Svelte CLI (sv)

  • The event property is now included on popstate, link and form navigation (kit@2.40.0, #14307)
  • The %sveltekit.version% placeholder can now be used in app.html to easily include the current SvelteKit version in the output (kit@2.41.0, Docs, #12132)
  • You can now create projects from the Svelte playground with npx sv create --from-playground <url> (sv@0.9.5, #662) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Neue Observability-Traces und Deno-Support

SvelteKit unterstützt OpenTelemetry-Traces in einer neuen Datei für Beobachtbarkeit; außerdem sind await in @const erlaubt und Deno wird als Paketmanager unterstützt.

In case you missed it, the main Svelte blog covered how to use SvelteKit’s new OpenTelemetry traces to reliably set up observability instrumentation using instrumentation.server.ts. This month’s round up covers that release and a few other features that rolled out before and after it.

Plenty in the showcase, as well, so let’s dive in!

What’s new in Svelte and Svelte CLI (sv)

  • await is now allowed inside @const declarations (svelte@5.38.0, Docs, #16542)
  • The sv add command has been updated to remove the --no-preconditions and add --no-git-check. With this new flag, even if some files are dirty, no prompt will be shown (sv@0.9.0, Docs, #650)

What’s new in SvelteKit and its adapters

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Integrierte Observability in SvelteKit

SvelteKit bietet jetzt erstklassige Unterstützung für OpenTelemetry-Tracing und eine dedizierte Instrumentierungsdatei, die über die svelte.config.js aktiviert werden kann.

Understanding how your SvelteKit application behaves in production — from request flows to performance bottlenecks — is crucial for building reliable user experiences. SvelteKit now has first-class support for observability: built-in OpenTelemetry tracing, and a dedicated instrumentation setup file that ensures your monitoring tools work seamlessly.

To opt in, upgrade SvelteKit and your adapter and add the following to your svelte.config.js:

svelte.config

export default {
	kit(property) kit: {
    experimental: {
        tracing: {
            server: boolean;
        };
        instrumentation: {
            server: boolean;
        };
    };
}: {
		experimental(property) experimental: {
    tracing: {
        server: boolean;
    };
    instrumentation: {
        server: boolean;
    };
}: {
			tracing(property) tracing: {
    server: boolean;
}: {
				server(property) server: boolean: true
			},
			instrumentation(property) instrumentation: {
    server: boolean;
}: {
				server(property) server: boolean: true
			}
		}
	}
};

First-party OpenTelemetry traces

SvelteKit can now emit OpenTelemetry traces for the following:

  • handle hook (handle functions running in a sequence will show up as children of each other and the root handle hook) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Remote Functions und getAbortSignal veröffentlicht

Remote-Funktionen laufen sicher serverseitig, getAbortSignal bricht bei Re-Runs ab, und eine neue parent-Eigenschaft verbessert das Debugging verschachtelter Hierarchien.

With Async Svelte and its companion Remote Functions officially out in the world, there’s a lot of updates to share!

Be sure to check out the showcase for videos from Rich, Paolo, and Stanislav about all the brand new features in Svelte.

Let’s dive into the highlights...

What’s new in Svelte, SvelteKit, Language Tools and CLI (sv)

  • Remote functions can be called anywhere in your app, but always run on the server, and as such can safely access server-only modules containing things like environment variables and database clients (kit@2.27.0, Docs, #13986)
  • getAbortSignal returns an AbortSignal that aborts when the current derived or effect re-runs or is destroyed (svelte@5.35.0, Docs, #16266)
  • A new parent property has been added to the __svelte_meta properties that are added to elements at dev time - useful for debugging nested hierarchies (svelte@5.35.1, #16255) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

SvelteKit unterstützt Vite 7 und Rolldown

$inspect.trace protokolliert nun Quelldateien, und SvelteKit unterstützt Vite 7 mit Rolldown für schnellere Kompilierung, jedoch größere Bundles.

Whether you’re trying out Vite 7, vitest browser mode or remote functions, there’s lots of experimental features to try this month.

Want some Svelte swag while you’re chatting on Discord? With the new sv ⚡ server tag, you do just that. While signed into Discord, you can adopt our tag via profile settings.

There’s a bunch to cover, from blog posts to new libraries, so let’s dive in...

What’s new in Svelte and SvelteKit

  • $inspect.trace now includes source name logging to make it easy to find which file the log came from (svelte@5.34.0, Docs, #16060)
  • The latest version of SvelteKit now supports Vite 7 and Rolldown. Compilation should be faster using Rolldown, but with larger bundle sizes until additional tree-shaking is implemented in Rolldown (kit@2.22.0, Docs, #13747)

For a full list of bug fixes in Svelte, SvelteKit and its adapters, check out their CHANGELOGs here and here. …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Attachments und verbesserte Snippets in Svelte

Die neue Attachments-API löst Actions ab, fromAction konvertiert Actions, Generics sind in Snippets erlaubt, und fehlende Imports können beim Speichern ergänzt werden.

In addition to advancing the work on Async Svelte, the maintainers have been hard at work introducing long requested features like Attachments.

This month, we’ll share a bit about the new API along with a huge showcase of apps/sites built with Svelte...

Let’s dive in!

What’s new in Svelte and SvelteKit

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Svelte Summit für alle verfügbar

Das Svelte-Team sponsert die Veröffentlichung der Talks des Svelte Summit in Barcelona, sodass sie kostenlos auf dem Svelte-Society-YouTube-Kanal verfügbar werden.

This month’s Svelte Summit in Barcelona was a glorious celebration of the community. We had lively conversations, delightful dinners, and funny, imaginative and thought-provoking talks.

For everyone who couldn’t make it there in person, the conference also sold virtual tickets to the livestream, which give on-demand access to the talks. These ticket sales make it possible to (for example) hire AV technicians and ensure that the stream is reliable and high-quality. Running a conference is extremely difficult and time-consuming, and we’re very grateful to Svelte Society (Kevin in particular), Mainmatter, and everyone who bought a ticket for making the event a reality.

But we’ve heard from many of you that the talks should be freely available so that they can be shared with the widest possible audience and... we agree!

So the Svelte team has decided to sponsor the release of the talks, beginning this weekend. We’re able to do this because of the generous financial support so many of you have given us via opencollective.com/svelte, which also funds important development work on the project.

Subscribe to the Svelte Society YouTube account to be the first to know when the videos are released.

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Svelte-Neuigkeiten: Mai 2025

Bestimmte Ausdrücke werden teilweise ausgewertet, um die Laufzeitleistung zu verbessern; die Svelte-CLI unterstützt einen neuen --install-Flag und die Cloudflare-Adapter wurden zusammengeführt.

Only a week until Svelte Summit Spring 2025! If you can’t make it in-person to Barcelona, you can purchase a virtual ticket here.

But before that, we’ve got a few updates to highlight...

What’s new in Svelte and SvelteKit

The Svelte maintainers have been hard at work building out Asynchronous Svelte this month, but still found the time to ship some helpful features. If you’re interested in trying out the async branch, or just want to follow along with the development, check out feat: allow await in components #15844

  • Certain expressions will now be partially evaluated to improve runtime performance (svelte@5.27.0/5.28.0, #15494/#15781)
  • The Svelte CLI (sv) has added a --install <package-manager> flag to create and add to specify which package manager to use when running (cli@0.8.1, #531)
  • The two separate CloudFlare adapters have been merged into one: adapter-cloudflare (adapter-cloudflare@7.0.0, #13634) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Neue Optionen und ESLint-Plugin für Svelte 5

Die Option idPrefix verbessert ID-Generierung, Zustand in Deriveds ist sicherer, Derived-Anweisungen sind beschreibbar, und das CLI sowie ESLint-Plugin erhielten Upgrades.

With a couple minor releases of SvelteKit in the last month and a few more from Svelte itself, there’s a lot to be excited about this month. From new helper functions to new configuration options, we’ve got a lot to cover...

So let’s dive in!

What’s new in Svelte

  • The new idPrefix option for render makes client-side ID generation more reliable in the rare cases that multiple Svelte runtimes exist on a page (5.22.0, Docs, #15428)
  • State created in deriveds/effects can now be written/read locally without self-invalidation - reducing the number of “unsafe read”s significantly (5.24.0, #15553)
  • Derived statements are now writable (5.25.0/5.25.2, Docs, #15570 and #15581)
  • The Svelte CLI also got an upgrade to its code generation for more intuitive formatting (0.7.0, #380)
  • eslint-plugin-svelte v3 has been released. The main update is improved support for Svelte 5. Check out the CHANGELOG for more details. …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Svelte-Neuigkeiten: März 2025

Native Websocket-Unterstützung in SvelteKit zum Testen, $props.id() für SSR-sichere IDs, serverseitige Routenauflösung und Validierung von Cache-Control- und Content-Type-Headern im Entwicklungsmodus.

SvelteHack 2024 has ended and the winners were announced on February 9th. Congrats to all the winners who you’ll also find listed in the “Community Showcase” below.

But before we dive into that, let’s get to some updates!

What’s new in Svelte and SvelteKit

  • Native support for Websockets in SvelteKit is now available for testing! You can install the version of SvelteKit from the PR using pkg.pr.new and the PR number (How To Install, PR/Docs)
  • $props.id() provides SSR-safe ID generation - unique for each instance of a component (Svelte@5.20.0, Docs, #15185)
  • SvelteKit now supports an option for server-side route resolution. This means that instead of loading the whole routing manifest in the client, and doing the route resolution there, the server runtime is invoked for each route request (Kit@2.17.0, docs, pull request)
  • The values for cache-control and content-type headers are now validated in dev mode to help catch invalid values early (2.17.0, #13114) …

Originalquelle(öffnet in neuem Tab)Problem melden