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
, andResult
. Maybe
monad:Just
,Nothing
, and helper functions likefromNullable
.Either
monad:Left
,Right
,tryCatch
,fromPromise
,fromAsync
.Result
monad:Ok
,Err
,fromThrowable
,fromPromise
,fromAsync
.- Added curried handlers for
map
,chain
,unwrapOr
, andmatch
for better composition and functional pipelines: mapE
,chainE
,unwrapOrE
, andmatchE
forEither
.mapM
,chainM
,unwrapOrM
, andmatchM
forMaybe
.mapR
,chainR
,unwrapOrR
, andmatchR
forResult
.