Releases: icecave/parity
Releases · icecave/parity
Version 3.0.1
Please note, as of this release this project intends to support only those
versions of PHP that are listed under the "Currently Supported Versions" section
of https://www.php.net/supported-versions.php. This means that support for older
PHP versions may be dropped in minor or patch releases.
- Drop support for PHP 7.2
- Add support for PHP 8
Version 3.0.0
This release contains several backwards compatibility breaks that will effect
more advanced usage of Parity, however the common usage via Parity::compare()
is unchanged.
- [BC] Drop support for PHP 7.1
- [BC] Add parameter and return type hints
- [BC] Remove
PackageInfo
class - [BC] Rename
ComparatorInterface
toComparator
- [BC] Rename
AnyComparableInterface
toAnyComparable
- [BC] Rename
ExtendedComparableInterface
toExtendedComparable
- [BC] Rename
SelfComparableInterface
toSelfComparable
- [BC] Rename
SubClassComparableInterface
toSubClassComparable
- [BC] Remove
AbstractExtendedComparable
class, useExtendedComparableTrait
instead
Version 2.0.0
- [BC] Drop support for PHP 5.x and PHP 7.0
- [NEW] Added
Parity::min[Sequence]()
,max[Sequence]()
(thanks @koden-km)
Version 1.0.0
- Stable release (no API changes since 1.0.0-alpha.2).
Version 1.0.0-alpha.2
- [BC]
SelfComparableInterface
now requires the comparison operands to be the exactly same type. - [NEW] Added
SubClassComparableInterface
, similar to the previous behavior ofSelfComparableInterface
Version 1.0.0-alpha.1
- [BC] Removed
deep
parameter fromParity::compare()
and related convenience methods - [BC] Removed
ComparableInterface
andComparator
- [BC] Removed
AbstractComparable
(replaced withAbstractExtendedComparable
which does not implement any comparable interface) - [NEW] Added
AnyComparableInterface
andSelfComparableInterface
- [NEW] Added
ComparatorInterface::__invoke()
- [NEW] Added
ObjectIdentityComparator
,StrictPhpComparator
andPhpComparator
- [NEW] Added
ParityComparator
which compares numeric types in a more natural manner - [IMPROVED] Comparators are now use other comparators to handle unsupported comparisons (composition rather than extension)
- [IMPROVED] Deep comparison no longer compares arrays by size first, allows for more natural ordering based on elements
Version 0.1.0
- Initial release