package.json講解疑問
尖括號^的講解有問題,應該是不修改最左邊的版本號。官網(wǎng)注解是: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.
2017-04-25
https://docs.npmjs.com/misc/semver#versions????官網(wǎng)解釋
2016-05-24
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! 官網(wǎng)解釋非常清晰。^ 不能修改最左邊的版本號,且只能更新中間的 minor 和 小版本 patch,且是往新版本更新。