-
Notifications
You must be signed in to change notification settings - Fork 633
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 Comparator.semver
property
#4059
deprecation(semver): deprecate Comparator.semver
property
#4059
Conversation
What is the reasoning behind this? |
Imo separating |
Operator.semver
propertyComparator.semver
property
I'm not sure about this change. It'd require many changes to the |
I think it declutters the interface. It also will simplify before: const range = { ranges: [ [ { operator: "<", semver: { major: 1, minor: 2, patch: 3 } } ] ] } after const range = [ [ { operator: "<", major: 1, minor: 2, patch: 3 } ] ] But we can wait with this until we decide about #4047 and discuss this some more. |
Yeah, I think we should do that. |
I think we should first decide on what to do about #4047 before changing anything about Comparator |
This is about the type |
I think we can stop using |
How do you mean exactly? |
For example, by replacing type SemVerRangeAnd = (SemVer & { operator: Operator })[]; |
Does this PR still apply if |
I will push another PR where we can do that step when renaming |
Comparator.semver
property in favour ofComparator
extendingSemVer
.