github Effect-TS/effect effect@3.2.0

latest releases: @effect/opentelemetry@0.37.5, @effect/rpc-http@0.38.3, @effect/vitest@0.10.5...
4 months ago

Minor Changes

  • #2778 146cadd Thanks @tim-smart! - Add Stream.toReadableStreamEffect / .toReadableStreamRuntime

  • #2778 7135748 Thanks @tim-smart! - add Cause.prettyErrors api

    You can use this to extract Error instances from a Cause, that have clean stack traces and have had span information added to them.

  • #2778 963b4e7 Thanks @tim-smart! - add Chunk.difference & Chunk.differenceWith

  • #2778 64c9414 Thanks @tim-smart! - Improve causal rendering in vitest by rethrowing pretty errors

  • #2778 7135748 Thanks @tim-smart! - add Effect.functionWithSpan

    Allows 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 2cbb76b Thanks @tim-smart! - Add do notation for Array

  • #2778 870c5fa Thanks @tim-smart! - support $is & $match for Data.TaggedEnum with generics

  • #2778 7135748 Thanks @tim-smart! - capture stack trace for tracing spans

Patch Changes

Don't miss a new effect release

NewReleases is sending notifications on new releases.