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

Refactor/rating stars adapt props #558

Merged
merged 5 commits into from
Sep 8, 2021
Merged

Conversation

ChrisPaj
Copy link
Collaborator

@ChrisPaj ChrisPaj commented Sep 1, 2021

change props 'starSize' to 'size' and 'maxRating' to 'max';
Props 'starSize', 'maxRating' and 'minRating' (will be dropped on next release) become deprecated;
To avoid breaking chains, the deprecated props are still valid, overwriting their successors;

@ChrisPaj ChrisPaj requested a review from eeegor as a code owner September 1, 2021 07:39
@render
Copy link

render bot commented Sep 1, 2021

@ChrisPaj ChrisPaj requested a review from oddcelot September 1, 2021 07:40
Copy link
Collaborator

@oddcelot oddcelot left a comment

Choose a reason for hiding this comment

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

we may want to make a console.warn() announcement when someone uses the deprecated props 🤔

@nowseemee nowseemee merged commit 3ceb6c1 into main Sep 8, 2021
@nowseemee nowseemee deleted the refactor/rating-stars-adapt-props branch September 8, 2021 08:11
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.

3 participants