Skip to content

Instantly share code, notes, and snippets.

View zach2825's full-sized avatar

The Zach zach2825

View GitHub Profile
@zach2825
zach2825 / package paterns.md
Last active August 15, 2025 13:35
package-update patterns

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: