Skip to content

effect@2.4.8

Choose a tag to compare

@github-actions github-actions released this 18 Mar 13:31
· 7545 commits to main since this release
1b3180c

Patch Changes

  • #2354 bb0b69e Thanks @tim-smart! - 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));
  • #2336 6b20bad Thanks @jessekelly881! - added Predicate.isTruthy

  • #2351 4e64e9b Thanks @tim-smart! - fix metrics not using labels from fiber ref

  • #2266 3851a02 Thanks @patroza! - fix Effect.Tag generated proxy functions to work with andThen/tap, or others that do function/isEffect checks

  • #2353 5f5fcd9 Thanks @tim-smart! - Types: add Has helper

  • #2299 814e5b8 Thanks @alex-dixon! - Prevent Effect.if from crashing when first argument is not an Effect