Skip to content

Releases: tiny-blocks/collection

v1.13.1

17 Jan 12:29
ccf5e8b

Choose a tag to compare

  • Fixes descending sort to always reverse predicate arguments, ensuring correct order.
  • Adds unit test for sorting collection in descending order using a custom predicate.
  • Updates README formatting for consistency.
  • Refactors joinTo method for improved separator handling.

v1.13.0

16 Jan 12:18
8edeea4

Choose a tag to compare

  • Remove redundant array_first/array_last usage in First.php and Last.php operations.
  • Move test classes to Test\TinyBlocks\Collection namespaces for consistency.
  • Update autoload-dev PSR-4 mapping in composer.json.
  • Bump tiny-blocks/mapper to 1.4.* and add tiny-blocks/currency to require-dev.
  • Update Makefile test-file usage instructions.
  • Adjust imports in test files to reflect namespace changes.

v1.12.0

14 Jan 01:31
cb1bbc0

Choose a tag to compare

  • Bump PHP requirement to 8.5 and update dependencies in composer.json and Docker image.
  • Refactor all closures to use static where possible for performance and clarity.
  • Optimize Filter, First, Last, and Find operations for better lazy evaluation and early termination.
  • Enhance Slice to handle negative lengths and improve memory efficiency.
  • Update CI workflow for artifact-based dependency caching and PHP 8.5.
  • Improve Makefile with help target, colorized output, and updated Docker image.
  • Remove unused phpmd references and update .gitattributes.
  • Update documentation and tests to reflect static closures and new behaviors.

v1.11.0

07 Jan 13:53
b9d1cc7

Choose a tag to compare

  • Refactored element retrieval to work reliably with any iterable and avoid direct index access.
  • Removed equivalent code paths detected by mutation testing, improving test quality.
  • Clarified and stabilized the default fallback behavior when an index is not found.
  • Ensure Filter operation ignores null predicates using array_filter.

v1.10.2

27 Dec 13:29
74618c2

Choose a tag to compare

  • Fixes tiny-blocks/mapper dependency version.

v1.10.1

07 Jan 12:05
8f389d5

Choose a tag to compare

  • Fixes composer.json.

v1.10.0

07 Jan 02:52
75549e1

Choose a tag to compare

  • Fixes composer.json.
  • Changes mapping implementation for array and json using tiny-blocks/mapper lib.

v1.9.2

07 Jan 02:32
84a0d74

Choose a tag to compare

  • Fixes execution of composer scripts and updates dependencies.

v1.9.1

29 Dec 19:19
470b6de

Choose a tag to compare

  • Fixes composer.json.

v1.9.0

24 Dec 15:20
a66fc2d

Choose a tag to compare

  • Changes mapping implementation for array and json using tiny-blocks/mapper lib