Versioning: The practice of assigning unique version identifiers to releases (e.g. Semantic Versioning: MAJOR.MINOR.PATCH). API versioning allows clients to use a stable interface while the API evolves. Versioning gives each release a clear identifier. Semantic versioning uses three numbers, MAJOR.MINOR.PATCH: a patch fixes bugs, a minor version adds features without breaking anything, and a major version contains breaking changes.
That lets users judge an update at a glance. Moving from 2.3.1 to 2.3.2 should be safe; moving to 3.0.0 needs attention.
What should you keep in mind with Versioning?
APIs need versioning too, so existing apps keep working while the API evolves. Common approaches are a version in the URL, like /api/v1/, or in a header. Keep old versions running for a while after releasing a new one, especially when mobile apps depend on them, because older app versions stay on people's phones for months. Document what changed in every version.
Manage major dependency version upgrades with compatibility analysis, staged rollout, and comprehensive testing. Use when upgrading framework versions, updating major dependencies, or managing breaking changes in libraries.
Automate changelog generation from commits, PRs, and releases following Keep a Changelog format. Use when setting up release workflows, generating release notes, or standardizing commit conventions.
'Prompt and workflow for generating conventional commit messages using a structured XML format. Guides users to create standardized, descriptive commit messages in line with the Conventional Commits specification, including instructions, examples, and validation.'