ipm
ipm copied to clipboard
SemanticVersionExpression.Range should have option to not fill in upper range
Currently ##class(%IPM.General.SemanticVersionExpression).FromString("^2.1.0",.range) fills in the upper boundary, which in some cases is useful, but there should be an option to disable that and only return what is specified by the string.
Currently this will return Comparators ">=2.1.0" and "<3.0.0"
A third parameter which would only return the first comparator, defaulted to existing behaviour should resolve this.
@bourette I believe the expression you are looking for in this case is just ">=2.1.0", as "^2.1.0" is defined with that upper bound. We (informally) follow npm's definitions of semver and should definitely document that more clearly.