somascope
1/4/2019 - 10:12 PM

semver

When to use the tilde (~) and caret (^) for version numbers in package.josn files.

^ for minor & patch updates
New backwards compatible features & patches
Abides to major version only
Ex: ^1.0.0 = you can get 1.1.0

~ for patch updates (bug fixes) only
when you only want patch updates
Abides to major & minor versions
Ex: ~1.0.0 = you can get 1.0.1

If nothing, exact version only is used, never updated