Skip to content

Releases: baethon/phln

v2.2.0

10 Mar 10:54
Compare
Choose a tag to compare

Added

  • macros:
    • trampoline()
    • hasMethod()

Changed

  • refactored docs
  • support for variadics in compose() and pipe()
  • check for args length using assert() in compose() and pipe()

Fixed

  • PHPStan errors
  • PSR12 incompatibilities

Removed

  • Support for PHP 7.1, 7.2, 7.3

v2.1.0

29 Mar 08:50
Compare
Choose a tag to compare

Added

  • macros:
    • lens()
    • lensIndex()
    • lensPath()
    • lensProp()
    • update()
    • assoc()
    • assocPath()
    • has()
    • over()
    • set()
    • view()
  • Constant monad
  • Identity monad
  • Duck type matcher

Changed

  • map() will support functors

Fixed

  • Tests: check if assertions are enabled

v2.0.0

23 Oct 14:30
Compare
Choose a tag to compare

Added

  • support for macros in Phln
  • P::nAry() / P::unary() / P::binary()
  • Baethon\Phln\CurriedFn
  • Baethon\Phln\FixedArityInterface (supported by P::arity())
  • P::raw()

Changed

  • converted standalone functions to macros
  • P::T() / P::F() returns a function (which returns boolean)
  • P::curry() returns instance of Baethon\Phln\CurriedFn

Removed

  • support for PHP 7.0
  • standalone functions (eg. phln\math\sum) and their constant references