What does this character mean in package.json dependencies?

Asked

Viewed 337 times

1

What does this character mean in the version of the package json dependencies ? What is the utility ? What will change in my project with this ?

   { "name": "", "description": "", "version": "1.2.3", "devDependencies": { "coffee-script": "^1.6.3" }, "scripts": { "prepare": "" }, "main": "" }
  • Any version starting at 1.6.3 but not breaking compatibility (usually, accept switch to minor, but not of major; I don’t know the specific case of node meanwhile)

1 answer

2


The circumflex accent indicates version interval that does not break compatibility. Allows changes that do not modify the first digit non-zero in the version Below follow examples of version range and beside its expanded meaning.

  • ^3.1.4 == >=3.1.4 e <4.0.0
  • ^0.4.2 == >=0.4.2 e <0.5.0
  • ^0.0.2 == >=0.0.2 e <0.0.3

Browser other questions tagged

You are not signed in. Login or sign up in order to post.