Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps-dev): bump effect from 3.11.8 to 3.12.12 in the effect group across 1 directory #39

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 14, 2025

Bumps the effect group with 1 update in the / directory: effect.

Updates effect from 3.11.8 to 3.12.12

Release notes

Sourced from effect's releases.

effect@3.12.12

Patch Changes

  • #4440 4018eae Thanks @​gcanti! - Schema: add missing support for tuple annotations in TaggedRequest.

  • #4439 543d36d Thanks @​gcanti! - Schedule: fix unsafe tapOutput signature.

    Previously, tapOutput allowed using an output type that wasn't properly inferred, leading to potential runtime errors. Now, TypeScript correctly detects mismatches at compile time, preventing unexpected crashes.

    Before (Unsafe, Causes Runtime Error)

    import { Effect, Schedule, Console } from "effect"
    const schedule = Schedule.once.pipe(
    Schedule.as<number | string>(1),
    Schedule.tapOutput((s: string) => Console.log(s.trim())) // ❌ Runtime error
    )
    Effect.runPromise(Effect.void.pipe(Effect.schedule(schedule)))
    // throws: TypeError: s.trim is not a function

    After (Safe, Catches Type Error at Compile Time)

    import { Console, Schedule } from "effect"
    const schedule = Schedule.once.pipe(
    Schedule.as<number | string>(1),
    // ✅ Type Error: Type 'number' is not assignable to type 'string'
    Schedule.tapOutput((s: string) => Console.log(s.trim()))
    )

  • #4447 f70a65a Thanks @​gcanti! - Preserve function length property in Effect.fn / Effect.fnUntraced, closes #4435

    Previously, functions created with Effect.fn and Effect.fnUntraced always had a .length of 0, regardless of their actual number of parameters. This has been fixed so that the length property correctly reflects the expected number of arguments.

    Before

    import { Effect } from "effect"
    const fn1 = Effect.fn("fn1")(function* (n: number) {
    return n
    })
    console.log(fn1.length)
    // Output: 0 ❌ (incorrect)

... (truncated)

Changelog

Sourced from effect's changelog.

3.12.12

Patch Changes

  • #4440 4018eae Thanks @​gcanti! - Schema: add missing support for tuple annotations in TaggedRequest.

  • #4439 543d36d Thanks @​gcanti! - Schedule: fix unsafe tapOutput signature.

    Previously, tapOutput allowed using an output type that wasn't properly inferred, leading to potential runtime errors. Now, TypeScript correctly detects mismatches at compile time, preventing unexpected crashes.

    Before (Unsafe, Causes Runtime Error)

    import { Effect, Schedule, Console } from "effect"
    const schedule = Schedule.once.pipe(
    Schedule.as<number | string>(1),
    Schedule.tapOutput((s: string) => Console.log(s.trim())) // ❌ Runtime error
    )
    Effect.runPromise(Effect.void.pipe(Effect.schedule(schedule)))
    // throws: TypeError: s.trim is not a function

    After (Safe, Catches Type Error at Compile Time)

    import { Console, Schedule } from "effect"
    const schedule = Schedule.once.pipe(
    Schedule.as<number | string>(1),
    // ✅ Type Error: Type 'number' is not assignable to type 'string'
    Schedule.tapOutput((s: string) => Console.log(s.trim()))
    )

  • #4447 f70a65a Thanks @​gcanti! - Preserve function length property in Effect.fn / Effect.fnUntraced, closes #4435

    Previously, functions created with Effect.fn and Effect.fnUntraced always had a .length of 0, regardless of their actual number of parameters. This has been fixed so that the length property correctly reflects the expected number of arguments.

    Before

    import { Effect } from "effect"
    const fn1 = Effect.fn("fn1")(function* (n: number) {
    return n
    })
    console.log(fn1.length)

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the effect group with 1 update in the / directory: [effect](https://github.com/Effect-TS/effect/tree/HEAD/packages/effect).


Updates `effect` from 3.11.8 to 3.12.12
- [Release notes](https://github.com/Effect-TS/effect/releases)
- [Changelog](https://github.com/Effect-TS/effect/blob/main/packages/effect/CHANGELOG.md)
- [Commits](https://github.com/Effect-TS/effect/commits/effect@3.12.12/packages/effect)

---
updated-dependencies:
- dependency-name: effect
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: effect
...

Signed-off-by: dependabot[bot] <support@github.com>
Copy link
Contributor Author

dependabot bot commented on behalf of github Feb 14, 2025

The following labels could not be found: automerge.

Copy link
Contributor Author

dependabot bot commented on behalf of github Feb 17, 2025

Superseded by #40.

@dependabot dependabot bot closed this Feb 17, 2025
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/effect-530667749e branch February 17, 2025 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants