Skip to content

2.0.0

Choose a tag to compare

@laminas-bot laminas-bot released this 13 Nov 15:11
· 210 commits to 3.3.x since this release
2.0.0
fdb6c4b

Release Notes for 2.0.0

Backwards incompatible release (major)

Added

  • Added support for PHP 8.1
  • Added support for laminas/laminas-cache v3
  • Added support for laminas/laminas-component-installer to integrate better with laminas-mvc or mezzio projects
  • Added PSR-16 and PSR-6 support without the need to provide psr as an option

Fixed

  • Fixed the return-type annotation from BlackHole#getAvailableSpace since float won't be returned

Changed

  • The return value of the methods BlackHole#checkAndSetItem, BlackHole#replaceItems, BlackHole#replaceItem, BlackHole#addItems, BlackHole#addItem, BlackHole#setItems, BlackHole#replaceItem are now based on the writable option passed to the adapter.
  • BlackHole#removeItems will now return an empty array which states that the removal was successful
  • BlackHole#getAvailableSpace will now return PHP_INT_MAX
  • BlackHole#clearByNamespace will now always return true. If called with an empty prefix, an InvalidArgumentException will be thrown
  • BlackHole#clearByPrefix will now always return true. If called with an empty prefix, an InvalidArgumentException will be thrown
  • BlackHole#clearExpired will now always return true
  • BlackHole#flush will now always return true
  • BlackHole#optimize will now always return true
  • BlackHole#setTags will now always return true
  • BlackHole#clearByTags will now always return true
  • BlackHole#getTotalSpace will now return PHP_INT_MAX

Removed

  • Removed support for laminas/laminas-cache v2
  • Removed BlackHoleOptions-class along with the psr option

Breaking Changes

  • Marked BlackHole-Adapter as final

2.0.0

  • Total issues resolved: 0
  • Total pull requests resolved: 2
  • Total contributors: 1

BC Break,Enhancement