Patch Changes
-
#2354
bb0b69e
Thanks @tim-smart! - add overload to Effect.filterOrFail that fails with NoSuchElementExceptionThis 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: addHas
helper -
#2299
814e5b8
Thanks @alex-dixon! - Prevent Effect.if from crashing when first argument is not an Effect