github Effect-TS/effect-smol effect@4.0.0-beta.5

Patch Changes

  • #1317 f6e133e Thanks @tim-smart! - support tag unions in Effect.catchTag/Reason

  • #1314 e3893cc Thanks @zeyuri! - Fix Atom.serializable encode/decode for wire transfer.

    Use Schema.toCodecJson instead of Schema.encodeSync/Schema.decodeSync directly, so that encoded values are plain JSON objects that survive serialization roundtrips (JSON, seroval, etc.). Previously, AsyncResult.Schema encode produced instances with custom prototypes that were lost after wire transfer, causing decode to fail with "Expected AsyncResult" errors during SSR hydration.

  • #1315 a88e206 Thanks @tim-smart! - add Filter.reason api

  • #1314 e3893cc Thanks @zeyuri! - Port ReactHydration to effect-smol.

    Add Hydration module to effect/unstable/reactivity with dehydrate, hydrate, and toValues for SSR state serialization. Add HydrationBoundary React component to @effect/atom-react with two-phase hydration (new atoms in render, existing atoms after commit).

Don't miss a new effect-smol release

NewReleases is sending notifications on new releases.