effect
4.1.4 · 11 Nov 2026MIT66.6M / weekRepositoryHomepagenpmAtom feed
2.4.19 is the newest release of 2.x.
In short
1 faster4 fixed
Security
2 advisories affect 2.3.2; 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
Patch Changes
Default to
neverfor Runtime returning functionsThis includes:
Effect.runtime
FiberSet.makeRuntime
It prevents
unknownfrom creeping into types, as well asneverbeing a
useful default type for propogating Fiber Refs and other context.Revert some type param adjustments in FiberSet
makeRuntimenow has the R parameter first again.Default to
unknownfor the A and E parameters instead of never.Expand Either and Option
andThento support themapcase like Effects'andThenFor example:
expect(pipe(Either.right(1), Either.andThen(2))).toStrictEqual( Either.right(2), ); expect( pipe( Either.right(1), Either.andThen(() => 2), ), ).toStrictEqual(Either.right(2)); expect(pipe(Option.some(1), Option.andThen(2))).toStrictEqual(Option.some(2)); expect( pipe( Option.some(1), Option.andThen(() => 2), ), ).toStrictEqual(Option.some(2));Removed
./internal/timeoutand replaced all usages withsetTimeoutdirectlypreviously it was required to abstract away conditionally solving an bun had an issue with
setTimeout, that caused incorrect behavior
that bug has since been fixed, and theisBuncheck is no longer needed
as such the timeout module is also no longer neededOptimize Effect.zip{Left,Right}
for the sequential case, avoid using Effect.all internally
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.