File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed
Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,34 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
77---
88
9- ## [ Unreleased ]
9+ ## [ 1.2.0 ] ( https://github.com/richecr/holo-fn/releases/tag/v1.2.0 ) - 2025-12-08
1010
1111### Added
12+ - ** ` tap ` helper function** : Executes side-effects in functional pipelines without altering data flow.
13+ - Generic utility that works with any type (monads, primitives, objects, arrays).
14+ - Useful for debugging, logging, metrics, and error tracking.
15+ - Example:
16+ ``` ts
17+ pipe (
18+ just (42 ),
19+ tap (x => console .log (' Value:' , x )),
20+ map (x => x * 2 )
21+ );
22+ ```
23+
24+ - ** ` inspect ` helper function** : Logs values with optional labels for debugging.
25+ - Specialized version of ` tap ` that automatically uses ` console.log ` .
26+ - Convenient for quick debugging with optional label prefixes.
27+ - Example:
28+ ``` ts
29+ pipe (
30+ just (42 ),
31+ inspect (' After init' ), // Logs: "After init: Just(42)"
32+ map (x => x * 2 ),
33+ inspect (' Final result' )
34+ );
35+ ```
36+
1237- ** ` all ` combinator for ` Maybe ` , ` Result ` , and ` Either ` ** : Combines an array of monads into a single monad containing an array of values.
1338 - ` Maybe ` : Returns ` Just ` with all values if all are ` Just ` , or ` Nothing ` if any is ` Nothing ` .
1439 - ` Result ` /` Either ` : Collects ** all** errors if any fail.
You can’t perform that action at this time.
0 commit comments