caret vs tilde in package.json

Caret (^) notation: It is used for automatically updating the minor updates along with patch updates.

Tilde (~) notation: It is used to match the most recent patch version.