effect
4.1.2 · 2 Nov 2026MIT72.2M / weekRepositoryHomepagenpmAtom feed
Where each line stands
Plan an upgradeLatest releases
All 292 releases- 4.x · latest line
4.1.2
2 Nov 2026Fix
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.
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.
4.1.1
30 Oct 2026Restore
SchemaBinary.toCodecderivation forPrompt.FilePartand the AI response part schemas that include it.Fix
AtomRegistry.subscribewithoutimmediatenever notifying for an atom that has not been read yet. Subscribing now builds the atom, so the listener hears later changes. This also fixesget.subscribe,get.streamwithwithoutInitialValue, anduseAtomSubscribein@effect/atom-react.A failed build no longer makes
subscribethrow: the next read reports the failure, and the listener hears the recovery. An error thrown by a failed build's finalizer no longer aborts the next build; it is reported once that build has its value.Speed up
Base64Url.decodeandBase64Url.decodeStringby decoding the URL-safe alphabet directly, instead of transliterating the input and decoding it again as standard Base64.
Patch Changes
Restore
SchemaBinary.toCodecderivation forPrompt.FilePartand the AI response part schemas that include it.Fix
AtomRegistry.subscribewithoutimmediatenever notifying for an atom that has not been read yet. Subscribing now builds the atom, so the listener hears later changes. This also fixesget.subscribe,get.streamwithwithoutInitialValue, anduseAtomSubscribein@effect/atom-react.A failed build no longer makes
subscribethrow: the next read reports the failure, and the listener hears the recovery. An error thrown by a failed build's finalizer no longer aborts the next build; it is reported once that build has its value.Speed up
Base64Url.decodeandBase64Url.decodeStringby decoding the URL-safe alphabet directly, instead of transliterating the input and decoding it again as standard Base64.Limit
BigDecimalscales to prevent resource exhaustion.BigDecimal.fromStringandSchema.BigDecimalFromStringreject strings whose scale, before or after removing trailing zeros, is outside ±10,000, such as"1e300000000","10e10000"or more than 10,000 fractional digits.BigDecimal.fromStringUnsafethrows for them.Operations that align scales (
sum,subtract,remainder,scale,round,truncate,ceil,floor) throw aRangeErrorwhen the scales differ by more than 20,000.roundreturns values already at or below the target scale unchanged.
Enforce
MaxBodySizeon buffered request body reads inBunHttpServer,DenoHttpServer, andHttpServerRequest.fromClientRequest.Add
onRejectiontoCircuitBreaker.execute. With"allow", a call the circuit would refuse withCircuitOpenorCircuitHalfOpenruns unrecorded instead, while a call the circuit admits, probe included, is recorded as usual. Calls that must always run can then still count towards the breaker's state. Defaults to"fail", which keeps the current behavior.Pass
{ probe }toCircuitBreakerclassifycallbacks, includingHttpClient.withCircuitBreaker.probeistruewhen the call is the HalfOpen probe, so a classifier can count an outcome it otherwise ignores, such as a rate-limited response, as a failure that reopens the circuit. Existing one-argument classifiers are unchanged. The callback type is exported asCircuitBreaker.Classifier.Fix
ClickhouseMigratorfailing to create its migrations table or record applied migrations, by running those statements as ClickHouse commands instead of queries.Migrator.makeaccepts an optionaltransformWritesoption for these statements, defaulting toidentity.Retry transient
PersistenceErrors when a cluster workflow sends an activity or reads its reply during a pending interrupt, instead of storing the failure as a workflow defect. A request whose save was committed but not acknowledged is deduplicated, so the activity still runs once.A cluster client request whose send fails is no longer retained by
Sharding.Fix local callers of persisted entity requests hanging when a reply save commits but reports a failure, for example when the connection drops before the COMMIT acknowledgement arrives. The runner now checks storage for the committed reply and lets the caller read it, without replaying the request.
Fix persisted success replies being stored after a
ClusterSchema.WithTransactionrequest transaction rolled back. A failed save inside the request transaction is no longer retried, since a retry could autocommit the reply outside the aborted transaction (for example after a MySQL deadlock). The failed transaction now replays the request instead.Fix type-checking the
effectcrypto declarations with@types/node22 or 24 and without the DOM library. The*FromCryptoKeyconstructors inAead,Cipher,KeyAgreement,KeyWrap,MacandSignaturenow accept the new structuralWebCrypto.CryptoKeytype instead of the globalCryptoKey, and DOM and Node Web Crypto keys are both assignable to it. TheWebCryptoreference andWebCrypto.layernow use the type ofglobalThis.cryptoinstead of the globalCryptotype.Fix
DateTime.Zonedexposing itsadjustedEpochMillisecondscache as an enumerable property afterDateTime.toDate, which brokeObject.keys, spread and deep equality.Speed up
DateTimeconstruction by creating thepartsUtc,adjustedEpochMillisecondsandpartsAdjustedcache properties on first use. Reading and writing these fields is unchanged, butObject.hasOwn,Object.getOwnPropertyNamesandObject.getOwnPropertyDescriptorno longer report them before the caches are populated, or at all on instances sealed or frozen before first use. Reading the parts of, or writing these fields on, an instance frozen before first use no longer throws.Fix
Equal.equalsandHash.hashthrowing on plain objects whose"~effect/Equal"or"~effect/Hash"key is not a function. Such values are now treated as data.Verify the session authentication signature before an EventLog server binds a signing key to an identity, and reject a verified key that differs from the identity's existing binding. A request with an invalid signature no longer creates a binding.
EventLogServerUnencrypted.EventLogServerAuthorization.authorizeIdentityand theauthorizeIdentityoption ofEventLogServer.layerRpcHandlersnow also receive the presented signing public key. Use the newEventLogSessionAuth.deriveSigningPublicKeyto record an identity's signing key at provisioning time and reject any other key.Stop finished fibers from retaining their last span and stack frame. A finished fiber kept alive by a cache entry, observer or
Deferredno longer keeps the ended span's parent chain, and the success values recorded on those spans, from being garbage collected.Fix
Host.domainNameFromStringrejecting decomposed Unicode domain names.Fix
Effect.requestretaining completed requests and their async context in its batch pool.Stop GraphQL calls from succeeding on non-2xx HTTP responses. A non-2xx GraphQL body without
errors, including{ data: null }, now fails with aTransportErrorcarrying the HTTPstatus,headersandRetry-After, so retry policies onisRetryableapply. A non-2xx body withdataanderrorsfails with aResponseErroreven with{ partial: true }.Add
HttpClient.timeout, which fails requests that receive no response within the given duration with anHttpClientErrorwrapping aTransportError, so the timed client keeps the standardHttpClientservice type and is retried byretryTransient. The timeout covers the wrapped client until it returns a response, which for a plain client is when the response headers arrive; body reads after that are not covered.Fix
Iterable.takeWhileiterators yielding values or pulling from the source after they have returneddone.Fix
SchemaRepresentation.fromJsonSchemaDocumentrejecting objects whoseanyOf/oneOfbranches are combined with sibling properties that contain anenum, such as branches redeclaring an enum property already declared by the object.Declare
KeyFormat.JsonWebKeyinstead of referencing the DOM library's globalJsonWebKey, soeffectdeclarations type-check with Node-only types.Add MCP Skills extension (SEP-2640) support. Servers publish skills with
McpServer.skillorMcpServer.registerSkill. Clients opt in withextensions: { skills: true }and uselistSkills,getSkill,readResourceDirectoryandreadSkillResource, which verifies files against the listed digests and frontmatter.Fix
McpServertoolkit results whose encoded success is not JSON, such as aSchema.Void,Schema.DateorSchema.optionalfield, failingtools/callwith an internal error.structuredContentand its text mirror now use the same JSON encoding as the advertisedoutputSchema.Fix
McpServerreturning an internal error fromresources/listandresources/templates/listonv2026_07_28when an optional resource field isundefined.Recognize
.pyand.shfiles inMime.getType.Ndjson.decodeandNdjson.decodeStringnow also skip lines containing only spaces or tabs whenignoreEmptyLinesis enabled.Fix
OtlpSerialization.layerJsonwritingbytesValuedata as plain objects instead of base64 strings.Uint8Arrayviews and NodeBuffers are now encoded as OTLP/JSON expects.Fix
Path.formatdropping the dot before extensions given without one, such asext: "csv".Stop PgClient transactions from staying open after a pooler drops their prepared statements.
Fix
Pool.getandPool.usehanging in finalizers registered after the pool once its idle items expire. The pool now runs in a child scope that stays open until the pool shuts down.Speed up
FileSystem.globby reading subdirectories concurrently, in at most 16 forked fibers per call plus the calling fiber, and only forking a fiber for directory entries that need astatorreadLink. Results and their order are unchanged.Reclaim expired keys in
RateLimiter.layerStoreMemory. Each entry now expires once its state is indistinguishable from an unseen key, matching the TTLs of the Redis store, and a background sweep scoped to the layer removes expired entries every minute, so an idle store drains to empty instead of retaining every key it has seen.Fix
RateLimiterhandling of zero and negative limits:RateLimiterStore.fixedWindownow honors a zerolimitin the memory and Redis stores.The Redis fixed-window script now rejects an over-limit first request instead of charging it.
Delay-mode
RateLimiter.consumenow returns an infinite delay for a nonpositive limit instead of admitting requests.
Remove the
Effect.requestbatch pool and allocate a new batch for each batch key.Document that a request accepted by an
RpcClient.Protocolstays pending until a reply names it, and how a transport that only delivers requests acknowledgesdiscardcalls and rejects the rest.Fail discarded RPC calls (
discard: true) promptly on transport errors.A discarded call waited for its pending send to finish before reporting any failure. While a socket was disconnected the call hung instead of failing, and once it reconnected the request was still sent and the handler ran. Failures now complete the call immediately and interrupt the pending send. Successful acknowledgements still wait for the send to finish.
Fix
RpcClientacknowledging stream chunks dropped by an interrupted consumer, which could drain the entire server stream before the interrupt was sent.Fix
Rpc.SuccessChunkresolving toneverfor a union of RPCs.Fail only the affected calls when an
RpcClient.layerProtocolWorkerworker crashes.Brand SQL fragments and segments with the new
Statement.FragmentTypeIdandStatement.SegmentTypeIdsymbols, sosqlinterpolation binds plain objects shaped like fragments or segments as parameters instead of SQL; build fragments and segments with theStatementconstructors.Document how to retry serialization failures and deadlocks with
SqlClient.withTransaction.Encode
HttpApiSchema.StreamSsedatavalues with the schema's JSON codec, so schemas such asSchema.Date,Schema.BigIntandSchema.Optionround-trip through SSE events and are documented accurately in OpenAPI.Sse.encodernow removes CR and LF from eventidandeventvalues, and NUL fromidvalues, so they cannot add fields or events to the encoded stream.Speed up
Glob.matchby tracking match states as a bitmask and reading path segments without splitting the path. Patterns such as*.tsthat are a literal prefix and suffix around one*are also checked without backtracking, which helpsFileSystem.globtoo.Fix
OtlpSerialization.layerProtobufthrowing on metric data points withoutstartTimeUnixNano.Add
McpClientservercapabilities, discovery page and itemlimits, andtoolkitoptions for approved tool snapshots, complete results, returned failures, trusted annotations and tool customization.Fix
Tool.unsafeSecureJsonParseaccepting Unicode-escaped__proto__andconstructorkeys. JSON text containing a\uescape is now always scanned, so escaped spellings throw aSyntaxErrorlike their literal forms. Objects with anullconstructorvalue are accepted instead of throwing aTypeError.Add unstable
effect/josemodules for JWKs (generation, PEM/DER conversion and thumbprints), compact JWS and JWE, schema-typed signed and encrypted JWTs with decryption key resolvers, and local or remote JWKS resolution.Wake a parent workflow when its suspended child is interrupted with
ClusterWorkflowEngine, and surface the child's interruption to the parent as a defect fromChild.executeso the parent completes instead of replaying.
4.1.0
29 Oct 2026- breaking
Use
SecureRandomfor randomness and UUIDs, andDigestwith algorithm values such asDigest.sha256for hashing. Replaceeffect/testing/TestCryptowithLayer.mockfor the required services. - breaking
Provide crypto explicitly; it is no longer included in the runtime
*Servicesbundles.NodeCrypto,BunCrypto,DenoCryptoandBrowserCryptooffer individual family layers and a combinedlayer, supplyingSecureRandomwhere needed. Core modules offerlayerWebCrypto. - breaking
Provide
Digest.Digestinstead ofCrypto.CryptotoSqlMessageStorageandSingleRunner, and instead ofEventLogEncryptiontoSqlEventLogServerEncrypted.makeStorageandlayerStorage. ReplaceEventLogEncryption.sha256Stringwithdigest.digestHex(Digest.sha256, bytes).
Minor Changes
Add
Schema.isAscii, a check that accepts only ASCII strings, and the matchingSchemaRepresentation.isAsciiReviver.Add an optional
causeto the AINetworkError. It holds theHttpClientErrorthe request failed with, stored unchanged and not redacted, so the reason a request failed is no longer lost. The newNetworkError.fromHttpClientErrorsets it, and all AI providers now use it.NetworkError.fromRequestErroris unchanged.Fix
Atom.Serializableto encode to and decode fromSchema.Json, matching the JSON codec used byAtom.serializable. Encoded results may now require narrowing; runtime behavior is unchanged.Render inherited CLI flags in a separate
INHERITED FLAGSsection and add"full","summary", and"none"modes for inherited and global flags inCliOutput.defaultFormatter.HelpDocaddsinheritedFlags,commandPath, andglobalFlagsScopeprovenance so summaries can point to the appropriate help, with globals always listed on their declaring command. Custom formatters must read ancestor shared flags fromHelpDoc.inheritedFlagsinstead ofHelpDoc.flags.Add
runnerJoinDebouncetoShardingConfig. When set, a runner joining the cluster is only added to shard assignments once the healthy runners have stayed unchanged for that duration, or at most four times that duration after the first pending join. A scale-up or a deployment with a large surge then hands each shard off once instead of once per join. Runners that already hold shards and leave or become unhealthy are still published immediately; a pending runner that leaves only restarts the quiet period. While joins are pending, runners take no new shards, so a shard can stay unlocked briefly until each runner publishes. Defaults to0, which keeps the current behavior.Add
trimandkeepEmptyValuesoptions toSchemaGetter.splitKeyValue,SchemaTransformation.splitKeyValueandConfig.Record. Both default tofalse, so existing callers are unaffected.OtlpResource.fromConfignow trimsOTEL_RESOURCE_ATTRIBUTESkeys and values and keeps entries with an empty value as"".Add a
maxDepthoption toContext.makeUnsafe, controlling how manyContext.addcalls are kept as overlays before the context is rebased into a flat map. Defaults to 8.Add an
onDstOverlapoption toCronandSchedule.cronthat chooses which occurrences of local times repeated when clocks fall back are included:"earlier"(default),"later"or"both". It applies to every repeated local time, including ones not caused by daylight saving time.Cron.prevnow returns the latest matching instant before its input when starting inside a repeated hour. Near a spring-forward gap it no longer throws or returns an instant at or after its input.Replace
effect/Cryptowith family-specificeffect/crypto/*services, opaque keys,CryptoError, a configurableWebCryptoreference and key schemas ineffect/Schema. Encoding secret or private keys through byte/format schemas requires{ allowEncode: true }.
Breaking changes
- breaking
Use
SecureRandomfor randomness and UUIDs, andDigestwith algorithm values such asDigest.sha256for hashing. Replaceeffect/testing/TestCryptowithLayer.mockfor the required services. - breaking
Provide crypto explicitly; it is no longer included in the runtime
*Servicesbundles.NodeCrypto,BunCrypto,DenoCryptoandBrowserCryptooffer individual family layers and a combinedlayer, supplyingSecureRandomwhere needed. Core modules offerlayerWebCrypto. - breaking
Provide
Digest.Digestinstead ofCrypto.CryptotoSqlMessageStorageandSingleRunner, and instead ofEventLogEncryptiontoSqlEventLogServerEncrypted.makeStorageandlayerStorage. ReplaceEventLogEncryption.sha256Stringwithdigest.digestHex(Digest.sha256, bytes).
Existing workflow ID, activity idempotency key and event log table-name encodings are unchanged.
Event log encryption, identity key derivation and session authentication now run on
Aead,Digest,SignatureandSecureRandom.EventLogEncryption.makeandEventLogEncryption.layertake those services from context, so Node apps can use theNodeCryptolayers.EventLogEncryption.layerSubtleand the session auth functions use the Web Crypto layers on theWebCryptoreference instead ofglobalThis.crypto. Existing identities, derived signing keys and encrypted batches are unchanged.UUIDv7 and ULID generation is now monotonic below the maximum 48-bit timestamp, including within a millisecond and across clock rollback. Ordering is per
SecureRandominstance; the unsafe helpers and model UUIDv7 defaults share per-realm ordering.- breaking
Declare decision images as input fields with
Decision.Image, and addDecision.locate, which answers with a bounding box around one target in an image field.DecideOptions.imagesis removed. AddDecision.Imagefields to the input schema and refer to each image by its path in instructions:// Before DecisionModel.decide(Triage, { input: "Checkout error", images: [screenshot] }) // After const Triage = Decision.make({ input: Schema.Struct({ report: Schema.String, screenshot: Decision.Image }), decisions }) DecisionModel.decide(Triage, { input: { report: "Checkout error", screenshot } })Custom providers receive
imagesas{ reference, path, image }, with each image replaced by its reference instateand its data as a base64 string orURL.Decision.locate({ image: "photo", instructions })takes a path thatDecision.makechecks against the input's image fields. Providers opt in withsupportsLocate: true.Decision.AnyandDecisionModel.ProviderAnswergain locate variants, so exhaustive switches over them need aLocatecase.TypeSafeDecisionModelsupports images, sent as assets keyed by reference, and sends locate decisions as Box questions, which needjev-previeworjev-1.14.0. OpenAI and Cloudflare label each image with its reference.
- breaking
Add
Duration.formatIso,Duration.fromIsoandSchema.DurationFromIsoStringfor ISO 8601 durations. Only exact units are supported: weeks, days, hours, minutes and seconds. Years and months are rejected because they have no fixed length. - breaking
Add
Duration.toMicrosfor converting durations to microseconds. - breaking
Add encrypted remote compaction to the event log.
- breaking
Detect unsupported streaming request bodies in
FetchHttpClientand fail with anEncodeErrorinstead of silently sending[object ReadableStream]. SetFetchHttpClient.StreamBodyFallbackto"buffer"to buffer the body in memory on those runtimes instead. - breaking
Fence Redis PersistedQueue settlements and lock refreshes on a per-acquisition lock, so a stale handler can no longer release another live claim, including one with the same custom id in another queue. The lock format is incompatible with older workers on the same prefix: stop every old worker and let its locks expire before starting upgraded workers.
- breaking
Accept
{ self }before the generator body inEffect.fnUntracedandEffect.fnUntracedEagerto bindthis, matchingEffect.fn. - breaking
Add opt-in RFC 9457 Problem Details support to
HttpApi.ProblemDetailsineffect/httpprovides theapplication/problem+jsonmedia type, a lenient codec for problem details objects, and a response constructor.HttpApiError.Problem<Self>()(tag, { type, status, title }, fields?)declares a typed problem as a yieldable error class that endpoints render, document and decode asapplication/problem+json, discriminated bytype.HttpApiSchema.asProblemrenders a built-in error such asHttpApiError.NotFoundas a problem.HttpApiMiddleware.ProblemDetailswithHttpApiMiddleware.layerProblemDetailsrenders request decoding failures as a generic400problem (with per-fielderrorswhenincludeDetailsis enabled) and response encoding failures as a500problem.
The default behaviour is unchanged: without the opt-in, built-in errors and decoding failures still produce the same responses as before.
- breaking
Allow
HttpApiSchema.Upgradealongside ordinary success responses, for servers that decline the upgrade, and addHttpApiClient.isUpgradedto narrow the client result.HttpApiClient.Upgradedvalues now carry a[HttpApiClient.UpgradedTypeId]brand. Code that buildsUpgradedvalues by hand, such as client mocks, must add[HttpApiClient.UpgradedTypeId]: HttpApiClient.UpgradedTypeIdto the object literal. - breaking
HttpClient.withCookiesRefnow takes aRef<ReadonlyArray<Cookie>>and sends stored response cookies only to a matching host, path and scheme, using the newCookies.mergeIntoArrayandCookies.toRequestCookieHeader. Seed the ref withCookies.mergeIntoArrayor with cookies that set adomain. - breaking
Export
HttpClient.isTransientErrorandHttpClient.isTransientResponse, the predicatesretryTransientuses to decide what to retry. - breaking
Add
log: "Unhandled"toEffect.ignore,Effect.ignoreCause, and their Stream and Channel variants. This resolvesReferences.UnhandledLogLevelwhen a failure occurs and suppresses logging when that reference isundefined, while preserving each combinator's existing failure semantics. - breaking
Add
keystoKeyValueStoreandSchemaStore. It returns a snapshot of the keys in the store, in no particular order, and is implemented by the memory, file system, SQL, Web Storage and IndexedDB stores. Custom stores built withKeyValueStore.makeorKeyValueStore.makeStringOnlymust now providekeys.KeyValueStore.prefix(...)now scopeskeys,sizeandisEmptyto keys under the prefix, with the prefix removed from the returned keys. PreviouslysizeandisEmptyreported on the whole backing store.Stores built with
KeyValueStore.makethat don't provideclearPrefixnow derive it fromkeysandremoveinstead of failing for non-empty prefixes. - breaking
Add the unstable
Match.literalsandMatch.literalsExhaustiveAPIs for matching string and number literal unions with a record of handlers. - breaking
Add request-level dependencies and middleware to
McpServerso handler services can be supplied per request. Breaking: pass registration layers through the transport'sregistrationsoption, and capture construction-time handler services inLayer.unwrapinstead ofLayer.provide. - breaking
Add
McpServer.visibilityto hide tools, resources and prompts per request based on services provided by MCP middleware. Middleware that wraps a visibility now runs on list requests, once for each registration, soMiddlewareMethodincludes the list methods. Middleware provided both locally and globally now runs once. - breaking
Add a
cacheHintsoption to theMcpServerlayers to set how long clients may treatv2026_07_28discovery and list results as fresh, for examplecacheHints: { tools: { ttl: "1 minute", cacheScope: "private" } }. Results without a hint, andresources/read, keep{ ttlMs: 0, cacheScope: "private" }. - breaking
Expose
SqlMessageStorage.makeEncodedStorageto construct an encoded SQL message storage driver without running migrations or executing startup SQL. RunlayerMigrationsseparately with the same table prefix before using the driver;makeEncodedcontinues to run migrations by default. - breaking
Move
fromFileSystemfromeffect/sql/Migratortoeffect/sql/MigratorFileSystem, so React Native apps can importeffect/sql/Migratorandeffect/sqlunder Metro. Theeffect/sqlbarrel and@effect/sql-sqlite-react-native/SqliteMigratorno longer exportfromFileSystem; the other SQL adapter migrators still re-export it. - breaking
Type received and forwarded HTTP request methods as
stringso methods such asPROPFINDare represented accurately, including in AI HTTP error details. Exhaustive matches on request methods now need a fallback or a guard usingHttpMethod.isHttpMethod. - breaking
Isolate
Persistencestores on theKeyValueStoreand Redis backings. Clearing a store now only removes that store's entries, and different store / key pairs no longer map to the same backing key.Add
KeyValueStore.clearPrefix, implemented by the memory, file system, SQL, Web Storage and IndexedDB stores.KeyValueStore.prefix(...).clearnow only removes keys under the prefix. Stores built withKeyValueStore.makethat don't provideclearPrefixremove the matching keys one by one instead of clearing everything.Both backings now store entries under
<storeId>:<key>, with%and:in the store id percent-encoded.Key layout change. Entries written by earlier versions are not read back:
Persistence.layerKvs/layerBackingKvs: every existing entry becomes unreachable, because keys used to be<storeId><key>with no separator. Cached results are recomputed.Chat.layerPersistedon aKeyValueStorebacking loses its stored chat histories.Persistence.layerRedis/layerBackingRedis: keys are unchanged unless the store id contains%or:. Entries for those store ids become unreachable.
Old entries are not migrated or removed automatically.
- breaking
Add the unstable
Pool.StatsandPool.statsAPIs for sampling how many pool items are idle or in use and how many borrowers are waiting.PgPool.statsandPgClient.poolStatsexpose the same snapshot for PostgreSQL sessions, so applications can export connection pool metrics without reaching into pool internals. - breaking
Add experimental
Globpath matching and a sharedFileSystem.globimplementation for Node, Bun, and Deno.Breaking: custom
FileSystemimplementations, including inputs toFileSystem.make, must providereadDirectoryEntries; mappingreadDirectorynames to{ name, type: "Unknown" }is supported. Wrappers must apply directory-listing changes to both methods.FileSystem.makenow derivesglobinstead of accepting it. Apply custom overrides afterward withFileSystem.of({ ...fs, glob: customGlob }).Glob patterns use
/separators and backslash escapes; Node extglobs no longer expand. Results use/separators and are relative torootunless the pattern is absolute. Deno wildcards now skip dotfiles unless explicitly named ordot: true; unreadable wildcard-reached directories are skipped, while read failures at the root or a leading literal directory propagate.
- breaking
Add
CommandLinetoeffect/processfor quoting and joining command lines, and supportRedactedarguments andenvvalues inChildProcess.Migration:
ChildProcess.maketemplates keep quoted words together and throw aCommandLineErrorfor shell syntax such as|,$HOMEor*. Quote such characters or pass them with${}.With the
shelloption, templates cannot contain${}values and extra arguments fail withBadArgument. Pass the whole script as the command, built withCommandLine.join.StandardCommand.argsandenvvalues can beRedactedstrings.ChildProcess.TemplateExpressionandChildProcess.TemplateExpressionItemare removed. Use theCommandLinetypes of the same name.
- breaking
Remove
AiError.HttpRequestDetailsandResponse.HttpRequestDetails, so AI errors and response metadata no longer carry request headers or query parameters.AiError.NetworkErrorrecords the request asmethodandurlfields instead ofrequest, and therequestfield is gone fromAiError.HttpContextandResponse.ResponseMetadataPart. - breaking
Calls made with
discard: truenow complete when the server acknowledges them, instead of when the request is written.SchemaBinary peers must be upgraded together because the new
discardfield changes the envelope fingerprint. - breaking
Add an
onDisconnectoption toRpcServer.makeand its layer and HTTP wrappers, so applications can observe client disconnects without taking fromProtocol.disconnectsand preventing the server from interrupting the disconnected client's requests. - breaking
sql.insertandsql.updateValuesnow require a non-empty array of rows at the type level. Narrow array inputs withArray.isReadonlyArrayNonEmptybefore passing them to these helpers. - breaking
Fix a SQLite client hanging forever after a queued
withTransactionorreservewas interrupted just as it received the connection. The interrupted acquisition could keep the connection's only permit without registering its release.Add
Semaphore.takeScoped, which holds permits until the current scope closes. Waiting can be interrupted unless the caller is uninterruptible, and acquired permits are always returned when the scope closes. - breaking
Add
Terminal.size, a scoped queue that starts with the current terminal dimensions and receives each resize. Custom terminals passed toTerminal.makemust now supplysize. - breaking
Toml.parsenow returns aResultinstead of throwing, failing with anEncodingErroron invalid input. It also rejects documents that extend an inline table or a statically defined array, which TOML 1.0 forbids.
Patch Changes
Report unobserved release failures at
UnhandledLogLevelfor RcMap and RcRef idle expiry, abandoned interrupted RcMap lookups, and ScopedCache expiry discovered by keys, values, or entries scans. Preserve failure propagation when cleanup is observed by a caller.Base64Url.decodeandBase64Url.decodeStringnow reject partially padded input such asZg=. Unpadded input (Zg) and fully padded input (Zg==) still decode.Fix
BigDecimal.fromStringandBigDecimal.fromStringUnsafeaccepting a sign after the decimal point.Release a frozen runner's MySQL shard locks after
shardLockExpiration.SqlRunnerStoragesetswait_timeouton its MySQL lock connection, and restores it before returning the connection to the pool, so a runner that stops refreshing loses its named locks instead of holding them until the server drops its TCP connection. Vitess ignoreswait_timeout, so runners behind Vitess keep the previous behavior.Restore
idle_session_timeouton the PostgreSQL shard-lock connection beforeSqlRunnerStoragereturns it to the pool, so other queries on that connection no longer have their session ended aftershardLockExpirationidle.Reject an append assignment such as
FOO+=bar cmdinCommandLine.templateandChildProcess.makewithUnsupportedSyntax, asFOO=bar cmdalready is, instead of runningFOO+=baras the program.Keep the source context's
maxDepthwhenContext.pickis given zero or one key, and reduce the bundle size ofContext.makeUnsafe.Support duplex
additionalFdsthroughgetInputFdandgetOutputFd, preserving both directions when used withpipeTo.Fix
SchemaRepresentation.toCodeDocumentlosing__proto__properties or changing object prototypes in generated annotations.HttpTraceContext.fromHeadersnow rejects uppercase hex trace and span IDs intraceparent,b3andX-B3-*headers, matching the lowercase encodings required by W3C Trace Context and B3. Previously they were accepted and propagated unchanged, which conforming downstream receivers reject.Reject
traceparentheaders with malformed trace flags inHttpTraceContext. Flags that are not two lowercase hexadecimal digits now returnOption.none()instead of continuing the trace.Make
removeonKeyValueStore.layerFileSystemsucceed when the key does not exist, matching the other backends.Stop
McpServerfrom sending stateful clients list-change notifications for changes made before the server handled theirinitializerequest, over stdio, HTTP sessions and custom transports.Let
McpServermiddleware and visibility layers receive per-request services fromHttpRouter.middlewareunderlayerHttp. Unmet per-request services now stay asMcpRequest<"Requires", S>layer requirements, replacingMissingRequestDependencies.Add
McpTest.makeClient, an in-memory MCP client for testingMcpServerregistrations over the JSON-RPC wire encoding.Otlp.layer,Otlp.layerFromConfig,Otlp.layerJsonandOtlp.layerProtobufnow declare the sharedOtlpExporter.Flusherthey provide, instead ofLayer<never>.Preserve a leading UTF-8 BOM in URL-encoded body field names.
Preserve a leading
?in URL-encoded form field names.urlParamsBodypreviously dropped it as a query-string prefix, so?name=valuedecoded toname.Add the unstable
Csvmodule toeffect/encodingfor streaming CSV parsing and writing over text or UTF-8 bytes, with header records and schema adapters that convert cells throughSchema.toCodecStringTree.Prevent excessive CPU use when
Schema.fromFormDataandSchema.fromURLSearchParamsdecode field names containing unmatched opening brackets.Fix
Schema.TaggedUnion.matchandmatchOrElsereturn inference and handler input types, and narrowmatchOrElsefallbacks to unhandled variants.Remove explicit output type arguments from
Schema.TaggedUnion.matchandmatchOrElsecalls; annotate handler return types when an explicit output is needed.Fix
Toml.parseaccepting out of range dates and times such as1979-02-30or24:00:00, and rolling1979-02-30T07:32:00Zover to March 2 instead of rejecting it.Fix
Toml.parserejecting multiline basic and literal strings ending with one or two content quotes.Store the empty string key in
Trieinstead of silently discarding it. Construction, lookup, replacement, modification, removal, iteration andlongestPrefixOfnow treat""like any other key.Support YAML 1.1 merge keys (
<<) inYaml.parse. An unquoted<<key merges a mapping, or a sequence of mappings, into the enclosing mapping. Explicit keys take precedence over merged keys, and earlier merge sources over later ones. Quote the key ("<<") to keep it as an ordinary key.Fix
Yaml.parserejecting block sequence entry mappings whose first key sits more than one space after the dash. Later keys in the entry must now align with the first key, and a tab before the first key is rejected.
Dependency tracking · free for 3 projects
Know when your own dependencies move
effect had 1 security advisory in the last 12 months. inlinr emails you the day one touches a project of yours, with the version that fixes it.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Registry facts last checked 6 Nov 2026. Releases and advisories last read 6 Nov 2026.