Skip to content

Commit 0f6cc2b

Browse files
fix: migrate events to be more inline with svelte 4 (#13362)
* fix: migrate events to be more inline with svelte 4 * fix: use function instead of action * chore: generate types * re-export event modifier substitutes * chore: replace map with object * fix: handle nullish values * fix: use bubbler for delegated events * chore: generate types * chore: deprecate legacy stuff * chore: damn type generations * fix: implement bubble on props strategy * chore: revert bubble as prop init but keep fix for restProps * fix: use `passive` and `nonpassive` actions for `passive` and `nonpassive` modifiers * chore: i swear i will setup a commit hook for generating types * chore: update output * tweak passive/nonpassive types to make them more compact and show up as deprecated * make terminology more consistent with other places * eat local, shop local, declare local * unify name replacement stuff * remove errant newline * ensure modifier order is stable and matches svelte 4 * fix * compute indent once * joining without newlines seems to work better in common cases * replace passive/nonpassive handlers in situ * unused * simplify * simplify, remove errant spaces * only import handlers when necessary * changeset --------- Co-authored-by: Rich Harris <[email protected]>
1 parent 4b7cb9a commit 0f6cc2b

File tree

9 files changed

+590
-257
lines changed

9 files changed

+590
-257
lines changed

.changeset/perfect-avocados-greet.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: higher fidelity event migration

0 commit comments

Comments
 (0)