Skip to content

Releases: php-ds/polyfill

v2.0.0

12 Apr 02:09

Choose a tag to compare

Major release: v2.0.0 polyfill for the ds extension.

New

  • Ds\Seq — unified sequence type (replaces Vector and Deque)
  • Ds\Heap — configurable heap with optional comparator (replaces PriorityQueue)
  • Ds\Key — interface for custom key equality (replaces Hashable)
  • Functional constructors: \Ds\seq(), \Ds\map(), \Ds\set(), \Ds\heap()
  • Ds\Pair is now readonly

Removed

  • Ds\Vector, Ds\Deque, Ds\Stack, Ds\Queue, Ds\PriorityQueue
  • Ds\Collection, Ds\Sequence, Ds\Hashable interfaces

Requires PHP >= 8.2.

v1.7.0

19 May 16:44
017fb5c

Choose a tag to compare

What's Changed

  • Added explicit null parameter types for implied nulls by @Bilge in #110
  • Fix incorrect return type description for Set#contains(). by @ZebulanStanphill in #104

New Contributors

Full Changelog: v1.6.0...v1.7.0

v1.6.0

18 May 04:38
ef42c47

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.5.0...v1.6.0