Skip to content

Releases: loophp/collection

2.0.1

04 Aug 17:17
Compare
Choose a tag to compare

New stuff

Improvements

  • Use a CacheIterator iterator. (1dcd9eb)

2.0.0

03 Aug 08:10
Compare
Choose a tag to compare
Update README.

1.1.0

07 Jul 08:58
Compare
Choose a tag to compare

New

  • Pass the $collection object by default to the static function returned by the Operation object. Rename Operation::on() in Operation::__invoke().
  • Add new typed factories.
  • Leverage the variadic arguments wherever we can.
  • Add Frequency operation.
  • Add Wrap and Unwrap operations.
  • Add Group operation.
  • Add Since operation.
  • Add FoldLeft and FoldRight transformations.
  • Add Falsy/Truthy/Nullsy transformations.
  • Add Transpose operation.
  • Add Column operation.
  • Add Shuffle operation.
  • Add Window operation.
  • Add Loop operation.
  • Let the collection use a resource of type stream in its constructor.

Updated operations

  • Update Append, Merge and Prepend operation.
  • Update Chunk operation.
  • Update Collapse operation.
  • Update Combination operation.
  • Update Cycle operation.
  • Update Loop operation, use keys.
  • Update Permutate operation.
  • Update Product operation.
  • Update Reduction operation.
  • Update Reverse operation.
  • Update RSample operation.
  • Update Scale operation.
  • Update Shuffle operation.
  • Update Slice operation.
  • Update Sort operation.
  • Update Split operation.
  • Update Tail operation.
  • Update Times operation.
  • Update Walk operation.
  • Update Window operation.
  • Update Zip operation example.

Code quality

  • Get rid of all PSalm warnings.
  • Minor else statements removal.
  • Refactor the operations.
  • Update PHPDoc.
  • Add Dependabot configuration.
  • Fix PHPStan issues.
  • Enable PSaslm and its badge.
  • Update GrumPHP configuration.
  • Move files in their proper directory.
  • Code style update.

Miscellaneous

  • Update FUNDING.yml file.
  • Add nunomadudo/phpinsights report.
  • Increase Grumphp timeout.
  • Remove PHP 8 from CI.
  • Update badges.
  • Update README file.
  • Update documentation.

1.0.10

08 Jan 13:29
Compare
Choose a tag to compare
Fix the behavior of the ::apply() operation.

1.0.8

06 Jan 17:55
Compare
Choose a tag to compare
Increase default Grumphp timeout to avoid useless failures in CI.

1.0.3

25 Dec 08:37
Compare
Choose a tag to compare

Fix nasty bug in the ClosureIterator that prevent the Iterator to be rewinded properly, giving inconsistency results.

1.0.2

23 Dec 20:21
Compare
Choose a tag to compare
  • New methods:
    • Scale
    • Tail
    • Reverse
  • Switch from Travis CI to Github Actions.
  • Add more tests.
  • Update codestyle, phpdoc and fix PHPStan Warnings so we can stick to Level 7.