Skip to content

Releases: vaimo/composer-patches

6.0.1

02 Mar 08:15

Choose a tag to compare

The changes here are only done for version 6 of the patcher, since as mentioned in #147 the changes will not be compatible with version 5.

Maintenance

  • Updated dev dependency to vaimo/composer-changelogs to allow installing version with equal PHP version support as in version 6 of the patcher
  • Removed workarounds in Github workflows to get around vaimo/composer-changelogs incompatibilities since the package now works as is

6.0.0

03 Feb 05:55
cbd8bed

Choose a tag to compare

  • Added support for symfony/console 8: #146
  • Adding the support introduced breaking changes, so dropped PHP 7.0 and symfony/console 3 support and bumped up the major version of the patcher
  • Composer 1 support also removed from composer.json as we're not currently able to guarantee support for it, recommended to use the older versions of the patcher (for example 5.5.4) if this is still needed
  • Version 5 is now maintained in release/5 branch
  • Github workflows have been updated to run the testsuite against PHP 8.5

5.6.0

29 Jan 13:33
f06b94a

Choose a tag to compare

  • Added support for symfony/console 7: #139
  • Dropped Composer 1 from Github workflows of the repository
  • Updated testsuite and dependency checks ran in workflows to take symfony/console 7 into account

5.5.4

01 Aug 12:32
fa96411

Choose a tag to compare

5.5.3

30 Jul 11:05
2ed64d2

Choose a tag to compare

  • Fixed issue reported in #122 where Composer version comparisons did not work in preview builds of Composer: #134

5.5.2

18 Jul 11:01

Choose a tag to compare

  • Fixing the issue reported in #118, #113 and #100 related to incorrect handling of promises during patching, which caused installation of package to be attempted before the package was even downloaded: #124, #119

5.5.1

14 Jul 09:41
311cf7d

Choose a tag to compare

Further adjusting the workaround created for loophp/phposinfo package backwards compatibility (#133), the compatibility.php loaded through Composer autoload is no good in this context since the workaround is needed also before autoloader files are created.

Note: due to the nature of the change, updating the package to this version and above will require using no-plugins flag: https://github.com/vaimo/composer-patches?tab=readme-ov-file#upgrades

5.5.0

14 Jul 07:48
9dd06f1

Choose a tag to compare

  • Added support for negated dependencies: #129, #131

5.4.0

04 Jun 12:21

Choose a tag to compare

Most changes are related to #125

Maintenance

  • Added Github workflows config file, that runs ci:build command from the package against PHP versions 7.0 - 8.4. Different Composer versions also included.
  • Dropped sebastian/phpcpd from dev dependencies since this is abandoned and will not work with PHP 8.4, cleaned out all references from testing scripts.
  • Added explicit version requirement for symfony/console, since the code in the package will not work with versions 7 and above of symfony/console.
  • Updated bin/analyse-dependencies script to always run as if it was given 'current' in the parameters, since looping through different PHP versions and installing packages will not work anymore with the big differences between PHP versions.
  • Updated whitelists related to bin/analyse-dependencies script, since the bigger range of PHP versions means different versions of the dependencies.
  • Updated bin/test command to ignore Composer 1 deprecation warnings since these are not relevant during the tests.
  • Updated bin/test command to expect Composer 2 related outputs in .output files, while Composer 1 related outputs are expected to be in .output-v1.
  • Updated some test scenarios related to bin/test to ignore unhandled promise rejection errors for now, which come up in Composer >2.7.
  • Updated documentation a little bit, mainly cleaned out invalid whitespaces (which might show up weirdly depending on IDE) and updated development guidelines with few more details

Fix

  • Compatibility with PHP 7.0 restored, while still including support for PHP 8.4. Instead of explicitly marking the nullable parameters, dropped the explicit types from the parameters altogether.
  • Adjusted the loophp/phposinfo compatibility approach taken in 5.3.1 to autoloader based one, since the previous approach didn't work with the testsuite.
  • Fixed issue with bin/analyse-dependencies command not understanding empty autoloader paths of packages.
  • Fixed issue with bin/test command related to Composer version detection, which caused execution of queue_update and queue_install commands to not work correctly.
  • Fixed issue with Composer file manipulation during bin/test command, where only certain packages were meant to be modified with underscore prefix, but trailing separator caused the prefix to apply on all packages, which caused some side effects.
  • Fixed some loose issues found by bin/analyse command, mainly unnecessary else usages and excessively long line lengths
  • Fixed PHP >8.1 incompatibility with patch:validate command, where array_map and reset function usage together caused the command to break
  • Included alternative fix suggestion for #110 and updated test scenarios to verify the fix

5.3.1

03 Jun 09:45
55eb5a5

Choose a tag to compare

Includes following changes from #127:

  • Fixes issue where package can be installed with loophp/phposinfo 1.6, despite the package code having hard references to 1.7. The package should now work with both 1.6 and 1.7.
  • Fixes accidentally missed backwards incompatibility added in 5.3.0, which would've locked the package only to PHP 7.4 and above.
  • Updated minimum PHP version requirement to 7.1 from 7.0, since version 5.2.1 added PHP 8.4 compatibility changes that are not compatible with PHP 7.0.