effect
4.1.4 · 11 Nov 2026MIT66.6M / weekRepositoryHomepagenpmAtom feed
Upgrading effect From 1.0.0 to 4.1.4
294 releases in betweennotes for 288
Counted from 288 of 294 release notes, and the breaking changes of 4 pre-releases on the way to a major. Advisories are counted from the advisory database, in full.
Start here
Before you upgrade
Tick each one off as you go- Breaking4.1.4
- Breaking4.1.4
- Breaking4.1.4
- Breaking4.1.4
- Breaking4.1.4
- Breaking4.1.4
- Breaking4.1.4
- Breaking4.1.4
- Breaking4.1.4
- Breaking4.1.4
Security
Fixes 2 advisories affecting 1.0.0
- Effect `AsyncLocalStorage` context lost/contaminated inside Effect fibers under concurrent load with RPChigh · GHSA-38f7-945m-qr2g
- Effect: ReDoS in Schema.TemplateLiteral compiled regexhigh · GHSA-7589-6fvf-x4pw
Release by release
- Breaking
Model:endpoints. - Breaking
BYOKKey:declared_region,declared_zdr,is_byok_only, andis_required. - Breaking
PublicEndpoint:native_tools,service_tier,supports_diarization, andsupports_tool_choice. - Breaking
Guardrail:include_byok_in_budgets.
- Breaking
- Breaking
A
Tool.dynamictool without asuccessschema must return a JSON value, even whentoModelOutputreplaces the model payload. Other values, such as aDate, now fail withToolResultEncodingError. Declare asuccessschema, for exampleSchema.Date, or return a JSON value. Declaresuccess: Schema.Voidfor a dynamic tool that returnsundefined. - Breaking
encodedResultof aSchema.Voidtool, includingTool.makewithout asuccessschema, is nownullinstead ofundefined. - Breaking
Fix
HttpStaticServerresponding200instead of304when anIf-None-Matchentity-tag contains a comma. - Breaking
Fix
Effect.race,Effect.raceFirst,Effect.raceAll,Effect.raceAllFirstandEffect.timeoutOptionsometimes letting a loser finish after the race settled, which could drop its result, such as an item taken from aQueue.
- Breaking
- New
Add
Json5.parseandJsonc.parsetoeffect/encoding, returning aResultthat fails with anEncodingErroron invalid input. - New
Add
SchemaBinary.int32,uint32,int64anduint64, opt-in schemas that write integers as fixed-width little-endian payloads. The 32-bit schemas decode tonumberand the 64-bit schemas tobigint. Out-of-range and non-integer values are rejected instead of wrapped. - Fixed
Fix
ByteSizedecimal unit constructors such asmegabytes(2.01)throwing or returning the wrong byte count, and reject fractional-byte quantities instead of rounding them. - Fixed
Fix cluster entity defect restart backoff being shared by all entities of a type and never resetting.
- New
- New
Speed up
Base64Url.decodeandBase64Url.decodeStringby decoding the URL-safe alphabet directly, instead of transliterating the input and decoding it again as standard Base64. - New
Add
onRejectiontoCircuitBreaker.execute. With"allow", a call the circuit would refuse withCircuitOpenorCircuitHalfOpenruns unrecorded instead, while a call the circuit admits, probe included, is recorded as usual. Calls that must always run can then still count towards the breaker's state. Defaults to"fail", which keeps the current behavior. - New
Speed up
DateTimeconstruction by creating thepartsUtc,adjustedEpochMillisecondsandpartsAdjustedcache properties on first use. Reading and writing these fields is unchanged, butObject.hasOwn,Object.getOwnPropertyNamesandObject.getOwnPropertyDescriptorno longer report them before the caches are populated, or at all on instances sealed or frozen before first use. Reading the parts of, or writing these fields on, an instance frozen before first use no longer throws. - New
Add
HttpClient.timeout, which fails requests that receive no response within the given duration with anHttpClientErrorwrapping aTransportError, so the timed client keeps the standardHttpClientservice type and is retried byretryTransient. The timeout covers the wrapped client until it returns a response, which for a plain client is when the response headers arrive; body reads after that are not covered.
- New
- Breaking
Use
SecureRandomfor randomness and UUIDs, andDigestwith algorithm values such asDigest.sha256for hashing. Replaceeffect/testing/TestCryptowithLayer.mockfor the required services. - Breaking
Provide crypto explicitly; it is no longer included in the runtime
*Servicesbundles.NodeCrypto,BunCrypto,DenoCryptoandBrowserCryptooffer individual family layers and a combinedlayer, supplyingSecureRandomwhere needed. Core modules offerlayerWebCrypto. - Breaking
Provide
Digest.Digestinstead ofCrypto.CryptotoSqlMessageStorageandSingleRunner, and instead ofEventLogEncryptiontoSqlEventLogServerEncrypted.makeStorageandlayerStorage. ReplaceEventLogEncryption.sha256Stringwithdigest.digestHex(Digest.sha256, bytes). - Breaking
Declare decision images as input fields with
Decision.Image, and addDecision.locate, which answers with a bounding box around one target in an image field.
- Breaking
- Breaking
Ignore
end,attribute,event, andaddLinkscalls on spans that have already ended. Logs andEffect.annotateCurrentSpanfrom fibers that outlive their span no longer modify the ended span,OtlpTracerno longer exports a span twice whenendis called again,OtelSpanno longer triggers OpenTelemetry SDK warnings for late calls, and the DevTools tracer no longer sends events for ended spans. - New
Add a scoped
CliOutput.Presenterservice for suppressing, redirecting, or replacing built-in CLI help, invalid-invocation, and version output. - New
Add a
toModelOutputoption toTool.makeandTool.dynamicfor sending text, images and files to the model in place of the serialized tool result. Anthropic and OpenAI Responses send native content blocks; OpenAI-compatible APIs and OpenRouter send text with a placeholder for each file, via the newPrompt.toolModelOutputToText. - New
Add a
concurrencyoption toArbitrary.checkEffectand global check configuration to run independent property evaluations concurrently. Results remain deterministic for deterministic generators and repeatable properties, while shrinking and replay stay sequential. The default concurrency is1.
- Breaking
- Breaking
EncryptedEntryandEncryptedRemoteEntryare replaced byEncryptedBatchandEncryptedRemoteBatch, andWriteEntries.encryptedEntriesbecomesbatches. - Breaking
EventLogEncryption.encryptanddecrypttake the store id and work on batches, and thedecodeChangesoption ofEventLogRemote.makeWithreceives the store id. - Breaking
EventLogServerEncrypted.Storage.writeandchangesuse batches,PersistedEntryis removed, andSqlEventLogServerEncryptedno longer acceptsinsertBatchSize. - Breaking
EventJournal.writeFromRemotenow hands itseffectthe whole batch with conflicts read up front, andEventLog.HandlerTransactionruns a replayed batch's handlers in one transaction.
- Breaking
- New
Add
Flag.withOptionalValuefor GNU-style flags with an optional value, like--color[=WHEN]. A bare flag uses the given value; an explicit value must be attached with=. - New
Support per-request URLs in
GraphQLProtocol.layerHttpandmakeHttp, as a function of the context and operation or as anEffect<string>.GraphQLResolverbatches lookups by URL. - New
Add HttpClientRequest.compressBody for gzip and deflate request body compression.
- New
Add
HttpMiddleware.decompression, which decompressesgzipanddeflaterequest bodies, limits the decompressed size, and rejects other codings with415.
- New
18 other lines we could not sort, mostly version bumps
- 4.0.2
Replace
gen_ai.systemwithgen_ai.provider.name. Thesystemoption,BaseAttributesandWellKnownSystemare removed in favor ofprovider: { name },ProviderAttributesandWellKnownProviderName. - 4.0.2
LanguageModelspans are client spans and recordgen_ai.output.type(textorjson) for every provider. The OpenAIresponseFormattelemetry option andWellKnownResponseFormatare removed. - 4.0.2
Move OpenAI service-tier and system-fingerprint attributes from
gen_ai.openai.*toopenai.*. - 4.0.2
Rename
concurrency,toolChoiceandobjectNamespan attributes toeffect.ai.concurrency,effect.ai.tool_choiceandeffect.ai.object_name. Tool choices record the resolved value, defaulting to"auto"; object choices are JSON-encoded. - 4.0.2
Include cached tokens in Anthropic
gen_ai.usage.input_tokensand report cache reads and writes asgen_ai.usage.cache_read.input_tokensandgen_ai.usage.cache_write.input_tokens. The duplicate AnthropiccacheCreationInputTokensandcacheReadInputTokensresponse options are removed. - 4.0.2
Name statement spans by
db.namespace,server.address[:server.port]ordb.system.name, falling back tosql.execute. The rules are exported asStatement.spanNameandStatement.spanTarget. - 4.0.2
Record Effect execution methods in
effect.sql.methodinstead ofdb.operation.name. - 4.0.2
Use internal transaction spans with
effect.sql.transaction.commit|savepoint|rollbackevents. - 4.0.2
Name D1 batches of two or more statements
BATCH, orBATCH {target}when a target is set, withdb.operation.nameset toBATCHanddb.operation.batch.size. - 3.16.14
Removed some unnecessary single-arg pipe calls
21 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.