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:ProvidedPackageExceptionandReplacedPackageException
Fixed
- Throw explicit
ProvidedPackageExceptionwhen asking for the version of a package which is provided (was\TypeErrorbefore) - Throw explicit
ReplacedPackageExceptionwhen asking for the version of a package which is replaced (was\TypeErrorbefore)