Skip to content

Releases: Jean85/pretty-package-versions

1.5.0

23 Jun 06:24
1.5.0
Compare
Choose a tag to compare

This release is intended to change the future release plan of this package. Please require the package with ^1.5 || ^2.0 to ensure full functionalities and future Composer 2 compatibility.

Added

  • Add PrettyVersions::getRootPackageName as a compatibility layer to be used in place of PackageVersions\Versions::ROOT_PACKAGE_NAME, which would be a transient dependency (#23)
  • Add PrettyVersions::getRootPackageVersion, a shortcut to PrettyVersions::getVersion(PrettyVersions::getRootPackageName()) (#23)

Changed

  • Roll back to use composer/package-versions-deprecated as in 1.3 (see #21 & #22)

1.4.0

28 Apr 06:35
1.4.0
1fd8d3b
Compare
Choose a tag to compare

Removed

  • Drop support for Composer 1
  • Drop dependency on any package
  • Drop Scrutinizer, use Codecov for test coverage

1.3.0

24 Apr 14:42
1.3.0
Compare
Choose a tag to compare

Changed

  • Switched dependency from ocramius/package-versions to its fork composer/package-versions-deprecated, to ensure compatibility with both PHP 7.* and Composer 2 (see #13, thanks @dereuromark and @Seldaek)

1.2

13 Jun 13:24
1.2
75c7eff
Compare
Choose a tag to compare
1.2

Added

  • Add Version::__getShortCommitHash() method (see #8, thanks @emodric)

1.1

21 Jan 13:55
1.1
d457344
Compare
Choose a tag to compare
1.1

Added

  • Add Version::__toString() method (see #5)

1.0.3

30 Nov 22:07
1.0.3
3c8487f
Compare
Choose a tag to compare

Changed

  • Require at least ocramius/package-versions 1.2 to fix root package version (see #3)

Known issues

  • Use this package with Composer >= 1.5.3 to fix root package version when in version-branch (see #4)

1.0.2

06 Sep 15:50
1.0.2
cda6ed1
Compare
Choose a tag to compare

Added

  • Add PHP 7.2 to the build matrix for official support

Changed

  • Require at least ocramius/package-versions 1.1.3 to avoid issues when removing the package (see this issue)

1.0.1

06 Jul 15:14
1.0.1
1463537
Compare
Choose a tag to compare

Changed

  • Make the package lightweight thanks to the .gitattributes file (#1)

1.0

06 Jul 09:05
1.0
dc0eadb
Compare
Choose a tag to compare
1.0

First release

Changed

  • Jean85\PrettyVersions wraps the PackageVersions\Versions class and returns a Jean85\Version object
  • The Jean85\Version has these methods available:
    • public function getPrettyVersion(): string
    • public function getFullVersion(): string
    • public function getVersionWithShortCommit(): string
    • public function getPackageName(): string
    • public function getShortVersion(): string
    • public function getCommitHash(): string