effect
4.1.4 · 11 Nov 2026MIT66.6M / weekRepositoryHomepagenpmAtom feed
4.1.5 is the newest release of 4.x.
In short
2 breaking2 new21 fixed
- Breaking
Fix
ByteSizedecimal unit constructors such asmegabytes(2.01)throwing or returning the wrong byte count, and reject fractional-byte quantities instead of rounding them. - Breaking
SQL transactions now trace
BEGIN,COMMIT,ROLLBACKand savepoint statements as child spans ofsql.transaction, replacing itseffect.sql.transaction.commit,savepointandrollbackevents; withStatement.SpanPropagationEnabled, the transaction also parents connection spans and records its connection wait time.
Release note
Patch Changes
Fix
ByteSizedecimal unit constructors such asmegabytes(2.01)throwing or returning the wrong byte count, and reject fractional-byte quantities instead of rounding them.Fix cluster entity defect restart backoff being shared by all entities of a type and never resetting.
Prevent an interrupted cluster request that keeps defecting from stalling message delivery to other entities.
Defer the runner notification for a discarded persisted send made inside a
ClusterSchema.WithTransactionhandler until the transaction commits. The message was invisible to the runner before the commit, so delivery waited for the next storage poll.Fix
ClusterWorkflowEngineturning transient storage failures while saving durable clocks or deferred completions into workflow defects; they are now retried.Fix
ClusterWorkflowEngineblocking shard reacquisition indefinitely after a forced shard release interrupted a workflow resume waiting on its active run.Fix
ClusterWorkflowEngineletting a runner that lost its shard delete a newer activity result, which could run the activity again and change the workflow's history.Fix
HttpClient.withCookiesRefnot sending cookies when the request URL is completed after it, for example by thebaseUrlofHttpApiClient. Cookies are now selected for the final URL of each request, including redirect hops.Keep
EventLogServersession auth challenges on their RPC connection, so a challenge is released when its client disconnects instead of being retained by the server after an unauthenticated disconnect.Fix
Iterable.filterMapWhileiterators yielding values or pulling from the source after they have returneddone.Fix
Iterable.unfolditerators calling the generating function again after they have returneddone.Add
Json5.parseandJsonc.parsetoeffect/encoding, returning aResultthat fails with anEncodingErroron invalid input.Use a
ClientCapabilitiesinstance for the fallback MCP client profile inMcpServer.Fix
McpServerrunning middleware provided outside a combined middleware inside it.Encode declared
McpServertool failures with their JSON codec, so values such asbigint,MapandOptionno longer cause an internal error or lossy outputFix 2026-07-28 MCP listings failing for resources, resource templates and prompts registered as plain objects.
Stop OTLP log and trace exporters from keeping a timer pending while idle. A Node program kept alive only by an idle exporter now exits.
Fix
RateLimiter.layerStoreRedissharing state between different keys. A key ending in:refillor:adaptiveno longer reads or writes another key's token-bucket refill time or adaptive state.Fix
RpcServerreturning an empty HTTP 500 for requests with malformed headers; such requests now fail with a defectExit, and malformed notifications are dropped.Fix
Schedule.fixed,Schedule.windowedandSchedule.cronreturning a zero delay when the clock is a fraction of a nanosecond before the next run.Add
SchemaBinary.int32,uint32,int64anduint64, opt-in schemas that write integers as fixed-width little-endian payloads. The 32-bit schemas decode tonumberand the 64-bit schemas tobigint. Out-of-range and non-integer values are rejected instead of wrapped.SQL transactions now trace
BEGIN,COMMIT,ROLLBACKand savepoint statements as child spans ofsql.transaction, replacing itseffect.sql.transaction.commit,savepointandrollbackevents; withStatement.SpanPropagationEnabled, the transaction also parents connection spans and records its connection wait time.Fix
Stream.groupAdjacentBydropping its last group when the stream fails. The group is now emitted before the error.Fix
AnthropicStructuredOutput.toCodecAnthropic,OpenAiStructuredOutput.toCodecOpenAI, and MCP tool schemas returning or rejecting a root$refwhen the schema is an identified alias of another identified schema.Fix
DateTime.startOf,endOfandnearestmoving a zonedDateTimeto the other occurrence of a repeated DST hour, and calendar-unitendOfreturning an instant an hour early when the period ends in a repeated hour.
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.