Repository navigation
Releases
Releases · temp/fnc
1.1.0
1.0.0
1.0.0 (2026-11-03)
- feat!: Release the reviewed API as 1.0 (b3b8cbc)
Bug Fixes
- Correct edge cases found in a review of the library (738d4e9)
Features
- Add around 50 functions, separate concat from merge, deprecate contains (2c43637)
- Align divide and arity with Ramda (5fd56cf)
BREAKING CHANGES
- Compared to 0.7, the following behaviour changed:
- PHP 8.4 or later is required.
- equals() compares lists strictly (order and count matter), objects only
if they are of the same class, never an object with an array, and
closures by identity. - divide() treats null as 0 and returns INF, -INF or NAN for a division
by zero instead of null. - The arity of callables is the number of their required parameters, so
applySpec, ifElse, flip and pipe curry callables with optional
parameters with fewer arguments. Use curryN() or flip($fn, $arity). - concat() returns a list (keys are dropped) or a string; use merge()
for arrays with string keys. - prop() only reads public properties and returns null for others.
- filter() and reduce() pass the key only to callbacks that accept it.
- pipe() and compose() throw InvalidArgumentException without functions.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com