effect
4.1.4 · 11 Nov 2026MIT66.6M / weekRepositoryHomepagenpmAtom feed
Upgrading effect From 4.1.0 to 4.1.4
4 releases in betweenevery note read
- 45
- changes to make
- 0
- advisories fixed
- 25
- new
- 103
- fixes
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
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
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.