Releases: composer/semver
Releases · composer/semver
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
Intervals
class to check if a constraint is a subsets of another one, and allow compacting complex MultiConstraints into simpler ones - Added
CompilingMatcher
class to speed up constraint matching against simple Constraint instances - Added
MatchAllConstraint
andMatchNoneConstraint
which 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-trunk
anddev-default
now normalize todev-master
,dev-trunk
anddev-default
instead of9999999-dev
in 1.x - Break: Removed the deprecated
AbstractConstraint
- Added
getUpperBound
andgetLowerBound
to ConstraintInterface. They returnComposer\Semver\Constraint\Bound
instances - Added
MultiConstraint::create
to create the most-optimal form of ConstraintInterface from an array of constraint strings
1.5.1
1.5.0
1.4.2
1.4.1
- Changed: branch-like requirements no longer strip build metadata - composer/semver#38.