←back to thread

Svelte 5 Released

(www.npmjs.com)
390 points begoon | 1 comments | | HN request time: 0s | source
Show context
sansseriff ◴[] No.41890232[source]
Svelte 5 has been very nice to work with over the past few months. Yes, runes require you to think more carefully about lifecycles and updates. And you may end up writing a little more code initially than with svelte 4. But it serves you better in the long run with complex apps. I found a process for gradually turning a simple app into a more complex one that works for me. I iteratively move $state() runes out of .svelte files and into .svelte.ts files where I build a more abstract data-oriented structure for my app from a series of mutually linked classes. Then those runes can be re-imported into the .svelte files, or used and updated wherever you need. If you plan it right, I think it avoids the need for heavy redux-like state management. (at least I think so. I haven't worked with redux much myself)
replies(4): >>41890939 #>>41891144 #>>41891258 #>>41893765 #
mhitza ◴[] No.41890939[source]
Do you know of any large OSS software built with Svelte? I'd like to see how it turns out in the long run, because I'm reticent of all frontend frameworks nowadays through what I perceive as gateways to uncontrollable accidental complexity and abstractions.
replies(8): >>41891082 #>>41891269 #>>41891381 #>>41891428 #>>41891502 #>>41891606 #>>41891748 #>>41891802 #
FractalHQ ◴[] No.41891802[source]
Apple Music isn't OSS, but it's quite a large Svelte app: https://music.apple.com
replies(2): >>41891909 #>>41895080 #
1. ChocolateGod ◴[] No.41895080[source]
I have no idea Apple was using Svelte, that's cool

Another notable example is Yahoo Finance, which is written in Svelte

https://finance.yahoo.com/