What 0.x Versions Actually Promise Under Semver
Plenty of widely used packages have lived at version 0.something for years. Some authors stay there deliberately, as a way of saying "no stability promises yet". Others never got round to deciding. Either way, the 0.x range behaves differently from what many users expect, and I think authors should understand those differences before they lean on them.
What the specification says
The semver.org specification is blunt about it: major version zero is for initial development, anything may change at any time, and the public API should not be considered stable. Version 1.0.0 is the point at which you define the public API, and from then on the usual major, minor and patch rules apply.
So, read strictly, a 0.x package makes no compatibility promises at all. A move from 0.4.1 to 0.4.2 could, in principle, break everything.
What tools actually do
Package managers soften this in a useful way. In npm's range syntax, a caret range on a 0.x version is narrower than on a 1.x version. According to the npm Docs on semver ranges:
| Range | Allows |
|---|---|
^1.4.2 | >=1.4.2 <2.0.0 |
^0.4.2 | >=0.4.2 <0.5.0 |
^0.0.3 | >=0.0.3 <0.0.4 |
Cargo applies the same idea to its default requirements. In effect, the ecosystem treats the left-most non-zero number as the "major" one. That gives authors a de facto convention: in 0.x, bump the minor for breaking changes and the patch for everything else.
Why I think staying at 0.x forever is a mistake
The convention works, but it costs you a whole level of signalling. In 0.x you cannot distinguish "new feature, nothing broken" from "bug fix", because both land in the patch number. Users lose the information they need to decide how carefully to upgrade.
There is also a social effect. A version starting with zero tells cautious teams the package is experimental, even when it has been stable for a long time and is used in production by many people. If you are effectively keeping compatibility already, you are paying the reputational cost of 0.x without getting anything for it.
Signs you are ready for 1.0.0
- You have not made a breaking change in several releases, and you do not plan one soon.
- Other packages or production systems depend on you.
- You can describe the public API in one page: what is exported, what is internal.
- You have a changelog and a deprecation approach, so future breaking changes will be announced.
Releasing 1.0.0 is not a claim that the code is finished. It is a promise that breaking changes will be visible in the version number. That is a promise most maintainers are already keeping, so they might as well get credit for it. The glossary has short definitions of the range operators mentioned above.