07-21-2023, 03:01 PM
See the [NPM docs](
* `~version` **“Approximately equivalent to version”**, will update you to all future patch versions, without incrementing the minor version. `~1.2.3` will use releases from 1.2.3 to <1.3.0.
* `^version` **“Compatible with version”**, will update you to all future minor/patch versions, without incrementing the major version. `^1.2.3` will use releases from 1.2.3 to <2.0.0.
See Comments below for exceptions, in particular [for pre-one versions, such as ^0.2.3][2]
[1]:
[To see links please register here]
) and [semver docs][1]:* `~version` **“Approximately equivalent to version”**, will update you to all future patch versions, without incrementing the minor version. `~1.2.3` will use releases from 1.2.3 to <1.3.0.
* `^version` **“Compatible with version”**, will update you to all future minor/patch versions, without incrementing the major version. `^1.2.3` will use releases from 1.2.3 to <2.0.0.
See Comments below for exceptions, in particular [for pre-one versions, such as ^0.2.3][2]
[1]:
[To see links please register here]
[2]:[To see links please register here]