Releases: nikolaposa/version
Releases · nikolaposa/version
Version 4.2.1
What's Changed
- Fix .gitattributes by @VincentLanglet in #41
- Explicit nullable types by @yoan-myparcel in #43
New Contributors
- @yoan-myparcel made their first contribution in #43
Full Changelog: 4.2.0...4.2.1
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
VersionsCollectiontoVersionCollection 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/assertlibrary for input validation - Rename
Version\Comparatornamespace toVersion\Comparison - Move
Version\Constraintnamespace toVersion\Comparison\Constraint - Rename
ComparatorInterfacetoComparator - Rename
ComparisonConstrainttoOpeationConstraint - Rename
ComparisonConstraintParsertoOpeationConstraintParser - Rename component-level
Version\Exception\ExceptionInterfacetoVersion\Exception\VersionException - Move comparision-related exceptions into
Version\Comparision\Exceptionnamespace - Remove
-Exceptionsuffix from all concrete exception names - Rename
BaseExtensiontoExtension - Rename
PreRelease::fromIdentifiers()toPreRelease::from() - Rename
Build::fromIdentifiers()toBuild::from() - Rename
PreRelease::fromIdentifiersString()toPreRelease::fromString() - Rename
Build::fromIdentifiersString()toBuild::fromString()
Removed
Version\VersionAwareInterfaceVersion\VersionAwareTraitVersion\Extension\NoPreReleaseVersion\Extension\NoBuildVersion->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()requiresPreReleaseandBuildinstances- 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 variadicVersionarguments should be used instead