Releases: phar-io/version
Releases · phar-io/version
Release 3.2.1
Release 3.1.1
Release 3.1.0
Changed
- Internal Refactoring
- More scalar types
Added
- #24:
Version::getOriginalString()
added (Thanks @addshore) - Version constraints using the caret operator (
^
) now honor pre-1.0 releases, e.g.^0.3
translates to0.3.*
) - Various integration tests for version constraint processing
Fixed
- #23: Tilde operator without patch level
Release 3.0.4
Fixed
- #22: make dev suffix rank works for uppercase too
Release 3.0.2
This release now supports PHP 7.2+ and PHP ^8.0. No other changes included.
Release 2.0.1
Fixed
- Versions without a pre-release suffix are now always considered greater
than versions without a pre-release suffix. Example:3.0.0 > 3.0.0-alpha.1
Release 2.0.0
Changes to public API:
PreReleaseSuffix::construct()
: optional parameter$number
removedPreReleaseSuffix::isGreaterThan()
: introducedVersion::hasPreReleaseSuffix()
: introduced
Added
-
#11: Added support for pre-release version suffixes. Supported values are:
dev
beta
(also abbreviated formb
)rc
alpha
(also abbreviated forma
)patch
(also abbreviated formp
)
All values can be followed by a number, e.g.
beta3
.When comparing versions, the pre-release suffix is taken into account. Example:
1.5.0 > 1.5.0-beta1 > 1.5.0-alpha3 > 1.5.0-alpha2 > 1.5.0-dev11
Changed
- reorganized the source directories
Fixed
- #10: Version numbers containing
a numeric suffix as seen in Debian packages are now supported.
Release 1.0.1
- Change InvalidVersionException hierarchy
Release 1.0.0
Release 1.0.0