Skip to content

Version 4.0.0

Choose a tag to compare

@nikolaposa nikolaposa released this 29 Dec 15:13
· 47 commits to master since this release

Changed

  • PHPUnit 8 is now the minimum required version
  • Rename VersionsCollection to VersionCollection
  • Version->getPreRelease() now explicitly returns nullable type
  • Version->getBuild() now explicitly returns nullable type
  • Rename Version::fromParts() to Version::from()
  • Rename Version->getVersionString() to Version->toString()
  • Use beberlei/assert library for input validation
  • Rename Version\Comparator namespace to Version\Comparison
  • Move Version\Constraint namespace to Version\Comparison\Constraint
  • Rename ComparatorInterface to Comparator
  • Rename ComparisonConstraint to OpeationConstraint
  • Rename ComparisonConstraintParser to OpeationConstraintParser
  • Rename component-level Version\Exception\ExceptionInterface to Version\Exception\VersionException
  • Move comparision-related exceptions into Version\Comparision\Exception namespace
  • Remove -Exception suffix from all concrete exception names
  • Rename BaseExtension to Extension
  • Rename PreRelease::fromIdentifiers() to PreRelease::from()
  • Rename Build::fromIdentifiers() to Build::from()
  • Rename PreRelease::fromIdentifiersString() to PreRelease::fromString()
  • Rename Build::fromIdentifiersString() to Build::fromString()

Removed

  • Version\VersionAwareInterface
  • Version\VersionAwareTrait
  • Version\Extension\NoPreRelease
  • Version\Extension\NoBuild
  • Version->isBuild()
  • VersionCollection->sort()
  • PreRelease->isEmpty()
  • PreRelease->__toString()
  • Build->isEmpty()
  • Build->__toString()

Added

  • OperationConstraint::equalsTo() named constructor
  • OperationConstraint::notEqualTo() named constructor
  • OperationConstraint::greaterThan() named constructor
  • OperationConstraint::greaterOrEqualTo() named constructor
  • OperationConstraint::lessThan() named constructor
  • OperationConstraint::lessOrEqualTo() named constructor
  • Prefix supplied in Version::fromString() is captured and included in toString() result