Why SemVer fails when you patch old versions and what to do instead.
beza1e1.tuxen.de·3d·
Discuss: Lobsters
Preview
Report Post

What to do if you need to do a breaking change to an old version? Here is an example, where we already created versions 1.0 and 2.0 and now want to change 1.0.

Figure 1: When you already published v2, how to version the patch to v1?

If we assume Semantic Versioning (SemVer), it would have to be v3.0.0 for a breaking change. However, it would be quite confusing to users if version 3.0 would not contain the change of version 2.0.

A more intuitive version would be v1.1.0, but then we cannot claim to use SemVer which specifies:

Major version X (X.y.z | X > 0) MUST be incremented if any backward incompatible changes are introduced to the public API.

So, back to v3.0.0 to stay SemVer-compl…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help