effect
4.1.4 · 11 Nov 2026MIT67.1M / weekRepositoryHomepagenpmAtom feed
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
- HighEffect: ReDoS in Schema.TemplateLiteral compiled regexGHSA-7589-6fvf-x4pw · 19 Nov 2026Fixed in 3.22.1
- HighEffect `AsyncLocalStorage` context lost/contaminated inside Effect fibers under concurrent load with RPCGHSA-38f7-945m-qr2g · 20 Mar 2026Fixed in 3.20.0
Release note
Minor Changes
Add Layer.setRandom, for over-riding the default Random service
Brand.unbrandedgetter has been addedAdd Either.transposeMapOption
Add Record.findFirst
Default
nevertype has been added toMutableHasMap.empty&MutableList.emptyctorsAdd 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())) // 2class 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: stringhas been added toConfigError.And&OrmembersAllow catching multiple different tags in Effect.catchTag
Expose
Cause.isTimeoutExceptionSupport 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.