svelte icon indicating copy to clipboard operation
svelte copied to clipboard

Upgrade to Svelte 5.0

Open Greenfoot5 opened this issue 7 months ago • 3 comments
trafficstars

So, I've tried to upgrade everything, but have little experience with the project, so it's mainly me updating version numbers with some trial and error until it compiles.

What has been done?

  • Ran the Svelte upgrade script
  • Gone through each dependency and upgraded to the latest.
    • I know not the best, but I had another issue I thought was related to something being out of date
  • Checked it built and svelte-kit app works
  • I have moved from an older template to the vite + ts + svelte demo. The old one version was outdated, and the template has been archived.
  • I have updated the patch version number, I'm not sure if this should be 3.2.0 or 4.0.0, and set the patch to show it's different from previous.

Known Issues

  • [ ] I haven't extensively tested it (especially with other dependencies)
  • [x] Svelte app doesn't compile. There's a circular import I haven't debugged
  • [x] createEventDispatcher and afterUpdate are utilised still in Particles despite being depreciated.
    • I could do with some help here as I'm not sure how best to migrate this.
  • [x] I'm not sure if I should be able to click the elements behind in the svelt-kit demo

Any assistance would be lovely in helping make this all works correctly. My next step is to try and get apps/svelte working

Greenfoot5 avatar Apr 10 '25 15:04 Greenfoot5