github Effect-TS/effect effect@2.3.2

latest releases: @effect/sql-sqlite-wasm@0.13.0, @effect/sql-sqlite-react-native@0.16.0, @effect/sql-sqlite-node@0.14.0...
7 months ago

Patch Changes

  • #2096 6654f5f Thanks @tim-smart! - 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.

  • #2094 2eb11b4 Thanks @tim-smart! - 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.

  • #2103 56c09bd Thanks @patroza! - 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));
  • #2098 71aa5b1 Thanks @ethanniser! - 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

  • #2099 1700af8 Thanks @tim-smart! - optimize Effect.zip{Left,Right}

    for the sequential case, avoid using Effect.all internally

Don't miss a new effect release

NewReleases is sending notifications on new releases.