Packages

effect

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

Your version

2.3.2

11 Feb 2024Where it was published

2.4.19 is the newest release of 2.x.

In short

1 faster4 fixed

Security

2 advisories affect 2.3.2; 3.22.1 fixes them

Release note

Patch Changes

  • Default to never for Runtime returning functions

    This includes:

    • Effect.runtime

    • FiberSet.makeRuntime

    It prevents unknown from creeping into types, as well as never being a
    useful default type for propogating Fiber Refs and other context.

  • Revert some type param adjustments in FiberSet

    makeRuntime now has the R parameter first again.

    Default to unknown for the A and E parameters instead of never.

  • Expand Either and Option andThen to support the map case like Effects' andThen

    For example:

    expect(pipe(Either.right(1), Either.andThen(2))).toStrictEqual(
      Either.right(2),
    );
    expect(
      pipe(
        Either.right(1),
        Either.andThen(() => 2),
      ),
    ).toStrictEqual(Either.right(2));
    
    expect(pipe(Option.some(1), Option.andThen(2))).toStrictEqual(Option.some(2));
    expect(
      pipe(
        Option.some(1),
        Option.andThen(() => 2),
      ),
    ).toStrictEqual(Option.some(2));
  • Removed ./internal/timeout and replaced all usages with setTimeout directly

    previously it was required to abstract away conditionally solving an bun had an issue with setTimeout, that caused incorrect behavior
    that bug has since been fixed, and the isBun check is no longer needed
    as such the timeout module is also no longer needed

  • Optimize Effect.zip{Left,Right}

    for the sequential case, avoid using Effect.all internally

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.