Semver

major.minor.patch

Tilde -> Update Patch level

A tilde ~ indicates npm/yarn can update the patch level.

Caret -> Update Minor level

A caret ^ indicates npm/yarn can update the minor and patch level.

source