Skip to content

Commit

Permalink
feat: events for svelte 5, mount events to contexts, event modifiers,…
Browse files Browse the repository at this point in the history
… remove custom event typing
  • Loading branch information
hperrin committed May 10, 2024
1 parent 03d3456 commit 52d60b8
Show file tree
Hide file tree
Showing 278 changed files with 2,700 additions and 2,600 deletions.
5 changes: 5 additions & 0 deletions MIGRATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

This doc contains information that will help you migrate your code from an older version of SMUI to a newer one. Things that you will need to change in your existing code will be written here. It would also be helpful to check the MDC changelog if the upstream MDC versions has changed between SMUI versions.

# SMUI 7 -> SMUI 8

- Svelte 5 is required! Svelte 4 will not work.
- Event listeners no longer need to use the CustomEvent type. They can use the correct type, like MouseEvent and KeyboardEvent.

# SMUI 6 -> SMUI 7

SMUI 7 migrated to upstream MDC 14.0 from 13.0:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ SMUI v7 works with Svelte 4 only, due to the way it handles events. SMUI v8 is i

Upgrading from an old version? Be sure to read the [migration doc](MIGRATING.md).

Upgrading from v7? You need Svelte 5. Event listeners no longer to use the CustomEvent type. Check out the [upgrade instructions](MIGRATING.md#smui-7---smui-8).

Upgrading from v6? You need Svelte 4. No more elemental components; you can now use the "tag" prop to change the element. No more "ComponentDev" types; components can now be used as their type. Check out the [upgrade instructions](MIGRATING.md#smui-6---smui-7).

Upgrading from v5? If you're still using the advanced styling method, it's really time to switch to the easy styling method. '/styled' endpoints are no longer provided. Check out the [upgrade instructions](MIGRATING.md#smui-5---smui-6).
Expand Down
Loading

0 comments on commit 52d60b8

Please sign in to comment.