Release History
This page records how the handbook has evolved: one entry per audited Effect release, newest first. Each entry names the release the handbook was audited against, the changes in Effect that a reader of the previous entry needs to know about, and what changed in the handbook itself.
It is a curated reader's changelog, not a copy of Effect's. Entries keep only what changes how you write or operate Effect code: behavior, types, stability, renamed options, span and metric names, and new public surfaces. Fixes that only made the implementation match what the handbook already described are left out. The per-package CHANGELOG.md files in the Effect repository stay the authoritative record of every change.
Reading it when you upgrade. Find the entry for the version you are pinned to, then read every entry above it. Each entry's items link to the handbook section that now owns the topic. Read that section rather than the summary line. Editions are published per major.minor (see Match the edition to the installed Effect version); a patch release updates its edition in place and gets its own entry here.
effect@4.1.4 — audited 2026-11-19
Edition 4.1 (patch update; full source audit). Tag effect@4.1.4, commit 289a53f7, published 2026-11-11. Baseline: effect@4.1.0, the previous full source audit. Range reviewed: every package changelog entry and all 253 commits covering published 4.1.1, 4.1.2, 4.1.3, and 4.1.4, which the 4.1.1–4.1.3 entries below recorded only as dependency refreshes. npm omits gitHead; the tarball integrity and npm provenance (build commit 289a53f7) match the release tag.
Changes in Effect that matter to readers
New public surfaces and stability
No existing module changed its module-level
@stability. New modules and packages:- unstable: root
Rational;effect/encodingJson5andJsonc; the neweffect/josefamily (Jwk,Jws,Jwe,Jwt,Jwks,JoseError);effect/rpc/OpenRpc;effect/cli/CommandSpec;effect/cluster/MessageRetention;effect/ai/WorkloadIdentitywith provider modules in@effect/ai-anthropic,@effect/ai-openai, and@effect/ai-openrouter; the@effect/ai-amazon-bedrockpackage; - stable:
Runtime.InterruptExitCode; - experimental:
effect/aiAgUi,AgUiSchema, andAgUiServer; the@effect/platform-cloudflarepackage.
Upstream also clarified the contract:
unstableAPIs may gain features in a patch release. See Stability and support.- unstable: root
JOSE: algorithm-bound JSON Web Keys, compact JWS and JWE, schema-typed JWTs, and local or remote JWKS resolution with algorithm allow-lists (#9883). See JOSE: tokens and keys.
Exact fractions:
Rational, withSchema.Rational,Schema.RationalFromString, andSchemaRepresentation.RationalReviver(#9990). See Rational.Configuration formats:
Json5.parseandJsonc.parsereturnResult<unknown, EncodingError>(#9972). See Json5 and Jsonc.OpenRPC:
OpenRpc.fromRpcGroupgenerates an OpenRPC document from an RPC group (#10173). See OpenRpc.CLI documentation specs:
CommandSpecprojects a command path into plain data, andFlag.annotate,Argument.annotate, andParam.annotateattach metadata (#10377). See CommandSpec.Cloudflare cluster:
@effect/platform-cloudflareruns cluster entities, workflows, durable queues, and singletons on Durable Objects, with optional Alchemy deployment (#7322). See Running on Cloudflare Durable Objects.Message retention:
MessageRetention.makedeletes a persisted entity's completed requests after a retention age; customMessageStoragedrivers must implementdeleteProcessed(#10267). See MessageRetention.AI providers and protocols:
@effect/ai-amazon-bedrocksigns Converse requests with SigV4 or a Bedrock API key (#9980);WorkloadIdentityexchanges platform identity tokens for short-lived provider tokens (#10512, #10482); AG-UI serves an agent to frontends with client-executed tools (#9842). See Provider packages, WorkloadIdentity, and AgUiServer.
Telemetry names and wire-visible behavior
- Span status:
OtlpTracerandOtelTracerleave a successful span's status Unset instead of OK (#10440). Migration: rules matchingstatus = OKmust matchstatus != ERROR. See What ends up on a span. - MCP spans:
McpServerspans follow the OpenTelemetry MCP conventions ({method} {target}withmcp.*andgen_ai.*attributes) and continue a client'straceparent; tool spans no longer record arguments unlessToolkit.RecordToolArgumentsis set (#10304). See Tracing. - SQL transaction spans:
BEGIN,COMMIT,ROLLBACK, savepoints, and connection waits are child spans ofsql.transaction, replacing theeffect.sql.transaction.*span events (#10213). See Transactions. - OTLP: metrics without a unit export an empty unit instead of
"1"(#10385); idle log and trace exporters no longer keep a Node process alive (#10235). See OtlpMetrics and OtlpExporter. - Span redaction:
HttpApi.RedactedNamesdeclares query and header names to redact in client and server spans (#9995), andHttpClientErrorURLs use the redaction names active when the error is created (#10006). See HttpApi and HttpClientError. - JSON codecs at tool and stream boundaries: tool results, declared MCP tool failures, and
HttpApiSchema.StreamSsedata are encoded with their schema's JSON codec, so aTool.dynamictool without asuccessschema must return JSON (#10362, #10243, #10148). See Failure results and their wire format and HttpApiSchema. - SSE framing:
Sse.encoderstrips CR and LF fromidandeventand NUL fromid(#10182). See Sse. - Exit codes:
Runtime.InterruptExitCodelets a deliberate interruption choose its exit code instead of 130; RPC and MCP stdio servers now exit 0 after stdin closes (#10475). See Runtime. - Bun and Deno: servers answer
503instead of404while no app is served (#10289), and enforceMaxBodySizeon buffered reads (#10192). See Own the listener.
Behavior, types, and security
- HTTP client:
HttpClient.timeoutfails a request that receives no response in time with a retryableTransportError(#10207);HttpClient.withScopenow owns every request sent during the execution, including redirects, retries, and middleware requests (#10363). See Retries, time budgets, and cancellation and Response lifetimes andwithScope. - HTTP server shutdown: a transferred request scope closes only after both the request and its body finish (#10366); Node closes WebSockets with code 1001 at shutdown and destroys connections left at the graceful timeout (#10405, #10360, #10300). See HttpEffect.
- SQL transactions: a statement or nested transaction run from a fiber that outlives its transaction now fails instead of using the transaction's connection (#10433, #10434). See Transactions.
- SQL driver types: driver clients extend
SqlClient.Baseinstead ofSqlClient, and providing a genericSqlClientlayer no longer removes a driver service from requirements (#10387, #10403). Migration: provide the driver layer itself where a driver service is required. See The driver packages. - PostgreSQL values: an unregistered value that cannot be decoded fails only that query, naming the column (#10422). See Native client behavior.
- Event log authentication: the server verifies the session signature before binding a signing key;
authorizeIdentityreceivessigningPublicKey(#10185, #10211). See EventLogServerUnencrypted. - Resource limit: BigDecimal parsing rejects scales outside ±10,000, and scale alignment beyond 20,000 throws
RangeError(#10188). See BigDecimal. - Ref equality: the identity
EqualforRefandMutableRefwas reverted, so distinct refs with equal contents areEqual(#10247). See Ref. - Workflows and cluster:
ClusterWorkflowEngineretries transient storage failures instead of recording defects, an interrupted child wakes its parent, and a runner that lost its shard cannot delete newer activity results (#10206, #10260, #10311, #10356, #10146, #10226); entity defect backoff is per entity (#10261). See ClusterWorkflowEngine and Entity. - Persistence:
PersistedQueueofferacceptsdeduplicate: "untilExecuted"(#10316);RateLimiterlimits of 0 or less admit nothing and Redis keys are isolated (#10103, #10210);CircuitBreaker.executegainsonRejectionand classifiers receive{ probe }(#10142, #10169); theredispeer minimum is 5.1.0 (#10153). See PersistedQueue, RateLimiter, and CircuitBreaker. - RPC: handlers may fail with their server middleware's errors (#10418); discarded calls fail promptly on transport errors, and a custom client
Protocolmust reply to every accepted request (#10121, #10171). See RpcGroup and RpcClient. - GraphQL: calls never succeed on a non-2xx response (#10208). See GraphQLClientError.
- AI and MCP:
generateObjectacceptsallowEmpty(#10527); MCP Skills are served on every supported protocol revision (#10082, #10540);McpClientgains capabilities, discovery limits, and toolkit options (#10049). See LanguageModel, Skills, and McpClient. - CLI:
Command.validatecan fail with your own errors, whichCommand.runreports like handler failures (#10376). See Validating input across flags. - Schema: fields named after
Object.prototypemembers match only own properties (#9612);isAnyOfaccepts only union tags (#10355);SchemaBinaryadds fixed-width integers and rejects non-numbers in number arrays (#10230, #10288); JSON Schema import adds experimentalcloseObjects(#10521). See Structs, SchemaBinary, and JsonSchema. - Time zones: named zones keep the supplied identifier, aliases included (#10439). See Time zones.
Changes in the handbook
- Completed the 4.1.0 → 4.1.4 source audit of every canonical page and deep dive; public-module and package coverage deficits are zero.
- Added module sections for
Rational,Json5,Jsonc, the six JOSE modules,OpenRpc,CommandSpec,MessageRetention,WorkloadIdentity,AgUiSchema,AgUi, andAgUiServer, plus entries for@effect/ai-amazon-bedrockand@effect/platform-cloudflare. - Corrected the
Ref/MutableRefequality claims, the success span status, the HTTP server claim that every handler is interrupted on disconnect (apps run uninterruptibly unless they opt in), thewithCookiesReftype, theredisand Reactschedulerpeer ranges, the PostgreSQL unregistered-value behavior, and theOpenAiStructuredOutputscope. - Added migration notes for silently ignored v3 Schema
concurrency,batching, andparseOptionsannotations;withScopeownership; RPC middleware errors; MCP span names; and tool spans. - Added catalog capabilities and retrieval cases for exact fractions, JSON5/JSONC, exit codes, JOSE, message retention, Cloudflare clusters, AG-UI, and workload identity.
- Updated
@effect/tsgofrom 0.67.7 to 0.70.0 and Vitest from 5.0.5 to 5.1.1, added the Bedrock and Cloudflare packages to the validation workspace, and repinned release-matched upstream links toeffect@4.1.4.
effect@4.1.3 — audited 2026-11-10
Edition 4.1 (patch update). Tag effect@4.1.3, commit 7865dbbb, published 2026-11-10. Baseline: effect@4.1.2.
Changes in Effect that matter to readers
This entry records a dependency and example-validation refresh, not a complete release-delta or source audit. Consult the upstream changelog for changes since 4.1.2; coverage of newly added APIs remains outside this update.
- Tool-call JSON boundary: unresolved user-tool parameters are now typed
Schema.Json, andToolkit.handledecodes their JSON codec rather than the schema's ordinary encoded form (#10332). DecodeSchema.toCodecJson(tool.parametersSchema)before typed policy checks, but pass the original JSON tohandle. See Tool-call resolution and Mutation gates.
Changes in the handbook
- Updated
effectand every pinned release-train@effect/*dependency from 4.1.2 to 4.1.3, including doctest, platform, SQL, AI, React, GraphQL, telemetry, and Vitest integrations. - Updated the separately versioned
@effect/tsgocompiler tooling from 0.63.0 to 0.67.7; retained strict diagnostics and the existing advisoryunstableApiUsageexception. - Repaired both application-gate examples to decode JSON before authorization and idempotency checks, without casting away the new parameter type.
- Updated central release metadata, runtime-probe provenance, reproducible installation pins, exact release-age exclusions, and the workspace lockfile. The previous full source audit remains the baseline; see Version and validation scope.
effect@4.1.2 — audited 2026-11-02
Edition 4.1 (patch update). Tag effect@4.1.2, commit 506eef14, published 2026-11-02. Baseline: effect@4.1.0.
Changes in Effect that matter to readers
This entry records a dependency-only refresh, not a complete release-delta or source audit. Consult the upstream changelog for changes since 4.1.0; coverage of newly added APIs remains outside this update.
Changes in the handbook
- Updated the validation package's
effectand matching@effect/*dependencies to 4.1.2, with exact release-age exclusions and a regenerated workspace lockfile. - Kept
@effect/tsgoat 0.63.0 and its existing diagnostic configuration unchanged. The full example suite is validated against the updated runtime packages. - Updated central release metadata and reproducible installation pins. The previous full source audit remains the baseline; see Version and validation scope.
effect@4.1.0 — audited 2026-10-29
Edition 4.1 (new edition; the 4.0 edition is frozen at effect@4.0.5). Tag effect@4.1.0, commit 9a91b192, published 2026-10-29. Baseline: effect@4.0.5 (published 2026-10-15). Range reviewed: all package changelogs, changesets, and 579 commits covering published 4.0.6, 4.0.7, and 4.1.0. npm omits gitHead; the package integrity, provenance, and published source were checked against the release tag.
Changes in Effect that matter to readers
New public surfaces and stability
No module present in 4.0.5 changed its module-level
@stability. New modules:- unstable: root
Bytes,SemVer,SemVerRange;effect/encodingCsv,JsonArray,Tar;EventRow,ProblemDetails,OtlpProxy,UserDirectories,CommandLine,MigratorFileSystem,TerminalCapabilities,McpTest, and the neweffect/cryptofamily; - experimental:
Glob,TextDiff,Xml,Zip,persistence/CircuitBreaker,McpClient,McpClientError.
Sources: #9441, #9243, #9291, #9431, #9148, #9420, #9419, #9434, #9438, #9646, #8862. Stable modules gain a few unstable exports:
Match.literals/literalsExhaustive,Metric.remove/registerUnsafe,Pool.stats(#9824, #9572, #9090). See Stability and support.- unstable: root
Deep imports of nested
internalmodules are blocked by the packageexportsmap (#9326). Migration: import only public entry points. See Getting Started.Migration:
effect/Cryptoandeffect/testing/TestCryptoare removed in favour ofeffect/crypto/*:SecureRandom,Digest,Aead,Cipher,Mac,Signature,Kdf,KeyAgreement,KeyWrap,KeyFormat,CryptoError,WebCrypto(#9126). This also supersedes the 4.0.5TestCryptoandrandomUUIDv4()notes.- Crypto is no longer bundled in the
*Serviceslayers. ProvideNodeCrypto/BunCrypto/DenoCrypto/BrowserCrypto.layer(or a per-familylayer*), or a corelayerWebCrypto. - Tests use
Layer.mock. SqlMessageStorage,SingleRunnerand encrypted event-log server storage now requireDigest.Digest.- Persisted workflow IDs, idempotency keys and event-log encodings are unchanged.
- Crypto is no longer bundled in the
Runtime, errors, and layers
Defects take precedence in mixed causes. Typed recovery (
catch,catchTag, error-mapping recovery, retry) skips a cause that contains a defect and turns every typed error in it into a defect; error mapping maps every typed error in place (#9516, #9433). UsecatchCauseorcatchDefectto handle such causes. See Recovery and mixed causes, Typed recovery and mixed causes.Composed layers are memoized by identity again, as in v3. A composed layer shared by several parents is built once per
MemoMap, including anyLayer.freshdependencies inside it (#9634). Wrap the composed layer itself inLayer.freshfor a separate copy. See What is shared and what is rebuilt.RefandMutableRefcompare by reference (#9768).ArrayBuffers compare and hash by bytes (#9769). Migration:Exit.hasFails/hasDies/hasInterruptsandAsyncResult.isInterruptedare no longer type guards; narrow withExit.isFailure(#9799). See Ref, Exit.New small runtime APIs:
Effect.ignore({ log: "Unhandled" })and its Stream/Channel variants (#9510);Semaphore.takeScoped(#9962);Effect.fnUntracedaccepting{ self }(#9713).
Release failures nobody observes (RcMap/RcRef idle expiry, ScopedCache scans) are logged at
UnhandledLogLevel(#9388). See Semaphore, RcMap.Schedule.fibonaccinow repeats the initial delay (100, 100, 200, 300 ms…), so later retries come sooner (#9917).Cron/Schedule.crongainonDstOverlapfor repeated local times (#9905).DurationgainsformatIso/fromIso(exact units only) andtoMicros(#9891, #9973). See Cron, Duration.Upstream stream failures in
Stream.run,peelandaggregate*bypassSink.mapError/catch*/orElseand reach the caller unchanged (#9803). See Sink.
HTTP, HttpApi, and platform hosts
Migration:
HttpMiddleware.xForwardedHeadersis now a function taking{ trustedProxies }(anIpNetworklist), and appliesX-Forwarded-*only from trusted peers.HttpServerRequest.toURLuses the newrequest.protocol, and the peer isrequest.peerAddress(#9701). NodeoriginalUrlis absolute when a Host header is present; read paths fromurl(#9415). See HttpMiddleware.Request data leaks less:
HttpClientErrortoJSONshows only the method and redacted URL (#9855);HttpServerErrormessages carry only the path (#10011);- AWS SigV4 query parameters are redacted by default (#9903).
Migration:
AiError.HttpRequestDetailsandResponse.HttpRequestDetailsare removed, andNetworkErrorexposesmethodandurlinstead ofrequest(#10010). See HttpClientError, AiError.Migration:
HttpClient.withCookiesReftakes aRef<ReadonlyArray<Cookie>>(notRef<Cookies>) and sends cookies only to the matching host, path and scheme. Seed it withCookies.mergeIntoArray(#9614). Migration: received request methods are typedstring; exhaustive switches need a default orHttpMethod.isHttpMethod(#8766). See HttpClient.Headersgains typed HTTP-date andRetry-Afterparsing, with matchingSchemacodecs. Invalid or fractionalRetry-Aftervalues are now ignored byretryTransient/withRateLimiter(#9709). Other additions:HttpClient.isTransientError/isTransientResponse(#9059);- experimental
HttpClient.withCircuitBreaker(#9646); HttpClientResponse.toWeb(#9673).
FetchHttpClientfails withEncodeErroron runtimes without streaming request bodies unlessStreamBodyFallbackis"buffer"(#9567). See HttpClient.Raw HTTP/1.1 upgrades (
HttpClientRequest.upgrade,HttpApiSchema.Upgrade) arrive. CustomHttpClientResponseimplementations must addupgrade(#9339). Upgrade endpoints can declare101headers and buffered payloads, and can sit alongside ordinary success responses (#9751, #9945). Migration: hand-builtHttpApiClient.Upgradedmocks need theUpgradedTypeIdbrand; narrow withHttpApiClient.isUpgraded. See Upgrades.New
HttpApifeatures:- streaming request payloads via
StreamUint8Array/StreamNdjson, withmaxByteslimits andHttpApiPayloadTooLarge(413) (#9575); - opt-in RFC 9457 Problem Details via
HttpApiError.ProblemandHttpApiMiddleware.layerProblemDetails(#9706); HttpApiClient.decodeResponse(#9944).
Oversized bodies return 413, and web/Bun/Deno servers now enforce
MaxBodySizeon buffered reads (#9835). See Problem Details, Streaming request payloads.- streaming request payloads via
Migration (deployment):
@effect/platform-node,platform-node-shared,opentelemetryanddocgenrequire Node ≥ 22.19.0 (#10084), and@effect/platform-denorequires Deno ≥ 2.9.3 (#9702).- Node WebSocket clients use the global
WebSocket.wsmoves to the newNodeWSmodule: replaceNodeSocket.NodeWSandlayerWebSocketConstructorWSwithNodeWS.WebSocketandNodeWS.layerWebSocketConstructor, which also keeps backpressure and custom headers. NodeHttpServeraccepts HTTP/2 servers (#9710).BunHttpServerdisables Bun's 10 sidleTimeoutunless set (#9705).- Node stream pulls are bounded by
chunkSizechunks; use the newreadSizefor byte read sizes (#9327).
See Platform packages, Socket.
- Node WebSocket clients use the global
Processes, file systems, terminals, and CLI
Migration:
ChildProcess.maketemplates now parse as a command line (#9752, #9863).- Quoted words stay together, and unquoted shell syntax (
|,$HOME,*,FOO+=x) throwsCommandLineError. Quote such text or interpolate it with${}. - With
shell, build the script withCommandLine.join. ChildProcess.TemplateExpression*moves toCommandLine.- Arguments and
envacceptRedacted.
exitCode/string/linesdrain unread pipes instead of hanging (#9846). See ChildProcess, CommandLine.- Quoted words stay together, and unquoted shell syntax (
Migration (custom implementations):
FileSystem.makeinputs must providelstatandreadDirectoryEntries, andglobis now derived (#6428, #9438).Terminal.makeinputs must providesize, a resize queue (#9639).FileSystem.globis experimental, uses/separators, and no longer expands Node extglobs. See FileSystem, Glob, Terminal.Migration: a single-valued CLI flag given twice now fails; use
Flag.atLeast/atMost/between(#9872).-num=3lexes as short flags; use--num=3(#9287). New CLI APIs:Command.validate(#9655) andFlag.withNegation(#9650);CliOutput.Presenter(#6743) andTerminalCapabilities, which honoursFORCE_COLOR/TERM=dumb(#8350);Completions.fromCommand(#9976) and theCliError.userMessageannotation (#8349).
Help shows an
INHERITED FLAGSsection, and custom formatters must readHelpDoc.inheritedFlags(#9276). See CliOutput, TerminalCapabilities.
SQL, persistence, event log, cluster, and RPC
Migration:
sql.insertandsql.updateValuesrequire a non-empty array at the type level (#9453). TheupdateValuesalias is escaped as an identifier, so pass it bare (#9759).fromFileSystemmoves toeffect/sql/MigratorFileSystem; adapter*Migratormodules still re-export it (#9157).- Migrations fail with a typed
MigrationError(#9598). - Third-party drivers must set
SqlClient.make({ driver })(#9222). - New:
SqlClient.afterCommitandBeginTransaction(#9289, #9576);sql.in([])now compiles to an always-false (IN) or always-true (NOT IN) predicate (#9758); PostgreSQLacquireTimeout,onAcquireandpoolStats(#9641, #9738, #9090).
- Migrations fail with a typed
Migration (persistence):
PersistenceonKeyValueStorenow keys entries<storeId>:<key>, so every existinglayerKvsentry becomes unreachable, includingChat.layerPersistedhistories. Redis is affected only for store ids containing%or:(#9223).- Custom
KeyValueStore.makestores must implementkeys, andprefix(...)scopessize/isEmpty/clear(#9844). - The Redis
PersistedQueuelock format changed: drain old workers and let their locks expire before starting upgraded ones (#9229). Redis.makerequiresconnect, andRedis.reserveleases dedicated connections for blocking commands (#9828).
See Backing layers, Redis, PersistedQueue.
- Custom
Migration (wire): event-log writes are now acknowledged instead of echoed, and encrypted replication batches entries (#9477, #9479). Upgrade clients and servers together, and start encrypted servers on fresh storage.
EncryptedEntryis nowEncryptedBatch, and custom journals must addentriesById/writeRemoteAcks. SQL and IndexedDB journals migrate on first open (#9482). New: encrypted remote compaction (#9571),EventRow(#9523),EventLog.writeMany(#9452). See EventLogRemote, EventRow.In
calculateNextRunFromPreviousmode,ClusterCronruns through one executor entity per job. Read the scheduled time fromClusterCron.CurrentScheduledTime, notEntity.CurrentAddress; a failing run now blocks later runs while it retries (#9677).- Frozen runners lose PostgreSQL/MySQL shard locks after
shardLockExpiration(#10037, #10093). ShardingConfig.runnerJoinDebouncebatches handoffs during surge deploys (#10073).- New
ClusterMetricsseries:shardReleaseDuration,shardsReleasing,entityMailboxSize[Max](#9256, #9513, #9578, #9572). SqlMessageStorage.makeEncodedStorageskips migrations (#9330).
See ClusterCron, SqlRunnerStorage.
- Frozen runners lose PostgreSQL/MySQL shard locks after
Migration (wire): RPC calls with
discard: truecomplete when the server acknowledges them. TheSchemaBinaryenvelope fingerprint changed, so upgrade those peers together (#9182). The RPC NDJSON content type isapplication/x-ndjson; existing RPC HTTP peers stay compatible (#9562). New:RpcServeronDisconnect(#9688) and opt-in HTTP requestbatching (#9656). WithdisableFatalDefects, a synchronous handler throw fails only its own request (#9899). See RpcSerialization.
AI and MCP
Migration:
DecideOptions.imagesis removed. DeclareDecision.Imagefields in the input schema; the newDecision.locatereturns bounding boxes, and exhaustive switches needLocatecases (#9177).DecisionModel.decideSettledkeeps valid answers alongside per-decision failures (#9437).Migration: pass
McpServerregistration layers through the transport'sregistrationsoption, and capture construction-time services withLayer.unwrap(#9154). Unmet per-request services surface asMcpRequest<"Requires", S>(#9856). New:McpServer.visibility(#9661),cacheHints(#9939), the in-memoryMcpTest.makeClient(#9657), and the experimentalMcpClient(#8862). See McpServer, McpClient.Provider changes (#9509, #9421, #9263, #9920) See Provider packages.:
- Migration: the regenerated Anthropic
Generatedbindings move Files and Skills to their GA shapes (*Resourcetypes,next_pagepaging). Remove the datedfiles-api/skillsbeta tokens fromanthropic-beta. - The OpenRouter provider name is
"openrouter". - OpenRouter defaults to strict schemas for OpenAI-family models.
- Truncated responses report
finishReason: "length".
- Migration: the regenerated Anthropic
Data, encoding, telemetry, and testing
Migration: drop explicit output type arguments from
Schema.TaggedUnion.match/matchOrElse(#10061).Schema.Recordrejects optional index-signature values; useSchema.UndefinedOr(#9864). Checks keephttpApiStatusannotations (#9775). New Schema APIs: crypto key schemas,isAscii,DurationFromIsoString,DateTimeUtcFromHttpDate, and the unstabletoCodecGoJson(#9245). See Schema unions and records.Migration:
Toml.parsereturns aResultwith anEncodingErrorinstead of throwing (#9537).Base64Url.decoderejects partial padding (#10076), andYaml.parsesupports<<merge keys (#10051).NdjsonErrorgains areason(#9575). Libraries exporting genericData.taggedEnums now emit declarations that needeffect≥ 4.0.7 (#9834). See Toml, Yaml.Migration: import
NodeSdk/WebSdkfrom@effect/opentelemetry/NodeSdkand/WebSdk; the package root no longer re-exports them (#9689). Other telemetry changes:OTEL_RESOURCE_ATTRIBUTESis percent-decoded and trimmed (#9997).- Calls on ended spans are ignored, so spans are not exported twice (#9815).
traceparent/b3parsing rejects uppercase hex and malformed flags (#10086, #10085).- The new
OtlpProxyforwards browser telemetry without exposing credentials (#9829).
See OtelNodeSdk, OtlpProxy.
Atoms gain
skipInitialRunfor hydrated or seeded atoms (#9522) and opt-in typedReactivity.Keys(#9560).Atom.Serializableencodes toSchema.Json(#8763). See Hydration.@effect/vitestchanges:beforeAll/beforeEachrun returned Effects with a scope (#9675);layer(..., { buildPerTest })rebuilds selected services for each test (#9832);- Migration:
it.proprejects Effect/Promise returns; useit.effect.prop(#9384).
Arbitrary.checkEffectacceptsconcurrency(#9377). See @effect/vitest.
Changes in the handbook
- Started the 4.1 edition. The 4.0 edition is frozen at
effect@4.0.5(tageffect-4.0.5/2026-10-22) and stays published under/4.0/. - Added a Cryptography chapter covering every
effect/cryptomodule, the host crypto layers, testing, and a migration table fromCrypto.*. The site now has 66 pages: 53 concise pages and 13 deep-dive pages including their landing page. - Added module sections for
Bytes,SemVer,SemVerRange,TextDiff,Glob,CommandLine,Csv,JsonArray,Tar,Xml,Zip,ProblemDetails,MigratorFileSystem,OtlpProxy,EventRow,CircuitBreaker,UserDirectories,TerminalCapabilities,McpClient,McpClientError, andMcpTest. Every public module in the root barrel and the 22effect/<area>families now has a concise heading. - Rewrote mixed-cause recovery across the foundations, the failure deep dive, troubleshooting, the decision guide, and review checklists to the defect-first rule. Corrected PersistedCache's handling of undecodable entries,
CliError.DuplicateOption, Node's oversized-body response,sql.in([]), the claim that runtime aggregates include crypto, workflow compensation underlayerMemory, and hydration ordering. - Added persistence, wire, and deployment migration warnings for store key layouts, Redis queue locks, RPC
discard, event-log replication, forwarded headers, and minimum Node/Deno versions. Added capability routes and retrieval cases for cryptography, circuit breaking, MCP clients, and streaming archive codecs. - Repinned the validation workspace to 4.1.0 and
@effect/tsgo0.63.0. Updated the TOML probe to theResultcontract, and turned the NodeSdk example into an isolated compile example.
effect@4.0.5 — audited 2026-10-22
Edition 4.0 (updated in place). Tag effect@4.0.5, commit 7f524e25, published 2026-10-15. Baseline: effect@4.0.2 (published 2026-10-07). Range reviewed: all package changelogs, changesets, and 191 commits covering published 4.0.3, 4.0.4, and 4.0.5. npm omits gitHead; the package integrity, provenance, and published source were checked against the release tag.
Changes in Effect that matter to readers
New public surfaces and stability
- Experimental
effect/graphqladds seven modules for typed client operations, middleware, HTTP/SSE and WebSocket subscriptions, partial results, pagination, and batching (#8979). It is not a GraphQL server executor.@effect/graphql-generatorgenerates operations from documents and SDL/introspection schemas; 4.0.5 emits Struct schemas with named interfaces for ordinary object selections/inputs (#9171). HTTP endpoints can be resolved per request, with resolver batches partitioned by URL (#9150); identity-awarebatchKeys are still required. - Experimental
Host,Dns, andAddressResolveradd host parsing, DNS queries, and endpoint resolution, with Node/Bun/Deno services (#8880). TLSA records and input constructors follow (#8953, #8970, #8973); host-file parsing and relative/FQDN conversion are available (#8992).DatagramSocketadds experimental UDP on those hosts (#8409). Experimental APIs may change in a patch release; see Stability and support. TestCrypto.layer(removed in 4.1.0; see Deterministic crypto in tests) seeds random operations while delegating digests to the underlying platformCrypto(#8487). Migration:Crypto.randomUUIDv4andrandomUUIDv7are now functions: call()for strings or({ format: "bytes" })for bytes (#8935).Effect.Transactionexposes attempt number, retry reason, and timing metadata from inside a transaction body (#8166).
HTTP, platform boundaries, and SQL
- HTTP spans, request inspection, and errors redact sensitive query values and URL credentials without changing the wire request. Migration: signed-URL names move from
Headers.CurrentRedactedNamestoUrlParams.CurrentRedactedNames; custom name lists replace defaults (#9136).UrlParamsalso acceptsRedactedvalues, widening its public parameter and iterator types (#9160). See HTTP Client. HttpClientRequest.compressBodysupports gzip/deflate (#9137);HttpMiddleware.decompressionbounds decompressed request bodies and rejects unsupported codings with415(#9138).retryTransienthonorsRetry-After(#9053); Node clients have typed Unix-socket/mTLS connection options (#9158).FileSystem.File.InfousesbigintfordevandOption<bigint>forino,rdev,nlink, andblocks; account for this in serialization (#9112). File opens acceptnoFollowon supported POSIX hosts, and reads/writes accept explicit positions (#8900).Path.resolveWithinrejects rooted paths and lexical traversal escapes; it does not prevent symlink escapes (#9127).- WebSocket clients on Node/Bun accept handshake headers (#8978); TLS upgrades accept an explicit
servername(#9010). See Sockets.Stdio.stderrIsTerminaldetects stderr separately (#8938); Esc now cancels default Node/Bun/Deno terminal input unlessshouldQuitoverrides it (#8934). - SQL COMMIT failures propagate as typed
SqlErrorwhen cleanup succeeds; failed cleanup preserves both failures as defects (#8892). Single-connection clients exclude competing statements for the whole statement/stream lifetime (#8927). PostgreSQL adds TCPkeepAlive(#9120). See SQL. - RPC socket clients expose
onPingTimeout, distinct from other disconnects (#8976); response-encoding failures reachErrorReporter(#8943). See RPC.
MCP, AI, and durable execution
McpServer.layerHttpRequestScopedowns all server work within each POST for serverless hosts. It accepts only stateless adapters and has no sessions, subscriptions, or session termination (#9031). Long-livedlayerHttpgainsallowSubscriptions: false(#8924). Resource-template and prompt-completion schema services now appear in Layer requirements, so previously incomplete compositions can fail type checking (#9151, #9135).- With manual tool resolution,
toolCallValidation: "deferred"returns model-generated calls withunknownparameters and possibly undeclared names. Strict validation remains the default; validate before authorizing or dispatching (#9008). - Decisions accept structured descriptions and score legends. Migration:
Rate.criteriaentries are{ label, description }objects, not strings (#9124). OpenAI adds a Decisions provider; OpenAI-compatible response augmentation moves to theopenai-compatmetadata key (#9140). Regenerated OpenAI bindings also change public provider types (#9067); review the provider migration notes. - OpenAI treats unknown model names as reasoning models by default; set
reasoningModel: falsefor custom non-reasoning names (#8980). OpenAI-compatible configuration removes unsupportedstoreandconversationfields (#9011); provider-specific tool-call fields survive replay (#8916). See Provider packages. Workflow.execute({ discard: true, detached: true })starts a child that neither wakes nor inherits interruption from its parent (#9092). Failure-suspended workflows require explicit resume before failed activities retry (#9091).PersistedQueue.offer({ delay })postpones first delivery, not retries (#8907).- Cluster SQL storage separates owner-connection migrations from application storage Layers (#8897).
InterruptOnTerminationopts RPCs into early entity interruption (#8963); shutdown hands shards off individually with bounded waits (#8941). Transactional replies publish only after commit or clean rollback, with local replies recoverable from storage (#8891, #9176). See Cluster.
Telemetry, data, time, and tooling
- Cluster entity RPC spans now use only the entity type in their names;
entity.idremains an attribute (#9094). Update name-based dashboards. See ClusterMetrics. - Built-in OTLP exporters accept opt-in gzip configuration, including per-signal environment overrides (#9139). Subsequent delta histograms omit cumulative extrema (#8987); 64-bit trace IDs are padded to 128 bits (#9117). OTel log records carry the active Effect span context (#9125). See Telemetry Export.
- JSON Schema output for
Schema.Intincludes safe-integer bounds, and colliding bounds compact to the tighter one (#8956, #9081). Refresh snapshots rather than removing those constraints.SchemaErrorserializes compactly (#8895); tagged unions reject duplicate discriminator keys at compile time (#9103).StructWithRestaccepts optional fields (#9020); see Schema unions and records. - Zoned
DateTime.add/subtractapply hours and smaller units as elapsed time across DST; calendar units remain wall-clock operations (#9048). Duration conversions handle very large milliseconds and nanosecond scaling without the earlier precision/overflow failures (#9109, #9161, #8972). See Time. TestClock.adjust/setTimetrack woken fibers across yields and child joins, so newly registered sleeps within the target interval are not skipped (#9172). Establish initial readiness explicitly; virtual time is not a general startup barrier.Ssecan dispatch empty named events for protocols such as GraphQL SSE (#8979); its encoder handles CR/CRLF data lines (#9096). Async-iterator stream timeouts stop even whennext()never settles (#9106).Matchnarrows only a matched array prefix and rejects unknown object-pattern keys (#9088, #9098). MutableArray.matchcallbacks retain mutable non-empty array types (#9055).- The CLI gains
Flag.withOptionalValuefor--flag[=VALUE](#9145), PowerShell completions (#8904), andCliOutput.displayWidth(#8982). Prompts honorNO_COLORand acquire stdin only when needed (#8933, #8932).
Changes in the handbook
- Added GraphQL as a concise chapter, and topic-sized sections for DNS/host resolution, UDP, TestCrypto, transaction metadata, request-scoped MCP, and new operational options. The site now has 65 pages: 52 concise pages and 13 deep-dive pages including their landing page.
- Removed redundant current-release numbers and audit dates from chapter prose. Chapters inherit the edition audit target; exact versions remain in release metadata, generated headers, reproducible installs, source links, and migration boundaries. The refresh skill preserves this policy.
- Updated deep dives, the decision guide, cheat sheet, troubleshooting, review checklists, capability routes, and retrieval cases with the new selection boundaries. Experimental APIs are labelled separately from unstable ones.
- Corrected stale claims about TestClock wakeups, mixed-cause retry,
DecisionModel.Image.mediaType, workflow finalizer lifetime, and OTLP JSON spelling; pinned current source links and recipe installs to 4.0.5. - Corrected group-level Config defaults and secret-log safety, queue shutdown producer outcomes, semaphore fairness, stream batch timing, SQL commit-error routing, and ManagedRuntime cleanup ordering. Removed a transactional queue termination race and clarified Schema length bounds, codec widening, structural equality, and decimal rounding.
- Repinned the tracked validation workspace to 4.0.5, TypeScript 7.0.2,
@effect/tsgo0.56.0, and Vitest 5.0.5. Added semantic probes for multi-hop virtual time, path traversal boundaries, and query-redaction override behavior; updated integer-schema expectations to the published contract.
effect@4.0.2 — audited 2026-10-09
Edition 4.0 (updated in place). Tag effect@4.0.2, commit 269a7c86, published 2026-10-07. Baseline: effect@4.0.0. Range reviewed: every 4.0.1 and 4.0.2 changelog entry across all packages.
Changes in Effect that matter to readers
Stability
- Every module and directly importable export now carries an explicit
@stabilitytag (#8770). Nineteen modules the handbook had badgedstableare taggedunstable:FileSystem,Path,Terminal,Stdio,Crypto,PlatformError,ExecutionPlan,ErrorReporter,LayerMap,LayerRef,Graph,HashRing,ByteSize,Newtype,PartitionedSemaphore,TxChunk,ChannelSchema,TestConsole, andTestSchema(that last badge was already wrong in the 4.0.0 edition). No API is taggedexperimental. See Stability and support.
Runtime, errors, and caching
Effect.retryno longer retries a cause that contains a defect or an interruption, even alongside a typed failure the policy would accept (#8799). See Failure, Retry, Fallback, and Interruption.- When an uninterruptible region fails while an interruption is pending, recovery handlers are skipped and the typed failure is dropped; the fiber exits interrupted, keeping any defects (#8652). See Fiber.
Config.orElserecovers only a pureConfigError; a cause that mixes it with a defect or interruption propagates (#8808). See Configuration & Secrets.Effect.cached,cachedWithTTL,cachedInvalidateWithTTL, andCachetreat interruption as abandonment: an interrupted computation is never cached, and it is interrupted only once every waiting caller has gone (#8719).cachedInvalidateWithTTLaccepts a TTL computed from theExit(#8734). See Caching & Batching.
Streams and STM
Stream.scanemits its seed for an empty stream (#8704).groupedWithin,aggregateWithin, andaggregatepause their schedule while idle (#8718).groupByandpartitionsubstreams shut down their queue when the consumer stops early (#8857). See Streaming & Channels.- Waiting on
TxSemaphoreandTxReentrantLockis interruptible (#8805); PubSub rejectsNaNand fractional capacities (#8790).
Telemetry names (update dashboards and alerts)
- Interrupt-only spans end with status
Unsetandeffect.fiber.interrupted: trueinstead ofOk(#8864). OtlpMetricsexports a summary as one OTLPSummarymetric named by its id instead of<id>_quantiles/_count/_sum(#8869).- With
@effect/opentelemetry, a span without an Effect parent inherits the active OpenTelemetry span (#8586). See Observability. - SQL statement spans are named by
db.namespace,server.address[:server.port], ordb.system.name(falling back tosql.execute), recordeffect.sql.method, and transactions emiteffect.sql.transaction.*events (#8866). See SQL. - RPC spans are named by the method tag with no default prefix and record
rpc.system.nameandrpc.method; passspanPrefixto keep the old names (#8867). See RPC. - HTTP server spans capture no request or response headers unless
HttpMiddleware.TracerHeaderFilteropts them in (#8873). See HTTP Server. - GenAI telemetry follows the current OpenTelemetry conventions:
addGenAIAnnotationstakesprovider: { name }(thesystemoption is removed), and Anthropic usage includes cached tokens (#8870). See AI & Language Models.
Interfaces and AI
- HttpApi answers a response-encoding failure with
500and reports it toErrorReporter; request-decoding failures stay400and unreported (#8834). See HttpApi. - RPC socket clients accept
pingIntervalandpingTimeout(#8825). McpServer.layerHttpgains opt-inallowSessionTermination(#8773). See Exposing an Effect Application over MCP.DecisionModel.decideaccepts images for providers that opt in (#8832); Anthropic preserves multiple system instructions (#8603).- PostgreSQL
SqlEventJournalstores entry and remote ids asBYTEA; existing tables need a migration (#8756). See Event Log & Event Sourcing. Schema.toTaggedUnionandSchema.TaggedUnionexpose the discriminator key as.tag(#8748). See Schema.
New public surfaces
effect/Version(unstable): theeffectversion reported in telemetry. See Version.@effect/ai-cloudflare: a Cloudflare Workers AIDecisionModelprovider. See AI & Language Models.
Changes in the handbook
- Corrected every claim the delta made false (above), flipped the nineteen stability badges, and rewrote the stability tables in Orientation and Getting Started.
- Replaced the dead Official Effect → Cookbooks navigation link: the tagged source has no
cookbooks/folder, and the only upstream cookbook is published as the official v4 Schedule cookbook. pnpm docs:linksnow also checks the navigation menu, the VitePress config and theme, the README, and the agent skills, and names where each failing URL is linked from.- The recommended
tsconfig.jsontargetsES2025(with a matchinglib), and the validation project compiles every example with that target. - Split the five largest pages: Schema into Schema, Schema in Depth, and Schema Tooling & Internals; Fibers, Scopes & Runtimes out of Core Runtime; Generated-Code Anti-Patterns out of Troubleshooting; MCP Servers out of AI; and Telemetry Export out of Observability. Old deep links to moved sections redirect to their new pages.
- Added six diagrams (fiber and Scope ownership, Layer build and teardown, Cause classification, stream demand and buffering, the durability ladder, and the HttpApi request lifecycle), each with alt text and a caption that carries its meaning in the Markdown twins.
- Added
effect-4-essentials.md: a generated digest of every concise page and section (about a sixth of the full aggregate), now the default broad read inllms.txtand the agent guide. - Examples are now executed, not only type-checked: 533 of 612 compile examples run to completion, pass under Vitest, or start as servers, and printed values with expected-output comments are asserted. This found and fixed three examples that failed when run: the
ExecutionPlanexample (it calledEffect.runSyncon a plan whose retry schedule is asynchronous), aTestSchemafailure message, and averifyRoundTripexample onSchema.FiniteFromStringthat fails for-0. New behavior probes back thirteen prose claims about caching, queues, scopes, Layers, fibers, races, retries, streams, and Config. - Telemetry Export now warns that importing from the
@effect/opentelemetryroot loads every module and needs every OpenTelemetry peer installed; import the one module you use by path otherwise. - Ran an end-to-end evaluation with ten coding agents against the live site (
evals/agent-runs/2026-10-09/): all reached a relevant page and five of nine wrote code that passes strict TypeScript and Effect diagnostics and runs. The failures came from Effect 3 names, sollms.txt, the essentials digest, and Generated-Code Anti-Patterns now list the Effect 3 names that do not exist in Effect 4. - Added this Release History page;
pnpm docs:checkrequires an entry for every audited release. - Validation: 714 fences, all passing strict TypeScript 7 and strict Effect diagnostics; new runtime probes for
Stream.scanon empty streams,Effect.retrywith defect causes, and pending interruption over a failed uninterruptible region.
effect@4.0.0 — audited 2026-10-01
Edition 4.0 (first edition). Tag effect@4.0.0, commit 67ba4e46, published 2026-10-01: the first stable release of Effect 4 and the baseline for every later entry.
Changes in the handbook
- Audited every page and example against the tagged source; Getting Started covers installation, compiler settings, and the
@stabilitymodel (PR #2). - Added the long-form MCP deep dive, Markdown twins for every page,
llms.txt, and the agent reading protocol (PR #2). - Routed web-framework intents (Express, Hono, Fastify) to
ManagedRuntimein the capability catalog (PR #3). - Introduced editions: one handbook per Effect
major.minor, served at/<major.minor>/, with an edition switcher andversions.json(PR #4).