Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
breaking: remove support for svelte 4 and support svelte 5 #30700
breaking: remove support for svelte 4 and support svelte 5 #30700
Changes from all commits
2043d85
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
we did not need svelte as an imported dependency before, but now we need the
mount
andunmount
functions in svelte 5. Since we want to use whatever version of svelte the user has installed, we want to bundle this as an external dependencyThere 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.
The component signature for svelte completely changed in Svelte 5, where Svelte components are no longer generic classes . Instead, the typing represents something more simple now, which is just a generic type of
Record<string, any>
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.
depending on how Svelte is bundled has an impact here, where the
name
of the component can only be determined to bewrapper
. For instance, thename
in open mode iswrapper
, but inrun
mode it's the full component name. This like has to do with thedevelopment
version of svelte being used inopen
mode butproduction
being used inrun
.Because of this, I have default the mount log off by default as when developing tests it doesn't provide a lot of value to just say
mount<wrapper>
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.
figured this was a good time to make sure the list is up to date
This file was deleted.
This file was deleted.
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.
most of the changes to these components are to follow the svelte migration guide
biggest differences:
state
orprops
for a given property. This is why there isCounter.svelte
which uses state andCounterProp.svelte
which uses a prop to set the counter.There are a few others but these are the main changes. I also converted the projects to typescript as this is the new base case
This file was deleted.