| 1 |
# Change Log |
| 2 |
|
| 3 |
All notable changes to this project will be documented in this file. |
| 4 |
This project adheres to [Semantic Versioning](http://semver.org/). |
| 5 |
|
| 6 |
### [3.4.3] 2024-09-19 |
| 7 |
|
| 8 |
* Fixed some type annotations |
| 9 |
|
| 10 |
### [3.4.2] 2024-07-12 |
| 11 |
|
| 12 |
* Fixed PHP 5.3 syntax error |
| 13 |
|
| 14 |
### [3.4.1] 2024-07-12 |
| 15 |
|
| 16 |
* Fixed normalizeStability's return type to enforce valid stabilities |
| 17 |
|
| 18 |
### [3.4.0] 2023-08-31 |
| 19 |
|
| 20 |
* Support larger major version numbers (#149) |
| 21 |
|
| 22 |
### [3.3.2] 2022-04-01 |
| 23 |
|
| 24 |
* Fixed handling of non-string values (#134) |
| 25 |
|
| 26 |
### [3.3.1] 2022-03-16 |
| 27 |
|
| 28 |
* Fixed possible cache key clash in the CompilingMatcher memoization (#132) |
| 29 |
|
| 30 |
### [3.3.0] 2022-03-15 |
| 31 |
|
| 32 |
* Improved performance of CompilingMatcher by memoizing more (#131) |
| 33 |
* Added CompilingMatcher::clear to clear all memoization caches |
| 34 |
|
| 35 |
### [3.2.9] 2022-02-04 |
| 36 |
|
| 37 |
* Revert #129 (Fixed MultiConstraint with MatchAllConstraint) which caused regressions |
| 38 |
|
| 39 |
### [3.2.8] 2022-02-04 |
| 40 |
|
| 41 |
* Updates to latest phpstan / CI by @Seldaek in https://github.com/composer/semver/pull/130 |
| 42 |
* Fixed MultiConstraint with MatchAllConstraint by @Toflar in https://github.com/composer/semver/pull/129 |
| 43 |
|
| 44 |
### [3.2.7] 2022-01-04 |
| 45 |
|
| 46 |
* Fixed: typo in type definition of Intervals class causing issues with Psalm scanning vendors |
| 47 |
|
| 48 |
### [3.2.6] 2021-10-25 |
| 49 |
|
| 50 |
* Fixed: type improvements to parseStability |
| 51 |
|
| 52 |
### [3.2.5] 2021-05-24 |
| 53 |
|
| 54 |
* Fixed: issue comparing disjunctive MultiConstraints to conjunctive ones (#127) |
| 55 |
* Fixed: added complete type information using phpstan annotations |
| 56 |
|
| 57 |
### [3.2.4] 2020-11-13 |
| 58 |
|
| 59 |
* Fixed: code clean-up |
| 60 |
|
| 61 |
### [3.2.3] 2020-11-12 |
| 62 |
|
| 63 |
* Fixed: constraints in the form of `X || Y, >=Y.1` and other such complex constructs were in some cases being optimized into a more restrictive constraint |
| 64 |
|
| 65 |
### [3.2.2] 2020-10-14 |
| 66 |
|
| 67 |
* Fixed: internal code cleanups |
| 68 |
|
| 69 |
### [3.2.1] 2020-09-27 |
| 70 |
|
| 71 |
* Fixed: accidental validation of broken constraints combining ^/~ and wildcards, and -dev suffix allowing weird cases |
| 72 |
* Fixed: normalization of beta0 and such which was dropping the 0 |
| 73 |
|
| 74 |
### [3.2.0] 2020-09-09 |
| 75 |
|
| 76 |
* Added: support for `x || @dev`, not very useful but seen in the wild and failed to validate with 1.5.2/1.6.0 |
| 77 |
* Added: support for `foobar-dev` being equal to `dev-foobar`, dev-foobar is the official way to write it but we need to support the other for BC and convenience |
| 78 |
|
| 79 |
### [3.1.0] 2020-09-08 |
| 80 |
|
| 81 |
* Added: support for constraints like `^2.x-dev` and `~2.x-dev`, not very useful but seen in the wild and failed to validate with 3.0.1 |
| 82 |
* Fixed: invalid aliases will no longer throw, unless explicitly validated by Composer in the root package |
| 83 |
|
| 84 |
### [3.0.1] 2020-09-08 |
| 85 |
|
| 86 |
* Fixed: handling of some invalid -dev versions which were seen as valid |
| 87 |
|
| 88 |
### [3.0.0] 2020-05-26 |
| 89 |
|
| 90 |
* Break: Renamed `EmptyConstraint`, replace it with `MatchAllConstraint` |
| 91 |
* Break: Unlikely to affect anyone but strictly speaking a breaking change, `*.*` and such variants will not match all `dev-*` versions anymore, only `*` does |
| 92 |
* Break: ConstraintInterface is now considered internal/private and not meant to be implemented by third parties anymore |
| 93 |
* Added `Intervals` class to check if a constraint is a subsets of another one, and allow compacting complex MultiConstraints into simpler ones |
| 94 |
* Added `CompilingMatcher` class to speed up constraint matching against simple Constraint instances |
| 95 |
* Added `MatchAllConstraint` and `MatchNoneConstraint` which match everything and nothing |
| 96 |
* Added more advanced optimization of contiguous constraints inside MultiConstraint |
| 97 |
* Added tentative support for PHP 8 |
| 98 |
* Fixed ConstraintInterface::matches to be commutative in all cases |
| 99 |
|
| 100 |
### [2.0.0] 2020-04-21 |
| 101 |
|
| 102 |
* Break: `dev-master`, `dev-trunk` and `dev-default` now normalize to `dev-master`, `dev-trunk` and `dev-default` instead of `9999999-dev` in 1.x |
| 103 |
* Break: Removed the deprecated `AbstractConstraint` |
| 104 |
* Added `getUpperBound` and `getLowerBound` to ConstraintInterface. They return `Composer\Semver\Constraint\Bound` instances |
| 105 |
* Added `MultiConstraint::create` to create the most-optimal form of ConstraintInterface from an array of constraint strings |
| 106 |
|
| 107 |
### [1.7.2] 2020-12-03 |
| 108 |
|
| 109 |
* Fixed: Allow installing on php 8 |
| 110 |
|
| 111 |
### [1.7.1] 2020-09-27 |
| 112 |
|
| 113 |
* Fixed: accidental validation of broken constraints combining ^/~ and wildcards, and -dev suffix allowing weird cases |
| 114 |
* Fixed: normalization of beta0 and such which was dropping the 0 |
| 115 |
|
| 116 |
### [1.7.0] 2020-09-09 |
| 117 |
|
| 118 |
* Added: support for `x || @dev`, not very useful but seen in the wild and failed to validate with 1.5.2/1.6.0 |
| 119 |
* Added: support for `foobar-dev` being equal to `dev-foobar`, dev-foobar is the official way to write it but we need to support the other for BC and convenience |
| 120 |
|
| 121 |
### [1.6.0] 2020-09-08 |
| 122 |
|
| 123 |
* Added: support for constraints like `^2.x-dev` and `~2.x-dev`, not very useful but seen in the wild and failed to validate with 1.5.2 |
| 124 |
* Fixed: invalid aliases will no longer throw, unless explicitly validated by Composer in the root package |
| 125 |
|
| 126 |
### [1.5.2] 2020-09-08 |
| 127 |
|
| 128 |
* Fixed: handling of some invalid -dev versions which were seen as valid |
| 129 |
* Fixed: some doctypes |
| 130 |
|
| 131 |
### [1.5.1] 2020-01-13 |
| 132 |
|
| 133 |
* Fixed: Parsing of aliased version was not validating the alias to be a valid version |
| 134 |
|
| 135 |
### [1.5.0] 2019-03-19 |
| 136 |
|
| 137 |
* Added: some support for date versions (e.g. 201903) in `~` operator |
| 138 |
* Fixed: support for stabilities in `~` operator was inconsistent |
| 139 |
|
| 140 |
### [1.4.2] 2016-08-30 |
| 141 |
|
| 142 |
* Fixed: collapsing of complex constraints lead to buggy constraints |
| 143 |
|
| 144 |
### [1.4.1] 2016-06-02 |
| 145 |
|
| 146 |
* Changed: branch-like requirements no longer strip build metadata - [composer/semver#38](https://github.com/composer/semver/pull/38). |
| 147 |
|
| 148 |
### [1.4.0] 2016-03-30 |
| 149 |
|
| 150 |
* Added: getters on MultiConstraint - [composer/semver#35](https://github.com/composer/semver/pull/35). |
| 151 |
|
| 152 |
### [1.3.0] 2016-02-25 |
| 153 |
|
| 154 |
* Fixed: stability parsing - [composer/composer#1234](https://github.com/composer/composer/issues/4889). |
| 155 |
* Changed: collapse contiguous constraints when possible. |
| 156 |
|
| 157 |
### [1.2.0] 2015-11-10 |
| 158 |
|
| 159 |
* Changed: allow multiple numerical identifiers in 'pre-release' version part. |
| 160 |
* Changed: add more 'v' prefix support. |
| 161 |
|
| 162 |
### [1.1.0] 2015-11-03 |
| 163 |
|
| 164 |
* Changed: dropped redundant `test` namespace. |
| 165 |
* Changed: minor adjustment in datetime parsing normalization. |
| 166 |
* Changed: `ConstraintInterface` relaxed, setPrettyString is not required anymore. |
| 167 |
* Changed: `AbstractConstraint` marked deprecated, will be removed in 2.0. |
| 168 |
* Changed: `Constraint` is now extensible. |
| 169 |
|
| 170 |
### [1.0.0] 2015-09-21 |
| 171 |
|
| 172 |
* Break: `VersionConstraint` renamed to `Constraint`. |
| 173 |
* Break: `SpecificConstraint` renamed to `AbstractConstraint`. |
| 174 |
* Break: `LinkConstraintInterface` renamed to `ConstraintInterface`. |
| 175 |
* Break: `VersionParser::parseNameVersionPairs` was removed. |
| 176 |
* Changed: `VersionParser::parseConstraints` allows (but ignores) build metadata now. |
| 177 |
* Changed: `VersionParser::parseConstraints` allows (but ignores) prefixing numeric versions with a 'v' now. |
| 178 |
* Changed: Fixed namespace(s) of test files. |
| 179 |
* Changed: `Comparator::compare` no longer throws `InvalidArgumentException`. |
| 180 |
* Changed: `Constraint` now throws `InvalidArgumentException`. |
| 181 |
|
| 182 |
### [0.1.0] 2015-07-23 |
| 183 |
|
| 184 |
* Added: `Composer\Semver\Comparator`, various methods to compare versions. |
| 185 |
* Added: various documents such as README.md, LICENSE, etc. |
| 186 |
* Added: configuration files for Git, Travis, php-cs-fixer, phpunit. |
| 187 |
* Break: the following namespaces were renamed: |
| 188 |
- Namespace: `Composer\Package\Version` -> `Composer\Semver` |
| 189 |
- Namespace: `Composer\Package\LinkConstraint` -> `Composer\Semver\Constraint` |
| 190 |
- Namespace: `Composer\Test\Package\Version` -> `Composer\Test\Semver` |
| 191 |
- Namespace: `Composer\Test\Package\LinkConstraint` -> `Composer\Test\Semver\Constraint` |
| 192 |
* Changed: code style using php-cs-fixer. |
| 193 |
|
| 194 |
[3.4.3]: https://github.com/composer/semver/compare/3.4.2...3.4.3 |
| 195 |
[3.4.2]: https://github.com/composer/semver/compare/3.4.1...3.4.2 |
| 196 |
[3.4.1]: https://github.com/composer/semver/compare/3.4.0...3.4.1 |
| 197 |
[3.4.0]: https://github.com/composer/semver/compare/3.3.2...3.4.0 |
| 198 |
[3.3.2]: https://github.com/composer/semver/compare/3.3.1...3.3.2 |
| 199 |
[3.3.1]: https://github.com/composer/semver/compare/3.3.0...3.3.1 |
| 200 |
[3.3.0]: https://github.com/composer/semver/compare/3.2.9...3.3.0 |
| 201 |
[3.2.9]: https://github.com/composer/semver/compare/3.2.8...3.2.9 |
| 202 |
[3.2.8]: https://github.com/composer/semver/compare/3.2.7...3.2.8 |
| 203 |
[3.2.7]: https://github.com/composer/semver/compare/3.2.6...3.2.7 |
| 204 |
[3.2.6]: https://github.com/composer/semver/compare/3.2.5...3.2.6 |
| 205 |
[3.2.5]: https://github.com/composer/semver/compare/3.2.4...3.2.5 |
| 206 |
[3.2.4]: https://github.com/composer/semver/compare/3.2.3...3.2.4 |
| 207 |
[3.2.3]: https://github.com/composer/semver/compare/3.2.2...3.2.3 |
| 208 |
[3.2.2]: https://github.com/composer/semver/compare/3.2.1...3.2.2 |
| 209 |
[3.2.1]: https://github.com/composer/semver/compare/3.2.0...3.2.1 |
| 210 |
[3.2.0]: https://github.com/composer/semver/compare/3.1.0...3.2.0 |
| 211 |
[3.1.0]: https://github.com/composer/semver/compare/3.0.1...3.1.0 |
| 212 |
[3.0.1]: https://github.com/composer/semver/compare/3.0.0...3.0.1 |
| 213 |
[3.0.0]: https://github.com/composer/semver/compare/2.0.0...3.0.0 |
| 214 |
[2.0.0]: https://github.com/composer/semver/compare/1.5.1...2.0.0 |
| 215 |
[1.7.2]: https://github.com/composer/semver/compare/1.7.1...1.7.2 |
| 216 |
[1.7.1]: https://github.com/composer/semver/compare/1.7.0...1.7.1 |
| 217 |
[1.7.0]: https://github.com/composer/semver/compare/1.6.0...1.7.0 |
| 218 |
[1.6.0]: https://github.com/composer/semver/compare/1.5.2...1.6.0 |
| 219 |
[1.5.2]: https://github.com/composer/semver/compare/1.5.1...1.5.2 |
| 220 |
[1.5.1]: https://github.com/composer/semver/compare/1.5.0...1.5.1 |
| 221 |
[1.5.0]: https://github.com/composer/semver/compare/1.4.2...1.5.0 |
| 222 |
[1.4.2]: https://github.com/composer/semver/compare/1.4.1...1.4.2 |
| 223 |
[1.4.1]: https://github.com/composer/semver/compare/1.4.0...1.4.1 |
| 224 |
[1.4.0]: https://github.com/composer/semver/compare/1.3.0...1.4.0 |
| 225 |
[1.3.0]: https://github.com/composer/semver/compare/1.2.0...1.3.0 |
| 226 |
[1.2.0]: https://github.com/composer/semver/compare/1.1.0...1.2.0 |
| 227 |
[1.1.0]: https://github.com/composer/semver/compare/1.0.0...1.1.0 |
| 228 |
[1.0.0]: https://github.com/composer/semver/compare/0.1.0...1.0.0 |
| 229 |
[0.1.0]: https://github.com/composer/semver/compare/5e0b9a4da...0.1.0 |