欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Semantic Versioning

程序员文章站 2024-02-20 19:18:52
...

软件版本如何表示的问题

引入 Rust 依赖发现的版本如何表示

Cargo understands Semantic Versioning (sometimes called SemVer), which is a standard for writing version numbers. The number 0.3.14 is actually shorthand for ^0.3.14, which means “any version that has a public API compatible with version 0.3.14.”

具体的表示含义

Given a version number MAJOR.MINOR.PATCH,

  1. increment the:MAJOR version when you make incompatible API changes, 不兼容的API发生改变,增加 MAJOR version
  2. MINOR version when you add functionality in a backwards compatible manner, 向后兼容的方式添加新的功能
  3. PATCH version when you make backwards compatible bug fixes. 修复向后兼容的 bug
  4. Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.

package.json 中的 npm 依赖

"dependencies": {
  "ant-design-vue": "^1.3.2",
  "apexcharts": "^2.6.0",
  "axios": "^0.18.0",
  "date-fns": "^1.29.0",
  "enquire.js": "^2.1.6",
  "vue": "^2.6.8",
  "vue-apexcharts": "^1.2.7",
  "vue-router": "^3.0.1",
  "vue-video-player": "^5.0.2",
  "vuedraggable": "^2.16.0",
  "vuex": "^3.0.1",
  "webpack-dev-server": "^2.11.5"
}

references

  1. 3.1.4
  2. Semantic Versioning
相关标签: semantic version

上一篇: 数据结构之Map和Set

下一篇: