effect
4.1.4 · 11 Nov 2026MIT66.6M / weekRepositoryHomepagenpmAtom feed
3.22.5 is the newest release of 3.x.
In short
8 new
Security
2 advisories affect 3.3.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
Stream.zipLatestAllapiAdd queuing strategy option for Stream.toReadableStream
Add
timeToLiveStrategytoPooloptionsThe
timeToLiveStrategydetermines how items are invalidated. If set to
"creation", then items are invalidated based on their creation time. If set
to "usage", then items are invalidated based on pool usage.By default, the
timeToLiveStrategyis set to "usage".Add Layer.annotateLogs & Layer.annotateSpans
This allows you to add log & span annotation to a Layer.
import { Effect, Layer } from "effect"; Layer.effectDiscard(Effect.log("hello")).pipe( Layer.annotateLogs({ service: "my-service", }), );Types: Implement
TupleOfandTupleOfAtLeasttypesPredicate: implement
isTupleOfandisTupleOfAtLeasttype guardsAdd
concurrency&targetUtilizationoption toPool.make&Pool.makeWithTTLThis option allows you to specify the level of concurrent access per pool item.
I.e. settingconcurrency: 2will allow each pool item to be in use by 2 concurrent tasks.targetUtilizationdetermines when to create new pool items. It is a value
between 0 and 1, where 1 means only create new pool items when all the existing
items are fully utilized.A
targetUtilizationof 0.5 will create new pool items when the existing items are
50% utilized.Support
thisargument for{STM, Either, Option}.genIntroduced
Redacted<out T = string>module -SecretgeneralizationSecret extends Redacted
The use of theRedactedhas been replaced by the use of theRedactedin packages with version0.*.*
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.