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
I did a little looking. According to the internal code comments...
// ~0.0.0 is a special case where all constraints are accepted. It's
// equivalent to >= 0.0.0.
This is intentional behavior that came from v1. While I would like to change this it would mean a v4 of this package because it's following the intent.
I'm changing this to an enhancement so that when v4 is released we can incorporate it.
It seems that there is an issue with tilde constraints. Version "0.1.0" matches "~0.0.0" although it should not.
Adding the following test cases causes a failure:
https://github.com/cagataygurturk/semver/commit/32e10671da3fbb7110f79679587e6799945c27ef#diff-38863e0a01899c69c60ca35df3a357eb9839bc41ea818352ee5240c728234920
Thanks.
The text was updated successfully, but these errors were encountered: