Skip to content

Releases: PHLAK/SemVer

v6.1.0

11 Dec 16:31
59dc259
Compare
Choose a tag to compare

Changed

  • Ensured support for PHP 8.4
  • Updated development dependencies

v6.0.0

19 Sep 16:45
412f0b3
Compare
Choose a tag to compare

Added

  • Add ability to compare versions major, minor or patch versions only (#35 - Thanks @MuhmdRaouf!)

Changed

  • Minimum supported PHP version is now 8.1

v5.0.0

02 Aug 17:06
3c4db3a
Compare
Choose a tag to compare

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

23 Dec 20:35
decdb38
Compare
Choose a tag to compare

Added

  • New incrementPreRelease() method (#24 - Thanks @oscar-ol!)

4.0.0

25 Aug 02:52
f9899d2
Compare
Choose a tag to compare

Added

  • Added SemVer::compare() method

Removed

  • Dropped support for PHP 7.1

Detailed changelog: 3.2.0...4.0.0

v3.2.0

10 Apr 17:40
2167230
Compare
Choose a tag to compare

Added

  • Added Version::parse() static constructor for parsing incomplete version strings (#11)

Fixed

  • Fixed improper string conversion when initialized with a build but no pre-release

Detailed changelog: 3.1.0...3.2.0

v3.1.0

16 Mar 07:03
8ddcead
Compare
Choose a tag to compare

Changed

  • Enforce minimum PHP version to >=7.1
  • Miscellaneous internal cleanup/optimizations

Detailed changelog: 3.0.1...3.1.0

v3.0.1

03 Feb 02:09
c458d45
Compare
Choose a tag to compare

Fixed

  • Fixed comparisons being broken for some versions with pre-releases (#14, #15)

Detailed changelog: 3.0.0...3.0.1

v3.0.0

24 Dec 04:18
d3c1fd6
Compare
Choose a tag to compare

Added

  • Added a semver() helper method

Changed

  • Implemented the magic __toString() method allowing a Version 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

v2.0.1

03 Jul 18:26
76932b6
Compare
Choose a tag to compare

Changed

  • Bumped required PHP version to >= 5.6

Detailed changelog: 1.0.0...2.0.1