PackageVersions

Composer addon to efficiently get installed packages' version numbers

MIT License

Downloads
70.7M
Stars
3.2K
Committers
25

Bot releases are hidden (Show)

PackageVersions - 1.10.0

Published by Ocramius over 4 years ago

This release increases the minimum supported version of composer to v2 (currently in alpha,
but you should REALLY try it out).

By doing so, the code has been massively reduced, and a few relevant bugs around the detected
installed package versions have been squished in the process.

In order to upgrade, you must first have composer v2 installed, which you can get by runnning
its self-update tooling: composer self-update --2.

You can look at the in-depth thought-process behind this patch at https://www.twitch.tv/videos/640893205

Total issues resolved: 5

PackageVersions - 1.9.0

Published by Ocramius over 4 years ago

Build Status

This release allows ocramius/package-version to skip writing the Version class when the
vendor directory is locked/not writable.

Total issues resolved: 2

PackageVersions - 1.8.0

Published by Ocramius over 4 years ago

Build Status

This release adds forward-compatibility for composer/composer:2.0.0.

Total issues resolved: 1

PackageVersions - 1.7.0

Published by Ocramius over 4 years ago

Build Status

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

PackageVersions - 1.6.0

Published by Ocramius over 4 years ago

Build Status

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

PackageVersions - 1.4.2

Published by Ocramius almost 5 years ago

Build Status

Total issues resolved: 1

PackageVersions - 1.4.1

Published by Ocramius almost 5 years ago

Build Status

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

PackageVersions - 1.5.1

Published by Ocramius over 5 years ago

Build Status

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

PackageVersions - 1.5.0

Published by Ocramius over 5 years ago

Build Status

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

PackageVersions - 1.4.0

Published by Ocramius over 5 years ago

Build Status

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

PackageVersions - 1.3.0

Published by Ocramius over 6 years ago

Build Status

In this release:

  • Support for self.version and replace composer settings and constraints,
    which are now correctly considered and substituted with their actual versions.
  • A new PackageVersions\Versions::ROOT_PACKAGE_NAME constant, which is
    populated with the name of the root package, if available.
  • Dropped support for PHP 7.0: please upgrade to PHP 7.1
  • Improved mutation testing

Total issues resolved: 5

PackageVersions - 1.2.0

Published by Ocramius almost 7 years ago

Build Status

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

PackageVersions - 1.1.3

Published by Ocramius about 7 years ago

Build Status

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

PackageVersions - 1.1.2

Published by Ocramius almost 8 years ago

Build Status

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

PackageVersions - 1.1.1

Published by Ocramius about 8 years ago

Build Status

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

PackageVersions - 1.1.0

Published by Ocramius about 8 years ago

Build Status

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

PackageVersions - 1.0.4

Published by Ocramius over 8 years ago

Build Status

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

PackageVersions - 1.0.3

Published by Ocramius over 8 years ago

Build Status

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

PackageVersions - 1.0.2

Published by Ocramius over 8 years ago

Build Status

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

PackageVersions - 1.0.1

Published by Ocramius over 8 years ago

Build Status

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