#3070192261b Thanks @gcanti! - Add refineTypeId unique symbol to the refine interface to ensure correct inference of Fields in the Class APIs, closes #3063
#30740b47fdf Thanks @gcanti! - Revert the 0.67.22 patch as it is causing issues with other array filters, closes #3073
0.68.8
Patch Changes
#3070192261b Thanks @gcanti! - Add refineTypeId unique symbol to the refine interface to ensure correct inference of Fields in the Class APIs, closes #3063
#3046530fa9e Thanks @gcanti! - Fix error message display for composite errors when overwrite = false
This commit resolves an issue where the custom message for a struct (or tuple or union) was displayed regardless of whether the validation error was related to the entire struct or just a specific part of it. Previously, users would see the custom error message even when the error only concerned a particular field within the struct and the flag overwrite was not set to true.
import { Schema, TreeFormatter } from "@effect/schema";
import { Either } from "effect";
Effect.liftPredicate transforms a Predicate function into an Effect returning the input value if the predicate returns true or failing with specified error if the predicate fails.
import { Effect } from "effect";
const isPositive = (n: number): boolean => n > 0;
// succeeds with 1
Effect.liftPredicate(1, isPositive, (n) => ${n} is not positive);
// fails with "0 is not positive"
Effect.liftPredicate(0, isPositive, (n) => ${n} is not positive);
Bumps the production-dependencies group with 7 updates in the / directory:
0.36.40
0.36.64
0.55.5
0.58.11
0.51.5
0.53.10
0.33.24
0.33.35
0.33.24
0.33.35
0.67.18
0.68.10
3.2.8
3.4.3
Updates
@effect/cli
from 0.36.40 to 0.36.64Release notes
Sourced from
@effect/cli
's releases.Changelog
Sourced from
@effect/cli
's changelog.... (truncated)
Commits
829fb19
Version Packages (#3092)6b3bd87
Version Packages (#3081)81027a1
docs: remove adapter examples (#3041)bbdd365
update to typescript 5.5 (#3079)6f8035d
Version Packages (#3075)a70705c
Version Packages (#3071)6ddabaa
Version Packages (#3066)7ba763c
Version Packages (#3060)428edf1
Version Packages (#3055)38b406b
Version Packages (#3052)Updates
@effect/platform
from 0.55.5 to 0.58.11Release notes
Sourced from
@effect/platform
's releases.... (truncated)
Changelog
Sourced from
@effect/platform
's changelog.... (truncated)
Commits
829fb19
Version Packages (#3092)a5b95b5
add some common services to HttpRouter.Default (#3091)5e29579
add HttpServerRequest.toURL api (#3090)6b3bd87
Version Packages (#3081)ab3180f
add HttpClientResponse.matchStatus* apis (#3089)a48ee84
add HttpServerRespondable trait (#3088)6f8035d
Version Packages (#3075)a70705c
Version Packages (#3071)6ddabaa
Version Packages (#3066)027004a
add HttpRouter.Tag.unwrap api (#3064)Updates
@effect/platform-node
from 0.51.5 to 0.53.10Release notes
Sourced from
@effect/platform-node
's releases.Changelog
Sourced from
@effect/platform-node
's changelog.... (truncated)
Commits
829fb19
Version Packages (#3092)6b3bd87
Version Packages (#3081)a48ee84
add HttpServerRespondable trait (#3088)81027a1
docs: remove adapter examples (#3041)bbdd365
update to typescript 5.5 (#3079)6f8035d
Version Packages (#3075)a70705c
Version Packages (#3071)6ddabaa
Version Packages (#3066)027004a
add HttpRouter.Tag.unwrap api (#3064)7ba763c
Version Packages (#3060)Updates
@effect/printer
from 0.33.24 to 0.33.35Release notes
Sourced from
@effect/printer
's releases.Changelog
Sourced from
@effect/printer
's changelog.... (truncated)
Commits
6b3bd87
Version Packages (#3081)a70705c
Version Packages (#3071)7ba763c
Version Packages (#3060)01075fb
Version Packages (#3034)276b394
Version Packages (#3013)ebed962
Version Packages (#3003)368d735
Version Packages (#2996)50fc289
Version Packages (#2973)ca78f58
Version Packages (#2949)856024c
Version Packages (#2936)Updates
@effect/printer-ansi
from 0.33.24 to 0.33.35Release notes
Sourced from
@effect/printer-ansi
's releases.Changelog
Sourced from
@effect/printer-ansi
's changelog.... (truncated)
Commits
6b3bd87
Version Packages (#3081)a70705c
Version Packages (#3071)7ba763c
Version Packages (#3060)01075fb
Version Packages (#3034)276b394
Version Packages (#3013)ebed962
Version Packages (#3003)368d735
Version Packages (#2996)50fc289
Version Packages (#2973)ca78f58
Version Packages (#2949)856024c
Version Packages (#2936)Updates
@effect/schema
from 0.67.18 to 0.68.10Release notes
Sourced from
@effect/schema
's releases.Changelog
Sourced from
@effect/schema
's changelog.... (truncated)
Commits
6b3bd87
Version Packages (#3081)bbdd365
update to typescript 5.5 (#3079)6f8035d
Version Packages (#3075)0b47fdf
Revert the 0.67.22 patch as it is causing issues with other array fil… (#3074)a70705c
Version Packages (#3071)192261b
AddrefineTypeId
unique symbol to therefine
interface to ensure … (#3070)7ba763c
Version Packages (#3060)75e718e
chore: Update README.md with examples of extending schemas (#3050)a5e923e
Version Packages (#3049)530fa9e
Fix error message display for composite errors whenoverwrite = false
(#3046)Updates
effect
from 3.2.8 to 3.4.3Release notes
Sourced from effect's releases.
Changelog
Sourced from effect's changelog.