Zum Inhalt springen

Svelte Updates & Release Notes

Einträge
109
Quellen
1
Zuletzt aktualisiert

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

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

Svelte

Svelte-Neuigkeiten: Februar 2025

Nicht-numerische Werte können nun getweent werden, const-Tags sind in svelte:boundary erlaubt, template-Elemente akzeptieren beliebige Kinder, ClassValue wird exportiert, benutzerdefinierte IDs können bei goto() ungültig gemacht werden und postinstall-Skript wurde entfernt.

The Svelte developer experience got a huge upgrade this month with more exported types and better syntax highlighting in VS Code. Combine that with the huge releases from Storybook, Tailwind and Threlte... and you’ve got a pretty big month!

Let’s dive in 🐬

What’s new in Svelte

  • Non-numeric values can now be tweened by snapping immediately to the new value (5.17.0, Docs, #14941)
  • const tags are now allowed inside of a svelte:boundary (5.17.5, Docs, #14993)
  • <template> elements are now allowed to contain any child elements (5.18.0, Docs, #15007)
  • ClassValue is now exposed from svelte/elements (5.19.0, Docs), #15035)

What’s new in SvelteKit and Language Tools

  • Custom identifiers can now be invalidated on goto() navigation (2.16.0, Docs, #13256)
  • The postinstall script has been removed to support pnpm 10 (2.16.0, #13304) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Snippets exportierbar und neue Klassen-Syntax

Snippets können aus Modul-Skripten exportiert werden, defaultValue und defaultChecked werden unterstützt, der Parser erzeugt moderneres AST, und das class-Attribut akzeptiert Objekte oder Arrays.

From new syntax to improved dev tooling, the Svelte team has been busy this month building new features in both Svelte and SvelteKit. And as we round the corner into the new year, there’s even more to look forward to... like the 10th Svelte Summit! Join the Svelte community online or in-person in Barcelona: May 8th and 9th.

Now let’s get to the news 👀

What’s new in Svelte

  • Snippets can now be exported from module scripts (5.5.0, Docs, #14315)
  • defaultValue and defaultChecked are now supported for inputs (5.6.0, Docs, #14289)
  • The loose parser mode creates a more modern AST for developer tools to consume (5.13.0, Docs, #14691)
  • A new “worker” exports condition helps better support bundling for worker-based environments (5.15.0, #14779)
  • The class attribute can now be an object or array, using clsx (5.16.0, Docs, #14714)

New/Updated Syntax …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Svelte-Neuigkeiten: Dezember 2024

ContentVisibilityAutoStateChangeEvent zu Elementdefinitionen hinzugefügt, neuer Helper isActionFailure in SvelteKit und automatische Typisierung für const load-Deklarationen.

I can’t believe it’s already the last newsletter of the year! So much has happened in the Svelte community - from two great Svelte Summits to the release Svelte 5 🎉

As we look forward to the next year and watch the Svelte team do 24 features in 24 days, let’s dive into what’s new in the past month...

What’s new in Svelte

The bugfix versions in 5.1.x and 5.2.x addressed a bunch of issues reported by the community. So if you’re noticing anything weird, make sure you upgrade to the latest version and, as always, check out the CHANGELOG for all the bug fixes.

The features since last month can be found below:

  • ContentVisibilityAutoStateChangeEvent has been added to element definitions (5.2.5, MDN Docs, #14373)

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

  • isActionFailure is a new helper method to check if a variable is an instanceof ActionFailure - helpful for debugging parsing of user input (2.8.0, #12878)
  • const load = ... declarations will now be typed automatically (svelte2tsx-0.7.23, #2540) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Advent of Svelte

Es werden täglich neue Funktionen oder Verbesserungen bis Weihnachten veröffentlicht, beginnend mit Error Boundaries und der Möglichkeit, bei each-Blöcken auf as zu verzichten.

Last December, Svelte Society presented an advent calendar’s worth of festive Svelte-themed code challenges.

This year, we’re turning it around: you get to relax while we take on a challenge. We’ve set ourselves a goal of releasing one thing a day from here until Christmas, whether it’s a new feature in Svelte or SvelteKit or an improvement to the website.

Follow @svelte.dev and @sveltesociety.dev and check back every day to see what we’ve been cooking up.

Day 1: error boundaries

This is a long-awaited and much-requested feature, that allows you to isolate and recover from errors that occur during rendering.

  • docs
  • tutorial

Day 2: each without as

If you just want to render something in an {#each ...} block n times, and don’t care about the value, you can now omit the as part.

  • docs …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Svelte-Neuigkeiten: November 2024

Snippets können Slots füllen und hidden until-found sowie beforematch sind auf DOM-Elementen verfügbar.

In case you missed the announcement post, the brand new omnisite or the maintainers shipping it LIVE during Svelte Summit... Svelte 5 is out!

Also announced at Svelte Summit was SvelteHack 2024: A Svelte Hackathon (with not-so-svelte prizes). The submission period ends January 9 and only projects started after October 18th are eligible. So get those $s ready and start hacking!

Since the release of Svelte 5, there’s already been one minor version to introduce a couple of helpful features. We’ll dive into those - along with a number of updates across the CLI, SvelteKit and more - in this month’s roundup...

What’s new in Svelte

If you’ve only recently migrated to Svelte 5, check out the last few months of updates for all the features that have gone into this release. For this month, you’ll see some marked -next.XXX. These changes were in the 5.0 release.

  • Snippets can now be used to fill slots (5.0.0-next.262, #13427)
  • hidden until-found and beforematch are now available on DOM elements (5.0.0-next.266, MDN Docs, #13612) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Einführung der neuen Svelte CLI

Die neue CLI sv bietet erweiterte Projekt erstellen und Add-ons für Tools wie Tailwind, ESLint, Testing und mehr direkt bei der Projekterstellung.

We’ve just released sv, a new Command Line Interface (CLI) for creating, enhancing, and upgrading Svelte projects.

One of the most common question we hear is “how do I set up Tailwind on my new project?”. Tailwind has SvelteKit documentation, but it lists eight steps. While the community-led svelte-add project could automate the process, few knew about it.

Introducing sv at Svelte Summit Fall 2024

Now, we’re offering that functionality via our own CLI, directly within the project creation screen. And not just for Tailwind — we have built-in add-ons for formatting, linting, testing, setting up databases and auth and i18n and more. Just run npx sv create and follow the prompts:

$ npx sv create

┌  Welcome to the Svelte CLI! (v0.5.8)
│
◇  Where would you like your project to be created?
│  my-new-app
│
◇  Which template would you like?
│  SvelteKit minimal
│
◇  Add type checking with Typescript?
│  Yes, using Typescript syntax
│
◆  Project created
│
◆  What would you like to add to your project? (use arrow keys / space bar)
│  ◻ prettier (https://prettier.io)
│  ◻ eslint
│  ◻ vitest
│  ◻ playwright
│  ◻ tailwindcss
│  ◻ drizzle
│  ◻ lucia
│  ◻ mdsvex
│  ◻ paraglide
│  ◻ storybook
└
``` …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Svelte 5 ist veröffentlicht

Svelte 5 ist nach 18 Monaten Stabil und bietet eine komplette Neufassung mit besserer Leistung, kleinerer Größe und höherer Zuverlässigkeit.

After almost 18 months of development, comprising thousands of commits from dozens of contributors, Svelte 5 is finally stable.

It’s the most significant release in the project’s history. Svelte 5 is a ground-up rewrite: your apps will be faster, smaller and more reliable. You’ll be able to write more consistent and idiomatic code. For newcomers to the framework, there’s less stuff to learn.

Despite all that, Svelte is almost completely backwards-compatible with Svelte 4 — for the majority of users, the initial upgrade will be completely seamless:

{
	"devDependencies": {
		"@sveltejs/vite-plugin-svelte": "^3.0.0",
		"svelte": "^4",
		"@sveltejs/vite-plugin-svelte": "^4.0.0",
		"svelte": "^5",
		// …
	}
}

What is Svelte?

Svelte is a framework for building user interfaces on the web. It uses a compiler to convert declarative component code, based on HTML, CSS and JavaScript, into tightly optimised JavaScript.

Because the compiler shifts a lot of the work out of the browser and into npm run build, Svelte apps are small and fast. But beyond that, Svelte is designed to be an enjoyable and intuitive way to build apps: it prioritises getting stuff done.

The team behind Svelte also maintains SvelteKit, an application framework that handles routing and data loading and server-side rendering and all the gory details that go into building modern websites and apps.

What changed, and why? …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Svelte vereint alle Websites unter svelte.dev

Svelte 5 und die neue sv CLI wurden veröffentlicht, und alle bisher getrennten Websites sind nun unter svelte.dev zusammengeführt, mit einem neuen Look und vereinheitlichter Navigation und Suche.

Launching Svelte 5 and the brand new sv CLI wasn’t enough: we’ve also released a brand new website. You’re looking at it.

Up until now, we’ve maintained multiple different sites under the svelte.dev domain — the main site, for Svelte itself, along with kit.svelte.dev and learn.svelte.dev. This had some minor benefits, but was mostly a nuisance:

  • inability to search across sites
  • subtly different navigation
  • potential for broken links (at build time, SvelteKit automatically validates that every internal link is correct, but links to other sites are a different matter)
  • preferences such as dark mode are not shared between sites
  • navigating between (for example) documentation and the tutorial involves a full page reload

From an implementation perspective, keeping multiple sites in sync proved to be a headache.

Having everything under a single roof means you’ll have an easier time finding the information you need. Right now, the site includes documentation for Svelte and SvelteKit; soon, it will also cover the CLI and additional packages like vite-plugin-svelte.

New look

We’ve also given the site a facelift. Our logo and hero artwork (‘the machine’), designed by the brilliant Achim Vedam, are unchanged — these, and the Svelte orangey-red colour, are still the cornerstones of our visual identity. …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Neuerungen in Svelte im Oktober 2024

Das svelte-migrate-Werkzeug hilft bei der Migration auf Svelte 5, und Legacy-Komponenten können nun asynchron mit der sync-Option manuell instanziiert werden.

It’s October! Which can only mean one thing... Svelte Summit Fall is only 19 days away! Stay up to date with the latest Svelte Summit news by subscribing to its official newsletter or follow along during the stream on the Discord.

Thanks to the number of folks who have been trying the Svelte 5 release candidates, the maintainers have been hard at work in addressing bugs and implementing performance improvements for the upcoming release. This month, we’ll cover the most notable changes along with the many apps, resources and libraries that the community has created over the last few weeks.

What’s new in Svelte

Have you been wanting to migrate your project to Svelte 5? Want to test out the migration tool and give the team feedback? Then you should give the svelte-migrate tool a try! npx svelte-migrate svelte-5 is all you need to get started. If you run into any problems, please file an issue.

Here’s what else is new...

  • Legacy components can now be manually instantiated asynchronously with the sync option (5.0.0-next.237, #12970) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Neuerungen in Svelte im September 2024

In Svelte 5 wurden $state.frozen durch $state.raw ersetzt, $state.is entfernt, und <svelte:component> ist in runes mode veraltet, während :global nun flexibler eingesetzt werden kann.

A bunch of updates to Svelte dropped in the last few weeks, plus a few quality of life improvements in the Svelte language tools.

Let’s take a look...

What’s new in Svelte and Language Tools

  • $state.frozen has been replaced with $state.raw (5.0.0-next.218, Docs, #12808)
  • $state.is has been removed. RIP, little guy (#12916)
  • svelte:options now lets you set the css: "inject" compiler option on a per-component basis (5.0.0-next.209, #12660)
  • <svelte:component> is now unnecessary in runes mode and therefore is deprecated (5.0.0-next.203/217, #12646 and #12694)
  • :global is now allowed in more places - making it easier to use in <style> tags and fixing issues with Tailwind’s @apply (5.0.0-next.199, Docs, #12560) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Neuerungen in Svelte im August 2024

Die Svelte-5-Helfer wurden umbenannt, DOM-Grenzen bei Branch-Effekten verbessert, die Hydration beschleunigt, und Übergänge starten nun standardmäßig beim Mounten.

The ramp up to the Svelte 5 release has led to a bunch of huge improvements to both performance and customizability. Also in this month’s round-up: some minor SvelteKit updates and a return of the Svelte Dev Vlog.

Let’s dive in!

What’s new in Svelte

Below, you’ll find the highlights from the Svelte 5 release notes (currently in Release Candidate):

  • Breaking: The names of the svelte/reactivity helpers have been updated to include a Svelte prefix (5.0.0-next.169, Docs #12248)
  • Branch effects now have better DOM boundaries - reducing bugs in {#each} blocks and during DOM manipulation (5.0.0-next.171 and 5.0.0-next.182, #12215, #12258, #12383)
  • Single-pass hydration has reduced DOM size and significantly improved hydration speed (5.0.0-next.179, #12335, #12339)
  • Breaking: Transitions now play on mount by default (5.0.0-next.177, #12351) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Neuerungen in Svelte im Juli 2024

Svelte 5 bietet nun eine kompaktere Prop-Deklaration mit $props(), das on-Event für geordnete Handler, einen neuen Component-Typ und neue Bindings für <svelte:document>.

This month, we got a bunch of new features in the Svelte 5 release candidate, Rich Harris explained to Prismic’s CEO how Svelte optimizes for vibes and Geoff Rich shared even more about this philosophy at CascadiaJS 2024.

Let’s jump in!

What’s new in Svelte

Below, you’ll find the highlights from the Svelte 5 release notes (now in Release Candidate):

  • You can now declare props in runes mode more succinctly using let props = $props() (5.0.0-next.167, #12201)
  • The new on import from svelte/events allows you to preserve the order in which event handlers are called in more situations (5.0.0-next.152, Docs, #11912)
  • The Component type now represents the new shape of Svelte components (5.0.0-next.143, #11775)
  • <svelte:document> has new activeElement and pointerLockElement bindings (5.0.0-next.150, #11879) …

Originalquelle(öffnet in neuem Tab)Problem melden