Skip to content
Snippets Groups Projects

Update Effect-ts

Merged Renovate Bot requested to merge renovate/effect-ts into main

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

Compare Source

Patch Changes
Effect-TS/effect (@​effect/experimental)

v0.42.1

Compare Source

Patch Changes
Effect-TS/effect (@​effect/platform)

v0.78.1

Compare Source

Patch Changes
Effect-TS/effect (@​effect/platform-node)

v0.74.1

Compare Source

Patch Changes
Effect-TS/effect (@​effect/printer)

v0.41.8

Compare Source

Patch Changes
Effect-TS/effect (@​effect/printer-ansi)

v0.41.8

Compare Source

Patch Changes
Effect-TS/effect (@​effect/typeclass)

v0.32.8

Compare Source

Patch Changes
Effect-TS/effect (@​effect/vitest)

v0.19.6

Compare Source

Patch Changes
Effect-TS/effect (effect)

v3.13.8

Compare Source

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 optional overrideOptions parameter, allowing you to customize the default parsing behavior as needed.

  • #​4565 22d2ebb Thanks @​gcanti! - ParseResult.ArrayFormatter: correct _tag fields for Refinement and Transformation issues, closes #​4564.

    This update fixes an issue where ParseResult.ArrayFormatter incorrectly labeled Refinement and Transformation errors as Type 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

:date: Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

:vertical_traffic_light: Automerge: Enabled.

:recycle: Rebasing: Whenever MR is behind base branch, or you tick the rebase/retry checkbox.

:ghost: Immortal: This MR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading