码迷,mamicode.com
首页 > 其他好文 > 详细

semver(Semantic Versioning)

时间:2016-06-03 10:00:24      阅读:160      评论:0      收藏:0      [点我收藏+]

标签:

Based on semver, you can use

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

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

  • Tilde Ranges  ~1.2.3 ~1.2 Indicates 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)

semver(Semantic Versioning)

标签:

原文地址:http://www.cnblogs.com/linjj/p/5555132.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!