Packages

effect

4.1.4 · 11 Nov 2026MIT66.6M / weekRepositoryHomepagenpmAtom feed

Your version

3.2.0

20 May 2024Where it was published

3.22.5 is the newest release of 3.x.

In short

9 new1 fixed

Security

2 advisories affect 3.2.0; 3.22.1 fixes them

Release note

Minor Changes

  • Add Stream.toReadableStreamEffect / .toReadableStreamRuntime

  • 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.

  • Add Chunk.difference & Chunk.differenceWith

  • Improve causal rendering in vitest by rethrowing pretty errors

  • 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 },
      }),
    });
  • Add do notation for Array

  • Support $is & $match for Data.TaggedEnum with generics

  • Capture stack trace for tracing spans

Patch Changes

  • Add span stack trace to rendered causes

  • Consider Generator.next a cutpoint

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.