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
PackageInfoclass - [BC] Rename
ComparatorInterfacetoComparator - [BC] Rename
AnyComparableInterfacetoAnyComparable - [BC] Rename
ExtendedComparableInterfacetoExtendedComparable - [BC] Rename
SelfComparableInterfacetoSelfComparable - [BC] Rename
SubClassComparableInterfacetoSubClassComparable - [BC] Remove
AbstractExtendedComparableclass, useExtendedComparableTraitinstead
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]
SelfComparableInterfacenow 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
deepparameter fromParity::compare()and related convenience methods - [BC] Removed
ComparableInterfaceandComparator - [BC] Removed
AbstractComparable(replaced withAbstractExtendedComparablewhich does not implement any comparable interface) - [NEW] Added
AnyComparableInterfaceandSelfComparableInterface - [NEW] Added
ComparatorInterface::__invoke() - [NEW] Added
ObjectIdentityComparator,StrictPhpComparatorandPhpComparator - [NEW] Added
ParityComparatorwhich 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