Packages

effect

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

Your version

3.22.4

22 Oct 2026Where it was published

3.22.5 is the newest release of 3.x.

In short

1 breaking1 faster6 fixed

  • Breaking

    Serialize Cause.Fail under error instead of failure, matching its error property.

Release note

Patch Changes

  • Serialize Cause.Fail under error instead of failure, matching its error property.

    This changes the output of toJSON, JSON.stringify and Node inspection for causes, including nested Sequential / Parallel causes and Exit.Failure, as well as log messages that contain a Cause or Exit value. The cause field of built-in loggers is rendered with Cause.pretty and is unaffected. Code that reads failure from serialized causes should read error instead.

  • Allow interrupting Effect.cachedWithTTL and Effect.cachedInvalidateWithTTL while the cached effect is running. Interrupting the caller now interrupts that run and leaves nothing cached, so the next call runs the effect again.

  • Fix Duration.decode and Duration.times throwing on fractional values.

    Duration.decode threw on fractional nanos and micros inputs such as "1.5 micros", and Duration.times threw when a nanosecond-backed Duration was multiplied by a non-integer. Both now round to whole nanoseconds, so Duration.decode("1.5 micros") is 1500 nanos and Duration.times(Duration.nanos(2n), 2.5) is 5 nanos.

  • Support Effect.fn bodies whose generators were transpiled into functions that return an iterator, such as babel-preset-expo output.

  • Avoid throwing when Error.stackTraceLimit is non-writable (frozen intrinsics / SES / deterministic sandboxes such as Temporal).

  • Logger.jsonLogger now includes name and message when logging an Error, instead of {}.

  • Remove the AbortSignal listener added by Effect.runPromise / Runtime.runPromiseExit once the fiber completes, fixing MaxListenersExceededWarning when a signal is reused across runs (e.g. it.effect.prop).

  • Return self from BigDecimal.normalize for already-normalized values

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.