effect
4.1.4 · 11 Nov 2026MIT66.6M / weekRepositoryHomepagenpmAtom feed
3.22.5 is the newest release of 3.x.
In short
1 new4 fixed
Security
2 advisories affect 3.4.6; 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
Micro: Align with
Effectmodule (renamings and new combinators).General naming convention rule:
<reference module (start with lowercase)><api (start with Uppercase)>.Failure->MicroCauseFailure.Expected<E>->MicroCause.Fail<E>Failure.Unexpected->MicroCause.DieFailure.Aborted->MicroCause.InterruptFailureExpected->causeFailFailureUnexpected->causeDieFailureAborted->causeInterruptfailureIsExpected->causeIsFailfailureIsExpected->causeIsFailfailureIsUnexpected->causeIsDiefailureIsAborted->causeIsInterruptfailureSquash->causeSquashfailureWithTrace->causeWithTrace
Result->MicroExitResultAborted->exitInterruptResultSuccess->exitSucceedResultFail->exitFailResultFailUnexpected->exitDieResultFailWith->exitFailCauseresultIsSuccess->exitIsSuccessresultIsFailure->exitIsFailureresultIsAborted->exitIsInterruptresultIsFailureExpected->exitIsFailresultIsFailureUnexpected->exitIsDieresultVoid->exitVoid
DelayFn->MicroScheduledelayExponential->scheduleExponentialdelaySpaced->scheduleSpaceddelayWithMax->scheduleWithMaxDelaydelayWithMaxElapsed->scheduleWithMaxElapseddelayWithRecurs->scheduleRecursand make it a constructoradd
scheduleAddDelaycombinatoradd
scheduleUnioncombinatoradd
scheduleIntersectcombinator
Handle:
abort->interruptHandle:
unsafeAbort->unsafeInterruptprovideServiceMicro->provideServiceEffectfromResult->fromExitfromResultSync->fromExitSyncfailWith->failCausefailWithSync->failCauseSyncasResult->exitfilterOrFailWith->filterOrFailCauserepeatResult->repeatExitcatchFailure->catchAllCausecatchFailureIf->catchCauseIfcatchExpected->catchAllcatchUnexpected->catchAllDefecttapFailure->tapErrorCausetapFailureIf->tapErrorCauseIftapExpected->tapErrortapUnexpected->tapDefectmapFailure->mapErrorCausematchFailureMicro->matchCauseEffectmatchFailure->matchCausematchMicro->matchEffectonResult->onExitonResultIf->onExitIfonFailure->onErroronAbort->onInterruptabort->interruptrunPromiseResult->runPromiseExitrunSyncResult->runSyncExitrename
delayoption toschedule
Micro: Rename
timeouttotimeoutOption, and add atimeoutthat fails with aTimeoutExceptionSupport for the tacit usage of external handlers for
Match.tagandMatch.tagStartsWithfunctionstype Value = { _tag: "A"; a: string } | { _tag: "B"; b: number }; const handlerA = (_: { _tag: "A"; a: number }) => _.a; // $ExpectType string | number pipe( M.type<Value>(), M.tag("A", handlerA), // <-- no type issue M.orElse((_) => _.b), )(value);Micro: Move MicroExit types to a namespace
Use Channel.acquireUseRelease for Channel.withSpan
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.