Releases: Snowflyt/tinyeffect
Releases · Snowflyt/tinyeffect
v0.3.4
- 🦄 refactor(type): Support
EffectedDraft
in.pipe(...fs)
. (a44cc7f) - 🦄 refactor(type): Export
EffectedDraft
for 3rd-party libraries integration. (a44cc7f) - 🦄 refactor(type): Preserve effect type in
ExcludeEffect
if no modification is needed to make type information more readable. (a44cc7f) - 🦄 refactor(type): Improve type inference for
.handle()
. (a44cc7f) - 🐞 fix(type): Fix type inference of nested default effects for
.provide()
and.provideBy()
. (a44cc7f) - 🐞 fix(type): Correct return type of the
defaultHandler
property forDefault
. (a44cc7f) - 📃 docs(README): Rename
effected
parameter toself
in effect handlers to avoid confusion. (a44cc7f) - 📃 docs(README): Add an example to build a configurable logging system with algebraic effects. (848ac31)
v0.3.3
v0.3.2
- ✨ feat: Support running asynchronous effected programs in parallel (concurrency) by adding
Effected.all
andEffected.allSeq
. (fb2c5ac) - ✨ feat: Added pipeline-style transformation methods:
.map()
,.flatMap()
,.as(value)
and.asVoid()
to enhance functional composition patterns. (c9fc3b9) (43fcaf2) - 🦄 refactor: Improve readability of error messages. (d75a710)
- 🐞 fix: Fixed
.andThen()
method to properly initialize iterators when executed multiple times. This resolves an issue where subsequent runs of effected programs could produce incorrect results or fail unexpectedly. (374108d) - 🐞 fix(type): Fix return type inference of
.andThen()
when handler function returns a mix of effected programs and simple values. (f3c8c3a) - 📃 docs(README): Improve documentation for pipeline syntax. (655a3be)
v0.3.1
v0.3.0
v0.2.1
v0.2.0
- ✨ feat (BREAKING CHANGE):
effect
now returns an effected function instead of a gnerator function for consistency. Similarly,effectify
now returns anEffected
instance instead of a generator. - 🎈 perf: The performance of nested effects (handling effects within another effected program or other effects) has been significantly improved, now achieving up to 20x faster execution than before.