effect
4.1.4 · 11 Nov 2026MIT66.6M / weekRepositoryHomepagenpmAtom feed
Upgrading effect From 3.7.1 to 3.22.5
169 releases in betweennotes for 168
Counted from 168 of 169 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Deprecated3.22.0
Security
Fixes 2 advisories affecting 3.7.1
- 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
Fix
PubSubsubscribers retaining every later message once their replay window is exhausted
- Fixed
- New
Allow interrupting
Effect.cachedWithTTLandEffect.cachedInvalidateWithTTLwhile the cached effect is running. Interrupting the caller now interrupts that run and leaves nothing cached, so the next call runs the effect again. - New
Support
Effect.fnbodies whose generators were transpiled into functions that return an iterator, such asbabel-preset-expooutput. - Fixed
Serialize
Cause.Failundererrorinstead offailure, matching itserrorproperty. - Fixed
Fix
Duration.decodeandDuration.timesthrowing on fractional values.
- New
- Fixed
Release LayerMap preload references after acquisition so entries follow their idle TTL instead of remaining pinned until map closure. Skip preloading when the idle TTL is zero (including the default). To keep preloaded entries for the lifetime of the map, set
idleTimeToLive: Infinity. - Fixed
Fix
Reloadable.autohanging when its scope closes. - Fixed
Prevent interrupted acquisition from causing an uninterrupted scope closure to fail in
Effect.addFinalizerandEffect.acquireRelease.
- Fixed
- Fixed
Fix TMap.remove and removeAll erroneously clearing entire bucket on hash collision.
- Fixed
Fix use of Schema.NonEmptyArrayEnsure with strings
- Fixed
- 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
9 other lines we could not sort, mostly version bumps
- 3.16.14
Removed some unnecessary single-arg pipe calls
- 3.11.10
Export internal
Uint8schema - 3.11.10
Export internal
NonNegativeIntschema - 3.11.10
Remove title annotations that are identical to identifiers
- 3.11.10
toStringnow combines all refinements with" & "instead of showing only the last one. - 3.11.10
The last message (
"Expected ...") now uses the extended description to make the error message clearer. - 3.11.2
Rename Fiber to MicroFiber
- 3.11.2
Adjust output when inspecting Micro data types
- 3.11.0
JSONSchema module
8 internal lines (docs, tests, tooling) left out.
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.