Semantic Versioning Explained: Major, Minor and Patch Releases
What can a version number such as 2.4.1 tell you? When a project follows SemVer, the three numbers describe kinds of API change.
1:47 · No narration: the video shows each step as text on screen, and every step is written out below, with buttons that jump the video to it.
Prefer YouTube? Watch this video on our YouTube channel (opens in a new tab).
The six points in the video
This is a silent video. The headings, explanations and labels below reproduce the information on screen.
-
Step 1: Read major, minor and patch
A normal SemVer release has three number components.
On-screen labels: Major version; Minor version; Patch version.
-
Step 2: Major can break compatibility
It indicates a breaking change to the declared public API.
On-screen labels: Public API; Incompatible change; Upgrade planning.
-
Step 3: Minor adds compatible features
It adds functionality while preserving API compatibility.
On-screen labels: Added functionality; Compatible API; Release notes.
-
Step 4: Patch is for compatible fixes
It fixes incorrect behaviour without breaking the public API.
On-screen labels: Bug fix; Compatible API; Patch release.
-
Step 5: Early versions need extra care
Under SemVer, a zero major version is initial development.
On-screen labels: Version 0.x; Initial development; API may change.
-
Step 6: Check the project convention
Not every product follows SemVer; read its own release guidance.
On-screen labels: Version policy; Release notes; Relevant project tests.
A practical check for your business
Read the package's release notes alongside its version number. A numbering convention helps describe releases, but the actual changes and your integration determine what needs testing.
Sources and further detail
Common questions
What can a version number such as 2.4.1 tell you?
When a project follows SemVer, the three numbers describe kinds of API change. Version numbers help; release notes and testing still matter.
Go further
More video tips
All 205 videos →
Crawling vs Indexing: How a Page Can Reach Google Search Results
The stages of Google Search.
What Is a SERP? Search Engine Results Pages Explained
Search results, explained.