renovate/lib/versioning/composer
RahulGautamSingh 91f067b39f
fix: refactor regex to use re2 part3 (#12283)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-10-27 14:37:11 +00:00
..
index.spec.ts test: Use tables for Composer versioning tests (#11359) 2021-08-21 08:27:04 +02:00
index.ts fix: refactor regex to use re2 part3 (#12283) 2021-10-27 14:37:11 +00:00
readme.md docs: improve versioning docs 2020-02-17 23:02:00 +01:00

Composer uses Semver-like versioning, however some package authors may use versions that are not completely valid, e.g. 1.2 instead of 1.2.0.

Composer supports ranges in a similar manner to npm, but not identical. The main difference is with tilde ranges.

Tilde ranges with "short" versions are different to npm. e.g.

~4 is equivalent to ^4 in npm ~4.1 is equivalent to ^4.1 in npm ~0.4 is equivalent to >=0.4 <1 in npm