林小强
2016-05-13 20:52
尖括号^的讲解有问题,应该是不修改最左边的版本号。官网注解是:Allows changes that do not modify the left-most non-zero digit in the [major, minor, patch] tuple. In other words, this allows patch and minor updates for versions 1.0.0 and above, patch updates for versions 0.X >=0.1.0, and no updates for versions 0.0.X.
https://docs.npmjs.com/misc/semver#versions 官网解释
Allows changes that do not modify the left-most non-zero digit in the [major, minor, patch] tuple. In other words, this allows patch and minor updates for versions 1.0.0 and above, patch updates for versions 0.X >=0.1.0, and no updates for versions 0.0.X.
thanks! 官网解释非常清晰。^ 不能修改最左边的版本号,且只能更新中间的 minor 和 小版本 patch,且是往新版本更新。
Grunt-beginner前端自动化工具
60388 学习 · 408 问题
相似问题
回答 1
回答 2