effect
4.1.4 · 11 Nov 2026MIT66.6M / weekRepositoryHomepagenpmAtom feed
3.22.5 is the newest release of 3.x.
In short
9 new1 fixed
Security
2 advisories affect 3.2.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.toReadableStreamEffect / .toReadableStreamRuntime
Add Cause.prettyErrors api
You can use this to extract
Errorinstances from aCause, that have clean stack traces and have had span information added to them.Add Chunk.difference & Chunk.differenceWith
Improve causal rendering in vitest by rethrowing pretty errors
Add Effect.functionWithSpan
Allows you to define an effectful function that is wrapped with a span.
import { Effect } from "effect"; const getTodo = Effect.functionWithSpan({ body: (id: number) => Effect.succeed(`Got todo ${id}!`), options: (id) => ({ name: `getTodo-${id}`, attributes: { id }, }), });Add do notation for Array
Support $is & $match for Data.TaggedEnum with generics
Capture stack trace for tracing spans
Patch Changes
Add span stack trace to rendered causes
Consider Generator.next a cutpoint
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.