effect
4.1.4 · 11 Nov 2026MIT66.6M / weekRepositoryHomepagenpmAtom feed
Upgrading effect From 3.19.8 to 3.22.1
21 releases in betweenevery note read
Before you upgrade
Tick each one off as you go- Deprecated3.22.0
Security
Fixes 2 advisories affecting 3.19.8
- Effect `AsyncLocalStorage` context lost/contaminated inside Effect fibers under concurrent load with RPChigh · GHSA-38f7-945m-qr2g
- Effect: ReDoS in Schema.TemplateLiteral compiled regexhigh · GHSA-7589-6fvf-x4pw
Release by release
- Fixed
Clarify that
Context.GenericTagrequires a key. - Fixed
Fix zero-capacity
Mailboxrendezvous behavior fortakeandtakeN. - Fixed
Use a linear matcher when decoding template literals containing only string spans.
- Fixed
Disable unhandled error logging for fibers spawned by
Effect.timeout. - Fixed
Redact errors from wrapped config parsers and avoid JSON key path collisions.
- Fixed
Fix
Stream.asyncPushtermination with bounded dropping and sliding buffers.
- Fixed
- Deprecated
Add
Graph.successorsandGraph.predecessors, deprecateGraph.neighborsDirected, and fix graph algorithm edge cases around reversal, undirected edge queries, shortest-path weight validation, topological sort initials, and strongly connected components.
- Deprecated
- New
Allow cron fields like
5/15to expand from the starting value through the field maximum. - Fixed
Fix
Schedule.cronwhen the test clock is adjusted to infinity. - Fixed
Fix
Cron.nextskipping earlier matching days when the upcoming day-of-month does not exist in the current month. For an expression like0 0 1,16,31 * *, advancing from a date past the 16th selected day 31; in a month without 31 days this overflowed into the following month and landed on a later matching day (e.g. the 16th), silently skipping the 1st.Cron.nextnow wraps to the first matching day of the next month in that case, matching the behaviour ofCron.prevand other cron implementations. - Fixed
Fix cron parsing and scheduling edge cases for whitespace, Sunday
7, strict numeric tokens, explicit full day ranges, and month-constrained day-of-month / weekday matching.
- New
- Fixed
Fix Graph traversal and shortest-path algorithms to traverse undirected edges independently of their stored source/target orientation.
- Fixed
- Fixed
Fix $match generic type parameter inference inside arms
- Fixed
Emit
additionalProperties: falsefor records with string keys andSchema.Nevervalues.
- Fixed
- Fixed
Fix
TestClock.unsafeCurrentTimeNanos()to floor fractional millisecond instants before converting them toBigInt.
- Fixed
- Fixed
Fix batched request resolver defects causing consumer fibers to hang forever.
- Fixed
- New
Add
Cron.prevand reverse iteration support, aligning next/prev lookup tables, fixing DST handling symmetry, and expanding cron backward/forward test coverage. - New
Add type-level utils to asserting layer types
- New
RcMap: Support dynamic
idleTimeToLivevalues per key - New
Add logs to first propagated span, in the following case before this fix the log would not be added to the
pspan becauseEffect.fnadds a fake span for the purpose of adding a stack frame. - Fixed
Fix annotateCurrentSpan, add Effect.currentPropagatedSpan
- New
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.