Patch Changes
-
#10639
3e2030bThanks @gcanti! - Report unsupported regex patterns and their schema paths when Arbitrary sampling or property checking exhausts its discard budget.When constructing
Arbitrary.SampleErrororArbitrary.Exhaustedvalues, include the requireddiagnosticsarray; use[]when there are no diagnostics. -
#10401
f9f5f9dThanks @fubhy! - ShrinkArbitrarystring counterexamples by deleting characters anywhere, and defer shrinking work until a property fails. Existing string replay tokens may need to be recorded again. -
#10613
eecfff5Thanks @Marve10s! - FixAtom.kvsshowing the value from before its last write after being refreshed or remounted past its idle TTL. -
#9974
7e9e5dfThanks @danieljvdm! - Add opt-instaleTimeto HTTP and non-stream RPC atom queries and run hydrated waiting effects even withskipInitialRun. -
#10557
ddd142fThanks @fubhy! - AddBase64.encodeUnpaddedfor standard Base64 without=padding, andBase64.decodeLenientfor input in either Base64 alphabet, with or without padding. -
#10555
2bd41feThanks @filipfalcon! - AddBigInt.nthRootfor integer n-th roots andRational.nthRootfor exact n-th roots, each with anthRootUnsafevariant. -
#10601
36e335aThanks @filipfalcon! - Speed upBigInt.sqrtandBigInt.sqrtUnsafeon large inputs. -
#10606
7c36414Thanks @Marve10s! - FixCacheandScopedCacheentries failing to expire with a provided clock when the first caller is interrupted during a shared lookup. -
#10748
284b978Thanks @haranishi! - Keep closed code blocks together when they fit in a single ChatMarkdown message. -
#10750
f3957c6Thanks @haranishi! - FixChatTest.failNextscheduling a fault when itstimesoption is zero. -
#10611
e7f4493Thanks @Marve10s! - FixChunk.fromIterableandTxChunk.fromIterablesharing the caller's array, so later changes to the array no longer change the chunk. -
#10791
1c990e9Thanks @brandon-julio-t! - Deliver workflow activity results when a reply is redelivered after a transient shard-ownership check failure or when attempts of the same activity run concurrently. -
#10754
1cccb18Thanks @RhysSullivan! - Expose each cron job's effective schedule throughClusterCron.CronSchedule, both insideexecuteand on the registered entity. -
#10709
0d5eb2cThanks @effect-bot! - Fix persistedEntity.keepAlive(true)requests completing prematurely on redelivery, preserving entity recovery after runner restarts. -
#10704
6b8ea38Thanks @gcanti! - Fix field discovery and type validation across struct comparisons, schemas, commands, and collection helpers to consistently handle own enumerable string and symbol fields.Some field maps declared with
interfaceare no longer accepted. Replaceinterface Fields { ... }withtype Fields = { ... }, or pass a plain object copy by replacingOrder.Struct(fields)withOrder.Struct({ ...fields }). -
#10734
ff682e9Thanks @effect-bot! - Addeffect/crypto/Passwordfor storing passwords as PHC strings. ThePasswordservice hashes with Argon2id or PBKDF2 fromKdf, verifies against the algorithm and salt recorded in the stored hash, and reports when a stored hash needs rehashing under the configured algorithm.Password.decodeandPassword.encodeconvert between PHC strings andPasswordHashvalues. -
#10759
45937b7Thanks @haranishi! - Decode empty CSV header cells according to the selected union member's optional fields. -
#10562
cda1466Thanks @asssslay! - FixDateTime.makerejecting date strings that end inUT,UTCor a US time zone abbreviation such asPDT. -
#10620
aa5047dThanks @Marve10s! - FixDateTime.makeignoring whitespace-separated time zones followed by trailing whitespace or a single non-nested comment. -
#10690
8bc4e44Thanks @mvanhorn! - Parse zonelessDateTimestrings such as2024-1-15as UTC instead of local time. -
#10581
c61bb44Thanks @tim-smart! - Add unstableeffect/chatAPIs and Slack, Discord, WhatsApp, Telegram and Microsoft Teams adapters for chat bots, with grapheme-safe Markdown streaming, buttons, selects, modals, slash commands, private/deferred command replies, and adapter conformance testing. -
#10675
5caf323Thanks @tylergibbs1! - FixSqlEventLogServerEncryptedon SQL Server stalling for seconds when two instances create the same tables at once. -
#10583
19c76abThanks @brandon-julio-t! - FixAtom.searchParamoverwriting the restored URL when Back or Forward is pressed before a debounced write flushes. -
#10585
c282e64Thanks @tylergibbs1! - Fix an interrupted fiber losing its exit, such as a finalizer defect, when a child fiber does not stop immediately. -
#10619
77fa72aThanks @effect-bot! - Fix slowFindMyWayandHttpRouterlookups for request paths containing many encoded percent signs. -
#10701
82904feThanks @Marve10s! - TheDievariant ofSchema.CauseReasonIsonow declaresdefectinstead oferror, matching the existing runtime shape. -
#10629
df790caThanks @effect-bot! - FixClusterWorkflowEngineactivities repeatedly restarting after durable clock wakeups when using SQL storage. -
#10646
1b807a0Thanks @tim-smart! - FixLayerRef.makeandLayerRef.Serviceexposing layer build errors during creation whenpreloadis omitted. -
#10796
4d78900Thanks @effect-bot! - FixEffect.raceAllandEffect.raceAllFirstnot interrupting a loser that settles the race during its own first synchronous step. -
#10689
0799e39Thanks @tim-smart! - Fix cluster shards remaining unavailable indefinitely when a runner's lock operations persistently fail while its heartbeat succeeds. -
#10680
80622bfThanks @effect-bot! - FixMetric.summaryandMetric.summaryWithTimestampaccepting NaN quantiles. -
#10546
3d13d1eThanks @effect-bot! - Fix intermittentSqlRunnerStorageadvisory-lock failures after Vitess sessions have been idle. -
#10735
e373f19Thanks @effect-bot! - FixStream.flattenIterablenot closing the active iterator when downstream stops early. -
#10612
e3aed41Thanks @Marve10s! - FixHashMapandHashSetoverflowing the stack for keys whose custom hashes are not 32-bit integers. -
#10627
c49caf7Thanks @effect-bot! - FixHttpClientsending invalid trace headers when tracing is disabled withEffect.withTracerEnabled(false). -
#10790
9f9d58bThanks @effect-bot! - AddredactedParamstoHttpRouterroutes andparamstoHttpApi.RedactedNamesto redact path params in server spans and request logs. -
#10668
5234eedThanks @0xh3x! - FixHttpRouter.serveignoring app-provided references and rebuilding app-provided layers when handling requests. -
#10768
44f3b48Thanks @effect-bot! - FixHttpRouterso an explicit route takes precedence over a wildcard at its bare prefix, regardless of registration order. -
#10699
31b0a19Thanks @Marve10s! - FixHttpApiClientfailing to decode single-element arrays in form-urlencoded responses and declared errors. -
#10724
b01d576Thanks @effect-bot! - Avoid the startup cost ofIntl.Segmenterfor CLI commands that never measure text width. -
#10567
7e155dfThanks @effect-bot! - FixConfigProvider.fromEnv()capturing the environment when called instead of at its first lookup, which ignored variables set after import.Variables removed before the first lookup are no longer captured; use
ConfigProvider.fromEnvRecord({ ...process.env })to snapshot at a chosen moment. -
#10752
c74244bThanks @RhysSullivan! - FixMcpServerto list tools withdestructiveHint: falsewhenTool.ReadonlyistrueandTool.Destructiveis unset. -
#10740
0082c45Thanks @typedrat! - Use a tool'stoModelOutputparts asMcpServertool resultcontentwhile preservingstructuredContentand downgrading unsupported blocks on older protocol revisions. -
#10751
e197c57Thanks @RhysSullivan! - FixMcpServertoolkit registration copying and scanning its registration context once per tool, which made memory use and registration time grow with the square of the tool count. -
#10733
313194dThanks @effect-bot! - AllowMcpServer.toolkitandMcpServer.registerToolkitto return native MCP content blocks for selected tools without advertising an output schema. -
#10624
ca8ffeaThanks @Marve10s! - FixEventJournal.makeMemorydropping pending entries imported from another remote during an upload. -
#10558
7f2919fThanks @Ishkirat-Singh! - FixPrompt.IntandPrompt.Numberdropping the minus sign when a zero follows it, so typing-0.05no longer submits0.05. -
#10763
f3961b9Thanks @haranishi! - Generate client and HttpApi operations from local OpenAPI Path Item references. -
#10698
c31cb76Thanks @Marve10s! - FixOrder.StructandStruct.makeOrderignoring symbol fields when comparing and sorting records. -
#10729
c239f40Thanks @effect-bot! - Warn at the default log level when a failed OTLP export disables telemetry export for 60 seconds. -
#10556
8a4ef37Thanks @dv-waynehaffenden! - Fix OTLP exporters retaining a background fiber whenexportIntervalis infinite. -
#10609
9ef7a47Thanks @Marve10s! - FixOtlpLoggerexporting invalid trace and span IDs for logs inside spans with tracing or propagation disabled. -
#10780
e5f2e97Thanks @effect-bot! - UseRpc.TracingEnabledto select automatic client and server spans per procedure andremoteParentSpanto parent custom handler or middleware spans.When invoking a handler or middleware directly, pass
remoteParentSpan: undefinedif no client span context was received. -
#10543
acfbe1bThanks @effect-bot! - FixPool.makeWithTTLusage-based expiration retaining idle excess resources beyond their configured time to live. -
#9454
22909d5Thanks @fubhy! - AddProtobufDescriptor,ProtobufDescriptorProto, andProtobufMessagefor codecs preserving names and unknown fields across proto2, proto3, and editions 2023, 2024 and 2026.Replace
reader.enter(); read(reader); reader.leave()withread(reader.delimited()). The child reader is bounded to the payload, and the parent advances past it immediately.ProtobufWriter.tagnow throwsRangeErrorfor invalid tags; supply an integer field number from 1 through 536870911 and a wire type from 0 through 5. -
#10554
5662efaThanks @fubhy! - Addeffect/protobufwithProtobufReaderandProtobufWriter, a Schema-independent reader and writer of the protobuf wire format, and speed up OTLP protobuf serialization, which now writes log record trace and span ids given as aUint8Arrayas those bytes instead of corrupting them. -
#10737
a9b1998Thanks @effect-bot! - Deliver the last item taken from a closing queue before notifying its waiters, so a waiter cannot interrupt the take before it returns the item. -
#10727
b4803f0Thanks @effect-bot! - UpdateHttpApiScalar.layerto Scalar 1.81.0: bundled docs omit the undeclaredAccept: */*example header, honorcustomFetch, and support hiding Ask AI withagent.disabled; the unpacked package grows by about 3.7 MB. -
#10605
689c1baThanks @Marve10s! - FixHttpServerResponse.setStatus,removeHeaderand the cookie combinators resetting explicitcontent-typeandcontent-lengthheaders to the body's values. -
#10663
f12fefbThanks @mugnivenko! - SerializeResult.Successundersuccessinstead ofvalueintoJSON,JSON.stringifyand Node inspection output, matching itssuccessproperty. Code that readsvaluefrom a serializedResultshould readsuccess. -
#10616
f18320bThanks @effect-bot! - AdduseSemicolonDelimiteranddecodeStaticPathoptions toFindMyWay.RouterConfig, and aFindMyWay.strictConfigpreset that turns off path normalization and matches static route text literally. -
#10572
f89f473Thanks @srid! - Fix a stalledRpcClientstream consumer blocking other responses and keepalive pings on its socket or worker connection. -
#10579
7cb302bThanks @roninjin10! - Keep RPC and MCP stdio servers answering after a malformed NDJSON line, replying with a JSON-RPC-32700parse error and still handling the other frames.RpcSerialization'smakeUnsafeacceptsonDecodeErrorto receive malformed NDJSON frames instead of throwing, and a throwing NDJSON decode now discards its pending UTF-8 bytes. -
#10753
ae947a3Thanks @RhysSullivan! - AnswerRpcServerrequests over framed HTTP, andtools/callonMcpServer.layerHttpRequestScoped, without waiting for scheduler rounds first. -
#10658
cbe8b0eThanks @effect-bot! - Fix RPC socket request and acknowledgement write failures to fail withRpcClientErrorinstead of defects, preserving the socket error reason. -
#10551
3fcc7faThanks @fubhy! - Speed up failedSchemaBinarydecoding and encoding. -
#10569
2402fe3Thanks @gcanti! - Add the experimentalCodegen.Modulebuilder and fix recursive initialization, name collisions, generated types, and symbol identity in schema and OpenAPI generation.Remove
SchemaRepresentation.toCodeDocument,CodeDocument,Artifact, andmakeCode. Generate schema source withCodegen.Module.addSchemasandprint; construct{ runtime, Type }directly instead of callingmakeCode.Custom
toCodecallbacks must interpolate supplied argument strings unchanged and return supported schema/type expressions. Move unsupported code, such as functions with local declarations, into imported helpers.The
@effect/openapi-generator/OpenApiTransformermodule is removed. Use theOpenApiGeneratorservice to generate from an OpenAPI spec, selecting the output withformat.Some nullable OpenAI objects, such as
Batch.errors, now strip undeclared fields and no longer expose index signatures; use their declared fields instead. -
#10725
39bd6e0Thanks @gcanti! - ReportSchemaIssue.InvalidValuewhenSchemaGetter.encodeBase64,encodeBase64Url,encodeHex, orencodeUriComponentencounters an unpaired UTF-16 surrogate during encoding. -
#10721
57c8873Thanks @gcanti! - Encode negative zero as"-0"instead of"0"inSchema.NumberFromString,Schema.FiniteFromString, and numeric encodings derived withSchema.toCodecStringTree. -
#10595
d28a692Thanks @RhysSullivan! - FixSemaphoretaking quadratic time to drain a long queue of equally sized permit requests. -
#10688
9851931Thanks @effect-bot! - Wrap each SQL Migrator run in aMigrator.runtracing span with aneffect.sql.migrator.tableattribute, including runs with no pending migrations. -
#10563
7ed0880Thanks @asssslay! - Fix SQL Server updates failing in repositories created bySqlModel.makeRepository. -
#10761
7ec6395Thanks @haranishi! - Preserve completed SSE events when a later event exceeds the size limit in the same chunk. -
#10561
101e58bThanks @asssslay! - FixStream.filterEffectpredicate indices restarting at each chunk instead of counting across the whole stream. -
#10756
a2654f5Thanks @haranishi! - PreventStream.groupByandStream.groupByKeyfrom expiring groups while values are being queued. -
#10614
9bb48eeThanks @Marve10s! - FixLanguageModel.streamTextomitting approved and denied tool results whendisableToolCallResolutionis set, causingChat.streamTextto rerun approved tools on later turns. -
#10638
ec2c12aThanks @yuyongyan29-dev! - Preserve Unicode letters, combining marks, and numbers inStringword-case helpers, including non-ASCII config keys. -
#10549
fc69670Thanks @fubhy! - AddString.isWellFormedandString.toWellFormed, which check for and replace unpaired UTF-16 surrogates with the native ES2024 methods when the runtime has them. -
#10576
3ec2199Thanks @jasonkuhrt! - AcceptSchema.Enumparts inSchema.TemplateLiteralandSchema.TemplateLiteralParser, which threw "Invalid TemplateLiteral part Enum" although their types accepted them. -
#10730
b246e24Thanks @effect-bot! - Fail writes with a SocketError after an accepted socket's reader is released instead of waiting for a connection that cannot reopen. -
#10682
8564843Thanks @effect-bot! - AddTestConsolereaders for captured warning, info, debug, and trace parameters. -
#10517
88d028eThanks @fubhy! - AddTextDiff.hunks, which groups a line diff intodiff -ustyle hunks as data, optionally with the ranges that differ within changed lines. -
#10760
fec20c5Thanks @haranishi! - Traverse only matching branches when looking up keys, values, or entries by Trie prefix. -
#10604
394e32bThanks @Marve10s! - FixEffect.txspinning instead of waiting for a transactional value to change when its body recovers fromEffect.txRetry. -
#10628
c71de85Thanks @effect-bot! - Add awebsocket.highWaterMarkinbound byte limit to the Bun, Deno, and Node HTTP servers. A WebSocket that cannot pause now stops reading and closes onceSocket.fromWebSocketreports ahighWaterMarkoverflow, and empty frames count as one byte. Deno WebSocket frames that arrive before the client closes are no longer lost. -
#10781
b19b959Thanks @effect-bot! - Allow PostgreSQLPersistedQueueoffers to continue past the 32-bit sequence limit. -
#10644
9f00fd5Thanks @fubhy! - AddSharedMemoryallocation and schemas for shared typed arrays in workers. -
#10695
04e9e83Thanks @Federaffo! - FixWorkflow.addFinalizerfinalizers running before the workflow ends when a durable timer or deferred completes while another step is still running. -
#10574
ff34753Thanks @jpowersdev! - FixXml.decodeto fail with aSyntaxerror instead ofUnsupportedwhen an encoding declaration contradicts the bytes, and to reject a US-ASCII declaration after a UTF-8 byte order mark instead of accepting it. -
#10635
8745885Thanks @jpowersdev! - Add anamespaces: "strict"option toXml.decodeandXml.decodeStringthat reports thenamespaceandlocalNameof each element and rejects documents that are not namespace-well-formed. -
#10687
3058f01Thanks @jpowersdev! - AddXml.toEventsfor writing anXml.Elementtree withXml.encodeorXml.encodeString.