by maltalex · 7y ago · 0 comments
That's why I like to use SemVer with a small twist - a fourth number prepended to the regular three: A.B.C.D.
`B`, `C`, and `D` are the regular SemVer Major, Minor, and Patch. But `A` is "Generation" - something you increment only for fundamental changes to the codebase .i.e. 2.0.0.0 is a different generation of the product than 1.7.45.4, while 1.8.0.0 is the same generation, only with some incompatible APIs.
The problem with that approach is that you never know if a change is major or minor, since many projects use the 0.A.B differently. Even if projects were standardized, you're missing some information compated to A.B.C or A.B.C.D.
Oh, also
> they go to 1.0.0 and promise that they'll never make a breaking change.
That's not what 1.0 means; 2.0 can be produced with breaking changes.
Adding another number for this purpose still does not tell you whether your particular use case of a library received breaking changes or not.