ipm icon indicating copy to clipboard operation
ipm copied to clipboard

SemanticVersionExpression.Range should have option to not fill in upper range

Open bourette opened this issue 1 month ago • 1 comments

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 avatar Nov 03 '25 16:11 bourette

@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.

isc-dchui avatar Nov 10 '25 15:11 isc-dchui