Svelte 5 Migration Guide for Skeleton v2 #2887
endigo9740
announced in
Announcements
Replies: 1 comment 2 replies
-
Thank you, Chris! Given that Skeleton v2 peer dependencies don't include Svelte 5 ("svelte": "^3.56.0 || ^4.0.0"), I guess it is worth mentioning that a way to install svelte 5 with skeleton 2 is to run
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone, as you may be aware the Svelte 5 has now launched. We know many folks in the community are eager to update, so we wanted to provide a guide to help walk you through the process.
What to Expect
Before we begin, let's set expectations for how Svelte 5 will be utilized in either version of Skeleton:
Skeleton v2
This version of Skeleton was designed from the ground up using Svelte 4 component APIs. However, Svelte 5 offers backwards compatibility with the older APIs, which means migration should be fairly seamless. This does mean Skeleton v2 components will continue to use Svelte 4 APIs under the hood, and you will be unable to pair these with Svelte 5 features quite yet.
Skeleton v3
This version of Skeleton was designed from the ground up using Svelte 5's component APIs. Features like runes, snippets, and more. Migrating to Svelte 5 now will provide a much more streamlined process for migrating to Skeleton v3 upon release. As such, we recommend you migrate to Svelte 5 as soon as possible.
When should I migrate?
This will always be a decision that must be owned by you, as only you know the requirements and stakes of your project. That said, when you are confident and ready to migrate, we recommend creating a dedicated migration branch in your project. Then handling all updates there. That way if something goes wrong you can always drop the branch and start over.
Known Issues
Warning
There is currently one notable breaking issue when using Skeleton v2 in Svelte 5, which is related to the Tree View component. Additionally, we are expecting a delay in the v3 version of this component. So it's our current recommendation you forego this feature or implement an alternative for now.
Perquisites
Tip
Run
npm list
in your terminal to check the exact versions of each dependency currently installed.2.10.3
or higher)Migrate to Svelte 5
When you're ready to migrate to Svelte 5, we recommend following the official documentation.
npm install -D svelte@latest
Support
If you have questions, comments, or feedback about the migration process, please reach out in the comments section below or the
#skeleton-next
channel on Discord.Beta Was this translation helpful? Give feedback.
All reactions