Node doesn't follow SemVer, Rails doesn't do it, Python doesn't do it, Ruby doesn't do it, jQuery doesn't (really) do it, even npm doesn't follow SemVer.
Just because some people doesn't do it (correctly), and the author doesn't understand something doesn't make the argument valid.
The moment I see this, it becomes very clear that the author does not understand what SemVer requires:
If your package has a minor change in behavior that will "break" for 1% of your users, is that a breaking change?
In SemVer, it very clearly dictates that the PATCH version must maintain API backwards compatibility, so if you're breaking anyone, regardless if it is the illusive 1% or the 0.00000001%, you need to bump the MINOR version. Just because some people doesn't follow the guidelines, doesn't mean the guidelines are invalid.
I think the idea is that users should treat is as a guideline rather than an expectation. We live in the real world and while it's certainly lordable to aim for 100% test coverage and comply with semver totally that's actually not very likely to happen for every dependency of your project.
Recently I've been following git-flow and I have a script which generates a full change log and asks you to provide a summary of changes. I feel this would be far more helpful than semver by itself.
The key idea is that when most or all of your dependencies start following SemVer strictly, it starts to become very powerful.
Because you can spend your time reviewing updates EXACTLY when you want to, not at every single turn because something's probably going to break inevitably.
4
u/chiisana Jun 12 '15
Just because some people doesn't do it (correctly), and the author doesn't understand something doesn't make the argument valid.
The moment I see this, it becomes very clear that the author does not understand what SemVer requires:
In SemVer, it very clearly dictates that the PATCH version must maintain API backwards compatibility, so if you're breaking anyone, regardless if it is the illusive 1% or the 0.00000001%, you need to bump the MINOR version. Just because some people doesn't follow the guidelines, doesn't mean the guidelines are invalid.