- Published on
What's the difference between tilde(~) and caret(^) in package.json?
~version“Approximately equivalent to version”, will update you to all future patch versions, without incrementing the minor version.~1.2.3will use releases from1.2.3to<1.3.0.^version“Compatible with version”, will update you to all future minor/patch versions, without incrementing the major version.^1.2.3will use releases from1.2.3to<2.0.0.