Releases: PHLAK/SemVer
Releases · PHLAK/SemVer
v6.1.0
v6.0.0
v5.0.0
Added
- Added
isPreRelease()
method - Added
hasBuild()
method
Changed
- Minimum supported PHP version is now 8.0
- Make
Version
class JSON serializable (#33 - Thanks @joint-tech!) - Make
Version
class inheritable (#34 - Thanks @joint-tech!)
Fixed
- Fixed
preRelease
sometimes ending up as an empty string
v4.1.0
4.0.0
Added
- Added
SemVer::compare()
method
Removed
- Dropped support for PHP 7.1
Detailed changelog: 3.2.0...4.0.0
v3.2.0
v3.1.0
Changed
- Enforce minimum PHP version to >=7.1
- Miscellaneous internal cleanup/optimizations
Detailed changelog: 3.0.1...3.1.0
v3.0.1
v3.0.0
Added
- Added a
semver()
helper method
Changed
- Implemented the magic
__toString()
method allowing aVersion
object it to be cast to a string (e.g.(string) $semver
) - Pre-release tags are now evaluated during comparisons (e.g.
Version::gt()
,Version::lt()
, etc.)
Removed
- Removed
Version::toString()
method (see above for casting to string)
Fixed
- Build number would not be unset when setting the major/minor/patch version
- Pre-release and build properties are no longer case-sensitive
Detailed changelog: 2.0.1...3.0.0