Issue
I want to know the exact difference between the semver notations in package.json. Can someone explain me.
Solution
Semver notation isn’t specifically used
in package.json
.
If it’s followed (*1), it helps developers to understand what to expect from any particular update. Imagine you want to bump the version of a library, and you see that the difference is in the major
part of the version (n in n.*.*
). This can point out to potential repercussions of upgrading the package – according to SEMVER MAJOR version when you make incompatible API changes,
.
*1 It’s not always followed by developers. One prominent example is React Native. The developers have never released a Major version, and treat MINOR
as MAJOR
Answered By – Vladyslav Zavalykhatko
Answer Checked By – Marilyn (BugsFixing Volunteer)