github Effect-TS/effect effect@2.2.4

latest releases: @effect/sql-mysql2@0.13.0, @effect/sql-sqlite-wasm@0.12.0, @effect/sql-sqlite-node@0.13.0...
7 months ago

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

Don't miss a new effect release

NewReleases is sending notifications on new releases.