Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I increase versions after a release or with every commit

We want to implement semantic versioning in our process, we are in version 1.0.0, and we have added two new functions. We will deliver these functions soon.

The question is: should we name our next version 1.1 or should we name it 1.2 because we have created two new functions.

In general, if we add n new functions, should we increment by n the minor component of the version, or we only increment by one in each delivery?

like image 376
user1075679 Avatar asked Feb 23 '15 17:02

user1075679


People also ask

Should you change version on every product release?

The way most people i know do it is by increasing it on every version they plan on making available. Microsoft themselves for example use the "major, minor, build, and revision" semantic for their version numbers. Just don't change up the way you do your version numbers after deciding on one.

When should you increment version number?

There are simple rules that indicate when you must increment each of these versions: MAJOR is incremented when you make breaking API changes. MINOR is incremented when you add new functionality without breaking the existing API or functionality. PATCH is incremented when you make backwards-compatible bug fixes.

What should be the first release version?

If the first release is a stable one - it should be 1.0. 0. ###. In the more likely case the first release is not a stable one - it should be 0.1.


2 Answers

Version does not depend on how many functions you have written in that particular release. If your current version is 1.0.0 ,then it should be 1.0.1 or 1.1 depend upon your naming rule that you have put for your product and dependencies.

like image 193
Pragyan Das Avatar answered Nov 15 '22 10:11

Pragyan Das


There is no absolut right solution to version numbers.

The way most people i know do it is by increasing it on every version they plan on making available.

Microsoft themselves for example use the "major, minor, build, and revision" semantic for their version numbers. Just don't change up the way you do your version numbers after deciding on one. Because then they become useless :-)

like image 42
haggy Avatar answered Nov 15 '22 10:11

haggy