Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

Semver

  • Semantic Versioning
  • [Major].[Minor].[Patch]
    • major: incompatible change
    • minor: add functionality, backwards-compatible
    • patch: bug fixes. backwards-compatible

tilde

  • ~
  • flexible patch
  • example
    • ~1.2.3 : 1.2.3-0 <= x < 1.3.0-0
    • ~0.4.0 : 0.4.0-0 <= x < 0.5.0-0

caret

  • ^
  • flexible minor and patch
  • example
    • ^1.2.3 : 1.2.3-0 <= x < 2.0.0-0
    • ^1.0.1 : 0.1.0-0 <= x < 2.0.0-0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.