You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: complete Svelte 5 migration and address dev warnings
Removes the last legacy syntax from the codebase: createEventDispatcher
is converted to callback-prop style across Bit/Bits/Digit/Digits/Pixel/
NumberControls and their consumers, and IPv4.svelte migrates off Svelte 4
(export let, $:, named slot) with the slot replaced by an extraBits
snippet prop in CIDR.svelte.
Also addresses the development warnings that surfaced during the audit:
- astro.config: deprecated markdown.remarkPlugins/rehypePlugins move into
the unified({...}) processor from @astrojs/markdown-remark
- LogRange: prop-derived values wrapped in $derived to silence
state_referenced_locally
- IPv4: six <div /> self-closing tags expanded to <div></div>
- IPv4Input: aria-label added to the icon-only pencil button
- Bits/Digits: comment marks the fly import as used in template-only
in:fly directives (Vite's static analysis can't see those)
Adds Pixel and IPv4 component tests to cover the callback-prop wiring
and the slot-to-snippet migration end-to-end.
Copy file name to clipboardExpand all lines: src/components/blend/IPv4.svelte
+31-21Lines changed: 31 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -1,46 +1,56 @@
1
-
<!-- @migration-task Error while migrating Svelte code: This migration would change the name of a slot (extra-bits to extra_bits) making the component unusable -->
0 commit comments