jspm / sver

Simple Semver and SemverRange classes
MIT License
16 stars 4 forks source link

Support compound ranges #2

Open guybedford opened 5 years ago

guybedford commented 5 years ago

Extending sver just slightly to support a || b ranges in SemverRange would significantly bring up the compatibility with Isaac's semver.

It would be as simple as a split('||') then forming unions. I still don't see a need for intersection ranges at all (&&), but if worthwhile use cases come up we could even consider that too.