-
Notifications
You must be signed in to change notification settings - Fork 630
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
deprecation(semver): deprecate ltr()
and gtr()
#4228
deprecation(semver): deprecate ltr()
and gtr()
#4228
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with the changes. Nice.
I wonder what are the use cases of these functions. I guess most users are only interested in |
I have no idea. I think it is pretty trivial to get the min/max version of a range and compare it to another version. But I guess there must be a reason why it was ported over. |
I feel we blindly ported everything from I'd suggest we should just deprecate these without replacement APIs because they don't seem common operation and also the alternative ways to perform these are trivial as you point out. The deprecation note would be something like |
e731e6e
to
dbf1883
Compare
done |
ltr()
to lessThanRange()
and gtr()
to greaterThanRange()
ltr()
and gtr()
Towards #4228 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I've made some modifications and opened a new issue (#4273) to track the deprecation. Does this new way of deprecation look good to us?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
renamesltr()
tolessThanRange()
and deprecates the old functionrenamesgtr()
togreaterThanRange()
and deprecates the old functionltr()
gtr()