npm
General
Dependency versions in package.json
See the NPM docs and semver docs:
~version“Approximately equivalent to version”, will automatically update you to all future patch versions that are backwards-compatible, without incrementing the minor version.~1.2.3will use releases from1.2.3to <1.3.0.
^version“Compatible with version”, will automatically update you to all future minor/patch versions that are backwards-compatible, without incrementing the major version.^1.2.3will use releases from1.2.3to <2.0.0.See Comments below for exceptions, in particular for pre-one versions, such as
^0.2.3> https://stackoverflow.com/a/22345808
ref: MonsJovis