Composer v2.0.0-RC1 Release Notes

Release Date: 2020-09-10 // over 3 years ago
  • ๐Ÿš€ Not up to date with Composer 2 yet? Check the alpha1 changelog and alpha2 changelog and alpha3 changelog and especially the UPGRADE guide first.

    ๐Ÿš€ Try it out now and get ready for the upcoming stable release

    • โšก๏ธ Use composer self-update --preview to try the latest RC version (2.x).
    • โšก๏ธ Use composer self-update --snapshot to try the latest dev build (2.x).
    • ๐Ÿš€ Use composer self-update --stable to go back to stable releases (1.x for now).
    • ๐Ÿš€ Use composer self-update --1 in CI/scripts if you want to pin Composer to 1.x until you are ready to migrate, this will ensure you stay on 1.x releases even once a 2.0 stable comes out.

    ๐Ÿ”„ Changelog

    • โž• Added more advanced filtering to avoid loading all versions of all referenced packages when resolving dependencies, which should reduce memory usage further in some cases
    • ๐Ÿ“ฆ Added support for many new lib-* packages in the platform repository and improved version detection for some ext-* and lib-* packages
    • โž• Added an --ask flag to create-project command to make Composer prompt for the install dir name, useful for project install instructions
    • โž• Added support for tar in artifact repositories
    • โž• Added a cache-read-only config option to make the cache usable in read only mode for containers and such
    • โž• Added better error reporting for a few more specific cases
    • โž• Added a new optional available-package-patterns attribute for v2-format Composer repositories, see UPGRADE for details
    • ๐Ÿ›  Fixed more PHP 8 compatibility issues
    • ๐Ÿ›  Lots of minor bug fixes for regressions