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

feat: removing dispatch-style events in Svelte #272

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

divdavem
Copy link
Member

createEventDispatcher is deprecated in Svelte 5, it is now recommended to use simple props.

Following #225, this PR completely removes support for on:something={...} events in AgnosUI components (in favor of only onSomething={...} as in React). This simplifies a lot the code.

Copy link

codecov bot commented Nov 30, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (cb4c3b5) 92.17% compared to head (53d8404) 92.18%.
Report is 2 commits behind head on main.

❗ Current head 53d8404 differs from pull request most recent head 46e6b42. Consider uploading reports for the commit 46e6b42 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #272   +/-   ##
=======================================
  Coverage   92.17%   92.18%           
=======================================
  Files          70       70           
  Lines        1943     1932   -11     
  Branches      343      341    -2     
=======================================
- Hits         1791     1781   -10     
  Misses         87       87           
+ Partials       65       64    -1     
Flag Coverage Δ
e2e-1 74.75% <ø> (-0.09%) ⬇️
e2e-2 60.90% <ø> (-0.48%) ⬇️
e2e-4 74.31% <ø> (-0.03%) ⬇️
e2e-5 69.62% <ø> (-0.06%) ⬇️
e2e-7 63.55% <100.00%> (-0.26%) ⬇️
e2e-8 70.95% <100.00%> (+0.23%) ⬆️
unit 92.49% <ø> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@divdavem divdavem marked this pull request as ready for review November 30, 2023 14:08
createEventDispatcher is deprecated in Svelte 5, it is now recommended to
use simple props. This commit removes support for on:something={...} events
in AgnosUI components (in favor of only onSomething={...} as in React).
This simplifies a lot the code.
Copy link
Contributor

@fbasso fbasso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ;)

@divdavem
Copy link
Member Author

divdavem commented Dec 5, 2023

@fbasso Thank you for your review!

@divdavem divdavem merged commit 3b6947a into AmadeusITGroup:main Dec 5, 2023
11 checks passed
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