当前位置: 首页 > 工具软件 > Semantic Ant > 使用案例 >

Semantic Versioning

仲智
2023-12-01

软件版本如何表示的问题

引入 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
  3. npm vs yarn
 类似资料:

相关阅读

相关文章

相关问答