Skip to content

Releases: nikolaposa/version

Version 4.2.0

29 Dec 22:28
Compare
Choose a tag to compare

Changed

  • Updated code to use PHP 8 syntax
  • PHP 8.1 is now the minimum required version
  • Updated dependencies to their latest versions

Version 4.1.1

04 Aug 17:14
f6bdd64
Compare
Choose a tag to compare

Version 4.1.0

12 Dec 10:49
Compare
Choose a tag to compare

Version 4.0.0

29 Dec 15:13
Compare
Choose a tag to compare

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

Version 3.2.0

Version 3.1.0

14 Jun 18:08
Compare
Choose a tag to compare

Added

  • Support for parsing Composer version strings
  • Add VersionsCollection::isEmpty() method
  • Add VersionsCollection::toArray() method
  • Add immutable VersionsCollection::sortedAscending() and VersionsCollection::sortedDescending() methods; mark VersionsCollection::sort() as deprecated
  • Add VersionsCollection::first() method
  • Add VersionsCollection::last() method
  • Add VersionsCollection::majorReleases() method
  • Add VersionsCollection::minorReleases() method
  • Add VersionsCollection::patchReleases() method

Version 3.0.2

28 May 18:16
Compare
Choose a tag to compare

Version 3.0.1

05 May 08:34
Compare
Choose a tag to compare

Fixed

  • VersionsCollection::matching() fails if all the versions do not satisfy constraint; allow VersionsCollection to be empty

Version 3.0.0

02 May 09:31
Compare
Choose a tag to compare

Added

Changed

Removed

  • Setter method from the VersionAwareInterface
  • Version::from(Major|Minor|Path|PreRelease|Build) named constructors in favor of having a single Version::fromParts() named constructor with optional parameters
  • VersionCollection::fromArray(); constructor with variadic Version arguments should be used instead

Version 2.2.2

22 Apr 08:56
Compare
Choose a tag to compare