Tilde(~) :
Tilde matches the most recent minor version (the middle number). ~1.1.1 will match all 1.1.x versions but will miss 1.2.0.
Caret(^) :
Caret matches the most recent major version (the first number). ^1.1.1 will match any 1.x.x release including 1.2.0, but will hold off on 2.0.0.
Note: Just use 0.0.x instead of ~0.0.0. The first is less obscure.
Sunday, September 4, 2016
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment