BearToCode / carta

A lightweight, fast and extensible Svelte Markdown editor and viewer.
https://beartocode.github.io/carta/
MIT License
469 stars 22 forks source link

Svelte 5 #117

Open boylett opened 3 months ago

boylett commented 3 months ago

Are there plans for Svelte 5 support? :)

BearToCode commented 3 months ago

Hi! I've not tried Svelte 5 yet. I think it was supposed to be backward compatible(?)

tvanriper commented 1 month ago

Yes and no. They do have some breaking changes that they can't get around, although I haven't seen those impact this library (yet). They also need library authors to create a separate branch for Svelte 5 changes, particularly since eventually the changes will become breaking.

It'll be advantageous to move to Svelte 5 as it addresses some shortcomings for the environment, although some people find it controversial, I suppose ("Oh no! It's become ReactJS!").

Currently, I am trying to use this library with Svelte 5, and while it works, I'm constantly having to apply --force or --legacy-peer-deps to work with my project.

FWIW, this site might clarify some things, now that Svelte 5 has reached release candidate phases.

BearToCode commented 1 month ago

I checked out the resources you provided and then added svelte ^5.0.0 to the package.json of almost all packages. Only the component plugin requires some changes and a new version would need to be published.

Feel free to answer here or open new issues for anything going wrong in the new Svelte version!

mithi commented 3 weeks ago

@BearToCode hi! Long time no see 🤗 Svelte 5 is officially alive! 🥳 https://svelte.dev/blog/svelte-5-is-alive

katriellucas commented 2 weeks ago

I also want to add that by using the new CLI command sv migrate, upgrading to Svelte 5 might be painless. The migration guide gives you an overview of the changes.