zoukankan      html  css  js  c++  java
  • What's the difference between tilde(~) and caret(^) in package.json?

    http://stackoverflow.com/questions/22343224/whats-the-difference-between-tilde-and-caret-in-package-json

    http://fredkschott.com/post/2014/02/npm-no-longer-defaults-to-tildes/

    In the simplest terms, the tilde matches the most recent minor version (the middle number). ~1.2.3 will match all 1.2.x versions but will miss 1.3.0.

    The caret, on the other hand, is more relaxed. It will update you to the most recent major version (the first number). ^1.2.3 will match any 1.x.x release including 1.3.0, but will hold off on 2.0.0.

  • 相关阅读:
    魔法跳舞链 51Nod
    反射
    JDBC---后端服务器与数据库交互的桥梁
    多线程
    IO流
    继承与重写
    java.util包
    多态
    Java.lang包
    异常
  • 原文地址:https://www.cnblogs.com/skating/p/6486252.html
Copyright © 2011-2022 走看看