尖括号^的讲解有问题,应该是不修改最左边的版本号。官网注解是: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,且是往新版本更新。