| 148 |
lars |
1 |
# Changelog
|
|
|
2 |
|
|
|
3 |
All notable changes to phar-io/version are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
|
|
|
4 |
|
|
|
5 |
## [3.2.1] - 2022-02-21
|
|
|
6 |
|
|
|
7 |
### Fixed
|
|
|
8 |
|
|
|
9 |
- Have ExactVersionConstraint honor build metadata (added in 3.2.0)
|
|
|
10 |
|
|
|
11 |
|
|
|
12 |
## [3.2.0] - 2022-02-21
|
|
|
13 |
|
|
|
14 |
### Added
|
|
|
15 |
|
|
|
16 |
- Build metadata is now supported and considered for equality checks only
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
## [3.1.1] - 2022-02-07
|
|
|
20 |
|
|
|
21 |
### Fixed
|
|
|
22 |
|
|
|
23 |
- [#28](https://github.com/phar-io/version/issues/28): `VersionConstraintParser` does not support logical OR represented by single pipe (|) (Thanks @llaville)
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
## [3.1.0] - 2021-02-23
|
|
|
27 |
|
|
|
28 |
### Changed
|
|
|
29 |
|
|
|
30 |
- Internal Refactoring
|
|
|
31 |
- More scalar types
|
|
|
32 |
|
|
|
33 |
### Added
|
|
|
34 |
|
|
|
35 |
- [#24](https://github.com/phar-io/version/issues/24): `Version::getOriginalString()` added (Thanks @addshore)
|
|
|
36 |
- Version constraints using the caret operator (`^`) now honor pre-1.0 releases, e.g. `^0.3` translates to `0.3.*`)
|
|
|
37 |
- Various integration tests for version constraint processing
|
|
|
38 |
|
|
|
39 |
### Fixed
|
|
|
40 |
|
|
|
41 |
- [#23](https://github.com/phar-io/version/pull/23): Tilde operator without patch level
|
|
|
42 |
|
|
|
43 |
|
|
|
44 |
|
|
|
45 |
## [3.0.4] - 14.12.2020
|
|
|
46 |
|
|
|
47 |
### Fixed
|
|
|
48 |
|
|
|
49 |
- [#22](https://github.com/phar-io/version/pull/22): make dev suffix rank works for uppercase too
|
|
|
50 |
|
|
|
51 |
## [3.0.3] - 30.11.2020
|
|
|
52 |
|
|
|
53 |
### Added
|
|
|
54 |
|
|
|
55 |
- Comparator method `Version::equals()` added
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
## [3.0.2] - 27.06.2020
|
|
|
59 |
|
|
|
60 |
This release now supports PHP 7.2+ and PHP ^8.0. No other changes included.
|
|
|
61 |
|
|
|
62 |
|
|
|
63 |
## [3.0.1] - 09.05.2020
|
|
|
64 |
|
|
|
65 |
__Potential BC Break Notice:__
|
|
|
66 |
`Version::getVersionString()` no longer returns `v` prefixes in case the "input"
|
|
|
67 |
string contained one. These are not part of the semver specs
|
|
|
68 |
(see https://semver.org/#is-v123-a-semantic-version) and get stripped out.
|
|
|
69 |
As of Version 3.1.0 `Version::getOriginalString()` can be used to still
|
|
|
70 |
retrieve it as given.
|
|
|
71 |
|
|
|
72 |
### Changed
|
|
|
73 |
|
|
|
74 |
- Internal Refactoring
|
|
|
75 |
- More scalar types
|
|
|
76 |
|
|
|
77 |
### Fixed
|
|
|
78 |
|
|
|
79 |
- Fixed Constraint processing Regression for ^1.2 and ~1.2
|
|
|
80 |
|
|
|
81 |
|
|
|
82 |
## [3.0.0] - 05.05.2020
|
|
|
83 |
|
|
|
84 |
### Changed
|
|
|
85 |
|
|
|
86 |
- Require PHP 7.2+
|
|
|
87 |
- All code now uses strict mode
|
|
|
88 |
- Scalar types have been added as needed
|
|
|
89 |
|
|
|
90 |
### Added
|
|
|
91 |
|
|
|
92 |
- The technically invalid format using 'v' prefix ("v1.2.3") is now properly supported
|
|
|
93 |
|
|
|
94 |
|
|
|
95 |
## [2.0.1] - 08.07.2018
|
|
|
96 |
|
|
|
97 |
### Fixed
|
|
|
98 |
|
|
|
99 |
- Versions without a pre-release suffix are now always considered greater
|
|
|
100 |
than versions with a pre-release suffix. Example: `3.0.0 > 3.0.0-alpha.1`
|
|
|
101 |
|
|
|
102 |
|
|
|
103 |
## [2.0.0] - 23.06.2018
|
|
|
104 |
|
|
|
105 |
Changes to public API:
|
|
|
106 |
|
|
|
107 |
- `PreReleaseSuffix::construct()`: optional parameter `$number` removed
|
|
|
108 |
- `PreReleaseSuffix::isGreaterThan()`: introduced
|
|
|
109 |
- `Version::hasPreReleaseSuffix()`: introduced
|
|
|
110 |
|
|
|
111 |
### Added
|
|
|
112 |
|
|
|
113 |
- [#11](https://github.com/phar-io/version/issues/11): Added support for pre-release version suffixes. Supported values are:
|
|
|
114 |
- `dev`
|
|
|
115 |
- `beta` (also abbreviated form `b`)
|
|
|
116 |
- `rc`
|
|
|
117 |
- `alpha` (also abbreviated form `a`)
|
|
|
118 |
- `patch` (also abbreviated form `p`)
|
|
|
119 |
|
|
|
120 |
All values can be followed by a number, e.g. `beta3`.
|
|
|
121 |
|
|
|
122 |
When comparing versions, the pre-release suffix is taken into account. Example:
|
|
|
123 |
`1.5.0 > 1.5.0-beta1 > 1.5.0-alpha3 > 1.5.0-alpha2 > 1.5.0-dev11`
|
|
|
124 |
|
|
|
125 |
### Changed
|
|
|
126 |
|
|
|
127 |
- reorganized the source directories
|
|
|
128 |
|
|
|
129 |
### Fixed
|
|
|
130 |
|
|
|
131 |
- [#10](https://github.com/phar-io/version/issues/10): Version numbers containing
|
|
|
132 |
a numeric suffix as seen in Debian packages are now supported.
|
|
|
133 |
|
|
|
134 |
|
|
|
135 |
[3.1.0]: https://github.com/phar-io/version/compare/3.0.4...3.1.0
|
|
|
136 |
[3.0.4]: https://github.com/phar-io/version/compare/3.0.3...3.0.4
|
|
|
137 |
[3.0.3]: https://github.com/phar-io/version/compare/3.0.2...3.0.3
|
|
|
138 |
[3.0.2]: https://github.com/phar-io/version/compare/3.0.1...3.0.2
|
|
|
139 |
[3.0.1]: https://github.com/phar-io/version/compare/3.0.0...3.0.1
|
|
|
140 |
[3.0.0]: https://github.com/phar-io/version/compare/2.0.1...3.0.0
|
|
|
141 |
[2.0.1]: https://github.com/phar-io/version/compare/2.0.0...2.0.1
|
|
|
142 |
[2.0.0]: https://github.com/phar-io/version/compare/1.0.1...2.0.0
|