Engineering 4 min read Updated
Versions and changelogs that readers can follow
In short
Raise MAJOR for incompatible public changes, MINOR for compatible new features and PATCH for compatible fixes, and record each release in a changelog people can read.
A version number is a promise to the people who depend on your code, and each release either keeps that promise or breaks it. Semantic Versioning, usually called SemVer, gives the promise a shared meaning. To see how these numbers matter when you update packages, read the article on keeping dependencies up to date.
The reference texts are the Semantic Versioning 2.0.0 specification and the Keep a Changelog 1.1.0 guidance.
Each of the three numbers promises something else
The SemVer specification uses three numbers, MAJOR.MINOR.PATCH. Each one has a rule for when it must go up:
- PATCH goes up when you make backward-compatible bug fixes. The rule applies to versions whose first number is above zero.
- MINOR goes up when you add new functionality to the public API in a backward-compatible way.
- MAJOR goes up when you make backward-incompatible changes to the public API.
The key phrase is public API. The rules assume that you know what your public API is, meaning the functions, classes or formats that outside users can reach. SemVer cannot make that decision for you, so settle it before you apply the rules. A PHP version change can also carry compatibility decisions of its own, which is covered in the article on planning a PHP version upgrade.
The rules above come from the SemVer specification. Deciding what counts as your public API is a responsibility of your project, and the specification does not decide it.
Version 0.y.z and pre-releases
A major version of zero is reserved for initial development. The specification says that anything may change at any time. That is useful for a project that is still finding its shape, but users should not expect stability from it. A pre-release version marks the version as unstable, and it has a lower precedence than the normal version it belongs to.
Working on something similar in your own product? A few honest sentences are enough – we read every enquiry and reply by email. Apply with your idea
A changelog should say what changed
Keep a Changelog asks for entries that people can read. Its guiding principles are to write for people rather than machines, to include an entry for every version, to group changes of the same type, to make versions and sections linkable, to list the newest version first, to show each version’s release date, and to state whether the project follows Semantic Versioning. It also recommends keeping an Unreleased section at the top to track upcoming changes.
| Heading | Use it for |
|---|---|
| Added | New features. |
| Changed | Changes to existing functionality. |
| Deprecated | Features that will be removed soon. |
| Removed | Features that are no longer available. |
| Fixed | Bug fixes. |
| Security | Vulnerabilities. |
For dates, Keep a Changelog recommends the ISO 8601 format YYYY-MM-DD, because it runs from the largest unit to the smallest and cannot be misread.
Checklist for a release
Use this list before you mark a version:
- Decide which changes touch the public API, and check each one against the three rules above.
- Choose the number. A fix raises PATCH, compatible new functionality raises MINOR, and any incompatible change raises MAJOR. A project at 0.y.z may change at any time, so say so in the changelog.
- Move the entries from the Unreleased section under the new version, and group them under the six headings.
- Add the release date in YYYY-MM-DD format, and place the new version at the top of the file.
- For every breaking change, write what users must change to adapt.
- Link the release to the deployment, so that a rollback has a clear target, as described in the article on releases and rollbacks.
Common questions
- What does a MAJOR version change promise?
- It signals that the public API has changed in a backward-incompatible way, so users may need to adapt their code. SemVer defines this, but deciding what counts as public is up to your project.
- Can a 0.y.z version break compatibility?
- Yes. The SemVer specification says that anything may change at any time in initial development, so users should not expect stability from such a version.
- Where should the release date go in a changelog?
- Show it next to each version, using the ISO 8601 format YYYY-MM-DD, which Keep a Changelog recommends because it is unambiguous.
Sources
- Semantic Versioning 2.0.0, semver.org. Accessed 24 November 2026
- Keep a Changelog 1.1.0, keepachangelog.com. Accessed 24 November 2026
Further reading
-
Keeping dependencies up to date, one step at a time
Commit the lock file, audit what you actually install and update one package at a time with tests, so that fixes arrive without breaking the release.
-
Releases and rollbacks you can reverse
Small, frequent releases are easier to test and easier to reverse than large ones, so plan the way back before you ship.
-
Planning a PHP version upgrade
Plan an upgrade around the support dates and the changes that affect your code, and keep a way back to the previous version.
Have an idea that should exist? Or a working product that needs more customers, a new website or a complete rework? Bring us anything. Apply with your idea