semver(Semantic Versioning)
Based on semver, you can use
-
Hyphen Ranges X.Y.Z - A.B.C
1.2.3-2.3.4Indicates >=1.2.3 <=2.3.4 -
X-Ranges
1.2.x 1.X 1.2.* -
Tilde Ranges
~1.2.3 ~1.2Indicates allowing patch-level changes or minor version changes. -
Caret Ranges ^1.2.3 ^0.2.5 ^0.0.4
Allows changes that do not modify the left-most non-zero digit in the [major, minor, patch] tuple
^1.2.x(means >=1.2.0 <2.0.0)^0.0.x(means >=0.0.0 <0.1.0)^0.0(means >=0.0.0 <0.1.0)
http://semver.org/

浙公网安备 33010602011771号