![]() x version where x is the highest available patch version in that combination. 2 “, it can go ahead and upgrade to 17.0. In other words, if say the version was mentioned as “~17.0. Well, now that we understand the version’s numbering, let’s take a look at what does tilde (~) and caret (^) symbols signify.Ī tilde (~) as a prefix to the version number in package JSON means that whenever an update is run or whenever the packages are installed, it would look for the latest patch version available in the npm registry and install it. You can read more about the semantic version numbering at and at NPM Docs. 1.0Ī Major version upgrade would mean that a major refactoring of the code has been done and there might be breaking changes that have been introduced. The upgraded version will still be backward compatible and will not break your functionality. 3.Ī Minor version upgrade usually refers to the introduction of new features and /or upgrades and are not just patch fixes or security fixes. Usually upgrading from one patch to another is not harmful. NPM Package version numbers are in the format of Ī Patch version usually refers to very minor updates like a security patch, bug fix, etc. They are in the format of e.g 17.0.2, which means that the Major version is 17, Minor version is 0, and the Patch version is 2. ![]() We can also notice that the version numbers usually have 3 integers(can be alphanumeric too) which are separated by a dot in between two integers. In the example above, we can notice that the “next” package has a caret (^) prefixing its version number, while on the other hand, the other two packages have a tilde(~) prefixing its version number. Enter fullscreen mode Exit fullscreen mode ![]()
0 Comments
Leave a Reply. |