Sunday, September 4, 2016

 11:45 PM      , , ,    No comments
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.

0 comments:

Post a Comment

Popular Posts

Recent Posts

Unordered List

Text Widget

Powered by Blogger.

Popular Posts