blang/semver

Support `^x.x.x`?

Opened this issue · 2 comments

A common (and extremely useful) semver constraint is the ^x.x.x form. While this can also be expressed using a range (eg ^1.2.3 can be expressed as >= 1.2.3 <2.0.0). Similarly (but less useful), ~1.2 can be expressed as >= 1.2.0 <1.3.0.

See https://semver.npmjs.com/.

Are there any plans to add this? If not, do you have any pointers on how to best to approach this?

Agreed, this would be amazing to have

blang commented

It is planned to support this feature in the near future, thanks for your patience