version - 在 "SemVer.org"中,第 7 项中的 "It MAY include patch level changes"是什么意思?

标签 version versioning semantic-versioning

http://semver.org/spec/v2.0.0.html我们有一个关于如何以创建标准的方式管理软件版本控制并避免一些依赖关系管理问题的“正式描述”。在 item-spec-7我们有如下:

Minor version Y (x.Y.z | x > 0) MUST be incremented if new, backwards compatible functionality is introduced to the public API. It MUST be incremented if any public API functionality is marked as deprecated. It MAY be incremented if substantial new functionality or improvements are introduced within the private code. It MAY include patch level changes. Patch version MUST be reset to 0 when minor version is incremented.

  • 1)粗体句子的确切含义是什么?
    • 1.1) 是否意味着我可以为我想要的补丁选择任何值?但我不能只改变当前值的补丁级别?

项目 1.1 对我来说很有意义,但句子顺序让我感到困惑。毕竟,Minor 值刚刚增加,并且补丁被重置为 0(零)。

我猜对了吗?

提前致谢!

最佳答案

据我所知 sermver.org (2.0.0) 的iten-spec 7 ,描述了如何增加次要版本值:

  1. Minor version Y (x.Y.z | x > 0) MUST be incremented if new, backwards compatible functionality is introduced to the public API. It MUST be incremented if any public API functionality is marked as deprecated. It MAY be incremented if substantial new functionality or improvements are introduced within the private code. It MAY include patch level changes. Patch version MUST be reset to 0 when minor version is incremented.

可能会在这个新版本的代码中包含补丁级别的更改,并进行轻微增量。但仅补丁级别的更改无法让我们实现较小的增量。另一方面,它以 item-spec 6 表示:

  1. Patch version Z (x.y.Z | x > 0) MUST be incremented if only backwards compatible bug fixes are introduced. A bug fix is defined as an internal change that fixes incorrect behavior.

关于version - 在 "SemVer.org"中,第 7 项中的 "It MAY include patch level changes"是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44913559/

相关文章:

Java - 编写旧版本忽略的代码

node.js - 升级前如何查看 npm 包的发行说明?

node.js - NPM 无法识别以 '*-rc' 结尾的 semvers(即候选版本);导致依赖关系无法解析。通常的解决方法是什么?

node.js - 如何创建一个 self 更新的 Node.js 应用程序?

node.js - 确定 npm 将为给定版本范围选择哪个版本的包

gcc - 强制使用 cmake 提供的最新 gcc

r - 无法在 R 中打开 NetCDF 版本 4 文件

c++ - 将 GetVersionEx 数字转换为操作系统名称

java - java中的多个json绑定(bind)

ios - Xamarin iOS 应用的版本控制