Web apps & software

What is semantic versioning?

Semantic versioning, or SemVer, is a numbering scheme in the form MAJOR.MINOR.PATCH, where a bump in the first number signals breaking changes, the second signals new features, and the third signals bug fixes only.

Reading a version

Going from 2.4.1 to 2.4.2 should be a safe fix. 2.4.1 to 2.5.0 adds capability but should not break existing use. 2.4.1 to 3.0.0 may require changes on your side. Resetting the lower numbers after a higher bump is part of the rule.

Where it matters

Package managers use ranges such as ^2.4.1, which allows minor and patch updates but not a new major version. An API that follows SemVer lets customers upgrade confidently. Versions below 1.0.0 are treated as unstable, and anything may change.

Limits

SemVer is a promise by the maintainer, not a guarantee, and a "patch" occasionally breaks something. Consumer apps often use other schemes, such as dates (2026.11) or simple build numbers, because users do not care about API compatibility.

Good practice

Record changes in a changelog and tag each release in version control.

Questions, answered

It can be, but stores also require a separate, always-increasing build number.

Removing or renaming a field, changing a response format, or changing behavior callers rely on.

By the Stegnor team · Updated