Skip to content

Release 2.0.0

Compare
Choose a tag to compare
@sebastianheuer sebastianheuer released this 23 Jun 10:31
· 66 commits to master since this release

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.