This release turns the package into a library (previously, it was a composer plugin).
Relevant change is that the PackageVersions\Versions::ROOT_PACKAGE_NAME
constant no longer exists: please use PackageVersions\Versions::rootPackageName()
instead.
This slims down the complexity of the package massively, and removes multiple known bugs.
Total issues resolved: 5
- 107: Unable to install on vboxfs thanks to @alexgit2k
- 138:
src/Packages/Versions.php
changes detected incomposer install
thanks to @Taluu - 142: Option to ignore version of rootPackage thanks to @qurben
- 152: Ocramius/PackageVersions is not compatible with composer configuration "lock: false" thanks to @windaishi
- 155: BC break: removed deprecated
PackageVersions\Versions::ROOT_PACKAGE_NAME
constant thanks to @Ocramius
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
Release Notes for 2.9.0
Feature release (minor)
- Total issues resolved: 0
- Total pull requests resolved: 2
- Total contributors: 2
- 256: Allow PHP 8.4 thanks to @fezfez
- 253: Update dependency composer/composer to ^2.7.0 [SECURITY] thanks to @renovate[bot]
Release Notes for 2.8.0
Feature release (minor)
- Total issues resolved: 0
- Total pull requests resolved: 4
- Total contributors: 2
- 250: Allow php 8.3 thanks to @fezfez
- 249: Update actions/checkout action to v4 thanks to @renovate[bot]
- 245: Update dependency doctrine/coding-standard to v11 thanks to @renovate[bot]
- 244: Update dependency vimeo/psalm to v5 thanks to @renovate[bot]
Release Notes for 2.7.0
Feature release (minor)
- Total issues resolved: 0
- Total pull requests resolved: 6
- Total contributors: 2
- 243: Update dependency composer/composer to ^2.4.4 thanks to @Ocramius
- 242: Update all non-major dependencies, dropping PHP 8.0 support thanks to @renovate[bot]
- 240: Update dependency doctrine/coding-standard to v10 thanks to @renovate[bot]
- 238: Configure Renovate thanks to @renovate[bot]
- 239: Update dependency composer/composer to ^2.2.12 [SECURITY] - autoclosed thanks to @renovate[bot]
- 233: Streamlined CI setup with
laminas/laminas-ci-matrix-action
thanks to @Ocramius
Release Notes for 2.3.0
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
- 164: Update
.gitattributes
to avoid exporting phpcs artifacts thanks to @reedy
Introduced release automation tooling, which should also help us with keeping the changelog up-to-date long-term.
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
- 40: Mutation testing, PHP 7.1 testing thanks to @Ocramius
- 41: Removing this package on install results in file access error thanks to @Xerkus
- 46: #41 Avoid issues when the package is scheduled for removal thanks to @Jean85
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
- 35: remove all temp directories
- 38: Interferes with other projects when installed globally
- 39: Ignore the global plugin when updating local projects
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
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
- 18: Fails when using composer install --no-scripts
- 20: CS (spacing)
- 22: Document the way the require-dev section is treated
- 23: Underline that composer.lock is used as source of information
- 27: Fix incompatibility with --classmap-authoritative
- 29: mention optimize-autoloader composer.json config option in README
- 30: The version class is generated twice during composer update
- 31: Remove double registration of the event listeners
- 32: Update the usage of mock APIs to use the new API
- 33: Fix for #18 - support running with --no-scripts flag
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
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
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
- 11: fix composer install --no-dev PHP7
- 12: Packages don't always have a source/reference
- 13: Fix #12 - support dist and missing package version references
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
- 2: remove unused use statement
- 3: Remove useless files from dist package
- 5: failed to open stream: phar error: write operations disabled by the php.ini setting phar.readonly
- 6: Fix/#5 use composer vendor dir
- 7: Hotfix - #5 generate package versions also when in phar context
- 8: Versions class should be ignored by VCS, as it is an install-time artifact