In package.json, those symbols (~, ^, *) are version range specifiers for npm/yarn/pnpm, and they control how dependency updates are allowed when you run install or update.
Here’s the breakdown:
^ (caret) – Allow non-breaking updates
- Means “install the latest minor/patch version, but don’t bump the major version.”
- Example: