kit
kit copied to clipboard
Svelte 5 ecosystem CI is failing
Describe the bug
I don't understand why this is failing though
I should also note that TemplateNode is declared in the types twice. Once in the root of the types as a non-exported type and once exported from 'svelte/types/compiler/interfaces'
Reproduction
Upgrade enhanced-img to the latest Svelte 5 and run pnpm check
Logs
No response
System Info
`main`
Severity
blocking an upgrade
Additional Information
Should have been fixed with https://github.com/sveltejs/svelte/issues/12292, but for some reason it seems not to be working
There's no real good to make this work other than to keep exposing the old AST types through that never-meant-to-be-public interface. And I'm not sure if that is the right solution. I'd rather switch to redeclaring those types within enhanced image for the time being, and once it has a peer dependency of Svelte 5 minimum you can switch to a) the modern parse output b) use the types exported along with it.
Ah, we can switch to modern parse output. I didn't realize until just the other day that there's a flag for that and it can return two different AST.
It's probably a bit late in the game, but I would have made it version: 5 so that we don't have moreModern: true if we switch to some other implementation in the future.
The old AST will probably be gone in 6, and I sure don't hope we already have changes by then, so if we ever have another AST we can just use modern again
Oh yeah, good call. Maybe we should deprecate the non-modern one now.
I mean, it is deprecated. It's just for a seamless switch that we default to the old one
It's not showing deprecated for me. I upgraded the project to Svelte 5, but don't see any indication in the IDE.