Skip to content

Releases: BapCat/Collection

8.1+

Choose a tag to compare

@LordMonoxide LordMonoxide released this 12 Aug 12:39

This release supports PHP 8.1+. Support for older versions is dropped.

Fixes 8.1 deprecation issues.

PHP 8.1

Choose a tag to compare

@LordMonoxide LordMonoxide released this 12 Oct 18:46

This release supports PHP 8.1+. Support for older versions is dropped.

PHP 7.4/8.0+ Support

Choose a tag to compare

@LordMonoxide LordMonoxide released this 19 Feb 23:15
a82188a

This release officially supports PHP 7.4 and PHP 8.0+. Support for older versions is officially dropped.

Major release: new features; breaking changes

Choose a tag to compare

@LordMonoxide LordMonoxide released this 09 Mar 16:23

New:

  • firstPair, lastPair: equivalent to first and last but returns the key as well
  • collect: global function in the BapCat\Collection namespace, alias for new Collection(...)
  • join: implodes a collection into a string
  • isEmpty: alias for count() === 0
  • toArray: use instead of all
  • combine: see PHP's array_combine

Changed:

  • Deprecated all in favour of toArray
  • keys/values now return collections

Hotfix: ReadableCollection `$lazy` not defined

Choose a tag to compare

@LordMonoxide LordMonoxide released this 27 Feb 19:44
Merge pull request #14 from BapCat/master.CF.#13.define-lazy

Define vars (closes #13)

Testing; code fixes

Choose a tag to compare

@LordMonoxide LordMonoxide released this 24 Feb 13:59
Merge pull request #11 from BapCat/master.CF.#5.tests

Most testing complete [#5]

Bug fixes; new ways to access data; better testing

Choose a tag to compare

@LordMonoxide LordMonoxide released this 19 Feb 14:12

This release adds the clear method to completely clear a writable collection, and the take method to simultaneously get and remove (note: not atomically).

Initial Release

Choose a tag to compare

@LordMonoxide LordMonoxide released this 22 Nov 18:30
0.1

Make test scripts executable