Packages

effect

4.1.4 · 11 Nov 2026MIT66.6M / weekRepositoryHomepagenpmAtom feed

Your version

4.1.4

Latest11 Nov 2026Where it was published

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 include cached_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, and is_required.

  • Breaking

    PublicEndpoint: native_tools, service_tier, supports_diarization, and supports_tool_choice.

  • Breaking

    Guardrail: include_byok_in_budgets.

  • Breaking

    VideoModel: creativity and upscale_factor.

Release note

Patch Changes

  • Add WorkloadIdentity helpers for Anthropic and OpenAI authentication, and report OpenAI WebSocket client-transform failures as AiError instead of defects.

  • Fix CLI --wizard generating a command that fails to parse when flags or arguments were already typed for the selected command.

  • Add the HttpApi.RedactedNames annotation for declaring query parameter and header names of an API, group or endpoint to redact in the URL and header attributes of HttpApiClient and HttpApiBuilder spans, for values that are only sometimes secret. addHttpApi treats it like any other annotation, and user_agent.original is recorded as is.

  • Expose HttpApiSchema.getResponseEncodingSchema and getEncodeToWithHeadersParts for 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, and is_required.

  • Breaking

    PublicEndpoint: native_tools, service_tier, supports_diarization, and supports_tool_choice.

  • Breaking

    Guardrail: include_byok_in_budgets.

  • Breaking

    VideoModel: creativity and upscale_factor.

  • Breaking

    GenerationContentData: error.

  • Breaking

    FusionCallAnalysisInProgressEvent: analyst_model.

  • Breaking

    All Observability*Destination schemas: regions, broadcast_generation_cost, broadcast_generation_cost_allocation, broadcast_generation_identity, and broadcast_generation_request_context.

  • Breaking

    Add allowEmpty to LanguageModel.generateObject and Chat.generateObject, and preserve Anthropic tool-call finish reasons with native structured output.

  • Breaking

    Restore Skills discovery, retrieval, and directory browsing in McpClient and McpServer on supported MCP protocol revisions before 2026-07-28.

  • Breaking

    Fix SchemaRepresentation.toCodeDocument to omit annotations containing unsupported objects instead of emitting incorrect object literals.

  • Breaking

    Avoid duplicate null branches for optional properties in OpenAiStructuredOutput.toCodecOpenAI and AnthropicStructuredOutput.toCodecAnthropic.

  • Breaking

    Fix TestClock interrupting 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.