Issue
I want to know the exact difference between the semver notations in package.json. Can someone explain me.
Solution
I think the npm documentation explains it well: https://docs.npmjs.com/cli/v6/using-npm/semver#advanced-range-syntax
Since there is a lot going on, perhaps a brief explanation of the two most common:
The caret modifier (^) will automatically go the highest minor and patch version, unless the major version is 0. In this case, will only update the patch version.
The tilde modifier (~) will only go to the highest patch version. So ~ and ^ are equal when the major version is 0.
Answered By - Timothy L Gillespie
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.