How can I control the versions in the package.json file of npm packages?

I want to know how version control works package.jsonin the development cycle.

What is the meaning of each number in one version property package.json, for example, below?

{
    "name": "A NodeJS Project",
    "version": "0.0.0",
    ...
}
+4
source share
2 answers

This is not semver. This is a translucent version number. The package version does not have to follow semver semantics; it is simply sorted as semver.

Usually these three digits have this meaning:

  • The first number with the name majorincreases when large changes occur, which are likely to require significant changes in your application when updating.

  • , minor, , , . , .

  • , micro, , npm. , , .

, , . , esprima-fb : 1001.1001.2000-dev-harmony-fb. , , , semver.


edit. twitter, - .

  • revisions = b/c breaks
  • minors = b/c breaks
  • majors = b/c

... b/c

+4

package.json, npm, . major.minor.patch. http://semver.org/ , . man- npm, : https://npmjs.org/doc/cli/npm-version.html.

+7

Source: https://habr.com/ru/post/1523411/


All Articles