Skip to content

Releases: icecave/parity

Version 3.0.1

04 Feb 05:52
Compare
Choose a tag to compare

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

25 Aug 04:33
Compare
Choose a tag to compare

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 to Comparator
  • [BC] Rename AnyComparableInterface to AnyComparable
  • [BC] Rename ExtendedComparableInterface to ExtendedComparable
  • [BC] Rename SelfComparableInterface to SelfComparable
  • [BC] Rename SubClassComparableInterface to SubClassComparable
  • [BC] Remove AbstractExtendedComparable class, use ExtendedComparableTrait instead

Version 2.0.0

06 Nov 11:57
Compare
Choose a tag to compare
  • [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

17 Jan 06:17
Compare
Choose a tag to compare
  • Stable release (no API changes since 1.0.0-alpha.2).

Version 1.0.0-alpha.2

22 Oct 02:36
Compare
Choose a tag to compare
Version 1.0.0-alpha.2 Pre-release
Pre-release
  • [BC] SelfComparableInterface now requires the comparison operands to be the exactly same type.
  • [NEW] Added SubClassComparableInterface, similar to the previous behavior of SelfComparableInterface

Version 1.0.0-alpha.1

20 Oct 09:18
Compare
Choose a tag to compare
Version 1.0.0-alpha.1 Pre-release
Pre-release
  • [BC] Removed deep parameter from Parity::compare() and related convenience methods
  • [BC] Removed ComparableInterface and Comparator
  • [BC] Removed AbstractComparable (replaced with AbstractExtendedComparable which does not implement any comparable interface)
  • [NEW] Added AnyComparableInterface and SelfComparableInterface
  • [NEW] Added ComparatorInterface::__invoke()
  • [NEW] Added ObjectIdentityComparator, StrictPhpComparator and PhpComparator
  • [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

02 Jul 23:26
Compare
Choose a tag to compare
Version 0.1.0 Pre-release
Pre-release
  • Initial release