Skip to content
Agents: this page is Markdown at /effect-handbook/reference/release-history.md · llms.txt · reading guide View raw

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/encoding Json5 and Jsonc; the new effect/jose family (Jwk, Jws, Jwe, Jwt, Jwks, JoseError); effect/rpc/OpenRpc; effect/cli/CommandSpec; effect/cluster/MessageRetention; effect/ai/WorkloadIdentity with provider modules in @effect/ai-anthropic, @effect/ai-openai, and @effect/ai-openrouter; the @effect/ai-amazon-bedrock package;
    • stable: Runtime.InterruptExitCode;
    • experimental: effect/ai AgUi, AgUiSchema, and AgUiServer; the @effect/platform-cloudflare package.

    Upstream also clarified the contract: unstable APIs may gain features in a patch release. See Stability and support.

  • 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, with Schema.Rational, Schema.RationalFromString, and SchemaRepresentation.RationalReviver (#9990). See Rational.

  • Configuration formats: Json5.parse and Jsonc.parse return Result<unknown, EncodingError> (#9972). See Json5 and Jsonc.

  • OpenRPC: OpenRpc.fromRpcGroup generates an OpenRPC document from an RPC group (#10173). See OpenRpc.

  • CLI documentation specs: CommandSpec projects a command path into plain data, and Flag.annotate, Argument.annotate, and Param.annotate attach metadata (#10377). See CommandSpec.

  • Cloudflare cluster: @effect/platform-cloudflare runs cluster entities, workflows, durable queues, and singletons on Durable Objects, with optional Alchemy deployment (#7322). See Running on Cloudflare Durable Objects.

  • Message retention: MessageRetention.make deletes a persisted entity's completed requests after a retention age; custom MessageStorage drivers must implement deleteProcessed (#10267). See MessageRetention.

  • AI providers and protocols: @effect/ai-amazon-bedrock signs Converse requests with SigV4 or a Bedrock API key (#9980); WorkloadIdentity exchanges 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: OtlpTracer and OtelTracer leave a successful span's status Unset instead of OK (#10440). Migration: rules matching status = OK must match status != ERROR. See What ends up on a span.
  • MCP spans: McpServer spans follow the OpenTelemetry MCP conventions ({method} {target} with mcp.* and gen_ai.* attributes) and continue a client's traceparent; tool spans no longer record arguments unless Toolkit.RecordToolArguments is set (#10304). See Tracing.
  • SQL transaction spans: BEGIN, COMMIT, ROLLBACK, savepoints, and connection waits are child spans of sql.transaction, replacing the effect.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.RedactedNames declares query and header names to redact in client and server spans (#9995), and HttpClientError URLs 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.StreamSse data are encoded with their schema's JSON codec, so a Tool.dynamic tool without a success schema must return JSON (#10362, #10243, #10148). See Failure results and their wire format and HttpApiSchema.
  • SSE framing: Sse.encoder strips CR and LF from id and event and NUL from id (#10182). See Sse.
  • Exit codes: Runtime.InterruptExitCode lets 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 503 instead of 404 while no app is served (#10289), and enforce MaxBodySize on buffered reads (#10192). See Own the listener.

Behavior, types, and security

  • HTTP client: HttpClient.timeout fails a request that receives no response in time with a retryable TransportError (#10207); HttpClient.withScope now owns every request sent during the execution, including redirects, retries, and middleware requests (#10363). See Retries, time budgets, and cancellation and Response lifetimes and withScope.
  • 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.Base instead of SqlClient, and providing a generic SqlClient layer 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; authorizeIdentity receives signingPublicKey (#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 Equal for Ref and MutableRef was reverted, so distinct refs with equal contents are Equal (#10247). See Ref.
  • Workflows and cluster: ClusterWorkflowEngine retries 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: PersistedQueue offer accepts deduplicate: "untilExecuted" (#10316); RateLimiter limits of 0 or less admit nothing and Redis keys are isolated (#10103, #10210); CircuitBreaker.execute gains onRejection and classifiers receive { probe } (#10142, #10169); the redis peer 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 Protocol must 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: generateObject accepts allowEmpty (#10527); MCP Skills are served on every supported protocol revision (#10082, #10540); McpClient gains capabilities, discovery limits, and toolkit options (#10049). See LanguageModel, Skills, and McpClient.
  • CLI: Command.validate can fail with your own errors, which Command.run reports like handler failures (#10376). See Validating input across flags.
  • Schema: fields named after Object.prototype members match only own properties (#9612); isAnyOf accepts only union tags (#10355); SchemaBinary adds fixed-width integers and rejects non-numbers in number arrays (#10230, #10288); JSON Schema import adds experimental closeObjects (#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, and AgUiServer, plus entries for @effect/ai-amazon-bedrock and @effect/platform-cloudflare.
  • Corrected the Ref/MutableRef equality claims, the success span status, the HTTP server claim that every handler is interrupted on disconnect (apps run uninterruptibly unless they opt in), the withCookiesRef type, the redis and React scheduler peer ranges, the PostgreSQL unregistered-value behavior, and the OpenAiStructuredOutput scope.
  • Added migration notes for silently ignored v3 Schema concurrency, batching, and parseOptions annotations; withScope ownership; 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/tsgo from 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 to effect@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, and Toolkit.handle decodes their JSON codec rather than the schema's ordinary encoded form (#10332). Decode Schema.toCodecJson(tool.parametersSchema) before typed policy checks, but pass the original JSON to handle. See Tool-call resolution and Mutation gates.

Changes in the handbook ​

  • Updated effect and 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/tsgo compiler tooling from 0.63.0 to 0.67.7; retained strict diagnostics and the existing advisory unstableApiUsage exception.
  • 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 effect and matching @effect/* dependencies to 4.1.2, with exact release-age exclusions and a regenerated workspace lockfile.
  • Kept @effect/tsgo at 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/encoding Csv, JsonArray, Tar; EventRow, ProblemDetails, OtlpProxy, UserDirectories, CommandLine, MigratorFileSystem, TerminalCapabilities, McpTest, and the new effect/crypto family;
    • 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.

  • Deep imports of nested internal modules are blocked by the package exports map (#9326). Migration: import only public entry points. See Getting Started.

  • Migration: effect/Crypto and effect/testing/TestCrypto are removed in favour of effect/crypto/*: SecureRandom, Digest, Aead, Cipher, Mac, Signature, Kdf, KeyAgreement, KeyWrap, KeyFormat, CryptoError, WebCrypto (#9126). This also supersedes the 4.0.5 TestCrypto and randomUUIDv4() notes.

    • Crypto is no longer bundled in the *Services layers. Provide NodeCrypto/BunCrypto/DenoCrypto/BrowserCrypto .layer (or a per-family layer*), or a core layerWebCrypto.
    • Tests use Layer.mock.
    • SqlMessageStorage, SingleRunner and encrypted event-log server storage now require Digest.Digest.
    • Persisted workflow IDs, idempotency keys and event-log encodings are unchanged.

    See Cryptography, Deterministic crypto in tests.

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). Use catchCause or catchDefect to 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 any Layer.fresh dependencies inside it (#9634). Wrap the composed layer itself in Layer.fresh for a separate copy. See What is shared and what is rebuilt.

  • Ref and MutableRef compare by reference (#9768). ArrayBuffers compare and hash by bytes (#9769). Migration: Exit.hasFails/hasDies/hasInterrupts and AsyncResult.isInterrupted are no longer type guards; narrow with Exit.isFailure (#9799). See Ref, Exit.

  • New small runtime APIs:

    • Effect.ignore({ log: "Unhandled" }) and its Stream/Channel variants (#9510);
    • Semaphore.takeScoped (#9962);
    • Effect.fnUntraced accepting { self } (#9713).

    Release failures nobody observes (RcMap/RcRef idle expiry, ScopedCache scans) are logged at UnhandledLogLevel (#9388). See Semaphore, RcMap.

  • Schedule.fibonacci now repeats the initial delay (100, 100, 200, 300 ms…), so later retries come sooner (#9917). Cron/Schedule.cron gain onDstOverlap for repeated local times (#9905). Duration gains formatIso/fromIso (exact units only) and toMicros (#9891, #9973). See Cron, Duration.

  • Upstream stream failures in Stream.run, peel and aggregate* bypass Sink.mapError/catch*/orElse and reach the caller unchanged (#9803). See Sink.

HTTP, HttpApi, and platform hosts

  • Migration: HttpMiddleware.xForwardedHeaders is now a function taking { trustedProxies } (an IpNetwork list), and applies X-Forwarded-* only from trusted peers. HttpServerRequest.toURL uses the new request.protocol, and the peer is request.peerAddress (#9701). Node originalUrl is absolute when a Host header is present; read paths from url (#9415). See HttpMiddleware.

  • Request data leaks less:

    • HttpClientError toJSON shows only the method and redacted URL (#9855);
    • HttpServerError messages carry only the path (#10011);
    • AWS SigV4 query parameters are redacted by default (#9903).

    Migration: AiError.HttpRequestDetails and Response.HttpRequestDetails are removed, and NetworkError exposes method and url instead of request (#10010). See HttpClientError, AiError.

  • Migration: HttpClient.withCookiesRef takes a Ref<ReadonlyArray<Cookie>> (not Ref<Cookies>) and sends cookies only to the matching host, path and scheme. Seed it with Cookies.mergeIntoArray (#9614). Migration: received request methods are typed string; exhaustive switches need a default or HttpMethod.isHttpMethod (#8766). See HttpClient.

  • Headers gains typed HTTP-date and Retry-After parsing, with matching Schema codecs. Invalid or fractional Retry-After values are now ignored by retryTransient/withRateLimiter (#9709). Other additions:

    • HttpClient.isTransientError/isTransientResponse (#9059);
    • experimental HttpClient.withCircuitBreaker (#9646);
    • HttpClientResponse.toWeb (#9673).

    FetchHttpClient fails with EncodeError on runtimes without streaming request bodies unless StreamBodyFallback is "buffer" (#9567). See HttpClient.

  • Raw HTTP/1.1 upgrades (HttpClientRequest.upgrade, HttpApiSchema.Upgrade) arrive. Custom HttpClientResponse implementations must add upgrade (#9339). Upgrade endpoints can declare 101 headers and buffered payloads, and can sit alongside ordinary success responses (#9751, #9945). Migration: hand-built HttpApiClient.Upgraded mocks need the UpgradedTypeId brand; narrow with HttpApiClient.isUpgraded. See Upgrades.

  • New HttpApi features:

    • streaming request payloads via StreamUint8Array/StreamNdjson, with maxBytes limits and HttpApiPayloadTooLarge (413) (#9575);
    • opt-in RFC 9457 Problem Details via HttpApiError.Problem and HttpApiMiddleware.layerProblemDetails (#9706);
    • HttpApiClient.decodeResponse (#9944).

    Oversized bodies return 413, and web/Bun/Deno servers now enforce MaxBodySize on buffered reads (#9835). See Problem Details, Streaming request payloads.

  • Migration (deployment): @effect/platform-node, platform-node-shared, opentelemetry and docgen require Node ≥ 22.19.0 (#10084), and @effect/platform-deno requires Deno ≥ 2.9.3 (#9702).

    • Node WebSocket clients use the global WebSocket. ws moves to the new NodeWS module: replace NodeSocket.NodeWS and layerWebSocketConstructorWS with NodeWS.WebSocket and NodeWS.layerWebSocketConstructor, which also keeps backpressure and custom headers.
    • NodeHttpServer accepts HTTP/2 servers (#9710).
    • BunHttpServer disables Bun's 10 s idleTimeout unless set (#9705).
    • Node stream pulls are bounded by chunkSize chunks; use the new readSize for byte read sizes (#9327).

    See Platform packages, Socket.

Processes, file systems, terminals, and CLI

  • Migration: ChildProcess.make templates now parse as a command line (#9752, #9863).

    • Quoted words stay together, and unquoted shell syntax (|, $HOME, *, FOO+=x) throws CommandLineError. Quote such text or interpolate it with ${}.
    • With shell, build the script with CommandLine.join.
    • ChildProcess.TemplateExpression* moves to CommandLine.
    • Arguments and env accept Redacted.

    exitCode/string/lines drain unread pipes instead of hanging (#9846). See ChildProcess, CommandLine.

  • Migration (custom implementations): FileSystem.make inputs must provide lstat and readDirectoryEntries, and glob is now derived (#6428, #9438). Terminal.make inputs must provide size, a resize queue (#9639). FileSystem.glob is 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=3 lexes as short flags; use --num=3 (#9287). New CLI APIs:

    • Command.validate (#9655) and Flag.withNegation (#9650);
    • CliOutput.Presenter (#6743) and TerminalCapabilities, which honours FORCE_COLOR/TERM=dumb (#8350);
    • Completions.fromCommand (#9976) and the CliError.userMessage annotation (#8349).

    Help shows an INHERITED FLAGS section, and custom formatters must read HelpDoc.inheritedFlags (#9276). See CliOutput, TerminalCapabilities.

SQL, persistence, event log, cluster, and RPC

  • Migration: sql.insert and sql.updateValues require a non-empty array at the type level (#9453). The updateValues alias is escaped as an identifier, so pass it bare (#9759). fromFileSystem moves to effect/sql/MigratorFileSystem; adapter *Migrator modules still re-export it (#9157).

    • Migrations fail with a typed MigrationError (#9598).
    • Third-party drivers must set SqlClient.make({ driver }) (#9222).
    • New: SqlClient.afterCommit and BeginTransaction (#9289, #9576); sql.in([]) now compiles to an always-false (IN) or always-true (NOT IN) predicate (#9758); PostgreSQL acquireTimeout, onAcquire and poolStats (#9641, #9738, #9090).

    See MigratorFileSystem, Transactions.

  • Migration (persistence): Persistence on KeyValueStore now keys entries <storeId>:<key>, so every existing layerKvs entry becomes unreachable, including Chat.layerPersisted histories. Redis is affected only for store ids containing % or : (#9223).

    • Custom KeyValueStore.make stores must implement keys, and prefix(...) scopes size/isEmpty/clear (#9844).
    • The Redis PersistedQueue lock format changed: drain old workers and let their locks expire before starting upgraded ones (#9229).
    • Redis.make requires connect, and Redis.reserve leases dedicated connections for blocking commands (#9828).

    See Backing layers, Redis, PersistedQueue.

  • 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. EncryptedEntry is now EncryptedBatch, and custom journals must add entriesById/writeRemoteAcks. SQL and IndexedDB journals migrate on first open (#9482). New: encrypted remote compaction (#9571), EventRow (#9523), EventLog.writeMany (#9452). See EventLogRemote, EventRow.

  • In calculateNextRunFromPrevious mode, ClusterCron runs through one executor entity per job. Read the scheduled time from ClusterCron.CurrentScheduledTime, not Entity.CurrentAddress; a failing run now blocks later runs while it retries (#9677).

    • Frozen runners lose PostgreSQL/MySQL shard locks after shardLockExpiration (#10037, #10093).
    • ShardingConfig.runnerJoinDebounce batches handoffs during surge deploys (#10073).
    • New ClusterMetrics series: shardReleaseDuration, shardsReleasing, entityMailboxSize[Max] (#9256, #9513, #9578, #9572).
    • SqlMessageStorage.makeEncodedStorage skips migrations (#9330).

    See ClusterCron, SqlRunnerStorage.

  • Migration (wire): RPC calls with discard: true complete when the server acknowledges them. The SchemaBinary envelope fingerprint changed, so upgrade those peers together (#9182). The RPC NDJSON content type is application/x-ndjson; existing RPC HTTP peers stay compatible (#9562). New: RpcServer onDisconnect (#9688) and opt-in HTTP request batching (#9656). With disableFatalDefects, a synchronous handler throw fails only its own request (#9899). See RpcSerialization.

AI and MCP

  • Migration: DecideOptions.images is removed. Declare Decision.Image fields in the input schema; the new Decision.locate returns bounding boxes, and exhaustive switches need Locate cases (#9177). DecisionModel.decideSettled keeps valid answers alongside per-decision failures (#9437).

    • Migration: the new non-retryable AiError.InvalidResponseError needs a case in exhaustive AiErrorReason matches (#9430).
    • NetworkError.cause keeps the HttpClientError (#9984).
    • Tool.make({ toModelOutput }) sends rich tool results (#9861).
    • Response.AllParts requires tool parameter schema services (#9873).

    See Decision, Tool.

  • Migration: pass McpServer registration layers through the transport's registrations option, and capture construction-time services with Layer.unwrap (#9154). Unmet per-request services surface as McpRequest<"Requires", S> (#9856). New: McpServer.visibility (#9661), cacheHints (#9939), the in-memory McpTest.makeClient (#9657), and the experimental McpClient (#8862). See McpServer, McpClient.

  • Provider changes (#9509, #9421, #9263, #9920) See Provider packages.:

    • Migration: the regenerated Anthropic Generated bindings move Files and Skills to their GA shapes (*Resource types, next_page paging). Remove the dated files-api/skills beta tokens from anthropic-beta.
    • The OpenRouter provider name is "openrouter".
    • OpenRouter defaults to strict schemas for OpenAI-family models.
    • Truncated responses report finishReason: "length".

Data, encoding, telemetry, and testing

  • Migration: drop explicit output type arguments from Schema.TaggedUnion.match/matchOrElse (#10061). Schema.Record rejects optional index-signature values; use Schema.UndefinedOr (#9864). Checks keep httpApiStatus annotations (#9775). New Schema APIs: crypto key schemas, isAscii, DurationFromIsoString, DateTimeUtcFromHttpDate, and the unstable toCodecGoJson (#9245). See Schema unions and records.

  • Migration: Toml.parse returns a Result with an EncodingError instead of throwing (#9537). Base64Url.decode rejects partial padding (#10076), and Yaml.parse supports << merge keys (#10051). NdjsonError gains a reason (#9575). Libraries exporting generic Data.taggedEnums now emit declarations that need effect ≥ 4.0.7 (#9834). See Toml, Yaml.

  • Migration: import NodeSdk/WebSdk from @effect/opentelemetry/NodeSdk and /WebSdk; the package root no longer re-exports them (#9689). Other telemetry changes:

    • OTEL_RESOURCE_ATTRIBUTES is percent-decoded and trimmed (#9997).
    • Calls on ended spans are ignored, so spans are not exported twice (#9815).
    • traceparent/b3 parsing rejects uppercase hex and malformed flags (#10086, #10085).
    • The new OtlpProxy forwards browser telemetry without exposing credentials (#9829).

    See OtelNodeSdk, OtlpProxy.

  • Atoms gain skipInitialRun for hydrated or seeded atoms (#9522) and opt-in typed Reactivity.Keys (#9560). Atom.Serializable encodes to Schema.Json (#8763). See Hydration.

  • @effect/vitest changes:

    • beforeAll/beforeEach run returned Effects with a scope (#9675);
    • layer(..., { buildPerTest }) rebuilds selected services for each test (#9832);
    • Migration: it.prop rejects Effect/Promise returns; use it.effect.prop (#9384).

    Arbitrary.checkEffect accepts concurrency (#9377). See @effect/vitest.

Changes in the handbook ​

  • Started the 4.1 edition. The 4.0 edition is frozen at effect@4.0.5 (tag effect-4.0.5/2026-10-22) and stays published under /4.0/.
  • Added a Cryptography chapter covering every effect/crypto module, the host crypto layers, testing, and a migration table from Crypto.*. 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, and McpTest. Every public module in the root barrel and the 22 effect/<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 under layerMemory, 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/tsgo 0.63.0. Updated the TOML probe to the Result contract, 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/graphql adds 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-generator generates 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-aware batchKeys are still required.
  • Experimental Host, Dns, and AddressResolver add 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). DatagramSocket adds 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 platform Crypto (#8487). Migration: Crypto.randomUUIDv4 and randomUUIDv7 are now functions: call () for strings or ({ format: "bytes" }) for bytes (#8935).
  • Effect.Transaction exposes 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.CurrentRedactedNames to UrlParams.CurrentRedactedNames; custom name lists replace defaults (#9136). UrlParams also accepts Redacted values, widening its public parameter and iterator types (#9160). See HTTP Client.
  • HttpClientRequest.compressBody supports gzip/deflate (#9137); HttpMiddleware.decompression bounds decompressed request bodies and rejects unsupported codings with 415 (#9138). retryTransient honors Retry-After (#9053); Node clients have typed Unix-socket/mTLS connection options (#9158).
  • FileSystem.File.Info uses bigint for dev and Option<bigint> for ino, rdev, nlink, and blocks; account for this in serialization (#9112). File opens accept noFollow on supported POSIX hosts, and reads/writes accept explicit positions (#8900). Path.resolveWithin rejects 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.stderrIsTerminal detects stderr separately (#8938); Esc now cancels default Node/Bun/Deno terminal input unless shouldQuit overrides it (#8934).
  • SQL COMMIT failures propagate as typed SqlError when 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 TCP keepAlive (#9120). See SQL.
  • RPC socket clients expose onPingTimeout, distinct from other disconnects (#8976); response-encoding failures reach ErrorReporter (#8943). See RPC.

MCP, AI, and durable execution

  • McpServer.layerHttpRequestScoped owns all server work within each POST for serverless hosts. It accepts only stateless adapters and has no sessions, subscriptions, or session termination (#9031). Long-lived layerHttp gains allowSubscriptions: 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 with unknown parameters and possibly undeclared names. Strict validation remains the default; validate before authorizing or dispatching (#9008).
  • Decisions accept structured descriptions and score legends. Migration: Rate.criteria entries are { label, description } objects, not strings (#9124). OpenAI adds a Decisions provider; OpenAI-compatible response augmentation moves to the openai-compat metadata 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: false for custom non-reasoning names (#8980). OpenAI-compatible configuration removes unsupported store and conversation fields (#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). InterruptOnTermination opts 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.id remains 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.Int includes safe-integer bounds, and colliding bounds compact to the tighter one (#8956, #9081). Refresh snapshots rather than removing those constraints. SchemaError serializes compactly (#8895); tagged unions reject duplicate discriminator keys at compile time (#9103). StructWithRest accepts optional fields (#9020); see Schema unions and records.
  • Zoned DateTime.add/subtract apply 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/setTime track 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.
  • Sse can 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 when next() never settles (#9106).
  • Match narrows only a matched array prefix and rejects unknown object-pattern keys (#9088, #9098). Mutable Array.match callbacks retain mutable non-empty array types (#9055).
  • The CLI gains Flag.withOptionalValue for --flag[=VALUE] (#9145), PowerShell completions (#8904), and CliOutput.displayWidth (#8982). Prompts honor NO_COLOR and 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/tsgo 0.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 @stability tag (#8770). Nineteen modules the handbook had badged stable are tagged unstable: FileSystem, Path, Terminal, Stdio, Crypto, PlatformError, ExecutionPlan, ErrorReporter, LayerMap, LayerRef, Graph, HashRing, ByteSize, Newtype, PartitionedSemaphore, TxChunk, ChannelSchema, TestConsole, and TestSchema (that last badge was already wrong in the 4.0.0 edition). No API is tagged experimental. See Stability and support.

Runtime, errors, and caching

  • Effect.retry no 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.orElse recovers only a pure ConfigError; a cause that mixes it with a defect or interruption propagates (#8808). See Configuration & Secrets.
  • Effect.cached, cachedWithTTL, cachedInvalidateWithTTL, and Cache treat interruption as abandonment: an interrupted computation is never cached, and it is interrupted only once every waiting caller has gone (#8719). cachedInvalidateWithTTL accepts a TTL computed from the Exit (#8734). See Caching & Batching.

Streams and STM

  • Stream.scan emits its seed for an empty stream (#8704). groupedWithin, aggregateWithin, and aggregate pause their schedule while idle (#8718). groupBy and partition substreams shut down their queue when the consumer stops early (#8857). See Streaming & Channels.
  • Waiting on TxSemaphore and TxReentrantLock is interruptible (#8805); PubSub rejects NaN and fractional capacities (#8790).

Telemetry names (update dashboards and alerts)

  • Interrupt-only spans end with status Unset and effect.fiber.interrupted: true instead of Ok (#8864).
  • OtlpMetrics exports a summary as one OTLP Summary metric 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], or db.system.name (falling back to sql.execute), record effect.sql.method, and transactions emit effect.sql.transaction.* events (#8866). See SQL.
  • RPC spans are named by the method tag with no default prefix and record rpc.system.name and rpc.method; pass spanPrefix to keep the old names (#8867). See RPC.
  • HTTP server spans capture no request or response headers unless HttpMiddleware.TracerHeaderFilter opts them in (#8873). See HTTP Server.
  • GenAI telemetry follows the current OpenTelemetry conventions: addGenAIAnnotations takes provider: { name } (the system option is removed), and Anthropic usage includes cached tokens (#8870). See AI & Language Models.

Interfaces and AI

  • HttpApi answers a response-encoding failure with 500 and reports it to ErrorReporter; request-decoding failures stay 400 and unreported (#8834). See HttpApi.
  • RPC socket clients accept pingInterval and pingTimeout (#8825).
  • McpServer.layerHttp gains opt-in allowSessionTermination (#8773). See Exposing an Effect Application over MCP.
  • DecisionModel.decide accepts images for providers that opt in (#8832); Anthropic preserves multiple system instructions (#8603).
  • PostgreSQL SqlEventJournal stores entry and remote ids as BYTEA; existing tables need a migration (#8756). See Event Log & Event Sourcing.
  • Schema.toTaggedUnion and Schema.TaggedUnion expose the discriminator key as .tag (#8748). See Schema.

New public surfaces

  • effect/Version (unstable): the effect version reported in telemetry. See Version.
  • @effect/ai-cloudflare: a Cloudflare Workers AI DecisionModel provider. 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:links now 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.json targets ES2025 (with a matching lib), 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 in llms.txt and 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 ExecutionPlan example (it called Effect.runSync on a plan whose retry schedule is asynchronous), a TestSchema failure message, and a verifyRoundTrip example on Schema.FiniteFromString that 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/opentelemetry root 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, so llms.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:check requires an entry for every audited release.
  • Validation: 714 fences, all passing strict TypeScript 7 and strict Effect diagnostics; new runtime probes for Stream.scan on empty streams, Effect.retry with 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 @stability model (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 ManagedRuntime in the capability catalog (PR #3).
  • Introduced editions: one handbook per Effect major.minor, served at /<major.minor>/, with an edition switcher and versions.json (PR #4).

Edition 4.1 · audited 2026-11-19 against Effect 4.1.4.