Skip to content
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

Svelte 5 migration #145

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

ampled
Copy link

@ampled ampled commented Nov 9, 2024

Description

This is my attempt to kickstart svelte 5 support. It's probably enough to just allow svelte 5 as a peerDependency considering svelte 5 has backwards compatibility, but I guess it's nice to have this as a starting point for a full migration.

All tests are passing, though I had to add a line to remove comments from rendered output before comparing it to expected output.

Changes

  • Migrated all Svelte components using 1st party migration script, then cleaning up by hand
  • Added recommended svelte testing plugin to vite-config following Testing Library setup guide
  • Updated packages required for svelte 5 and getting tests running

Copy link

vercel bot commented Nov 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
svelte-portabletext ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 20, 2024 7:50pm

Copy link

socket-security bot commented Nov 9, 2024

@TheOnlyTails
Copy link

Would be amazing to see this merged!

@ampled
Copy link
Author

ampled commented Dec 10, 2024

@TheOnlyTails

Would be amazing to see this merged!

Until then, you can use this: https://www.npmjs.com/package/@eirikk/portabletext-2-svelte-5

Follow the instructions in the README to not have to rewrite any imports

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