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

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

Svelte

SvelteKit-Verbesserungen im Januar 2022

SvelteKit erhält Brotli-Kompression, paralleles Vorrendern, automatische CSS-Einbindung, deaktivierbare Service-Worker-Registrierung, SSR-Routenaufteilung und vereinfachte Anfrage-URLs.

Happy new year, Svelte Community! Lots to share this month across Svelte, SvelteKit, Language Tools and the Showcase. Thanks to everyone who made 2021 a great year to use Svelte. Looking forward to the next one 🚀

What’s new in SvelteKit

  • @sveltejs/adapter-static for SvelteKit now has a precompress option to make brotli compression of assets and pages easier to do out of the box (#3079)
  • Concurrency mode in SvelteKit will now prerender pages in parallel (#3120). It is enabled by default in 1.0.0-next.205 and later
  • CSS is now automatically included before JS for improved page performance (d13efe)
  • A new config option adds the ability to disable service worker registration to do your own custom registration (#2988)
  • SSR route-splitting is here - breaking monolithic builds into smaller pieces for improved startup and routing performance (#2931)
  • request.origin/path/query is now request.url - simplifying the config and page load functions (#3126) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Highlights vom Svelte Summit Fall 2021

Rich Harris kündigte seinen Wechsel zu Vercel an, um Svelte in Vollzeit zu pflegen, und Steph Dietz sprach über die einfache Lernbarkeit von Svelte.

With SvelteKit getting more and more stable each day, there’s not much to cover in terms of code changes other than bug fixes... So, in this month’s newsletter, we’ll be covering Svelte Summit Fall 2021!

If you want to dive deep into the last month’s worth of bug fixes, check out the Svelte and SvelteKit changelogs, respectively.

What happened at Svelte Summit?

If you missed Svelte Summit, you can watch the entire live stream on YouTube and catch a recap in the #svelte-summit channel on Discord.

Here are the highlights:

  • Rich Harris took us through a tour of Svelte’s history and announced his move to Vercel - where he will be helping maintain Svelte full-time! (20:00)
  • Steph Dietz explained how Svelte’s simple abstractions makes it easy for beginners and experts alike to learn and use JavaScript - without the boilerplate (29:00) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Svelte und SvelteKit Neuerungen im November 2021

Svelte erreicht 80% des SvelteKit-Meilensteins, fügt die Compiler-Option enableSourcemap hinzu und die Language Tools lesen nun VS-Code-CSS-Einstellungen.

With SvelteKit crossing the 80% complete mark, over 5000 stars on GitHub, and now having more usage than Sapper, there’s never been a better time to try it out! Many in the community have, making for quite a large showcase this month...

Also, don’t miss out on Svelte Summit on November 20th - featuring speakers from around the world. Keep an eye out for a watch party in your area 👀

Now onto what’s new!

New in Svelte and SvelteKit

  • svelte.dev now runs on SvelteKit alongside sveltesociety.dev. svelte.dev is a relatively complicated site with live code editing, authentication, and a markdown-based blog - making it a great way for us to really test out SvelteKit
  • A new compiler option, enableSourcemap, provides more control over the compiler output for JS and CSS sourcemaps (3.44.0). With this new feature, SvelteKit and the Vite Svelte plugin can now properly handle environment variables in .svelte templates (See sveltejs/kit#720 and sveltejs/vite-plugin-svelte#201)
  • The Svelte Language Tools now support reading the configuration of the VS Code CSS settings (#1219) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Svelte und SvelteKit Updates im Oktober 2021

Svelte 3.43.0 und 3.42.4 bringen SSR-Lifecycle-Funktionen und beheben Build-Probleme mit src-Attributen, während die Extensions 105.4.0 TypeScript-Plugin-Empfehlungen und Ereignismodifier-Autovervollständigung hinzufügen.

Hey y’all 👋 It’s been 1 year since “What’s new in Svelte” started being cross-posted to the Svelte blog. I wanted to take this moment at the top to thank all of you for reading and for all the contributors every month. From the maintainers to everyone who posts their work in the Discord and Reddit, it’s amazing to witness all the effort that goes into making the Svelte community great.

Keep up the good work, everyone! Now, let’s dive into this month’s news...

New around Svelte

  • New additions to Svelte’s export map now expose no-op versions of lifecycle functions for SSR (Svelte 3.43.0)
  • Custom components with a src attribute no longer break svelte-native builds (Svelte 3.42.4)
  • Svelte plugin users without the TypeScript plugin enabled will now be prompted to enable it. It enhances TypeScript and JavaScript files with additional intellisense to interact with Svelte files. Please leave feedback if you are using it (Svelte extensions 105.4.0)
  • Event modifiers have been added to intellisense as autocomplete and hover info (Svelte extensions 105.4.0) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Svelte und SvelteKit Neuerungen im September 2021

Svelte 3.42.x erlaubt use:actions auf <svelte:body>, kennt neue Globals, reduziert Codeausgabe und verbessert flip-Animationen, während SvelteKit weitere Fortschritte macht.

This month, Svelte was voted StackOverflow’s most loved web framework, Tan Li Hau talked to Svelte Radio about his Svelte-filled YouTube channel, and SvelteKit made even more progress towards its 1.0 release!

New in Svelte

  • use:actions can now be used on <svelte:body> (3.42.0)
  • HTMLElement, SVGElement (3.42.2) and BigInt (3.42.3) are now known globals
  • There is less code in Svelte’s output thanks to the following improvements in 3.42.2:
    • Whitespace is now collapsed in class and style attributes
    • Hydrated components have been updated to only rely upon helpers for creating the types of elements present in the component
  • Scaling is now accounted for in flip animations (3.42.2)
  • All <option>s in a <select> are now deselected when the bound value doesn’t match any of them (3.42.2)

For a full list of features and bug fixes, check out the Svelte changelog.

SvelteKit Updates …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Svelte: Neuerungen im August 2021

Svelte 3.39.0 bis 3.41.0 bringen den |trusted-Event-Modifier, das Paket svelte/ssr, die Compiler-Option errorMode und die Möglichkeit, Komponenten im Shadow DOM zu rendern.

From The Changelog (JS Party Ep. 182) to Svelte Radio (Episodes 29 and 30), it seems that folks couldn’t help but talk about Svelte, this month! Also, shadow DOM support and new export and await functionality are new in Svelte.

New in Svelte

July was the most active month for the Svelte core repo since late 2019 as we really worked to reduce the number of outstanding PRs and saw the release of Svelte 3.39.0, 3.40.0, and 3.41.0. Tons of bug fixes were added as well as the following new features:

  • The |trusted event modifier allows you to check if an event is trusted before it’s called (#6137)
  • The new svelte/ssr package to support work on improving SvelteKit SSR (#6416)
  • A new errorMode compiler option to support improved preprocessing of TypeScript files (#6194)
  • You can now specify a ShadowRoot as the target when creating a component - making it possible to render Svelte components inside the shadow DOM (#5869) …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Svelte: Neuerungen im Juli 2021

SvelteKit erhält vorkomprimierte Assets in adapter-node, TypeScript-Transpilierung und verbesserte Cache-Standards; Svelte 3.38.3 bringt Leistungs- und Fehlerbehebungen.

As the northern hemisphere heats up, Svelte has stayed cool with lots of performance and bug fixes, better TypeScript support, and lots of new components & tools from around the ecosystem. Let’s take a peek 👀

New in SvelteKit

  • adapter-node now precompresses assets using gzip & brotli (#1693)
  • Support for TypeScript transpilation has been added to the svelte-kit package tooling (#1633)
  • Improved caching defaults in adapter-node (#1416)
  • Allow configuring Rollup output options (#1572)
  • Fixed usage of SSL with HMR (#1517)

Features & bug fixes from around svelte/*

  • Svelte 3.38.3 (released June 22) includes a bunch of performance and bug fixes - including hydration optimizations, this preservation in bubbled events, and more!
  • The latest language tools releases added support for prop renaming from outside of a component, PostCSS syntax grammar, and a .d.ts output target in svelte2tsx which can be used to create type definitions from Svelte files. …

Originalquelle(öffnet in neuem Tab)Problem melden

Svelte

Svelte: Neuerungen im Juni 2021

SvelteKit nutzt jetzt ESM-Konfigurationsdateien, bindet Vite ein, benennt Ordner und Variablen um und bietet die Option trailingSlash; svelte-check ist im TypeScript-Template enthalten.

This month, we saw lots of contributions to SvelteKit and its docs. The language tools also got some new features, most notably deeper integration with Svelte files within JavaScript or TypeScript files. Let’s jump into the updates...

New in SvelteKit

  • svelte.config.js config files are now loaded in ESM format (.js instead of .cjs).
  • AMP pages will now use the rendered CSS, rather than emitted CSS
  • svelte-check has been added to the TypeScript template (sveltejs/kit#1556)
  • Support for https keypair sveltejs/kit#1456
  • Now bundling Vite with SvelteKit and using an upgraded version. Remove Vite from your package.json if it’s there
  • Etags for binary responses sveltejs/kit#1382
  • Renamed $layout to __layout and $error to __error
  • Removed getContext in favor of request.locals
  • Renamed .svelte output directory to .svelte-kit. Update your .gitignore accordingly
  • trailingSlash: 'never' | 'always' | 'ignore' is now available in the config. This should make it easier to build sites that work with static hosting providers that expect a trailing slash for index.html pages, and provides an escape hatch for anyone that needs more complex behaviour.

Notable bug fixes in SvelteKit …

Originalquelle(öffnet in neuem Tab)Problem melden