Packages

effect

4.1.4 · 11 Nov 2026MIT67.1M / weekRepositoryHomepagenpmAtom feed

Your version

3.15.0

11 May 2025Where it was published

3.22.5 is the newest release of 3.x.

In short

12 new

Security

2 advisories affect 3.15.0; 3.22.1 fixes them

Release note

Minor Changes

  • Add Layer.setRandom, for over-riding the default Random service

  • Brand.unbranded getter has been added

  • Add Either.transposeMapOption

  • Add Record.findFirst

  • Default never type has been added to MutableHasMap.empty & MutableList.empty ctors

  • Add Stream.toAsyncIterable* apis

    import { Stream } from "effect"
    
    // Will print:
    // 1
    // 2
    // 3
    const stream = Stream.make(1, 2, 3)
    for await (const result of Stream.toAsyncIterable(stream)) {
      console.log(result)
    }
  • Improve Effect.filter* types to exclude candidates in fallback functions

  • Simplified the creation of pipeable classes.

    class MyClass extends Pipeable.Class() {
      constructor(public a: number) {
        super()
      }
      methodA() {
        return this.a
      }
    }
    console.log(new MyClass(2).pipe((x) => x.methodA())) // 2
    class A {
      constructor(public a: number) {}
      methodA() {
        return this.a
      }
    }
    class B extends Pipeable.Class(A) {
      constructor(private b: string) {
        super(b.length)
      }
      methodB() {
        return [this.b, this.methodA()]
      }
    }
    console.log(new B("pipe").pipe((x) => x.methodB())) // ['pipe', 4]
  • Property message: string has been added to ConfigError.And & Or members

  • Allow catching multiple different tags in Effect.catchTag

  • Expose Cause.isTimeoutException

  • Support multiple values in Function.apply

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.