Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should major SemVer updates cascade?

So "myLibrary" references "anotherLibrary". Both libraries follow http://semver.org/

If I release a new version of myLibrary that forces consumers to update to a new major version of anotherLibrary should the major version of myLibrary also increment?

like image 922
Simon Avatar asked Apr 15 '14 23:04

Simon


People also ask

When should I update my major version?

You must update to a major version when changes you're making in a potential new version can't guarantee backward compatibility for the module's users. For example, you'll make this change if you change your module's public API such that it breaks client code using previous versions of the module.

Which is a SemVer major change?

Major change: a change that requires a major SemVer bump. Minor change: a change that requires only a minor SemVer bump. Possibly-breaking change: a change that some projects may consider major and others consider minor.

What is SemVer major?

Semver is a specification outlining a method of encoding the nature of change between releases of a "public interface", directly into the version string. A public interface could be anything from an application programming interface (API), a command-line interface (CLI) or a graphical user interface (GUI).

What is major minor and patch version?

MAJOR version increment indicates incompatible API changes. MINOR version increment indicates addition of functionality in a backwards-compatible manner. PATCH version increment indicates backwards-compatible bug fixes.


1 Answers

This is specifically answered in the FAQ section of semver, where it is recommended that the major version be not bumped up. http://semver.org/#what-should-i-do-if-i-update-my-own-dependencies-without-changing-the-public-api

like image 142
Kilokahn Avatar answered Sep 20 '22 20:09

Kilokahn