mirror of
https://github.com/semver/semver.git
synced 2026-07-11 03:53:53 -05:00
[PR #393] Change MUST reset to SHOULD reset #5913
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/semver/semver/pull/393
Author: @sgryphon
Created: 9/7/2017
Status: 🔄 Open
Base:
master← Head:feature/should-reset-instead-of-must📝 Commits (1)
74df6f3Change MUST reset to SHOULD reset📊 Changes
1 file changed (+8 additions, -8 deletions)
View changed files
📝
semver.md(+8 -8)📄 Description
As this is relaxing a constraint, it would be a minor update (2.1) to the specification - all existing implementations would remain compliant.
The relaxation of the increment by 1 requirements from SemVer 1.0 allowed, where it was necessary, to skip an increment, e.g. from release 2.4.10, change to 2.6.0 (or 4.0.0).
But, as the specification currently stands it would not be possible change from 2.4.10 to 2.5.1 - it MUST be 2.5.0 (or 2.6.0, etc).
Changing from MUST to SHOULD still encourages the reset, but allows for situations where it is not followed.
Example, moving from version 2.4.10, there could be an extensive period of 3.0.0-beta.1, 3.0.0-beta.2, etc, that never actually gets released, but is widely known; if the decision is made to skip a version, then this change would allow 3.1.0 to be developed (releasing 3.1.0-beta.1, etc) and eventually released (as 3.1.0). Without this change, the only option would be to bump to 4.0.0.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.