Packages

effect

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

Your version

2.4.4

13 Mar 2024Where it was published

2.4.19 is the newest release of 2.x.

In short

4 new1 faster1 fixed

Security

2 advisories affect 2.4.4; 3.22.1 fixes them

Release note

Patch Changes

  • Brand: Add refined overload

    export function refined<A extends Brand<any>>(
      f: (unbranded: Brand.Unbranded<A>) => Option.Option<Brand.BrandErrors>,
    ): Brand.Constructor<A>;
  • Add support for AbortSignal's to runPromise

    If the signal is aborted, the effect execution will be interrupted.

    import { Effect } from "effect";
    
    const controller = new AbortController();
    
    Effect.runPromise(Effect.never, { signal: controller.signal });
    
    // abort after 1 second
    setTimeout(() => controller.abort(), 1000);
  • Add AbortSignal support to ManagedRuntime

  • Optimize addition of blocked requests to parallel collection

  • Use Chunk for request block collections

  • Added support for PromiseLike

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.