Sobes.tech
Junior

Can you explain what semantic versioning is?

sobes.tech AI

Answer from AI

Semantic Versioning (SemVer) is a convention for numbering software versions. The version format is: MAJOR.MINOR.PATCH.

  • MAJOR: Incremented when incompatible API changes are made.
  • MINOR: Incremented when functionality is added in a backwards-compatible manner. Always resets PATCH to 0.
  • PATCH: Incremented when backwards-compatible bug fixes are made.

Pre-release and build metadata can be added to version numbers, separated by a hyphen and plus sign respectively.

Example: 1.2.3-alpha.1+build.20231027.

The goal of SemVer is to help developers predict how changes in a new version will affect their code that uses this package.