Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我用semver spec 2.0. 当当前版本2.0.0-beta.1已经分发时,版本号应该增加多少。 现在,修复了一个错误。 如果版本2.0.1-beta.1或2.0.0-beta.2更好?
semver spec 2.0
2.0.0-beta.1
2.0.1-beta.1
2.0.0-beta.2
如果错误修复向后兼容,您应该增加 PATCH 版本(例如 2.0.0-beta.1->2.0.1-beta.1)。如果错误修复与最后一个次要/主要版本不向后兼容,那么您应该增加次要或主要版本,具体取决于不向后兼容的内容。我认为,这意味着一个全新的测试版。例如 2.0.1-beta.1->2.1.0-beta.1 或 2.0.1-beta.1->3.0.0-beta.1。
如果它是以前beta的非向后错误修复,那么您真的可以决定在 beta 中想要什么级别的支持。