Skip to content

effect@4.0.0-beta.81

Pre-release
Pre-release

Choose a tag to compare

@effect-bot effect-bot released this 12 Jun 14:19
9efacae

Patch Changes

  • #2387 93cb4f8 Thanks @gcanti! - Config.withDefault now only recovers from missing data for literal/union
    schemas. Invalid present values now propagate validation errors instead of
    using the default, closes #2384.

  • #2388 60341d9 Thanks @gcanti! - Config.withDefault no longer recovers from schema filter failures. A filter
    failure means a present value reached refinement checks, so using the default
    could hide invalid configuration values.

  • #2389 1105ab5 Thanks @gcanti! - Fix Schema.toTaggedUnion(...).isAnyOf narrowing for custom discriminant keys, closes #2386.

    Previously, the type predicate always extracted union members by _tag, even
    when toTaggedUnion was created with a different discriminant key. Runtime
    behavior already used the supplied key, so this aligns the type-level narrowing
    with the existing runtime behavior.

  • #2270 4500fbf Thanks @IMax153! - Add HTTP API streaming response support