You might have seen the version of a node module as 1.3.4.
1. Do you know how to read it?
2. What are the significance of each digit?
Answer: version 1.3.4 corresponds to MAJOR.MINOR.PATCH
There are some practices followed when you increment any of the value.
- MAJOR version when you make incompatible API changes,
- MINOR version when you add functionality in a backwards-compatible manner, and
- PATCH version when you make backwards-compatible bug fixes.
Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.
For detailed info: https://semver.org/
Allows patch-level changes.Ex:if there is a version 1.2.5 available,that will be used.
Allows minor-level changes. Ex:If there is a version 1.6,that will be used.
Allows changes that do not modify the left-most non-zero digit in the
[major, minor, patch] tuple. In other words, this allows patch and minor updates for versions
1.0.0and above, patch updates for versions
version range is a set of
comparators which specify versions that satisfy the range.
comparator is composed of an
operator and a
version. The set of primitive
<=Less than or equal to
>=Greater than or equal to
=Equal. If no operator is specified, then equality is assumed, so this operator is optional, but MAY be included.