Packages

effect

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

Your version

2.4.8

18 Mar 2024Where it was published

2.4.19 is the newest release of 2.x.

In short

3 new3 fixed

Security

2 advisories affect 2.4.8; 3.22.1 fixes them

Release note

Patch Changes

  • Add overload to Effect.filterOrFail that fails with NoSuchElementException

    This allows you to perform a filterOrFail without providing a fallback failure
    function.

    Example:

    import { Effect } from "effect";
    
    // fails with NoSuchElementException
    Effect.succeed(1).pipe(Effect.filterOrFail((n) => n === 0));
  • Added Predicate.isTruthy

  • Fix metrics not using labels from fiber ref

  • Fix Effect.Tag generated proxy functions to work with andThen/tap, or others that do function/isEffect checks

  • Types: Add Has helper

  • Prevent Effect.if from crashing when first argument is not an Effect

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.