Open ajhsu opened 7 years ago
http://fredkschott.com/post/2014/02/npm-no-longer-defaults-to-tildes/
(Still figuring out)
~1.2.3
1.2.x
1.3.0
^1.2.3
1.x.x
2.0.0
^0.1.x
0.1.x
0.x.x
~
Read more on npm documentation - semver
Given a version number MAJOR.MINOR.PATCH, increment the:
https://semver.npmjs.com/
You can try to give a version number like ^1.0.0 and the calculator will tells you the range of included version numbers.
^1.0.0
Reading material
http://fredkschott.com/post/2014/02/npm-no-longer-defaults-to-tildes/
TL; DR
Main reason
(Still figuring out)
Differences between tildes(~) and carats(^)
~1.2.3
:1.2.x
but not1.3.0
.^1.2.3
:1.x.x
but not2.0.0
.^0.1.x
only matches0.1.x
but not0.x.x
, which acts like tildes~
Read more on npm documentation - semver
Spec of semver
Given a version number MAJOR.MINOR.PATCH, increment the:
Learning with npm semver calculartor
https://semver.npmjs.com/
You can try to give a version number like
^1.0.0
and the calculator will tells you the range of included version numbers.