All notable changes of the jean85/pretty-package-versions
package are documented in this file using the
Keep a CHANGELOG principles.
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.
- Add
PrettyVersions::getRootPackageName
as a compatibility layer to be used in place ofPackageVersions\Versions::ROOT_PACKAGE_NAME
, which would be a transient dependency (#23) - Add
PrettyVersions::getRootPackageVersion
, a shortcut toPrettyVersions::getVersion(PrettyVersions::getRootPackageName())
(#23)
- Roll back to use
composer/package-versions-deprecated
as in 1.3 (see #21 & #22)
- Drop support for Composer 1
- Drop dependency on any package
- Drop Scrutinizer, use Codecov for test coverage
- Switched dependency from
ocramius/package-versions
to its forkcomposer/package-versions-deprecated
, to ensure compatibility with both PHP 7.* and Composer 2 (see #13, thanks @dereuromark and @seldaek)
- Add
Version::__getShortCommitHash()
method (see #8, thanks @emodric)
- Add
Version::__toString()
method (see #5)
- Require at least
ocramius/package-versions
1.2 to fix root package version (see #3)
- Use this package with Composer >= 1.5.3 to fix root package version when in version-branch (see #4)
- Add PHP 7.2 to the build matrix for official support
- Require at least
ocramius/package-versions
1.1.3 to avoid issues when removing the package (see this issue)
- Make the package lightweight thanks to the
.gitattributes
file (#1)
First release
Jean85\PrettyVersions
wraps thePackageVersions\Versions
class and returns aJean85\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