2.4.0
版本发布时间: 2022-08-16 22:16:10
composer/composer最新发布版本:2.7.9(2024-09-04 20:49:05)
Read the Composer 2.4 Release Announcement for more details on the release highlights.
Complete Changelog
- Added bash completions for Composer commands, package names, etc (see how to setup) (#10320)
- Added
bump
command to bump requirements to the currently installed version (#10829) - Added
audit
command to check for known security vulnerabilities in installed packages (#10798, #10898) - Added automatic auditing of security vulnerabilities after
update
is done, can be overridden with--no-audit
(#10798, #10898) - Added
--audit
toinstall
command to also do an audit (#10798, #10898) - Added
json
format output to thecheck-platform-reqs
command (#10979) - Added GitLab 15+ token refresh support (#10988)
- Added
r
alias torequire
command (#10953) - Added
composer/class-map-generator
dependency to replaceComposer\Autoload\ClassMapGenerator
which is now deprecated (#10885) - Added
--locked
todepends
/prohibits
commands (#10834) - Added
--strict-psr
flag todump-autoload
command to fail the process if PSR violations were detected, useful for CI (#10886) - Added
COMPOSER_PREFER_STABLE
andCOMPOSER_PREFER_LOWEST
env vars to turn on--prefer-stable
/--prefer-lowest
onupdate
andrequire
command, useful for CI (#10919) - Added support for temporary update constraints on all packages (now also including non-root dependencies) (#10773)
- Added
--major-only
flag to theoutdated
command to show only packages with major version updates (#10827) - Added sections for direct and transitive deps in
outdated
command output (#10779) - Added ability for cache GC to clean up
vcs
andrepo
caches (#10826) - Added
--gc
flag toclear-cache
to only trigger a garbage collection instead of clearing everything (#10826) - Added signal (SIGINT, SIGTERM, SIGHUP) handling to ensure we wait for the child process to exit before Composer exits to avoid dropping output (#10958)
- Added prompt suggesting using
--dev
when requiring packages withdev
/testing
/static analysis
keywords present (#10960) - Added warning in
require
,init
andcreate-project
commands when the latest version of a package cannot be used due to platform requirements (#10896) - Fixed
COMPOSER_NO_DEV
so it also works withrequire
andremove
's--update-no-dev
(#10995)
1、 composer.phar 2.68MB
2、 composer.phar.asc 589B