semver(Semantic Versioning)

Based on semver, you can usenode

  • Hyphen Ranges X.Y.Z - A.B.C 1.2.3-2.3.4 Indicates >=1.2.3 <=2.3.4git

  • X-Ranges 1.2.x 1.X 1.2.* github

  • Tilde Ranges ~1.2.3 ~1.2 Indicates allowing patch-level changes or minor version changes.npm

  • Caret Ranges ^1.2.3 ^0.2.5 ^0.0.4code

    Allows changes that do not modify the left-most non-zero digit in the [major, minor, patch] tupleget

    • ^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/it

相關文章
相關標籤/搜索