effect breaking changes
Updated December 4, 2026
On this page
Latest version 4.2.0, released December 2, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 3.22.4 to 4.1.7: 6,288 breaking changes in 36 versions.
- From 3.22.3 to 4.1.7: 6,293 breaking changes in 37 versions.
effect 4.1.7 breaking changes
- Behavior changed
ClusterCron
A failed or dying run is now logged and the next run is scheduled, with no retry. To keep retrying typed failures, apply Effect.retry inside execute with your own stopping policy. github.com - Behavior changed
McpServer.layerHttp
Transport rejections such as disallowed Origin, bad Content-Type or Accept, unknown session, and refused batches now return JSON-RPC error bodies with different status handling. Code that parsed the old responses may need updating. github.com - Behavior changed
McpServer.registerToolkit
Toolkit handler McpSchema.InvalidParams failures are now reported as invalid input, matching McpServer.addTool. Code that matched the previous error classification may need updating. github.com - Signature changed
ai:McpClient.layerHttp
Was const layerHttp: (options: {readonly name: string; readonly version: string; readonly title?: string | undefined; readonly description?: string | undefined; readonly websiteUrl?: string | undefined; readonly icons?... npmjs.com - Signature changed
ai:McpClient.layerStdio
Was const layerStdio: (options: {readonly name: string; readonly version: string; readonly title?: string | undefined; readonly description?: string | undefined; readonly websiteUrl?: string | undefined; readonly icons?... npmjs.com - Signature changed
ai:McpClient.make
Was const make: (options: {readonly name: string; readonly version: string; readonly title?: string | undefined; readonly description?: string | undefined; readonly websiteUrl?: string | undefined; readonly icons?... npmjs.com - Signature changed
ai:McpClient.McpClient.callTool
Was readonly callTool: {(params: {readonly tool: McpSchema.Tool; readonly schema?: undefined; readonly arguments?: typeof McpSchema.CallTool.payloadSchema.Type["arguments"];}, options?: {readonly timeout?: Duration.Input | undefined;})... npmjs.com - Signature changed
ai:McpClient.ProtocolVersion
Was type ProtocolVersion = "2025-11-25" | "2026-07-28"; now type ProtocolVersion = "2025-03-26" | "2025-06-18" | "2025-11-25" | "2026-07-28". npmjs.com - Signature changed
ai:McpClientError.McpClientError.~type.make.in.reason
Was readonly reason: Schema.Union<[typeof TransportError, typeof ProtocolError, typeof HttpError, typeof UnsupportedError, typeof ClosedError, typeof TimeoutError, typeof LimitError, typeof ConfigurationError, typeof ValidationError... npmjs.com - Signature changed
ai:McpClientError.McpClientError.cause
Was readonly cause: ClosedError | ConfigurationError | HttpError | LimitError | ProtocolError | TimeoutError | ToolError | TransportError | UnsupportedError | ValidationError; now readonly cause: ClosedError | ConfigurationError |... npmjs.com - Signature changed
ai:McpClientError.McpClientError.Encoded.reason
Was readonly reason: Schema.Union<[typeof TransportError, typeof ProtocolError, typeof HttpError, typeof UnsupportedError, typeof ClosedError, typeof TimeoutError, typeof LimitError, typeof ConfigurationError, typeof ValidationError... npmjs.com - Signature changed
ai:McpClientError.McpClientError.fields.reason
Was readonly reason: Schema.Union<[typeof TransportError, typeof ProtocolError, typeof HttpError, typeof UnsupportedError, typeof ClosedError, typeof TimeoutError, typeof LimitError, typeof ConfigurationError, typeof ValidationError... npmjs.com - Signature changed
ai:McpClientError.McpClientError.Iso.reason
Was readonly reason: Schema.Union<[typeof TransportError, typeof ProtocolError, typeof HttpError, typeof UnsupportedError, typeof ClosedError, typeof TimeoutError, typeof LimitError, typeof ConfigurationError, typeof ValidationError... npmjs.com - Signature changed
ai:McpClientError.McpClientError.reason
Was readonly reason: Schema.Union<[typeof TransportError, typeof ProtocolError, typeof HttpError, typeof UnsupportedError, typeof ClosedError, typeof TimeoutError, typeof LimitError, typeof ConfigurationError, typeof ValidationError... npmjs.com - Signature changed
ai:McpClientError.McpClientErrorReason
Was const McpClientErrorReason: Schema.Union<[typeof TransportError, typeof ProtocolError, typeof HttpError, typeof UnsupportedError, typeof ClosedError, typeof TimeoutError, typeof LimitError, typeof ConfigurationError, typeof... npmjs.com - Signature changed
SchemaAST.toEncoded
Was const toEncoded: (a: AST) => AST; now const toEncoded: (ast: AST) => AST. npmjs.com - Signature changed
SchemaAST.toType
Was const toType: <A extends AST>(a: A) => A; now const toType: <A extends AST>(ast: A) => A. npmjs.com
effect 4.1.6 breaking changes
- Removed
annotations.toCode
Reading annotations.toCode from a built-in no longer gives TypeScript source. Pass the representation to Codegen.Module.addSchemas and call module.print() instead. github.com - Behavior changed
A stream Atom that completes without emitting now fails with NoSuchElementError rather than settling as Success. github.com - Behavior changed
DateTime.setParts
Edits during or moving into a repeated DST hour from the later offset now stay in the second occurrence, so results can differ from before. github.com - Behavior changed
Equal.equals
Objects whose constructor is Object but have custom prototypes are now compared and hashed with their inherited properties. Check code that relied on the old comparison. github.com - Behavior changed
HttpApi.RedactedNames
Redacted params, query, headers and bodyless payloads are now hidden in spans and client errors without listing them in RedactedNames. github.com - Behavior changed
JoseError.InvalidKey
An unsupported provider now yields JoseError.CryptoFailed instead of InvalidKey. Code matching on InvalidKey for providers must handle CryptoFailed. github.com - Behavior changed
KeyValueStore.layerFileSystem
Leading byte-order marks are now preserved when reading string values, so stored values may differ from before. github.com - Behavior changed
KeyValueStore.layerSql
Leading byte-order marks are now preserved when reading string values, so stored values may differ from before. github.com - Behavior changed
SqlMessageStorage
The messages table gets a new index through migration 0006_address_index, which users must run on their own database. github.com - Signature changed
ai:McpServer.registerSkill
Was const registerSkill: (options: SkillOptions) => Effect.Effect<void, Cause.IllegalArgumentError, McpServer>; now const registerSkill: {(skill: Skill.Skill, options: SkillRegistration): Effect.Effect<void, Cause.IllegalArgumentError... npmjs.com
And 28 more in this version. Sign up to see every change
effect 4.1.5 breaking changes
- Removed
SchemaRepresentation.Artifact
Generate schema source with Codegen.Module.addSchemas and print instead. npmjs.com - Removed
SchemaRepresentation.CodeDocument
Generate schema source with Codegen.Module.addSchemas and print instead. npmjs.com - Removed
SchemaRepresentation.makeCode
Construct { runtime, Type } directly instead of calling makeCode. npmjs.com - Removed
SchemaRepresentation.toCodeDocument
Generate schema source with Codegen.Module.addSchemas and print instead. npmjs.com - Behavior changed
Arbitrary
String counterexamples shrink differently and deferred; replay tokens recorded earlier may need to be recorded again. github.com - Behavior changed
ConfigProvider.fromEnv
Variables removed before the first lookup are no longer seen; use fromEnvRecord to snapshot the environment at a chosen moment. github.com - Behavior changed
DateTime.make
Zoneless DateTime strings such as 2024-1-15 are now read as UTC instead of local time. github.com - Behavior changed
ProtobufWriter.tag
Invalid field numbers or wire types now throw; supply a field number from 1 through 536870911 and a wire type from 0 through 5. github.com - Behavior changed
Result.Success
Serialized output stores the value under success instead of value; code reading value from a serialized Result should read success. github.com - Behavior changed
Schema.FiniteFromString
Negative zero now encodes to the string "-0" instead of "0". github.com
And 53 more in this version. Sign up to see every change
effect 4.1.4 breaking changes
- Removed
Some intermediate schema exports of the regenerated OpenRouter client are removed. Derive their types from the corresponding request or response schema instead. github.com - Signature changed
Hand-built generation statistics must now include workspace_id and activity entries must include cached_tokens. Fixtures and stored responses must add the newly required fields, or they will fail to decode. github.com - Signature changed
ai:Chat.Chat.generateObject
Was readonly generateObject: <ObjectEncoded extends Record<string, any>, ObjectSchema extends Schema.Encoder<ObjectEncoded, unknown>, Options extends NoExcessProperties<LanguageModel.GenerateObjectOptions<any, ObjectSchema>... npmjs.com - Signature changed
ai:LanguageModel.generateObject
Was const generateObject: <ObjectEncoded extends Record<string, any>, StructuredOutputSchema extends Schema.Encoder<ObjectEncoded, unknown>, Options extends NoExcessProperties<GenerateObjectOptions<any, StructuredOutputSchema>... npmjs.com - Signature changed
ai:LanguageModel.GenerateObjectOptions
Was interface GenerateObjectOptions<Tools extends Record<string, Tool.Any>, StructuredOutputSchema extends Schema.Top> extends GenerateTextOptions<Tools>; now interface GenerateObjectOptions<Tools extends Record<string, Tool.Any>... npmjs.com - Signature changed
ai:LanguageModel.LanguageModel.generateObject
Was readonly generateObject: <ObjectEncoded extends Record<string, any>, StructuredOutputSchema extends Schema.Encoder<ObjectEncoded, unknown>, Options extends NoExcessProperties<GenerateObjectOptions<any, StructuredOutputSchema>... npmjs.com - Signature changed
SchemaRepresentation.FromJsonSchemaOptions
Was interface FromJsonSchemaOptions; now interface FromJsonSchemaOptions extends FromJsonSchemaExperimentalOptions. npmjs.com
effect 4.1.3 breaking changes
- Behavior changed
Base64.decode
A leading U+FEFF is now kept when decoding strings with Base64, Base64Url, Hex and their Schema codecs, which changes decoded results. github.com - Behavior changed
DateTime
Named zones keep the supplied identifier, such as Europe/Kyiv, instead of the Intl-resolved name like Europe/Kiev. github.com - Behavior changed
encodedResult
The encodedResult of a Schema.Void tool, including Tool.make without a success schema, is now null. Code checking for undefined must be updated. github.com - Behavior changed
HttpClient.withScope
HttpClient.withScope now owns every request sent while the scoped client executes, not only the request value it tracked before. github.com - Behavior changed
McpClient
Skills are only served on protocol 2026-07-28. Clients using Skills must select McpProtocol.v2026_07_28; earlier revisions fail with UnsupportedError. github.com - Behavior changed
McpServer
Spans are now named by method and target and carry mcp and gen_ai attributes instead of the generic rpc attributes. Update dashboards and queries that depend on them. github.com - Behavior changed
OtlpMetrics
Metrics without a declared unit now export an empty unit instead of "1", so Prometheus names lose the _ratio suffix. Update queries, or set attributes unit to "1". github.com - Behavior changed
OtlpTracer
OtlpTracer and OtelTracer leave the span status Unset instead of Ok on success. Queries and dashboards that filter on Ok should also match Unset. github.com - Behavior changed
Schema.Struct
Declared fields named after Object.prototype members now require an own property, even on inputs with custom prototypes. github.com - Behavior changed
Schema.toFormatter
The onBefore hook now receives type-side AST nodes without encoding transformations. Hooks relying on encoding metadata must use decoded AST nodes. github.com
And 65 more in this version. Sign up to see every change
effect 4.1.2 breaking changes
- Behavior changed
megabytes
Decimal ByteSize constructors such as megabytes no longer round fractional byte counts; fractional-byte quantities are rejected instead. Code passing fractional values must pass whole byte counts. github.com - Behavior changed
sql.transaction
Transaction commit, savepoint and rollback telemetry events are replaced by child spans of sql.transaction. Code that reads those events must switch to the spans. github.com
Older versions
32 older versions, each with its first changes. Sign up to see every change
Show 32 older versions
effect 4.1.1 breaking changes
- Removed
sql:Statement.Fragment.~effect/sql/Statement/Fragment
Statement.fragment().~effect/sql/Statement/Fragment was removed in effect 4.1.1 npmjs.com - Removed
sql:Statement.Statement.~effect/sql/Statement/Fragment
Statement.statement().~effect/sql/Statement/Fragment was removed in effect 4.1.1 npmjs.com
And 42 more in this version.
effect 4.1.0 breaking changes
- Removed
ai:AiError.AuthenticationError.~type.make.in.http.request
AiError.AuthenticationError.~type.make.in.http.request was removed in effect 4.1.0 npmjs.com - Removed
ai:AiError.AuthenticationError.Encoded.http.request
AiError.AuthenticationError.Encoded.http.request was removed in effect 4.1.0 npmjs.com
And 198 more in this version.
effect 4.0.7 breaking changes
- Behavior changed
AsyncResult.isInterrupted
Code relying on narrowing from this check must switch to AsyncResult.isFailure to narrow the type. github.com - Behavior changed
Exit.hasDies
Code relying on narrowing from this check must switch to Exit.isFailure to narrow the type. github.com
And 53 more in this version.
effect 4.0.6 breaking changes
- Removed
Imports of nested internal modules are now blocked. Only public entry points remain available, so import from those instead. github.com - Removed
eventlog:EventLogEncryption.EncryptedEntry
EncryptedEntry is replaced by EncryptedBatch. Code that uses the old type must switch to the batch type. npmjs.com
And 396 more in this version.
effect 4.0.5 breaking changes
- Removed
Effect.Transaction.Service.journal
Effect.Transaction.Service.journal was removed in effect 4.0.5 npmjs.com - Removed
Effect.Transaction.Service.retry
Effect.Transaction.Service.retry was removed in effect 4.0.5 npmjs.com
And 139 more in this version.
effect 4.0.4 breaking changes
- Behavior changed
HttpServerResponse.toWeb
Outer headers and cookies are now merged into a copy of a raw Response rather than the original, which is left unchanged. Code that relied on the original Response headers being modified must read the returned copy instead. github.com - Behavior changed
Schema.Natural
Colliding numeric, length, item-count and property-count bounds are now exported in place, and redundant bounds are dropped. For example, Schema.Natural exports minimum: 0. Code that reads the exported JSON Schema shape must be updated. github.com
And 16 more in this version.
effect 4.0.3 breaking changes
- Signature changed
ai:McpServer.layerHttp
Was const layerHttp: (options: {readonly name: string; readonly version: string; readonly instructions?: string | undefined; readonly description?: string | undefined; readonly websiteUrl?: string | undefined; readonly icons?... npmjs.com - Signature changed
cli:Completions.Shell
Was type Shell = "bash" | "zsh" | "fish"; now type Shell = "bash" | "zsh" | "fish" | "powershell". npmjs.com
And 48 more in this version.
effect 4.0.2 breaking changes
- Removed
ai:Telemetry.AllAttributes
The combined attributes type is gone. npmjs.com - Removed
ai:Telemetry.BaseAttributes
Use ProviderAttributes instead of BaseAttributes. npmjs.com
And 65 more in this version.
effect 4.0.1 breaking changes
- Behavior changed
Cache
Concurrent callers share one computation that is interrupted only after every caller is interrupted, and interrupted results are no longer cached. github.com - Behavior changed
Effect.cached
Concurrent callers share one computation that is interrupted only after every caller is interrupted, and interrupted results are no longer cached. Code that relied on interrupted results being cached must change. github.com
And 1,045 more in this version.
effect 4.0.0 breaking changes
- Removed
Arbitrary:ArbitraryAnnotation
ArbitraryAnnotation was removed in effect 4.0.0 npmjs.com - Removed
Arbitrary:ArbitraryGenerationContext
ArbitraryGenerationContext was removed in effect 4.0.0 npmjs.com
And 4,004 more in this version.
effect 4.0.0-rc.118 breaking changes
- Removed
effect.arbitrary
Unstable modules moved from effect/unstable/* to effect/*, and the old export paths were removed. Import Arbitrary from effect instead. github.com - Renamed
effect.httpapi
The effect/httpapi entry point was renamed to effect/http-api and the old export path was removed. Update imports and the reserved SSE event name to use http-api. github.com
And 9 more in this version.
effect 4.0.0-beta.36 breaking changes
- Behavior changed
Effect.cachedInvalidateWithTTL
The TTL for Effect.cachedInvalidateWithTTL now starts when the cached value is produced rather than when computation starts, so cached values may live differently than before. github.com - Behavior changed
Effect.cachedWithTTL
The TTL for Effect.cachedWithTTL now starts when the cached value is produced rather than when computation starts, so cached values may live differently than before. github.com
And 2 more in this version.
effect 4.0.0-beta.34 breaking changes
- Signature changed
model
Embedding provider model constructors now require a dimensions argument. github.com
effect 4.0.0-beta.33 breaking changes
- Signature changed
Effect.repeat
With times or schedule, Effect.repeat keeps the source result type even when while or until is a refinement. Callers relying on the narrowed type must check the result. npmjs.com - Signature changed
Effect.retry
Types for Effect.retry with a while option were narrowed, which may reject previously accepted code. npmjs.com
effect 4.0.0-beta.32 breaking changes
- Removed
effect.NullOr
The effect/NullOr module was removed. github.com - Signature changed
Code that passed or read undefined | A values must now use Option<A>. github.com
And 1 more in this version.
effect 4.0.0-beta.31 breaking changes
- Signature changed
HttpClientResponse.json
The json property now returns Effect<Schema.Json, E> instead of Effect<unknown, E>. github.com - Signature changed
HttpIncomingMessage.json
The json property now returns Effect<Schema.Json, E> instead of Effect<unknown, E>. github.com
And 3 more in this version.
effect 4.0.0-beta.30 breaking changes
- Removed
Utils
Unused APIs were removed from the Utils module. github.com
effect 4.0.0-beta.29 breaking changes
- Behavior changed
Placeholder fallback behavior was removed from CLI prompt inputs because defaults are now prefilled. github.com
effect 4.0.0-beta.28 breaking changes
- Removed
Types.MatchRecord
Types.MatchRecord was removed in favor of a simplified implementation. github.com - Behavior changed
Tool result schemas are no longer transformed because they are not sent to providers as JSON schemas. github.com
And 3 more in this version.
effect 4.0.0-beta.27 breaking changes
- Default changed
Effect.context
Calls without a type parameter now default to Effect.context<never>(). github.com
effect 4.0.0-beta.26 breaking changes
- Behavior changed
The default schema-validation error response is now HttpApiError.BadRequestNoContent. github.com - Behavior changed
toJsonSchemaDocument
Unannotated Never index signatures and additionalProperties now produce JSON Schema false instead of { not: {} }. github.com
And 3 more in this version.
effect 4.0.0-beta.23 breaking changes
- Behavior changed
SchemaRepresentation
References are now only created for recursive schemas and schemas with an identifier annotation. Code inspecting representations may see different output. github.com
effect 4.0.0-beta.21 breaking changes
- Renamed
WorkflowEngine.layer
WorkflowEngine.layer was renamed; the document does not name the replacement. Update references. github.com
effect 4.0.0-beta.20 breaking changes
- Behavior changed
Effect.partition
Effect.partition again accumulates failures from the error channel and never fails. Code relying on the beta behavior must adjust. github.com - Default changed
ErrorReporter
The default severity of ErrorReporter is now Info. Set the severity explicitly if you relied on the old default. github.com
And 1 more in this version.
effect 4.0.0-beta.18 breaking changes
- Removed
Effect.atomic
The transaction model changed; use Effect.withTxState and explicit Effect.transaction boundaries instead. github.com - Removed
Effect.atomicWith
The transaction model changed; use Effect.withTxState and explicit Effect.transaction boundaries instead. github.com
And 2 more in this version.
effect 4.0.0-beta.15 breaking changes
- Removed
GlobalFlag.add
GlobalFlag.add, remove and clear are gone. Declare global flags per command with Command.withGlobalFlags instead. github.com - Removed
GlobalFlag.clear
GlobalFlag.add, remove and clear are gone. Declare global flags per command with Command.withGlobalFlags instead. github.com
And 2 more in this version.
effect 4.0.0-beta.14 breaking changes
- Renamed
GlobalFlag.CompletionsFlag
GlobalFlag.CompletionsFlag is now GlobalFlag.Completions. Update references. github.com - Renamed
GlobalFlag.LogLevelFlag
GlobalFlag.LogLevelFlag is now GlobalFlag.LogLevel. Update references. github.com
And 1 more in this version.
effect 4.0.0-beta.13 breaking changes
- Signature changed
FieldExcept
FieldExcept now takes an array of arguments instead of the previous form. Update existing calls. github.com - Signature changed
FieldOnly
FieldOnly now takes an array of arguments instead of the previous form. Update existing calls. github.com
And 1 more in this version.
effect 4.0.0-beta.10 breaking changes
- Renamed
HttpClient.retryTransient
The retryTransient option mode is now called retryOn, and its "both" value is now "errors-and-responses". Update existing calls to use the new names. github.com
effect 4.0.0-beta.2 breaking changes
- Behavior changed
SqlSchema.findOne
Use SqlSchema.single for the fail-on-empty behavior. github.com
effect 3.22.4 breaking changes
- Behavior changed
BigDecimal.normalize
Already-normalized values are now returned as the same object rather than a new one. github.com - Behavior changed
Cause.Fail
Serialized causes (toJSON, JSON.stringify, Node inspection, and logs containing Cause or Exit) now use the key error instead of failure. Code reading failure from serialized causes must read error instead. github.com
And 3 more in this version.
effect 3.22.3 breaking changes
- Behavior changed
LayerMap
Preloaded LayerMap entries now follow their idle TTL instead of staying pinned until the map closes, and preloading is skipped when the idle TTL is zero (the default). To keep preloaded entries for the map's lifetime, set idleTimeToLive... github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.