Releases: nexendrie/utils
Releases · nexendrie/utils
Version 1.10.0
A new version of Utils is out. It adds new method Numbers::clamp, it is going to replace method range.
For complete list of changes since previous version, see CHANGELOG.md.
Version 1.9.1
A new version of Utils is out. Constructors of static classes are now private. nette/utils was removed from dependencies so this package now has no dependencies. Return type of method TCollection::fromArray was changed from self to static (technically it is a BC break but the expected impact is minimal/none).
For complete list of changes since previous version, see CHANGELOG.md.
Version 1.9.0
Changelog:
- raised minimal version of PHP to 8.1
- possible BC break: updated signature of TCollection::offsetGet() for PHP 8.1
- added class Enums
Version 1.8.1
Changelog:
- fixed compatibility with PHP 8.1
Version 1.8.0
Changelog:
- raised minimal version of PHP to 7.4
- used typed properties (possible BC break)
Version 1.7.0
Changelog:
- dropped support for Nette 2.4
- raised minimal version of PHP to 7.3
Version 1.6.1
Changelog:
- allowed Nette 3
Version 1.6.0
Changelog:
- added optional parameter $count to (T)Collection::hasItems()
- marked classes Constants, Intervals and Numbers as final (possible BC break)
- allowed to filter by return value of item's method in collections
Version 1.5.1
Changelog:
- fixed (T)Collection::removeByFilter() failing when multiple items match the filter
Version 1.5.0
Changelog:
- added methods getItem, removeByFilter, getIndex to (T)Collection
- raised minimal version of PHP to 7.2
- allowed to filter by class in collections