-
-
Notifications
You must be signed in to change notification settings - Fork 7
Upgrade to Svelte 5 #1066
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Svelte 5 #1066
Conversation
9db5468
to
a8e64e5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see changes in here that are not related to "Upgrade to Svelte 5". I believe it is important to only include the changes related to the upgrade. This will be important looking back at the changes later.
4bd968d
to
c8552e8
Compare
I have updated the branch to just have the Svelte 5 changes, with a few exceptions:
|
2b802a5
to
0c7b747
Compare
0c7b747
to
19ee295
Compare
As of right now, I have two possible fixes for the flatpickr issue. svelte-flatpickr-plusbranch: https://github.com/sillsdev/appbuilder-portal/tree/fix/flatpickr Has some peer dependency warnings because the library also includes the dependencies for the documentation website. Pikadaybranch: https://github.com/sillsdev/appbuilder-portal/tree/fix/use-pikaday Isn't the prettiest, but I was able to finagle it to work for our use case for now. Part of the reason for this one is that the next major version of DaisyUI has styling for this library. |
19ee295
to
ca547e7
Compare
This was done to ensure that all our dependencies work with Svelte 5. svelte-flatpickr has a broken peer dependency, but appears to otherwise work. Note: TailwindCSS and DaisyUI have new major versions in about a month.
BullMQAdapter is in fact the correct adapter since we are using bullmq, not bull This was to solve an issue that may have been introduced by upgrading all the dependencies.
This bug cause the issue: npm/cli#4828
This was not an issue before Svelte 5. My assumption is that it has something to do with how Svelte 5 uses Proxies for deep reactivity.
461b56f
to
c132779
Compare
Fixed merge conflicts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
icon, | ||
width, | ||
tooltip = '', | ||
class: classes = '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why class vs classes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept the original prop name from before the Svelte 5 upgrade. In both Svelte 4 and Svelte 5 it is an error to have a prop directly named class, probably because it is a reserved keyword in JS/TS
* Trivial changes from migration * Fix imports * Handle migration-tasks * Remove all svelte/legacy * Migrate some components/pages that failed earlier * Upgrade some packages This was done to ensure that all our dependencies work with Svelte 5. svelte-flatpickr has a broken peer dependency, but appears to otherwise work. Note: TailwindCSS and DaisyUI have new major versions in about a month. * Use BullMQAdapter BullMQAdapter is in fact the correct adapter since we are using bullmq, not bull This was to solve an issue that may have been introduced by upgrading all the dependencies. * Use snippets for Pagination component * Replace writable with $state * Remove erroneous $state() * Add peer-dependency override for svelte-flatpickr * Fix package-lock for platform-specific deps This bug cause the issue: npm/cli#4828 * Fix infinite loop bug in SortTable This was not an issue before Svelte 5. My assumption is that it has something to do with how Svelte 5 uses Proxies for deep reactivity. * Fix styling on LanguageCodeTypeahead * Fix pagination for Svelte 5 * Fix infinite loop bug for user invite * Change user invite button style
Upgraded project to use latest version of Svelte.
Upgraded a few other libraries