Packages

effect

4.1.4 · 11 Nov 2026MIT66.6M / weekRepositoryHomepagenpmAtom feed

Your version

4.1.2

2 Nov 2026Where it was published

4.1.5 is the newest release of 4.x.

In short

2 breaking2 new21 fixed

  • Breaking

    Fix ByteSize decimal unit constructors such as megabytes(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, ROLLBACK and savepoint statements as child spans of sql.transaction, replacing its effect.sql.transaction.commit, savepoint and rollback events; with Statement.SpanPropagationEnabled, the transaction also parents connection spans and records its connection wait time.

Release note

Patch Changes

  • Fix ByteSize decimal unit constructors such as megabytes(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.WithTransaction handler until the transaction commits. The message was invisible to the runner before the commit, so delivery waited for the next storage poll.

  • Fix ClusterWorkflowEngine turning transient storage failures while saving durable clocks or deferred completions into workflow defects; they are now retried.

  • Fix ClusterWorkflowEngine blocking shard reacquisition indefinitely after a forced shard release interrupted a workflow resume waiting on its active run.

  • Fix ClusterWorkflowEngine letting 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.withCookiesRef not sending cookies when the request URL is completed after it, for example by the baseUrl of HttpApiClient. Cookies are now selected for the final URL of each request, including redirect hops.

  • Keep EventLogServer session 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.filterMapWhile iterators yielding values or pulling from the source after they have returned done.

  • Fix Iterable.unfold iterators calling the generating function again after they have returned done.

  • Add Json5.parse and Jsonc.parse to effect/encoding, returning a Result that fails with an EncodingError on invalid input.

  • Use a ClientCapabilities instance for the fallback MCP client profile in McpServer.

  • Fix McpServer running middleware provided outside a combined middleware inside it.

  • Encode declared McpServer tool failures with their JSON codec, so values such as bigint, Map and Option no longer cause an internal error or lossy output

  • Fix 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.layerStoreRedis sharing state between different keys. A key ending in :refill or :adaptive no longer reads or writes another key's token-bucket refill time or adaptive state.

  • Fix RpcServer returning an empty HTTP 500 for requests with malformed headers; such requests now fail with a defect Exit, and malformed notifications are dropped.

  • Fix Schedule.fixed, Schedule.windowed and Schedule.cron returning a zero delay when the clock is a fraction of a nanosecond before the next run.

  • Add SchemaBinary.int32, uint32, int64 and uint64, opt-in schemas that write integers as fixed-width little-endian payloads. The 32-bit schemas decode to number and the 64-bit schemas to bigint. Out-of-range and non-integer values are rejected instead of wrapped.

  • SQL transactions now trace BEGIN, COMMIT, ROLLBACK and savepoint statements as child spans of sql.transaction, replacing its effect.sql.transaction.commit, savepoint and rollback events; with Statement.SpanPropagationEnabled, the transaction also parents connection spans and records its connection wait time.

  • Fix Stream.groupAdjacentBy dropping 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 $ref when the schema is an identified alias of another identified schema.

  • Fix DateTime.startOf, endOf and nearest moving a zoned DateTime to the other occurrence of a repeated DST hour, and calendar-unit endOf returning 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.