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

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

Svelte

Neuerungen in Svelte im Juni 2024

In Svelte 5 ist bind: auf Komponentenexports in runes mode verboten, das Migrationswerkzeug wurde verbessert, und MathML wird nun unterstützt.

The maintainers have been hard at work getting the Svelte 5 Release Candidate ready for release. In this month’s newsletter, you’ll find highlights from the pre-release CHANGELOG and a host of items from our community showcase.

Let’s dive in!

What’s new in Svelte

  • bind: is now disallowed on component exports in runes mode and has much better types to tell if a prop is $bindable (5.0.0-next.113, 114 and 125, Docs, #11238, #11225 and #11498)
  • Tons of work on the migrate tool to make migrating to Svelte 5 syntax easier (5.0.0-next.116, 136 and 137, Docs, #11334, #11659, #11704)
  • MathML is now supported (5.0.0-next.120, Docs, #11387) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Neuerungen in Svelte im Mai 2024

Auf dem Svelte Summit wurde bekannt gegeben, dass Svelte 5 in die Release-Candidate-Phase eintritt, mit Vorträgen und Community-Projekten im Rückblick.

Svelte Summit was last week - featuring a number of fantastic talks from across the community. In the final talk, What You Can Do For Your Framework, Rich Harris (with a little help from PuruVJ’s neoconfetti library) announced that Svelte 5 is now in the “Release Candidate”.

Lots of pre-release changes to cover in this post and a host of community showcase items... so let’s dive in!

Highlights from Svelte Summit Spring 2024

Below, you’ll find links to all the talks in the livestream version of Svelte Summit.

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Svelte 5 erreicht Release-Candidate-Phase

Svelte 5 ist nun ein Release Candidate, mit weitgehend festgelegtem Design und behobenen Fehlern, aber noch nicht produktionsreif; Nutzer können es über npm oder die Vorschau-Website testen.

Svelte 5 is now in the Release Candidate phase. This means that the design of the framework is largely settled, with no anticipated breaking changes between now and the stable release, and that the most egregious bugs have been stomped.

It doesn’t mean that it’s ready for production, or that nothing will change between now and 5.0. But if you’ve held off on dabbling with Svelte 5 during the public beta phase, now is a great time to try it out. You can select the ‘Try the Svelte 5 preview’ option when starting a new SvelteKit project...

npm create svelte@latest

...or you can add Svelte 5 to an existing project...

npm install --save-dev svelte@next

...or you can tinker in the Svelte 5 Preview website.

I’m out of the loop. What’s Svelte 5?

For the last several months, we’ve been hard at work rewriting Svelte from the ground up to be faster, easier to use and more robust, applying the lessons we’ve collectively learned from several years of building apps with Svelte.

You can learn more about the new features from the preview documentation, and by watching the presentation from the most recent Svelte Summit:

What You Can Do For Your Framework

The highlights include: …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Neuerungen in Svelte im April 2024

Svelte 5 bietet neue reaktive Map-, Date- und Set-Klassen, und State, Derived und Props können nun wieder explizit aus Komponenten exportiert werden.

Spring is just around the corner (for half the globe at least), which means Svelte Summit Spring is coming soon! The event will be streamed on the Svelte Society YouTube channel on April 27.

Also, this month, a ton of new features have been merged into Svelte 5 to make it the best version of Svelte yet. We’ll get into them all below, so let’s jump right in!

What’s new in Svelte

Svelte 5 is in preview and gets closer to release every day. Below, you’ll find some highlights from its changelog:

  • The new Map, Date and Set classes can now be imported from svelte/reactivity and used just like their native counterparts to fit into Svelte’s reactivity model (5.0.0-next.79, Docs, #10803, #10622, #10781)
  • state/derived/props can be explicitly exported from components again (5.0.0-next.62, #10523) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Neuerungen in Svelte im März 2024

Svelte 5 hat $derived.call zu $derived.by umbenannt, verbesserte Reaktivität bei destrukturierten Objekten, einen tree-shakebaren hydrate-Methode und Unterstützung für verschachteltes CSS.

This month, the Svelte maintainers made a ton of progress on Svelte 5 and Rich Harris talked to Prismic about how the team is working on making the framework even better.

Lots to showcase too... so let’s dive in!

What’s new in Svelte

As you may already have heard, Svelte 5 is in preview. In the meantime, Svelte 4 (@latest) has had one bugfix. The Svelte 5 changelog has quite a few updates, though:

  • breaking: $derived.call is now $derived.by (5.0.0-next.54, Docs, #10445)
  • Destructuring derived object properties will now keep fine-grain reactivity (5.0.0-next.55, Docs, #10488)
  • The new hydrate method makes hydration-related code treeshakeable (5.0.0-next.56, Docs, #10497)
  • Nested CSS is now supported, along with better support for :is(...) and :where(...) (5.0.0-next.57, #10490) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Neuerungen in Svelte und SvelteKit im Februar 2024

SvelteKit 2.1 bis 2.4 bringen tree-shakebaren Client-Router, $env/static/public in Service Workern, CSP-Unterstützung für style-src-elem, den neuen reroute-Hook und die read-Funktion in $app/server.

Since SvelteKit 2.0 released late last year, there’s been a bunch of new features to make the Kit dev experience even better! Meanwhile the Svelte team has been hard at work making Svelte 5 a reality.

In case you missed it, Rich also posted Tenets, “an attempt to articulate the Svelte philosophy — our bedrock principles, that guide our design decisions.”

So let’s dive in to check out what’s new and see what the rest of the community has been up to...

What’s new in SvelteKit

  • The client router is now tree shakeable (2.1.0, #11340)
  • $env/static/public is now exposed in service workers (2.2.0, Docs, #10994)
  • style-src-elem is now supported in environments with a Content Security Policy (2.2.1, Docs, #11562)
  • The new reroute hook allows you to change how URLs are translated into routes (2.3.0, Docs, #11537)
  • The read function is now available in the $app/server module - allowing you to read assets from the filesystem (2.4.0, Docs, #11649) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Neuerungen in Svelte und SvelteKit im Januar 2024

SvelteKit 1.29 und 1.30 ersetzen resolvePath durch resolveRoute und inline response.arrayBuffer() während SSR; SvelteKit 2.0 fügt unter anderem untrack in load hinzu.

Happy New Year! It’s been a busy month for the Svelte maintainers - with tons of new features dropping in the Svelte 5 preview and the release of SvelteKit 2!

You can find all the new features in both projects below, along with a bunch of resources and sites built with Svelte in the Community Showcase.

Let’s jump in...

What’s new in SvelteKit (2.0 and more!)

With its 2.0 release, SvelteKit is now more capable than ever. Be sure to check out the docs links in each update for more info on how to use each feature as well as the new Performance page - which explains how SvelteKit works to make your applications as performant as possible.

  • resolvePath has been replaced by resolveRoute in $app/paths. Use it to populate a route ID with params to resolve a pathname (1.29.0, Docs, #11261)
  • response.arrayBuffer() will now be inlined during SSR (1.30.0, Docs, #10535)
  • SvelteKit 2.0.0 adds:
    • untrack to load to opt-out of invalidation (Docs, #11311) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

SvelteKit 2.0 mit Shallow Routing veröffentlicht

SvelteKit 2.0 unterstützt Vite 5 und führt Shallow Routing ein, das das Verknüpfen von Zustand mit einem Verlaufseintrag ohne Navigation ermöglicht.

Version 2.0 of SvelteKit, the official framework for building apps with Svelte, is now available. It is an incremental release that adds support for the newly-released Vite 5 along with a bevy of small improvements and one much-requested feature.

If you’ve been paying close attention to Svelte in recent months, you’ll know that we’ve been hard at work on Svelte 5, which is possibly the most anticipated release in the project’s history. Upgrading to SvelteKit 2 will smooth the path for Svelte 5 when it is released in 2024, and we encourage all users to upgrade when you get a chance.

We recommend updating to the most recent 1.x release first, along with Svelte 4, in order to address any deprecation warnings. Then, upgrade to SvelteKit 2 by running the automated migration tool:

npx svelte-migrate sveltekit-2

The migration guide has more details about what’s new.

Shallow routing

Way back in the mists of time — May, to be precise — we teased a new feature that allows you to associate state with a history entry without causing navigation. It’s very useful for creating modals that you can dismiss by swiping back, or pop-up views of routes you don’t want to do a full navigation to. …

Originalquelle(öffnet in neuem Tab)Problem melden