Skip to content

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.


[0.2.0] - 2025-04-26

Added

  • Introduced the equals method for Maybe, Either, and Result types to compare instances of these types based on their internal values.
  • Added curried functions for equals to allow for easier composition and usage:
  • equalsM for Maybe.
  • equalsE for Either.
  • equalsR for Result.
  • New helper functions for easy comparison between monadic values.

Changed

  • Refined the API for better type inference and consistency across all functional types (Maybe, Either, Result).
  • Improved type safety for curried functions in all monads.

[0.1.0] - 2025-04-23

Added

  • Initial release of holo-fn with core monads: Maybe, Either, and Result.
  • Maybe monad: Just, Nothing, and helper functions like fromNullable.
  • Either monad: Left, Right, tryCatch, fromPromise, fromAsync.
  • Result monad: Ok, Err, fromThrowable, fromPromise, fromAsync.
  • Added curried handlers for map, chain, unwrapOr, and match for better composition and functional pipelines:
  • mapE, chainE, unwrapOrE, and matchE for Either.
  • mapM, chainM, unwrapOrM, and matchM for Maybe.
  • mapR, chainR, unwrapOrR, and matchR for Result.