Update Effect-ts
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
@effect/cli (source) | devDependencies | patch | 0.57.0 -> 0.57.1 |
@effect/experimental (source) | peerDependencies | patch | 0.42.0 -> 0.42.1 |
@effect/experimental (source) | devDependencies | patch | 0.42.0 -> 0.42.1 |
@effect/platform (source) | peerDependencies | patch | 0.78.0 -> 0.78.1 |
@effect/platform (source) | devDependencies | patch | 0.78.0 -> 0.78.1 |
@effect/platform-node (source) | peerDependencies | patch | 0.74.0 -> 0.74.1 |
@effect/platform-node (source) | devDependencies | patch | 0.74.0 -> 0.74.1 |
@effect/printer (source) | devDependencies | patch | 0.41.7 -> 0.41.8 |
@effect/printer-ansi (source) | devDependencies | patch | 0.41.7 -> 0.41.8 |
@effect/typeclass (source) | devDependencies | patch | 0.32.7 -> 0.32.8 |
@effect/vitest (source) | devDependencies | patch | 0.19.5 -> 0.19.6 |
effect (source) | peerDependencies | patch | 3.13.7 -> 3.13.8 |
effect (source) | devDependencies | patch | 3.13.7 -> 3.13.8 |
Release Notes
Effect-TS/effect (@effect/cli)
v0.57.1
Patch Changes
- Updated dependencies [
c65d336
,22d2ebb
]:- effect@3.13.8
- @effect/platform@0.78.1
- @effect/printer@0.41.8
- @effect/printer-ansi@0.41.8
Effect-TS/effect (@effect/experimental)
v0.42.1
Patch Changes
- Updated dependencies [
c65d336
,22d2ebb
]:- effect@3.13.8
- @effect/platform@0.78.1
- @effect/platform-node@0.74.1
Effect-TS/effect (@effect/platform-node)
v0.74.1
Patch Changes
- Updated dependencies [
c65d336
,22d2ebb
]:- effect@3.13.8
- @effect/platform@0.78.1
- @effect/platform-node-shared@0.28.1
Effect-TS/effect (@effect/printer)
v0.41.8
Patch Changes
- Updated dependencies [
c65d336
,22d2ebb
]:- effect@3.13.8
- @effect/typeclass@0.32.8
Effect-TS/effect (@effect/printer-ansi)
v0.41.8
Patch Changes
- Updated dependencies [
c65d336
,22d2ebb
]:- effect@3.13.8
- @effect/printer@0.41.8
- @effect/typeclass@0.32.8
Effect-TS/effect (effect)
v3.13.8
Patch Changes
-
#4567
c65d336
Thanks @rehos! - Schema:standardSchemaV1
now returns all errors by default and supports custom options.The
standardSchemaV1
now returns all validation errors by default (ParseOptions = { errors: "all" }
). Additionally, it now accepts an optionaloverrideOptions
parameter, allowing you to customize the default parsing behavior as needed. -
#4565
22d2ebb
Thanks @gcanti! - ParseResult.ArrayFormatter: correct_tag
fields forRefinement
andTransformation
issues, closes #4564.This update fixes an issue where
ParseResult.ArrayFormatter
incorrectly labeled Refinement and Transformation errors asType
in the output.Before
import { Effect, ParseResult, Schema } from "effect" const schema = Schema.Struct({ a: Schema.NonEmptyString, b: Schema.NumberFromString }) const input = { a: "", b: "" } const program = Schema.decodeUnknown(schema, { errors: "all" })(input).pipe( Effect.catchTag("ParseError", (err) => ParseResult.ArrayFormatter.formatError(err).pipe( Effect.map((err) => JSON.stringify(err, null, 2)) ) ) ) program.pipe(Effect.runPromise).then(console.log) /* [ { "_tag": "Type", ❌ "path": [ "a" ], "message": "Expected a non empty string, actual \"\"" }, { "_tag": "Type", ❌ "path": [ "b" ], "message": "Unable to decode \"\" into a number" } ] */
After
import { Effect, ParseResult, Schema } from "effect" const schema = Schema.Struct({ a: Schema.NonEmptyString, b: Schema.NumberFromString }) const input = { a: "", b: "" } const program = Schema.decodeUnknown(schema, { errors: "all" })(input).pipe( Effect.catchTag("ParseError", (err) => ParseResult.ArrayFormatter.formatError(err).pipe( Effect.map((err) => JSON.stringify(err, null, 2)) ) ) ) program.pipe(Effect.runPromise).then(console.log) /* [ { "_tag": "Refinement", ✅ "path": [ "a" ], "message": "Expected a non empty string, actual \"\"" }, { "_tag": "Transformation", ✅ "path": [ "b" ], "message": "Unable to decode \"\" into a number" } ] */
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.