首页 > composer.json 中 "hisune/echarts-php": "^1.0" 里面的^ 含义

composer.json 中 "hisune/echarts-php": "^1.0" 里面的^ 含义

composer.json 中 "hisune/echarts-php": "^1.0" 含义,以及里面的^ 含义


Caret

The ^ operator behaves very similarly but it sticks closer to semantic versioning, and will always allow non-breaking updates. For example ^1.2.3 is equivalent to >=1.2.3 <2.0.0 as none of the releases until 2.0 should break backwards compatibility. For pre-1.0 versions it also acts with safety in mind and treats ^0.3 as >=0.3.0 <0.4.0.

This is the recommended operator for maximum interoperability when writing library code.

Example: ^1.2.3

【热门文章】
【热门文章】