You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
semver.validRange('24') returns '>=24.0.0 <25.0.0-0', which is seemingly Okay (24 is user input),
semver.maxSatisfying(['24.0'], '>=24.0.0 <25.0.0-0') returns null, which seems to indicate the lib. is contradicting itself (24.0 is from a list of available versions).
Where
v7.3.5
How
Current Behavior
check "What / Why?"
Expected Behavior
semver.maxSatisfying(['24.0'], '>=24.0.0 <25.0.0-0') should return 24.0.
The text was updated successfully, but these errors were encountered:
paulo-ferraz-oliveira
changed the title
[BUG] <title>
[BUG] unexpected semver.maxSatisfying(versions, semver.validRange(version)) behaviour
May 13, 2021
What / Why
semver.validRange('24')
returns'>=24.0.0 <25.0.0-0'
, which is seemingly Okay (24
is user input),semver.maxSatisfying(['24.0'], '>=24.0.0 <25.0.0-0')
returnsnull
, which seems to indicate the lib. is contradicting itself (24.0
is from a list of available versions).Where
How
Current Behavior
Expected Behavior
semver.maxSatisfying(['24.0'], '>=24.0.0 <25.0.0-0')
should return24.0
.References
The text was updated successfully, but these errors were encountered: