effect@3.2.0
Minor Changes
-
#2778
146caddThanks @tim-smart! - Add Stream.toReadableStreamEffect / .toReadableStreamRuntime -
#2778
7135748Thanks @tim-smart! - add Cause.prettyErrors apiYou can use this to extract
Errorinstances from aCause, that have clean stack traces and have had span information added to them. -
#2778
963b4e7Thanks @tim-smart! - add Chunk.difference & Chunk.differenceWith -
#2778
64c9414Thanks @tim-smart! - Improve causal rendering in vitest by rethrowing pretty errors -
#2778
7135748Thanks @tim-smart! - add Effect.functionWithSpanAllows you to define an effectful function that is wrapped with a span.
import { Effect } from "effect"; const getTodo = Effect.functionWithSpan({ body: (id: number) => Effect.succeed(`Got todo ${id}!`), options: (id) => ({ name: `getTodo-${id}`, attributes: { id }, }), });
-
#2778
2cbb76bThanks @tim-smart! - Add do notation for Array -
#2778
870c5faThanks @tim-smart! - support $is & $match for Data.TaggedEnum with generics -
#2778
7135748Thanks @tim-smart! - capture stack trace for tracing spans
Patch Changes
-
#2778
7135748Thanks @tim-smart! - add span stack trace to rendered causes -
#2778
64c9414Thanks @tim-smart! - Consider Generator.next a cutpoint