Skip to content

chore: bump svelte to 5.51#915

Merged
jycouet merged 7 commits intomainfrom
chore/svelte-5.50
Feb 15, 2026
Merged

chore: bump svelte to 5.51#915
jycouet merged 7 commits intomainfrom
chore/svelte-5.50

Conversation

@jycouet
Copy link
Contributor

@jycouet jycouet commented Feb 8, 2026

Since sveltejs/svelte#17319 ecosystem-ci is failing

It's because of the new formating. Not sure what's the best... tweak add fragment like I did here? Or change something in svelte? @manuel3108 ?


Should fix https://github.com/sveltejs/svelte-ecosystem-ci/actions/runs/21975874335/job/63487368697

@changeset-bot
Copy link

changeset-bot bot commented Feb 8, 2026

🦋 Changeset detected

Latest commit: 711788d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
sv Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 8, 2026

Open in StackBlitz

npx https://pkg.pr.new/sveltejs/cli/svelte-migrate@915
npx https://pkg.pr.new/sveltejs/cli/sv@915

commit: 711788d

@jycouet
Copy link
Contributor Author

jycouet commented Feb 8, 2026

I'm moving this into draft with last convo we had with @manuel3108
"We" (he :D) is looking into Svelte

@jycouet jycouet marked this pull request as draft February 8, 2026 21:10
@manuel3108
Copy link
Member

I won't be able to look at this up until next week.
I don't think so, but if this blocks anything, feel free to merge with this workaround

@jycouet
Copy link
Contributor Author

jycouet commented Feb 11, 2026

I'll look Friday and see 👍

@jycouet
Copy link
Contributor Author

jycouet commented Feb 13, 2026

I think that sveltejs/svelte#17699 will be a better fix!
I leave the PR here for now to keep the bump when this will be merged (without the limbo stuff of course ^^)

Rich-Harris pushed a commit to sveltejs/svelte that referenced this pull request Feb 13, 2026
Follow-up to #17319.

The `Fragment` visitor in `print()` only flushed sequences on
`RegularElement`, causing block-level elements (`Component`,
`SvelteHead`, `SvelteBoundary`, etc.) to be lumped into the same
sequence as adjacent nodes. This broke tools that programmatically
manipulate the AST (e.g.
[sveltejs/cli#915](sveltejs/cli#915)).

The fix flushes before and after all block-level element types, ensuring
they get their own sequence and proper line separation.

### Before

```svelte
<svelte:head><title>Page Title</title></svelte:head><div>no space</div>
<Component /><Component />
<Component><span>child</span></Component><div>after component</div>
<svelte:boundary><div>boundary content</div></svelte:boundary><div>after boundary</div>
<!--comment--><div>after comment</div>
<div>before comment</div>
<!--comment-->

{#each items as item}
	<div>{item}</div>
{/each}<div>after each</div>

{@render children()}<div>after render</div>
<div>before render</div>
{@render children()}
```

### After

```svelte
<svelte:head><title>Page Title</title></svelte:head>
<div>no space</div>
<Component />
<Component />
<Component><span>child</span></Component>
<div>after component</div>
<svelte:boundary><div>boundary content</div></svelte:boundary>
<div>after boundary</div>
<!--comment-->
<div>after comment</div>
<div>before comment</div>
<!--comment-->

{#each items as item}
	<div>{item}</div>
{/each}

<div>after each</div>
{@render children()}
<div>after render</div>
<div>before render</div>
{@render children()}
```
@jycouet jycouet changed the title chore: bump svelte to 5.50 chore: bump svelte to 5.51 Feb 14, 2026
@jycouet jycouet marked this pull request as ready for review February 14, 2026 13:12
@jycouet
Copy link
Contributor Author

jycouet commented Feb 14, 2026

This will fix ecosystem-ci failing with sv 🎉

@jycouet jycouet merged commit 08b7ab9 into main Feb 15, 2026
8 checks passed
@jycouet jycouet deleted the chore/svelte-5.50 branch February 15, 2026 16:29
@github-actions github-actions bot mentioned this pull request Feb 15, 2026
@manuel3108
Copy link
Member

Thanks for taking over the svelte bugfix here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments