-
Notifications
You must be signed in to change notification settings - Fork 212
Description
The library used by source-controller for semver ranges includes prereleases in ranges, unconditionally. That is, the range 1.0.x
includes 1.1.0-prerelease
; and worse, there's no syntax for excluding prereleases.
This is not the behaviour expected or wanted -- you would expect 1.0.x
to mean "all patch releases of 1.0". Failing that particular pattern working, you would at least want some way of expressing the latter, but there is none.
I suggest either 1. using Masterminds/semver (with strict parsing); or, if there are just too many problems with that, forking blang and merging the PR that fixes ranges; or failing that, filtering prereleases before comparing them to the range (with, I suppose, the option to include them). The latter really should be implicit per the pattern, but it can at least be a sensibly defaulted option.