Releases: composer/semver
Releases · composer/semver
1.7.0
- Added: support for
x || @dev, not very useful but seen in the wild and failed to validate with 1.5.2/1.6.0 - Added: support for
foobar-devbeing equal todev-foobar, dev-foobar is the official way to write it but we need to support the other for BC and convenience
3.1.0
3.0.1
1.6.0
1.5.2
3.0.0
- Break: Renamed
EmptyConstraint, replace it withMatchAllConstraint - Break: Unlikely to affect anyone but strictly speaking a breaking change,
*.*and such variants will not match alldev-*versions anymore, only*does - Break: ConstraintInterface is now considered internal/private and not meant to be implemented by third parties anymore
- Added
Intervalsclass to check if a constraint is a subsets of another one, and allow compacting complex MultiConstraints into simpler ones - Added
CompilingMatcherclass to speed up constraint matching against simple Constraint instances - Added
MatchAllConstraintandMatchNoneConstraintwhich match everything and nothing - Added more advanced optimization of contiguous constraints inside MultiConstraint
- Added tentative support for PHP 8
- Fixed ConstraintInterface::matches to be commutative in all cases
2.0.0
- Break:
dev-master,dev-trunkanddev-defaultnow normalize todev-master,dev-trunkanddev-defaultinstead of9999999-devin 1.x - Break: Removed the deprecated
AbstractConstraint - Added
getUpperBoundandgetLowerBoundto ConstraintInterface. They returnComposer\Semver\Constraint\Boundinstances - Added
MultiConstraint::createto create the most-optimal form of ConstraintInterface from an array of constraint strings