-
-
Notifications
You must be signed in to change notification settings - Fork 83
Super debug runed #589
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
base: main
Are you sure you want to change the base?
Super debug runed #589
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Thank you so much for this upgrade! Is it ready to test? |
Not quite Right now the TS is broken for the SuperDebug props. I believe using a |
@ciscoheat got TypeScript errors resolved, this is ready to test |
I got this when trying the PR locally:
|
✅ Description
This PR addresses an issue when using Superforms in runes mode with Svelte 5, where an error is thrown due to the use of
export let
in theSuperDebug.svelte
component:The error occurs because Svelte 5's runes mode no longer allows
export let
syntax in components. Instead,$props()
must be used.To resolve this, I've introduced a conditional version of the
SuperDebug
component that supports runes mode in Svelte 5 while maintaining compatibility with Svelte 3/4.🔍 Related Issue(s)
Fixes: Compatibility issue with
SuperDebug.svelte
in Svelte 5 runes mode#568
#306
#426
Related discussion: Svelte 5 runes opt-in guide
📦 Changes Summary
SuperDebugRuned.svelte
for Svelte 5 compatibilitySuperDebugLegacy.svelte
component for Svelte 3/4SuperDebug.svelte
to useSuperDebugLegacy.svelte
orSuperDebugRuned.svelte
based on Svelte version🧪 How to Test
In a Svelte 5 project using runes mode:
SuperDebug
export let
are thrownIn a Svelte 4 project:
SuperDebug
behaves as expected with no regressions🧾 Checklist
npm run lint
andnpm run check
with no errors