Node.js · Junior · Question 24 of 75
What does the version range ^1.4.2 allow?
- 1Only exactly
1.4.2 - ✓Correct answer: Any
1.x.xversion from1.4.2up, but not2.0.0 - 3Any version from
1.4.2up, including2.0.0
Explanation
The caret allows minor and patch updates. ~1.4.2 allows only patch updates (1.4.x). For 0.x versions the caret is stricter: ^0.4.2 means >=0.4.2 <0.5.0.