github Effect-TS/effect effect@2.4.8

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

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

Don't miss a new effect release

NewReleases is sending notifications on new releases.