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

Remove deprecated elements for next major release #1631

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

acelaya
Copy link
Contributor

@acelaya acelaya commented Jul 23, 2024

Closes #1306
Closes #1621

This PR removes the next deprecated symbols before releasing next major version:

  • SelectNext, which is replaced by Select or MultiSelect.
  • useElementShouldClose, which is replaced by usePopoverShouldClose.

I already have a local branch for client replacing usages of the later.

Copy link

codecov bot commented Jul 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (487c251) to head (38cab23).

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #1631      +/-   ##
===========================================
+ Coverage   99.90%   100.00%   +0.09%     
===========================================
  Files          62        61       -1     
  Lines        1071      1036      -35     
  Branches      409       398      -11     
===========================================
- Hits         1070      1036      -34     
+ Misses          1         0       -1     

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

Comment on lines -336 to -338
if (multiple && !Array.isArray(value)) {
throw new Error('When `multiple` is true, the value must be an array');
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's no need to check this anymore, as we enforce it via static types.

  • Select allows single-item values and hardcodes multiple: false.
  • MultiSelect allows array values and hardcodes multiple: true.

@acelaya
Copy link
Contributor Author

acelaya commented Jul 23, 2024

I'll go ahead and merge this, then release v8

@acelaya acelaya merged commit 5630604 into main Jul 23, 2024
4 checks passed
@acelaya acelaya deleted the remove-deprecated-stuff branch July 23, 2024 09:42
@robertknight robertknight removed their request for review July 23, 2024 11:47
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.

Remove deprecated SelectNext Remove deprecated useElementShouldClose from the package
1 participant