Skip to content

Releases: phar-io/version

Release 3.2.1

21 Feb 01:07
3.2.1
Compare
Choose a tag to compare

Build metadata is now supported and considered for equality checks and the equal constraint

Release 3.1.1

07 Feb 21:58
3.1.1
Compare
Choose a tag to compare

Fixed

  • #28: VersionConstraintParser does not support logical OR represented by single pipe (|) (Thanks @llaville)

Release 3.1.0

23 Feb 14:01
3.1.0
Compare
Choose a tag to compare

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 to 0.3.*)
  • Various integration tests for version constraint processing

Fixed

  • #23: Tilde operator without patch level

Release 3.0.4

13 Dec 23:20
3.0.4
Compare
Choose a tag to compare

Fixed

  • #22: make dev suffix rank works for uppercase too

Release 3.0.2

31 Aug 08:55
3.0.2
Compare
Choose a tag to compare

This release now supports PHP 7.2+ and PHP ^8.0. No other changes included.

Release 2.0.1

08 Jul 19:20
Compare
Choose a tag to compare

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

23 Jun 10:31
Compare
Choose a tag to compare

Changes to public API:

  • PreReleaseSuffix::construct(): optional parameter $number removed
  • PreReleaseSuffix::isGreaterThan(): introduced
  • Version::hasPreReleaseSuffix(): introduced

Added

  • #11: Added support for pre-release version suffixes. Supported values are:

    • dev
    • beta (also abbreviated form b)
    • rc
    • alpha (also abbreviated form a)
    • patch (also abbreviated form p)

    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

02 Apr 19:54
Compare
Choose a tag to compare
  • Change InvalidVersionException hierarchy

Release 1.0.0

03 Mar 17:15
Compare
Choose a tag to compare
Release 1.0.0