[Tutorial] What is “semver”?

“Semver” stands for “semantic versioning”. It’s the rules you apply to version codes that go along with software. Say you’re using a program that’s version 3.2.1.

Bug Fix:

The 1 in 3.2.1 is in the bug fix position. If you’re a developer working on 3.2.0 and you fix a bug, that update is then 3.2.1. If you built something using this program originally in 3.0.0, and you upgrade to 3.2.1, your project should still work fine.

Minor Release:

The 2 position in 3.2.1 is the minor release position. If you changed something in your program that’s not visible, or made some other changes that doesn’t break the program, then it’s a minor release. Again, if you built something using this program originally in 3.0.0, and you upgrade to 3.2.1, your project should work fine.

Major Release:

The 3 position in 3.2.1 is the major release position. If you changed something so drastically that any version of the program prior to that is no longer compatible you have just moved up in the Major release. So if you release 3.2.1 and no other version of the program starting with major release 3 works with it, then you’ve actually released version 4.0.0. If your version is no longer compatible with the current version of your program you have gone up a major release, and so increment the 3 position.

Just something interesting I learned today that I didn’t know about.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s