Asked by Omar Cheema · · 2 answers
^
include everything greater than a particular version in the same major range.
~
include everything greater than a particular version in the same minor range.
Allow or disallow changes
- Pin version:
1.2.3
. - Use
^
(like head). Allows updates at the second non-zero level from the left:^0.2.3
means0.2.3 <= v < 0.3
. - Use
~
(like tail). Generally freeze right-most level or set zero if omitted: -
~1
means1.0.0 <= v < 2.0.0
-
~1.2
means1.2.0 <= v < 1.3.0
. -
~1.2.4
means1.2.4 <= v < 1.3.0
.
1
0