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

Deprecate 3 overloads of StyleScope.borderWidth with wrong parameter names #2297

Merged
merged 5 commits into from
Sep 8, 2022

Conversation

eymar
Copy link
Member

@eymar eymar commented Sep 7, 2022

Final solution:
3 borderWidth methods have wrong parameters names.
We can't just change the parameters names, because it would be a breaking change.

Fix consists of 2 things:

  • we change the signature of old methods by adding a new unused: Unit? = null parameter. We mark those 3 old methods as deprecated.
  • we add a 3 new borderWidth methods with correct parameters names.

The deprecated methods will be removed not earlier than 1.4

This PR is an alternative for #1982

The reason is wrong parameter names. The behaviour is still correct.
The idea is to fix the parameter names in 2.0 (which is more appropriate for breaking changes)
@eymar eymar changed the title Temporary deprecate 3 overloads of StyleScope.borderWidth Deprecate 3 overloads of StyleScope.borderWidth with wrong parameter names Sep 7, 2022
@eymar eymar merged commit 80b71a9 into master Sep 8, 2022
@eymar eymar deleted the temporary_deprecate_borderWidth branch September 8, 2022 08:58
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