effect@3.12.10
·
1114 commits
to main
since this release
Patch Changes
-
#4412
e30f132Thanks @KhraksMamtsov! - Fix STM unification -
#4403
33fa667Thanks @gcanti! - Duration: fixformatoutput when the input is zero.Before
import { Duration } from "effect" console.log(Duration.format(Duration.zero)) // Output: ""
After
import { Duration } from "effect" console.log(Duration.format(Duration.zero)) // Output: "0"
-
#4411
87f5f28Thanks @gcanti! - EnhanceTagClassandReferenceClassto enforcekeytype narrowing, closes #4409.The
keyproperty inTagClassandReferenceClassnow correctly retains its specific string value, just like inEffect.Serviceimport { Context, Effect } from "effect" // ------------------------------------------------------------------------------------- // `key` field // ------------------------------------------------------------------------------------- class A extends Effect.Service<A>()("A", { succeed: { a: "value" } }) {} // $ExpectType "A" A.key class B extends Context.Tag("B")<B, { a: "value" }>() {} // $ExpectType "B" B.key class C extends Context.Reference<C>()("C", { defaultValue: () => 0 }) {} // $ExpectType "C" C.key
-
#4397
4dbd170Thanks @thewilkybarkid! - Make Array.makeBy dual