←back to thread

Svelte 5 Released

(www.npmjs.com)
390 points begoon | 10 comments | | HN request time: 1.067s | source | bottom
1. simonsarris ◴[] No.41890040[source]
I love Svelte and use it for all my personal projects and all company projects (except strictly static sites are still built with just 11ty but I hate it and want to move off it).

But I'm going to wait a bit on v5 for the company, scanning all the issue headlines, it looks like there are a still a lot of unresolved edge cases: https://github.com/sveltejs/svelte/issues

As for my latest personal project, upgrading right now so I can help find more of those edge cases :D

replies(4): >>41890161 #>>41890321 #>>41890438 #>>41891804 #
2. taikahessu ◴[] No.41890161[source]
Definitely try Astro for static sites, I'm loving it!
replies(2): >>41890450 #>>41890520 #
3. codelikeawolf ◴[] No.41890321[source]
For what it's worth, I've upgraded three pretty beefy projects to v5 over the past 6 months or so (making sure to stay on top of latest releases), and I haven't seen any weirdness. That being said, I'm not using any of the transition APIs and only one of the projects uses the "runes outside of a Svelte file" thing (i.e. svelte.js files), so YMMV. I was so excited about runes that I couldn't wait. The only thing that bit me initially was `$state` runes converting objects into Proxy instances, so if you want to send data using `postMessage` or IPC in Electron, you need to serialize it first. I really love the new APIs. The Svelte team did an awesome job of addressing most of the gripes I had with v4.
4. chris_pie ◴[] No.41890438[source]
offtop, but could you share a bit on why you hate 11ty? I was considering it for a static site.
replies(2): >>41891496 #>>41893606 #
5. akudha ◴[] No.41890450[source]
Do you think Astro would be good for a site with tons of data (graphs, tables etc)? Can it be used with db, user logins?
replies(1): >>41890965 #
6. yawnxyz ◴[] No.41890520[source]
I've started using Astro for static sites, but also as a lightweight Sveltekit replacement.

I saw they have Svelte 5 support, and maybe this would make runes a killer app if we can inject the runes into Astro, (or even React) components?!

7. chrisldgk ◴[] No.41890965{3}[source]
Yes, yes and yes. It kind of depends what your project uses under the hood and what it depends on, but Astro is quite flexible with the frameworks it supports and for many things there’s a first-class integration that lets you just install support for certain libraries and frameworks (for example Tailwind, React, Partytown, certain CMSes) with one command.

For DB and user logins, you might have to run in SSR mode to be able to do server-side stuff, but you can certainly build API routes, server middleware and interact with cookies for user token stuff.

8. Nathanael_M ◴[] No.41891496[source]
I adore 11ty. It’s not inherently component driven, but it’s super straightforward and endlessly customizable. It allows you to really experiment with organization, too. I like it a lot.
9. hasanhaja ◴[] No.41891804[source]
What do you hate about 11ty?
10. pbowyer ◴[] No.41893606[source]
I've used 11ty on and off since pre-1.0. The documentation remains awfully confusing and doesn't cover common use-cases. The system has been pulled together but not thought out as a whole.

Lume (from Deno) is my preferred 11ty alternative.