release 1.0.1

This commit is contained in:
Kacper Donat 2026-10-28 10:05:43 +01:00
parent 4ad971b431
commit ab3034e2be

View File

@ -1,5 +1,17 @@
# Changelog
## 1.0.1
### Changed
- `sort()` without a comparator and `sortBy()` sort natively, comparing like `<=>`. Enums used directly as the sort key (or as the values for `sort()`), which `<=>` can't order, are now grouped by case, in an unspecified order, and placed after the other values (before them in descending order). Enums nested inside arrays are unaffected.
### Fixed
- `sortBy()` and `sort()` are several times faster: they use PHP's native sort instead of `usort()` with a userland comparator.
- `compile()` of a closure of a curried function (`$curried(...)`), alone or in a pipeline, keeps currying instead of throwing `ArgumentCountError`.
- `filter()` on arrays with a callback taking its value by reference (`fn (&$value) => ...`) no longer emits "must be passed by reference" warnings.
## 1.0.0
### Breaking