Semantic Versioning, or SemVer, is a versioning scheme for software that conveys meaning about the underlying changes. A SemVer version string looks like:

MAJOR.MINOR.PATCH

Pre-Release and Build Metadata

SemVer also supports optional extensions:

Why Use SemVer?

Example

1.0.0 → 1.0.1: Patch fix (e.g., typo correction).

1.0.1 → 1.1.0: New backwards-compatible feature (e.g., new API endpoint).

1.1.0 → 2.0.0: Breaking change (e.g., removal of deprecated function).

By following SemVer’s rules, projects maintainers and consumers benefit from a clear, consistent versioning policy.

语义化版本(Semantic Versioning,简称 SemVer)是一种版本号管理规范,用来清晰地表达改动类型和兼容性。标准的版本号格式为: