diff --git a/CHANGELOG.md b/CHANGELOG.md index 10d4a34..5bb468a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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