Releases: nikolaposa/version
Releases · nikolaposa/version
Version 4.2.0
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
Version 4.1.0
- 35: Allow PHP 8 installations
- PHPStan integration
- Migration to GitHub Actions thanks to Andreas Möller
Version 4.0.0
Changed
- PHPUnit 8 is now the minimum required version
- Rename
VersionsCollection
toVersionCollection
Version->getPreRelease()
now explicitly returns nullable typeVersion->getBuild()
now explicitly returns nullable type- Rename
Version::fromParts()
toVersion::from()
- Rename
Version->getVersionString()
toVersion->toString()
- Use
beberlei/assert
library for input validation - Rename
Version\Comparator
namespace toVersion\Comparison
- Move
Version\Constraint
namespace toVersion\Comparison\Constraint
- Rename
ComparatorInterface
toComparator
- Rename
ComparisonConstraint
toOpeationConstraint
- Rename
ComparisonConstraintParser
toOpeationConstraintParser
- Rename component-level
Version\Exception\ExceptionInterface
toVersion\Exception\VersionException
- Move comparision-related exceptions into
Version\Comparision\Exception
namespace - Remove
-Exception
suffix from all concrete exception names - Rename
BaseExtension
toExtension
- Rename
PreRelease::fromIdentifiers()
toPreRelease::from()
- Rename
Build::fromIdentifiers()
toBuild::from()
- Rename
PreRelease::fromIdentifiersString()
toPreRelease::fromString()
- Rename
Build::fromIdentifiersString()
toBuild::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 constructorOperationConstraint::notEqualTo()
named constructorOperationConstraint::greaterThan()
named constructorOperationConstraint::greaterOrEqualTo()
named constructorOperationConstraint::lessThan()
named constructorOperationConstraint::lessOrEqualTo()
named constructor- Prefix supplied in
Version::fromString()
is captured and included intoString()
result
Version 3.2.0
Version 3.1.0
Added
- Support for parsing Composer version strings
- Add
VersionsCollection::isEmpty()
method - Add
VersionsCollection::toArray()
method - Add immutable
VersionsCollection::sortedAscending()
andVersionsCollection::sortedDescending()
methods; markVersionsCollection::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
Version 3.0.1
Fixed
VersionsCollection::matching()
fails if all the versions do not satisfy constraint; allow VersionsCollection to be empty
Version 3.0.0
Added
- Strict typing wherever possible
- 15: Relaxed version parsing
Changed
- 13: PHP 7.2 as minimum requirement
- Renamed
Version::fromElements()
toVersion::fromParts()
Version::fromParts()
requiresPreRelease
andBuild
instances- Renamed
Version::withMajorIncremented()
toVersion::incrementMajor()
- Renamed
Version::withMinorIncremented()
toVersion::incrementMinor()
- Renamed
Version::withPatchIncremented()
toVersion::incrementPatch()
- 14: Simplified modeling of extension parts - pre-release and build
- 16: Simplified Constraint modeling
Removed
- Setter method from the
VersionAwareInterface
Version::from(Major|Minor|Path|PreRelease|Build)
named constructors in favor of having a singleVersion::fromParts()
named constructor with optional parametersVersionCollection::fromArray()
; constructor with variadicVersion
arguments should be used instead