Pretty Package Versions 2.0.1

This is a republished tag announcement for jean85/pretty-package-versions. You can find the release here.

This small patch handles replaced and provided packages, so that consumers of this library can handle bad requests gracefully.

Below the full changelog:

Added

  • Add VersionMissingExceptionInterface, and two exceptions implementing it: ProvidedPackageException and ReplacedPackageException

Fixed

  • Throw explicit ProvidedPackageException when asking for the version of a package which is provided (was \TypeError before)
  • Throw explicit ReplacedPackageException when asking for the version of a package which is replaced (was \TypeError before)