Skip to content

Instantly share code, notes, and snippets.

@xx4159
Created March 27, 2017 05:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xx4159/cd53fa7c26b43ad662585927ae1e96ef to your computer and use it in GitHub Desktop.
Save xx4159/cd53fa7c26b43ad662585927ae1e96ef to your computer and use it in GitHub Desktop.

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