I just want to upgrade some library in my project. I found that some dependencies have ^ in their version code like "react-native-i18n": "^1.0.0"
but some don't have. I don't know what ^ means.
Asked
Active
Viewed 2,026 times
2

jonrsharpe
- 115,751
- 26
- 228
- 437

Yunyuen Chan
- 135
- 1
- 11
-
1maybe your question can expalined on this link https://stackoverflow.com/questions/22343224/whats-the-difference-between-tilde-and-caret-in-package-json – Maulana Prambadi Aug 16 '17 at 07:01
-
2Possible duplicate of [What's the difference between tilde(~) and caret(^) in package.json?](https://stackoverflow.com/questions/22343224/whats-the-difference-between-tilde-and-caret-in-package-json) – jonrsharpe Aug 16 '17 at 07:07
1 Answers
3
In short its using for Compatible with version
you can check complete details on Semver
Please check complete explanation here
you can also check Package.json related documentation here

Love Trivedi
- 3,899
- 3
- 20
- 26