Skip to content

effect@2.2.4

Choose a tag to compare

@github-actions github-actions released this 07 Feb 20:25
· 7806 commits to main since this release
b57db1c

Patch Changes

  • #2067 d0b911c Thanks @tim-smart! - add releaseAll api to Semaphore

    You can use semphore.releaseAll to atomically release all the permits of a
    Semaphore.

  • #2071 330e1a4 Thanks @tim-smart! - add Option.orElseSome

    Allows you to specify a default value for an Option, similar to
    Option.getOrElse, except the return value is still an Option.

    import * as O from "effect/Option";
    import { pipe } from "effect/Function";
    
    assert.deepStrictEqual(
      pipe(
        O.none(),
        O.orElseSome(() => "b"),
      ),
      O.some("b"),
    );
    assert.deepStrictEqual(
      pipe(
        O.some("a"),
        O.orElseSome(() => "b"),
      ),
      O.some("a"),
    );
  • #2057 6928a2b Thanks @joepjoosten! - Fix for possible stack overflow errors when using Array.push with spread operator arguments

  • #2033 296bc1c Thanks @rehos! - Add toJSON for Secret