Version Lifecycle, Drawn Out
A version number is not just a label; it moves through stages. It starts as a release candidate, becomes the version most people install, slides into maintenance, and eventually stops receiving fixes. The three diagrams below describe that journey. Each comes with a caption and a numbered walkthrough so you can redraw it, or adapt it for your own project's support policy.
Diagram 1: the life of a single major version
Caption: a horizontal timeline divided into five coloured bands, left to right: pre-release, active, maintenance, deprecated, end of life. Small ticks along the top mark individual releases.
- Pre-release. Versions such as
3.0.0-alpha.1,3.0.0-beta.2and3.0.0-rc.1. Under the semver.org specification, a pre-release has lower precedence than the release it precedes, and package managers generally do not select pre-releases for an ordinary range unless asked. - Active.
3.0.0ships. New features arrive as minor versions (3.1.0,3.2.0), fixes as patches. - Maintenance. Once
4.0.0is out, the 3.x line receives only fixes, often only security fixes. - Deprecated. Users are warned to move on, for example through
npm deprecateon the 3.x range or a notice in release notes. - End of life. No further releases. Existing versions remain installable; nothing new is published.
Diagram 2: overlapping support windows
Caption: three stacked horizontal bars labelled 2.x, 3.x and 4.x, each offset to the right of the one above. Where bars overlap, the overlapping region is shaded to show that two lines are supported at once.
- Each bar starts at that major's first stable release.
- A bar's solid portion is "active"; the hatched tail is "maintenance".
- The overlap between one bar's tail and the next bar's start is the migration window you are giving users.
- A vertical dashed line marks today, making it obvious which lines a user should be on.
This picture is worth publishing in your README or documentation, because it answers "is my version still supported?" at a glance. Runtime projects such as Node.js and Python publish similar charts for their own releases, which is a good model to follow.
Diagram 3: where a fix lands
Caption: a branching tree. The trunk is main, heading toward the next major. Two branches split downward, labelled 3.x and 2.x. A star on main marks a security fix; arrows carry copies of the star down to both branches, each producing a new patch tag.
- The fix is written and reviewed on
mainfirst. - It is cherry-picked to every branch still inside its support window.
- Each branch gets its own patch release, for example
3.4.7and2.9.12. - Branches past end of life receive no arrow; the diagram makes that boundary visible.
Turning the diagrams into a policy
| Question the diagram raises | What your policy should say |
|---|---|
| How long is the maintenance tail? | A duration or a rule, such as "until the next major has been out for a stated period". |
| What counts as a fix worth backporting? | Security issues always; other bugs at maintainer discretion, for example. |
| How are users told about end of life? | Release notes, a deprecation message, and the support chart. |
All durations here are for you to choose; we deliberately give no recommended number, because the right window depends on how hard your upgrades are. See the deprecation policy options paper for trade-offs.