When npm install/ci honors package-lock.json, is there any purpose of using tilde(~) and caret(^) in package.json?

Viewed 154

In case an application has a package-lock.json or shripkwrap.json, both npm install/npm ci command would honor the dependencies versions (in package-lock.json or shripkwrap.json), what purpose would tilde(~) and caret(^) serve in package.json?

0 Answers
Related