Skip to content

2.3.0

Latest

Choose a tag to compare

@mnsami mnsami released this 13 Oct 23:18
66df9d4

Added

  • vendor:acme in installer-paths as an alias of acme/*, the spelling used by composer/installers and oomphinc/composer-installers-extender (#58).
  • ? and [...] glob syntax in patterns: any pattern containing *, ? or [ is matched with fnmatch() (#62).
  • extra.plugin-modifies-install-path: true, so Composer loads this plugin before other plugins (#55).
  • Integration test suite that boots a real Composer against fixture packages; CI on PHP 8.1–8.5, Windows and the lowest supported Composer, PHPStan at level max, Dependabot, weekly scheduled run (#63, #64).
  • README: Troubleshooting section, precedence and vendor: notes in the oomphinc migration guide, guidance on directories left behind after a path change (#56, #58, #60).
  • CHANGELOG.md, SECURITY.md, .gitattributes export-ignore for dist archives, and homepage, support, funding in composer.json (#65).

Changed

  • Minimum Composer is 2.3 (composer-plugin-api ^2.3). Composer 2.0–2.2 declare supports() untyped and the plugin fataled at activation there; the resolver now refuses to install it instead (#54).
  • Pattern matching is case-insensitive, and the resolved path no longer carries a trailing slash (#62).
  • Behaviour change: an unknown {$variable} or an unknown flag in a path template throws InvalidArgumentException naming the placeholder. Previously an unknown variable resolved to an empty string and an unknown flag was ignored, which sent every matching package into one directory (#59).
  • installer-name must be a string to override {$name}; PackageUtils::getPackageInstallPath() accepts the PartialComposer that Composer's installers hold (#64).

Removed

  • Dead PEAR support: PearPlugin, PearInstaller and the PearPlugin entry point in extra.class. Composer\Installer\PearInstaller does not exist in any Composer 2, so the plugin never registered anything (#61).

Fixed

  • A non-array extra.installer-types (a plain string) threw a TypeError on every Composer command; a string is now accepted as a single type (#57).
  • The absolute-path guard also rejects backslash-leading and UNC paths (#62).
  • README examples /tools/{$name}/ and ../modules/{$name}/ were rejected by the path guards, and the "Why" section wrongly claimed packages must depend on composer/installers (#56).

Full changelog: https://github.com/mnsami/composer-custom-directory-installer/blob/master/CHANGELOG.md