Releases: Effect-TS/effect-smol
effect@4.0.0-beta.5
Patch Changes
-
#1317
f6e133eThanks @tim-smart! - support tag unions in Effect.catchTag/Reason -
#1314
e3893ccThanks @zeyuri! - FixAtom.serializableencode/decode for wire transfer.Use
Schema.toCodecJsoninstead ofSchema.encodeSync/Schema.decodeSyncdirectly, so that encoded values are plain JSON objects that survive serialization roundtrips (JSON, seroval, etc.). Previously,AsyncResult.Schemaencode produced instances with custom prototypes that were lost after wire transfer, causing decode to fail with "Expected AsyncResult" errors during SSR hydration. -
#1315
a88e206Thanks @tim-smart! - add Filter.reason api -
#1314
e3893ccThanks @zeyuri! - Port ReactHydration to effect-smol.Add
Hydrationmodule toeffect/unstable/reactivitywithdehydrate,hydrate, andtoValuesfor SSR state serialization. AddHydrationBoundaryReact component to@effect/atom-reactwith two-phase hydration (new atoms in render, existing atoms after commit).
effect@4.0.0-beta.4
Patch Changes
-
#1308
c5a18efThanks @tim-smart! - improve Schema.TaggedUnion .match auto completion -
#1310
bc6b885Thanks @tim-smart! - AddSchedule.duration, a one-shot schedule that waits for the provided duration and then completes.