Skip to content

Releases: BrianHenryIE/strauss

v0.19.1

26 Apr 16:53
Compare
Choose a tag to compare

v0.19.0

26 Apr 05:35
Compare
Choose a tag to compare

Mostly a bugfix release but added a little too.

  • Fix: check for array before loop Fix #101 Thanks @leewillis77
  • Fix: filepaths on Windows (still work to do for Windows) PR #100. Thanks @szaleq
  • Update: tidy bin/strauss PR #97 Thanks @szepeviktor
  • Add: scripts/createphar.sh; run tests with project classes + with built phar 34cc59f
  • Allow symfony/console & symfony/finder ^7 for Laravel 11 compatibility PR #102 Thanks @arjen-mediasoep
  • Lint: most PhpStan level 7 eeecbb7

v0.18.0

25 Apr 04:37
Compare
Choose a tag to compare

v0.17.0

19 Mar 03:27
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.16.0...0.17.0

v0.16.0

15 Feb 22:11
Compare
Choose a tag to compare

Breaking change:

  • Do not prefix built-in PHP classes. 1bd20b7 Fix #79

This will affect polyfill libraries, where they define classes with the same name as newer PHP versions.

Fix:

  • Symlinked files autoloaders package used incorrect relative path af1ac75 Fix #78
  • Check individual files autoloaders' files against exclude_from_copy/file_patterns 6ab4064 Fix #67
  • After copying files autoloaders' files and deleting them, Composer's autoloader was trying to autoload the deleted files #34
  • delete_vendor_files now correctly deletes empty subdirs
  • CLI logs are now printing
  • Prefix instanceof ... 67f471a
  • Incorrect order in str_starts_with() was causing duplicate prefixes #34
  • Use league/flysystem ^2.1|^3.0 014faac #39
  • Prevent unnecessary recursion/infinite loop d26e040 Fix #73
  • Don't delete symlinked packages 03b8814, just unlink them 503f110 when deleteVendorPackages is true. #64

v0.15.0

06 Dec 01:50
Compare
Choose a tag to compare

Most of the changes are around using vendor as the target-directory. Fixing #52 @evrpress, #34 @coder-at-heart @pbowyer
And using Strauss to update call sites of the prefixed packages, i.e. to make introducing Strauss to an existing project much easier.

This can be done with strauss --updateCallSites=true or setting the update_call_sites key to true or an array of paths in the Composer / extra / strauss config.

Thanks to @tobeyadr @groundhoggwp

  • Fix: double-prefixing when using phar #70 Thanks @TussendoorHQ
  • Fix: \GlobalClass in PhpDoc replacement was deleting function
  • Fix bug when namespace keyword on same line as <?php. #80 Thanks @justlevine
  • Improve codecoverage.yml workflow. Thanks @szepeviktor
  • Add PhpStan
  • Add basic progress output

Documentation:

  • Add composer dump-autoload note. Thanks @defunctl
  • Add Alternatives section

v0.14.1

02 Nov 02:25
Compare
Choose a tag to compare
  • Move PHP from require to require-dev. Thanks @TimothyBJacobs
  • Ensure namespaced function calls begin with \. Fix #65. Thanks @kodie
  • When useing global class, enable calling via new and old name inside namespace with use Prefix_GlobalClass as GlobalClass;. Fix #66. Thanks @tn3rb
  • Prefix use function MyFunc;. Fix #75. Thanks @danieliser
  • Update symfony/finder version. PR #71. Thanks @szaleq
  • Update symfony/console version.
  • Fix typos. PR #72. Thanks @szepeviktor
  • GitHub Actions tests: change matrix ['7.4', '8.0'] -> ['7.4', '8.0', '8.1', '8.2', '8.3'] and add Windows (aspirational).

v0.14.0

08 Mar 02:08
Compare
Choose a tag to compare
  • Add: delete_vendor_packages option (delete_vendor_files is maybe deprecated now). Thanks @danieliser
  • Breaking: Stop excluding psr/* from file_patterns prefixing. Related to #27
  • Merge in-situ branch (bugs expected). Related to #34 #52 FAO: @pbowyer
  • Add: GPG .phar signing for Phive. Part of the work necessary for #6. Thanks @szepeviktor
  • More fixes from @szepeviktor, thanks again!

v0.13.0

09 Jan 21:55
Compare
Choose a tag to compare
  • Add the ability to store the strauss.phar file in any directory. It must be called from the project root directory containing the composer.json the /extra/strauss config is saved in. @JasonTheAdams

v0.12.0

03 Dec 02:54
Compare
Choose a tag to compare
  • Fix: failed when psr-4 namespace key contained array of directories #37
  • Fix: failed when copying local symlinked repositories #49
  • Change: default target_directory is now vendor-prefixed
  • unset the $strauss_src directory that is used when registering the classmap in the generated autoload.php.