#3015b51e266 Thanks @gcanti! - - Fix handling of exact option overrides in AST.ParseOptions
This commit resolves a bug affecting the exact option within AST.ParseOptions. Previously, the implementation failed to correctly incorporate overrides for the exact setting, resulting in the parser not respecting the specified behavior in extended configurations.
Improve error messaging in Pretty.make for unmatched union schemas
The ParseIssue model in the @effect/schema/ParseResult module has undergone a comprehensive redesign and simplification that enhances its expressiveness without compromising functionality. This section explores the motivation and details of this refactoring.
Enhanced Schema.filter API
The Schema.filter API has been improved to support more complex filtering that can involve multiple properties of a struct. This is especially useful for validations that compare two fields, such as ensuring that a password field matches a confirm_password field, a common requirement in form validations.
Previous Limitations:
Previously, while it was possible to implement a filter that compared two fields, there was no straightforward way to attach validation messages to a specific field. This posed challenges, especially in form validations where precise error reporting is crucial.
Example of Previous Implementation:
import { ArrayFormatter, Schema } from "@effect/schema";
import { Either } from "effect";
#3015b51e266 Thanks @gcanti! - - Fix handling of exact option overrides in AST.ParseOptions
This commit resolves a bug affecting the exact option within AST.ParseOptions. Previously, the implementation failed to correctly incorporate overrides for the exact setting, resulting in the parser not respecting the specified behavior in extended configurations.
Improve error messaging in Pretty.make for unmatched union schemas
The ParseIssue model in the @effect/schema/ParseResult module has undergone a comprehensive redesign and simplification that enhances its expressiveness without compromising functionality. This section explores the motivation and details of this refactoring.
Enhanced Schema.filter API
The Schema.filter API has been improved to support more complex filtering that can involve multiple properties of a struct. This is especially useful for validations that compare two fields, such as ensuring that a password field matches a confirm_password field, a common requirement in form validations.
Previous Limitations:
Previously, while it was possible to implement a filter that compared two fields, there was no straightforward way to attach validation messages to a specific field. This posed challenges, especially in form validations where precise error reporting is crucial.
Example of Previous Implementation:
import { ArrayFormatter, Schema } from "@effect/schema";
import { Either } from "effect";
#29813572646 Thanks @tim-smart! - ensure multiline error messages are preserved in cause rendering
#29701aed347 Thanks @gcanti! - Updated Chunk.toArray and Chunk.toReadonlyArray. Improved function signatures to preserve non-empty status of chunks during conversion.
Bumps the production-dependencies group with 7 updates in the / directory:
0.36.40
0.36.48
0.55.5
0.57.4
0.51.5
0.51.13
0.33.24
0.33.31
0.33.24
0.33.31
0.67.18
0.68.1
3.2.8
3.3.5
Updates
@effect/cli
from 0.36.40 to 0.36.48Release notes
Sourced from
@effect/cli
's releases.Changelog
Sourced from
@effect/cli
's changelog.... (truncated)
Commits
276b394
Version Packages (#3013)ebed962
Version Packages (#3003)f6c7977
Schema: version 0.68.0 (#2906)368d735
Version Packages (#2996)50fc289
Version Packages (#2973)ca78f58
Version Packages (#2949)856024c
Version Packages (#2936)67f160a
IntroduceRedacted\<T>
module (#2856)8bc3822
Version Packages (#2928)61e8edb
fix print to stdout of cli (#1812) (#2920)Updates
@effect/platform
from 0.55.5 to 0.57.4Release notes
Sourced from
@effect/platform
's releases.Changelog
Sourced from
@effect/platform
's changelog.... (truncated)
Commits
276b394
Version Packages (#3013)6f014bf
platform: Add documentation for toWebHandler function in README, incl… (#3009)ebed962
Version Packages (#3003)f6c7977
Schema: version 0.68.0 (#2906)368d735
Version Packages (#2996)50fc289
Version Packages (#2973)07e12ec
refactor Socket to use do notation (#2988)b38d456
Typo in Example Source Code in README.md (#2983)ca78f58
Version Packages (#2949)4d3fbe8
fix KeyValueStore for react native by making constructors lazy (#2966)Updates
@effect/platform-node
from 0.51.5 to 0.51.13Release notes
Sourced from
@effect/platform-node
's releases.Changelog
Sourced from
@effect/platform-node
's changelog.... (truncated)
Commits
276b394
Version Packages (#3013)ebed962
Version Packages (#3003)368d735
Version Packages (#2996)50fc289
Version Packages (#2973)ca78f58
Version Packages (#2949)856024c
Version Packages (#2936)188f0a5
parse URL instances when creating client requests (#2924)8bc3822
Version Packages (#2928)ae55d07
Version Packages (#2911)Updates
@effect/printer
from 0.33.24 to 0.33.31Release notes
Sourced from
@effect/printer
's releases.... (truncated)
Changelog
Sourced from
@effect/printer
's changelog.... (truncated)
Commits
276b394
Version Packages (#3013)ebed962
Version Packages (#3003)368d735
Version Packages (#2996)50fc289
Version Packages (#2973)ca78f58
Version Packages (#2949)856024c
Version Packages (#2936)ae55d07
Version Packages (#2911)Updates
@effect/printer-ansi
from 0.33.24 to 0.33.31Release notes
Sourced from
@effect/printer-ansi
's releases.Changelog
Sourced from
@effect/printer-ansi
's changelog.... (truncated)
Commits
276b394
Version Packages (#3013)ebed962
Version Packages (#3003)368d735
Version Packages (#2996)50fc289
Version Packages (#2973)ca78f58
Version Packages (#2949)856024c
Version Packages (#2936)ae55d07
Version Packages (#2911)Updates
@effect/schema
from 0.67.18 to 0.68.1Release notes
Sourced from
@effect/schema
's releases.... (truncated)
Changelog
Sourced from
@effect/schema
's changelog.... (truncated)
Commits
276b394
Version Packages (#3013)b51e266
Fix handling ofexact
option overrides inAST.ParseOptions
and im… (#3015)ebed962
Version Packages (#3003)f6c7977
Schema: version 0.68.0 (#2906)368d735
Version Packages (#2996)0ff11d7
fix typo (isExact
->exact
) and make internaltoASTAnnotations
more gen...3b15e1b
Improve error handling (type-level) for improper usage ofoptional
,… (#2997)3a750b2
Exposeexact
option for strict decoding on missing properties, clos… (#2994)01171bc
add internal mergeSchemaAnnotations (#2992)50fc289
Version Packages (#2973)Updates
effect
from 3.2.8 to 3.3.5Release notes
Sourced from effect's releases.