## Introduction
Semantic versioning is a way to version something (code/ api/ containers etc.) using the following construct:
1.0.0
which is:
major.minor.patch
## MAJOR version
Increases when you make **incompatible API changes**. This means that upgrading to a new MAJOR version will likely break compatibility with previous versions. For example, if you make changes that require users to update their code, or if you remove existing functionality, you'd increment the MAJOR version.
## MINOR version
Increases when you add **backward-compatible functionality**. This means new features or improvements are added, but the changes don't break existing functionality. If someone is using an earlier MINOR version, they can upgrade to a new MINOR version without their code breaking (assuming they're not using deprecated features).
## PATCH version
Increases when you make **backward-compatible bug fixes**. This means you're fixing issues that don't add new features but correct existing bugs. A PATCH update will not change the API or functionality, only improving reliability and performance.
## Extra version
Versions could also include additional extras to indicate current developing versions (non-stable):
- alpha
- beta
- rc
- nightly
- dev
They are either added using - or + like this:
1.0.0-rc.3
1.0.0-nightly.5
1.0.0-dev-3
1.0.0+39123912831923
1.0.0-rc.1+build5678
The number indicates the version/ try of the current status meaning rc.3 is the third try to fix the release candidate.
### Build metadata
1.0.0+39123912831923 Is a build metadata only giving the version a additional id it is considered the same length as just 1.0.0! The build metadata is used for tracking build informations such as a timestamp or for internal versioning.