Composer addon to efficiently get installed packages' version numbers
MIT License
Bot releases are visible (Hide)
Published by Ocramius over 4 years ago
This release allows ocramius/package-version
to skip writing the Version
class when the
vendor directory is locked/not writable.
Total issues resolved: 2
Published by Ocramius over 4 years ago
This release adds forward-compatibility for composer/composer:2.0.0
.
Total issues resolved: 1
Published by Ocramius over 4 years ago
This release adds @psalm-pure
to the generated version of
PackageVersions\Versions
. Please note that if you run your
composer installation with --no-scripts
and --no-plugins
, then the fallback
version of PackageVersions\Versions
will be in use, and
therefore purity is not guaranteed.
Total issues resolved: 1
Published by Ocramius over 4 years ago
This release upgrades dependencies, improves testing/static analysis checks, and moves
the package to PHP 7.4 as a minimum required engine version.
Total issues resolved: 4
Published by Ocramius almost 5 years ago
Published by Ocramius almost 5 years ago
This release ports the ability to rely on installed.json
when composer.json
is not available
to the stable 1.4.x
branch.
Total issues resolved: 1
Published by Ocramius over 5 years ago
This release fixes an issue leading FallbackVersions
(used when installing with
--no-scripts
) to fail to detect composer.lock
or installed.json
locations
due to getcwd()
misbehavior during composer installation.
Total issues resolved: 2
composer.lock
nor installed.json
when using package with --no-scripts
thanks to @PhilETaylorinstalled.json
and composer.json
thanks to @OcramiusPublished by Ocramius over 5 years ago
This release improves discovery of versions when composer.lock
cannot be
located, falling back to installed.json
(which is at a fixed relative filesystem
location).
We removed duplicate plugin runs during install/update, and runs
the plugin only during the POST_AUTOLOAD_DUMP
event.
The minimum supported PHP version is now PHP 7.3.0.
PHP 7.4 compatibility issues with ReflectionType#__toString()
have been fixed.
Static analysis additions will also now start highlighting issues in downstream
projects using vimeo/psalm
(at build-time) when non-existing dependency
lookups are performed against PackageVersions\Versions::getVersion()
, preventing
useless runtime exceptions.
Total issues resolved: 12
Versions::VERSION
thanks to @staabmvendor/composer/installed.json
and fallback to using composer.lock thanks to @9ae8sdf76doctrine/coding-standard
v6.0.0 thanks to @carusogabriel@psalm-param key-of<self::VERSIONS>
type-check for downstream thanks to @Ocramiuscomposer dump-autoload
thanks to @staabmReflectionType#__toString()
deprecations thanks to @OcramiusPOST_AUTOLOAD_DUMP
event also happens on composer install/update thanks to @staabmPublished by Ocramius over 5 years ago
This release makes writes to the Version
class file atomic,
and makes sure that access rights/flags are also correctly set when
the versions are being generated.
Total issues resolved: 6
Published by Ocramius over 6 years ago
In this release:
self.version
and replace
composer settings and constraints,PackageVersions\Versions::ROOT_PACKAGE_NAME
constant, which isTotal issues resolved: 5
Published by Ocramius almost 7 years ago
This release was tested against PHP 7.2, improves the CI and testing setup
and improves the displayed version for the root package by using the package
pretty version rather than an unresolved one.
Total issues resolved: 5
Published by Ocramius about 7 years ago
This release fixes a bug that caused PackageVersions to prevent
the composer remove
and composer update
commands to fail when
this package is removed.
In addition to that, mutation testing has been added to the suite,
ensuring that the package is accurately and extensively tested.
Total issues resolved: 3
Published by Ocramius almost 8 years ago
This release fixes a bug that caused PackageVersions to be enabled
even when it was part of a globally installed package.
Total issues resolved: 3
Published by Ocramius about 8 years ago
This release removes the "files"
directive from
composer.json
,
as it is no longer needed for composer install --classmap-authoritative
.
Also, that directive was causing issues with HHVM installations, since
PackageVersions is not compatible with it.
Total issues resolved: 1
Published by Ocramius about 8 years ago
This release introduces support for running composer install --classmap-authoritative
and composer install --no-scripts
. Please note that performance
while using these modes may be degraded, but the package will
still work.
Additionally, the package was tuned to prevent the plugin from
running twice at installation.
Total issues resolved: 10
Published by Ocramius over 8 years ago
This release includes a fix/workaround for composer/composer#5237, which causes ocramius/package-versions
to sometimes generate a Versions
class with malformed name (something like Versions_composer_tmp0
) when running composer require <package-name>
.
Total issues resolved: 2
Published by Ocramius over 8 years ago
This release fixes an issue related to concurrent autoloader re-generation caused by multiple composer plugins being installed. The issue was solved by removing autoloader re-generation from this package, but it may still affect other packages.
It is now recommended that you run composer dump-autoload --optimize
after installation when using this particular package.
Please note that composer (install|update) -o
is not sufficient to avoid autoload overhead when using this particular package.
Total issues resolved: 1
Published by Ocramius over 8 years ago
This release fixes issues related to installing the component without
any dev dependencies or with packages that don't have a source or dist
reference, which is usual with packages defined directly in the
composer.json
.
Total issues resolved: 3
Published by Ocramius over 8 years ago
This release fixes an issue related with composer updates to already installed versions. Using composer require
within a package that already used ocramius/package-versions
caused the installation to be unable to write the PackageVersions\Versions
class to a file.
Total issues resolved: 6
Published by Ocramius over 8 years ago