Releases: nikolaposa/version
Releases · nikolaposa/version
Version 2.2.1
Fixed
- Coding standard fixes.
- Using friendsofphp/php-cs-fixer instead of abandoned fabpot/php-cs-fixer.
Version 2.2.0
Added
- 8: Mechanism for matching versions against constraints.
- 9: Support for having custom version comparison strategies.
Version::isNotEqualTo()
method.
Version 2.1.0
Added
- 5: Version is now JsonSerializable.
- 6: Capability for converting Version into array.
- Static factory method (
fromArray
) for creating VersionsCollection.
Version 2.0.1
Added
- Hooked PHP Coding Standards Fixer into the Travis CI.
Fixed
- Fixed examples in README.
- Creating empty Metadata objects in favor of passing around
null
values. - 3: Fix wrong output in readme
- 4: Remove useless cloning
Version 2.0.0
New features
- Static factory methods, for example
Version::fromMajor()
,Version::fromPreRelease()
. - Methods for modifying pre-release and build information of a version.
Backwards-incompatible changes
- Static factory methods (named constructors) are used to instantiate objects instead of constructors.
increment*
methods inVersion\Version
class were renamed towith*Incremented
.Version\Identifier\PreRelease
renamed toVersion\Identifier\PreReleaseIdentifier
.Version\Identifier\Build
renamed toVersion\Identifier\BuildIdentifier
.
Version 1.2.3
- ignore composer.lock
- .gitattributes
Version 1.2.2
New version
Version 1.2.1
- test fixes
Version 1.2.0
- version-aware interface/trait
- versions collection
Version 1.1.0
- improved version string parsing
- minor and patch parts are now optional