effect
4.1.4 · 11 Nov 2026MIT66.6M / weekRepositoryHomepagenpmAtom feed
4.1.5 is the newest release of 4.x.
In short
15 breaking4 new1 fixed
- Breaking
Add experimental
closeObjects, fix JSON Schema composition and examples, and regenerate a smaller OpenRouter client with a boolean workspace-deletion confirmation flag. - Breaking
The generated OpenRouter schemas follow the current upstream specification. Some intermediate schema exports are removed; derive their types from the corresponding request or response schema instead. Hand-built generation statistics must now include
workspace_id, and activity entries must includecached_tokens. Tool parameter and structured-output schemas accept JSON-valued records. - Breaking
Fixtures and stored responses must also include these newly required fields:
- 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
VideoModel:creativityandupscale_factor.
Release note
Patch Changes
Add
WorkloadIdentityhelpers for Anthropic and OpenAI authentication, and report OpenAI WebSocket client-transform failures asAiErrorinstead of defects.Fix CLI
--wizardgenerating a command that fails to parse when flags or arguments were already typed for the selected command.Add the
HttpApi.RedactedNamesannotation for declaring query parameter and header names of an API, group or endpoint to redact in the URL and header attributes ofHttpApiClientandHttpApiBuilderspans, for values that are only sometimes secret.addHttpApitreats it like any other annotation, anduser_agent.originalis recorded as is.Expose
HttpApiSchema.getResponseEncodingSchemaandgetEncodeToWithHeadersPartsfor inspecting buffered response encodings and declared body/header schemas.Add experimental
closeObjects, fix JSON Schema composition and examples, and regenerate a smaller OpenRouter client with a boolean workspace-deletion confirmation flag.
Breaking changes
The generated OpenRouter schemas follow the current upstream specification. Some intermediate schema exports are removed; derive their types from the corresponding request or response schema instead. Hand-built generation statistics must now include workspace_id, and activity entries must include cached_tokens. Tool parameter and structured-output schemas accept JSON-valued records.
Fixtures and stored responses must also include these newly required fields:
- 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
VideoModel:creativityandupscale_factor. - Breaking
GenerationContentData:error. - Breaking
FusionCallAnalysisInProgressEvent:analyst_model. - Breaking
All
Observability*Destinationschemas:regions,broadcast_generation_cost,broadcast_generation_cost_allocation,broadcast_generation_identity, andbroadcast_generation_request_context. - Breaking
Add
allowEmptytoLanguageModel.generateObjectandChat.generateObject, and preserve Anthropic tool-call finish reasons with native structured output. - Breaking
Restore Skills discovery, retrieval, and directory browsing in
McpClientandMcpServeron supported MCP protocol revisions before 2026-07-28. - Breaking
Fix
SchemaRepresentation.toCodeDocumentto omit annotations containing unsupported objects instead of emitting incorrect object literals. - Breaking
Avoid duplicate null branches for optional properties in
OpenAiStructuredOutput.toCodecOpenAIandAnthropicStructuredOutput.toCodecAnthropic. - Breaking
Fix
TestClockinterrupting an uninterruptible finalizer on its first sleep and skipping subsequent cleanup.
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.