{"id":22903442,"url":"https://github.com/sawyerbutton/semantic-versioning-doc","last_synced_at":"2026-01-12T06:25:48.322Z","repository":{"id":120750744,"uuid":"176181168","full_name":"sawyerbutton/Semantic-Versioning-doc","owner":"sawyerbutton","description":"Semantic Versioning description in CN","archived":false,"fork":false,"pushed_at":"2019-03-18T01:41:45.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T07:25:48.213Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sawyerbutton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-18T01:09:50.000Z","updated_at":"2019-03-18T01:41:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"0e1d08b1-ad2c-40f5-b18d-961696b6672f","html_url":"https://github.com/sawyerbutton/Semantic-Versioning-doc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sawyerbutton/Semantic-Versioning-doc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sawyerbutton%2FSemantic-Versioning-doc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sawyerbutton%2FSemantic-Versioning-doc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sawyerbutton%2FSemantic-Versioning-doc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sawyerbutton%2FSemantic-Versioning-doc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sawyerbutton","download_url":"https://codeload.github.com/sawyerbutton/Semantic-Versioning-doc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sawyerbutton%2FSemantic-Versioning-doc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28336316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-14T02:36:44.526Z","updated_at":"2026-01-12T06:25:48.294Z","avatar_url":"https://github.com/sawyerbutton.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Semantic Versioning Doc 语义化版本概念说明\n\n语义化版本概念用于为版本号提供合理意义的规约\n\n## 语义化版本的概念\n\n如果在海量的让人痛苦的（懂得都懂） Node.js 包中存在一个特别棒实践，那就是语义化版本概念的真实落地 - 使用语义化版本规约进行版本号的控制\n\n语义化版本概念其实很简单，每个版本号都由三个数字组成： X,Y,Z\n\n- X 代表主版本的编号\n- Y 代表小版本的编号\n- Z 代表补丁的编号\n\n当你进行一次发布的时候，你不应该随意地进行版本编号，而是遵从语义化版本的规约：\n\n- 当你提供不兼容的 API 变化时，提升主版本编号\n- 当你提供向后兼容的 API 变化时，提升小版本编号\n- 当你提供向后兼容的 BUG 修复补丁时，提升补丁编号\n\n该约定适用于所有编程语言，同样也适用于几乎所有的项目开发发布流程\n\n## 语义化版本在项目中的应用\n\n在我们的项目开发流程中，我们可能并不以 向后兼容/不兼容的 API 为基准发布版本，而是以跟随着项目的需求周期进行版本的发布\n\n我们需要适合我们自己的 语义化版本实践：\n\n- X 代表一个新的需求周期的内容发布，当你需要发布一个较大的整体需求实现时，**提升主版本编号**\n- Y 代表在某一需求周期内的新增小需求发布，当你需要在某一个整体需求周期内新增额外的小需求时，**提升小版本编号**\n- Z 代表在某一需求周期内的 BUG 修复版本发布，当你需要对某一个整体需求周期内的某个小版本进行 BUG 修复并发布修复后版本时，**提升补丁编号**\n\n## 总结\n\n合理地使用语义化版本概念可以帮助我们更准确地进行项目的维护和控制，通过清晰的语义化版本号，版本回溯，BUG版本定位等问题都可以得到相应的解决\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsawyerbutton%2Fsemantic-versioning-doc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsawyerbutton%2Fsemantic-versioning-doc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsawyerbutton%2Fsemantic-versioning-doc/lists"}