Releases: Ocramius/PackageVersions
1.9.0
This release allows ocramius/package-version
to skip writing the Version
class when the
vendor directory is locked/not writable.
Total issues resolved: 2
1.8.0
1.7.0
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
1.6.0
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
1.4.2
1.4.1
1.5.1
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
1.5.0
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
- 81: added docs to
Versions::VERSION
thanks to @staabm - 82: Use
vendor/composer/installed.json
and fallback to using composer.lock thanks to @9ae8sdf76 - 83: Update to
doctrine/coding-standard
v6.0.0 thanks to @carusogabriel - 87: Added experimental github sponsorship/funding links through tidelift thanks to @Ocramius
- 88: Simplify autoloader notes thanks to @weshooper
- 89: Provide
@psalm-param key-of<self::VERSIONS>
type-check for downstream thanks to @Ocramius - 91: dump the version class on
composer dump-autoload
thanks to @staabm - 92: Failures on PHP 7.4 build due to
ReflectionType#__toString()
deprecations thanks to @Ocramius - 93: updated dependencies thanks to @staabm
- 95: the
POST_AUTOLOAD_DUMP
event also happens on composer install/update thanks to @staabm - 96: #90 add psalm static analysis tests thanks to @Ocramius
- 99: Bumped dependencies, dropped PHP 7.2.0 support, simplified build matrix thanks to @Ocramius
1.4.0
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
- 65: Use Doctrine Coding Standard thanks to @Majkl578
- 69: write VersionClass atomic thanks to @SimonHeimberg
- 70: Replaced packagist pre-release with tidelift badge thanks to @Ocramius
- 75: Added professional support notes thanks to @Ocramius
- 78: Test against PHP 7.3 and 7.4snapshot, drop nightly thanks to @Majkl578
- 79: Fixed writeVersionClassToFile if file already exists and not writable thanks to @SLaVeZ
1.3.0
In this release:
- Support for
self.version
andreplace
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
- 55: Consider adding Versions::getRootPackageVersion() thanks to @rybakit
- 56: Expose root package name thanks to @rybakit
- 57: Support Composers "replaces" config, important for CI in mono repos thanks to @ostrolucky
- 58: Bump dependencies, improve mutation testing thanks to @Ocramius
- 59: Parse self.version in replaced packages thanks to @Jean85