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

Neuerungen in Svelte im Mai 2023

Svelte 3.58.0 unterstützt CSS-@container-Queries, bind:innerText für contenteditable und neue Accessibility-Warnungen.

Before we dive into the updates, there’s a few announcements worth mentioning at the top:

New Svelte Ambassadors

Regular features of this newsletter and all-around great content creators for Svelte JoyOfCode and HuntaByte have been appointed as Svelte Ambassadors. Ambassadors are people who are well known for their helpfulness and contributions and for upholding Svelte’s reputation as a friendly, welcoming community, and we’re deeply grateful for their involvement!

SvelteHack winners will be announced May 6th

In a just a few days, we’ll find out who won SvelteHack - the Svelte Hackathon that took place between February 17th and April 17th. Tune in to Svelte Summit on May 6th to see if your favorite project was chosen 👀

Lots of submissions to the hackathon are featured in this month’s showcase... but first, let’s see what’s new!

What’s new in Svelte

  • style blocks now support CSS @container queries (3.58.0)
  • bind:innerText is now available for contenteditable elements (3.58.0)
  • A new accessability warning, a11y-interactive-supports-focus will now warn when interactive elements are not focusable (3.58.0) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Neuerungen in Svelte im April 2023

Svelte 3.56.0 fügt den |stopImmediatePropagation-Event-Modifier und den axis-Parameter für slide-Transitionen hinzu.

Happy April, everyone! This month, we’re covering all the new features in the Svelte compiler, some quality-of-life improvements in SvelteKit and a huge showcase (like always).

In core team news, Dominic Gannaway has joined Vercel to work on Svelte full-time! Dominic is a world-class expert on wringing performance out of javascript engines, on the DOM, on reactivity, on accessibility, and more! You might know him as the creator of the Inferno UI framework or Lexical, Meta’s WYSIWYG editor. It’ll be great to see his talents at work across the Svelte ecosystem 🌱

Don’t forget! Svelte Summit Spring, Svelte’s 6th virtual conference, will be happening on May 6th. Also, there’s just two weeks left until the end of SvelteHack... It’s a great opportunity to share your creations with the community and maybe even earn a prize!

Now let’s jump into this month’s changes...

What’s new in Svelte

  • A bunch of new features are now available as of 3.56.0!
    • Add |stopImmediatePropagation event modifier for on:eventname (#5085, Docs)
    • Add axis parameter to slide transition (#6182, Docs) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Typsicherheit ohne Aufwand

Mit der neuesten Svelte-Erweiterung werden load-Funktionen und data-Props automatisch typisiert, ohne manuelle Annotationen.

By sprinkling type annotations into your SvelteKit apps, you can get full type safety across the network — the data in your page has a type that’s inferred from the return values of the load functions that generated that data, without you having to explicitly declare anything. It’s one of those things that you come to wonder how you ever lived without.

But what if we didn’t even need the annotations? Since load and data are part of the framework, can’t the framework type them for us? This is, after all, what computers are for — doing the boring bits so we can focus on the creative stuff.

As of today, yes: it can.

If you’re using VSCode, just upgrade the Svelte extension to the latest version, and you’ll never have to annotate your load functions or data props again. Extensions for other editors can also use this feature, as long as they support the Language Server Protocol and TypeScript plugins. It even works with the latest version of our CLI diagnostics tool svelte-check!

Before we dive in, let’s recap how type safety works in SvelteKit.

Generated types

In SvelteKit, you get the data for a page in a load function. You could type the event by using ServerLoadEvent from @sveltejs/kit:

src/routes/blog/[slug]/+page.server

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Neuerungen in SvelteKit im März 2023

SvelteKit 1.4.0 bis 1.6.0 bringt $app/paths im Test, Routen-Konfiguration, Snapshots und OPTIONS-Servermethode.

March is coming in hot with a number of essential features having been added to SvelteKit following its 1.0 launch. Check out last week’s blog post for more details.

Svelte Society also launched SvelteHack last month with over $12,000 in prizes - calling all Svelte developers, new and old, to make something awesome before the April 17th deadline!

And, if you haven’t heard already, there’s going to be another Svelte Summit! Head over to SvelteSummit.com and sign up for the newsletter to get updates about the next event 📬

Now let’s jump into this month’s changes...

What’s new in SvelteKit

  • $app/paths can now be used without an app - making things like component testing with Vitest, using Storybook, etc. easier (1.4.0, #8838)
  • Adapters can now be configured at the route level (1.5.0, Docs, #8740)
  • The new snapshot mechanism preserves ephemeral DOM state even after navigation and page reloads (1.5.0,Docs, #8710)
  • OPTIONS are now available within the server method (1.6.0, Docs, #8731) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Streaming, Snapshots und weitere neue Funktionen seit SvelteKit 1.0

SvelteKit 1.8 ermöglicht Streaming nicht-essentieller Daten aus load-Funktionen und das Rendern der Seite vor dem Abschluss.

The Svelte team has been hard at work since the release of SvelteKit 1.0. Let’s talk about some of the major new features that have shipped since launch: streaming non-essential data, snapshots, and route-level config.

Stream non-essential data in load functions

SvelteKit uses load functions to retrieve data for a given route. When navigating between pages, it first fetches the data, and then renders the page with the result. This could be a problem if some of the data for the page takes longer to load than others, especially if the data isn’t essential – the user won’t see any part of the new page until all the data is ready.

There were ways to work around this. In particular, you could fetch the slow data in the component itself, so it first renders with the data from load and then starts fetching the slow data. But this was not ideal: the data is even more delayed since you don’t start fetching until the client renders, and you’re also having to break SvelteKit’s load convention.

Now, in SvelteKit 1.8, we have a new solution: you can return a nested promise from a server load function, and SvelteKit will start rendering the page before it resolves. Once it completes, the result will be streamed to the page. …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Neuerungen in Svelte und SvelteKit im Februar 2023

SvelteKit erhält Verbesserungen bei der Basis-Pfad-Unterstützung für Remote-Entwicklungsumgebungen, automatische Einbindung des Submit-Wertes sowie neue Fehler- und Warnmeldungen im Entwicklungsmodus.

Since last month, we’ve seen a couple of minor versions across Svelte and SvelteKit, a bunch of educational content to support the 1.0 release, as well as the State of JS survey results...

Svelte, once again, increased in satisfaction and interest, so thanks to everyone who voted!

Let’s dive into the updates...

What’s new in SvelteKit

Work in the Svelte ecosystem this month has been focused on SvelteKit bug fixes and addressing feedback from the 1.0 launch. One of the more awaited bug fixes to SvelteKit’s base path support landed, which means that you can now create SvelteKit projects on remote development environments. There have been several new releases with these fixes as well as a handful of new features such as:

  • The submitter’s value will now be included automatically when progressively enhancing

    (1.0.3, #8273)

  • Added an error in dev mode if global fetch is used with relative URL (1.0.8, #8370)

  • A warning will now indicated that hydration may break if comments are removed from HTML (1.0.11, #8423) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Neuerungen in Svelte und SvelteKit im Januar 2023

SvelteKit 1.0 ist veröffentlicht, mit verbesserter Storybook- und Histoire-Unterstützung, vitePreprocess als Standard und einigen Breaking Changes bei Exports und URLs.

It’s been just two weeks since the release of SvelteKit 1.0! If you haven’t yet, check out the livestream, new website and tutorial to learn all the features of SvelteKit step-by-step.

Let’s dive into the details...

What’s new in SvelteKit

  • @sveltejs/kit 1.0 is out! All future releases will follow semver and changes will be listed as major/minor/patch in the CHANGELOG.
  • Improved support for Storybook and Histoire (#7990). Work is ongoing to fully support those tools (storybook#20239).
  • vitePreprocess is now the default preprocessor. Please see the docs for differences between vitePreprocess and svelte-preprocess (#8036).

Breaking changes:

  • Unknown exports (except when starting with an underscore) are no longer allowed from +(layout|page)(.server)?.js and +server.js files (#7878)
  • __data.json is now stripped from URL (#7979) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

SvelteKit 1.0 ist da

SvelteKit hat nach zwei Jahren Entwicklung Version 1.0 erreicht und ist ab sofort die empfohlene Methode zum Erstellen von Svelte-Apps jeder Größe.

After two years in development, SvelteKit has finally reached 1.0. As of today, it’s the recommended way to build Svelte apps of all shapes and sizes.

We’re so excited to share this release with you. It’s the culmination of thousands of hours of work, both from the Svelte core team and the wider community, and we think it’s the most enjoyable way to build production-grade websites, whether you’re a solo developer working on a small project or part of a large team.

To get started, run npm create svelte@latest, and visit the docs and (experimental!) interactive tutorial.

Svelte Radio Live: the Christmas special

What is SvelteKit?

SvelteKit is a framework for building web applications on top of Svelte, a UI component framework that developers love for its performance and ease of use.

If you’ve used component frameworks like Svelte, you’ll know that they make it much easier to build user interfaces than working with the DOM directly. But they leave a lot of questions unanswered:

  • How do I structure my source code?
  • How do I add server-side rendering?
  • How do I add routing that works on the server and in the browser? …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Neuerungen in Svelte und SvelteKit im Dezember 2022

SvelteKit bietet neue Funktionen wie willUnload, Caching für __data.json, Unterstützung für Hash-Links und Redirects im handle-Hook sowie optionale Fallback-Komponenten.

SvelteKit 1.0 is just around the corner! With 99% of the milestone issues completed, there’s a lot of new changes from the last month to cover...

Let’s get to it!

What’s new in SvelteKit

  • Use the willUnload property to find out if the navigation will result the app being unloaded (full page reload/closing/leaving to another page). (#6813)
  • __data.json requests now allows for caching while ensuring we cache matching responses for all invalidation scenarios (#7532)
  • Linking to <a name="hash"> tags is now supported (#7596)
  • Throwing redirects in the handle hook is now supported (#7612)
  • A fallback component will now be added automatically for layouts without one (#7619)
  • The new preload function within the resolve hook determines what files should be added to the tag to preload it (Docs, #4963, #7704)
  • version is now available via $app/environment (#7689, #7694) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Neuerungen in Svelte und SvelteKit im November 2022

SvelteKit erweitert use:enhance um eine update-Methode, unterstützt optionale Routenparameter, goto mit invalidateAll und behebt 404-Fehler in Adaptern.

It’s been a busy October for the Svelte community. use:enhance and Advanced Routes got some great improvements in SvelteKit while the Svelte compiler released a minor version to improve the day-to-day dev experience.

There’s also a huge showcase to cover... so let’s jump in!

What’s new in SvelteKit

  • The new update method for use:enhance lets you easily get back the default form behavior while augmenting it with your own logic (docs, #7083 and #7326)
  • [[optional]] parameters are now available for routing (docs, #7051)
  • goto now has invalidateAll to (re-)run all load functions belonging to the new active page (docs, #7407)
  • config.kit.paths.base is now used in adapters looking for static assets - fixing 404 issues across adapter-netlify, adapter-vercel, adapter-cloudflare, and adapter-cloudflare-workers (#4448)

Breaking changes:

  • Errors will now be thrown when routes conflict (#7051) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Neuerungen in Svelte und SvelteKit im Oktober 2022

Der Svelte Summit fand mit vielen Vorträgen statt, und es gibt neue Features, Tools und verbesserte Barrierefreiheits-Warnungen in Svelte und SvelteKit.

There’s a bunch of updates this month... from new features in Svelte and SvelteKit to a whole 2-day summit! Plus, the Svelte extension gets some helpful new tools, new accessibility (a11y) warnings, and Tan Li Hau teaches us how to build our own Svelte and a Svelte spreadsheet 😎

What happened at Svelte Summit?

A lot! Below you can find all the talks, by timestamp, from each livestream. Bite-size videos of the event will be coming soon to the Svelte Society channel, so be sure to Subscribe, if you haven’t already!

Day One

  • 12:31 - How to get Svelte adopted at work
  • 33:21 - Animating Data Visualization in Svelte
  • 2:20:36 - Red flags & code smells
  • 2:53:42 - Enhance your DX
  • 4:42:41 - Svelte in UBS’ knowledge graph
  • 5:06:42 - How to migrate react libraries to svelte
  • 5:45:27 - DX magic in the world of Svelte
  • 7:25:39 - Data visualizations powered by Svelte …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Neuerungen in Svelte und SvelteKit im September 2022

SvelteKit unterstützt den Link-HTTP-Header, macht $env/static/* virtuell, erlaubt $app/stores überall im Browser und bietet eine neue Konfiguration für .env-Verzeichnisse.

Still looking for something to do this month? It’s your last chance to get tickets to Svelte Summit, Stockholm! Join us on Sept 8-9th 🎉

With the redesign of SvelteKit’s filesystem-based router merging early last month, there’s lots to cover this month - from the migration script to a number of new blog posts, videos and tutorials.

But the new routing isn’t the only new feature in SvelteKit...

What’s new in SvelteKit

  • Link is now supported as an HTTP header and works out of the box with Cloudflare’s Automatic Early Hints (1.0.0-next.405, PR)
  • $env/static/* are now virtual to prevent writing sensitive values to disk (1.0.0-next.413, PR)
  • $app/stores can now be used from anywhere on the browser (1.0.0-next.428, PR)
  • config.kit.env.dir is a new config that sets the directory to search for .env files (1.0.0-next.430, PR)

Breaking changes: …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Neuerungen in Svelte und SvelteKit im August 2022

SvelteKit verbessert SSR mit dynamisch importierten Styles, optimiert Routen und Prop-Updates sowie die Fehlerbehandlung.

There’s a lot to cover this month... big changes are coming to SvelteKit’s design before 1.0 can be completed. If you haven’t already, check out Rich’s Discussion, Fixing load, and tightening up SvelteKit’s design before 1.0 #5748.

Also, @dummdidumm (Simon H) has joined Vercel to work on Svelte full-time and @tcc-sejohnson has joined the group of SvelteKit maintainers! We’re super excited to have additional maintainers now dedicated to working on Svelte and SvelteKit and have already been noticing their impact. July was the third largest month for SvelteKit changes since its inception!

Now onto the rest of the updates...

What’s new in SvelteKit

  • Dynamically imported styles are now included during SSR (#5138)
  • Improvements to routes and prop updates to prevent unnecessary rerendering (#5654, #5671)
  • Lots of improvements to error handling (#4665, #5622, #5619, #5616) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Neuerungen in Svelte und SvelteKit im Juli 2022

SvelteKit erhält schnellere SSR sowie Unterstützung für Vitest und Storybook; OpenCollective-Mittel ermöglichen bezahlte Beiträge und Team-Treffen.

From faster SSR to support for Vitest and Storybook in SvelteKit, there’s a lot to cover in this month’s newsletter...

So let’s dive in!

OpenCollective funding drives Svelte forward

Svelte supporters have donated approximately $80,000 to the project on OpenCollective. We’re happy to share that the funds are being drawn on to move Svelte forward in a meaningful way. @gtm-nayan has begun triaging and fixing SvelteKit issues this past month as a paid contributor to the project to help us get SvelteKit to a 1.0 level of stability! @gtm-nayan has been an active member of the Svelte community for quite some time and is well known for writing the bot that helps keep our Discord server running. We’re happy that this funding has allowed Svelte to get much more of his time.

We will also be utilizing OpenCollective funds to allow Svelte core maintainers to attend Svelte Summit in person this fall. Thanks to everyone who has donated so far!

What’s new in Svelte & Language Tools

  • The tutorial is a new way to learn Svelte and SvelteKit from the ground up that is currently in development …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Neuerungen in Svelte und SvelteKit im Juni 2022

Svelte 3.48.0 erlaubt abbruchbare Custom Events und {@const} in {#if}-Blöcken; SvelteKit arbeitet an Vite-3-Integration.

With last month’s Svelte Summit behind us, we’re ready to apply everything we learned in this new month of June! Also new this month are some quality-of-life changes to createEventDispatcher, @const declarations and tons of progress toward SvelteKit 1.0.

Let’s dive in!

What’s new in Svelte

  • Custom events can now be cancelled in the createEventDispatcher function (3.48.0, Docs, PR)
  • The {@const} tag can now be used in {#if} blocks to conditionally define variables (3.48.0, Docs, PR)
  • Lots of bug fixes across <svelte:element>, animations and various DOM elements. Check out the CHANGELOG for a deeper dive!

What’s new in SvelteKit

  • Vite 2.9.9 was released as one of the last Vite 2 releases. The Svelte team has been hard at work contributing to the Vite 3 release to make the integration between SvelteKit and Vite smoother than ever (Vite 3.0 Milestone) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Svelte hat Änderungen im Mai 2022 veröffentlicht

Mit dem neuen <svelte:element>-Element können Elemente dynamisch gerendert werden, und die Language Tools unterstützen nun svelte:element, sveltekit:reload, sortierte Importe und bessere HTML-Hover-Informationen.

With yesterday’s Svelte Summit behind us, we’ve got a lot of news to share! Check out all of the recordings on the Svelte Society YouTube Channel and the rest of this month’s updates below...

What’s new in Svelte

  • The <svelte:element> element lets you render an element of a dynamically specified type. This is useful, for example, when rendering rich text content from a CMS. Check out the docs or the tutorial for more info (3.47.0)!

Language Tools updates

  • svelte:element and sveltekit:reload are now supported
  • Invalid Svelte import paths will now be automatically detected - see PR for getting back the old behavior (#1448)
  • source.sortImports lets you sort imports without deleting unused imports (#1338)
  • Hovering over HTML attributes will now show HTML hover info instead of the TS hover info - resulting in much more useful information (#1447)
  • In VS Code, you can now wrap existing blocks of code in control flow tags using the Insert Snippet command (#1373)

What’s new in SvelteKit …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Svelte und SvelteKit Neuerungen im April 2022

SvelteKit unterstützt nun Parameter-Matcher, explizite Weiterleitungen von Endpunkten, svelte-kit sync, TypeScript 4.6, Vite 2.9 und die neue Konfigurationsoption outDir für Monorepos.

This month, we felt a shift in the way SvelteKit handles page properties. The last holdout of the use-cases that required fallthrough routes, validating parameter properties, has been replaced by a more specific solution.

More on that, and what else is new in Svelte, as we dive in...

What’s new in SvelteKit

  • Param matchers allow you to check if a url parameter matches before rendering a page - replacing the need for fallthrough routes for this purpose (Docs, #4334)
  • Explicit redirects can now be handled directly from endpoints (#4260)
  • svelte-kit sync (#4182), TypeScript 4.6 (#4190) and Vite 2.9 were released - adding non-blocking dependency optimization and experimental CSS source maps in dev mode as well as a number of bug fixes contributed by the SvelteKit team (#4468)

New Config Options

  • outDir fixes path issues in monorepos and other situations where the desired output directory is outside the project directory (Docs, #4176) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Svelte-Neuigkeiten im März 2022

SvelteKit führt Seitenendpunkte ein, um Boilerplate zu reduzieren, bietet App-Versionserkennung, verbesserte Such- und Multiseiten-Dokumentation sowie automatische Playwright-Einrichtung.

Just announced: Svelte Summit Spring will be taking place on April 30, 2022. The 5th Virtual Svelte Conference is looking for speakers and sponsors... so it’s time to dust off those proposals!

Also, some long-requested features were added to SvelteKit this month... including page endpoints! This change in how the load function works makes it easier to fetch data required for basic pages, redirect from POST responses and handle 404s and other errors.

More on that and other new features and fixes below!

What’s new in SvelteKit

  • The docs are now searchable and multipage with type definitions and hoverable code examples - Check them out at svelte.dev/docs/kit
  • Page endpoints significantly decrease the boilerplate needed when loading a page (Issue, PR, Docs)
  • Application versioning and update detection support lets you determine what to do when a route fails to load after an app update (Issue, PR, Docs)
  • A new option in npm init svelte@next will now set up Playwright automatically for testing (PR) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Svelte und SvelteKit Updates im Februar 2022

Svelte 3.45.0 und 3.46.0 brachten neue Warnungen, den {@const}-Tag und style:-Direktiven, während SvelteKit die Option inlineStyleThreshold erhielt und das REPL nun AST-Ausgabe zeigt.

Happy February, everyone! Over the last month or so, we’ve seen Svelte and SvelteKit develop at rapid speed, new community rules across the Reddit, GitHub and Discord, and quite a few amazing apps, tutorials and libraries.

Let’s take a look...

Highlights from the Svelte changelog

What’s new in SvelteKit

  • inlineStyleThreshold allows you to specify where inline stylesheets are inserted into the page (Docs, #2620) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Beschleunigung der Entwicklung von Svelte

Das Svelte-Team expandiert, um die Entwicklung zu beschleunigen, und arbeitet mit fast einer Million Downloads von SvelteKit auf eine stabile 1.0-Version hin.

Svelte is a frontend framework for building fast reactive web apps with less code. If you’re new here, check out the tutorial or examples to get a feel for it.

Svelte was launched 5 years ago and has come a long way in the time since. In 2021, as usage more than doubled, it was voted the most loved framework with the most satisfied developers in a pair of surveys. Alongside high-profile companies like The New York Times, Apple, Spotify, Square, Rakuten, Bloomberg, Reuters, Ikea, Brave, and countless others, Svelte is used to power everything from hobby projects to embedded systems interfaces.

To help developers build fully-featured applications with Svelte without worrying about the hard parts, we’ve been developing the SvelteKit application framework. We’re moving quickly towards a stable 1.0 release with the help of early adopters who have already downloaded SvelteKit almost one million times.

Scaling the team …

Originalquelle(öffnet in neuem Tab)Problem melden