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.13.6 in the effect group across 1 directory #50

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 4, 2025

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

Updates effect from 3.11.8 to 3.13.6

Release notes

Sourced from effect's releases.

effect@3.13.6

Patch Changes

  • #4551 3154ce4 Thanks @​gcanti! - Arbitrary: make called on Schema.Class now respects property annotations, closes #4550.

    Previously, when calling Arbitrary.make on a Schema.Class, property-specific annotations (such as arbitrary) were ignored, leading to unexpected values in generated instances.

    Before

    Even though a had an arbitrary annotation, the generated values were random:

    import { Arbitrary, FastCheck, Schema } from "effect"
    class Class extends Schema.Class<Class>("Class")({
    a: Schema.NumberFromString.annotations({
    arbitrary: () => (fc) => fc.constant(1)
    })
    }) {}
    console.log(FastCheck.sample(Arbitrary.make(Class), 5))
    /*
    Example Output:
    [
    Class { a: 2.6624670822171524e-44 },
    Class { a: 3.4028177873105996e+38 },
    Class { a: 3.402820626847944e+38 },
    Class { a: 3.783505853677006e-44 },
    Class { a: 3243685 }
    ]
    */

    After

    Now, the values respect the arbitrary annotation and return the expected constant:

    import { Arbitrary, FastCheck, Schema } from "effect"
    class Class extends Schema.Class<Class>("Class")({
    a: Schema.NumberFromString.annotations({
    arbitrary: () => (fc) => fc.constant(1)
    })
    }) {}
    console.log(FastCheck.sample(Arbitrary.make(Class), 5))
    /*
    [
    Class { a: 1 },

... (truncated)

Changelog

Sourced from effect's changelog.

3.13.6

Patch Changes

  • #4551 3154ce4 Thanks @​gcanti! - Arbitrary: make called on Schema.Class now respects property annotations, closes #4550.

    Previously, when calling Arbitrary.make on a Schema.Class, property-specific annotations (such as arbitrary) were ignored, leading to unexpected values in generated instances.

    Before

    Even though a had an arbitrary annotation, the generated values were random:

    import { Arbitrary, FastCheck, Schema } from "effect"
    class Class extends Schema.Class<Class>("Class")({
    a: Schema.NumberFromString.annotations({
    arbitrary: () => (fc) => fc.constant(1)
    })
    }) {}
    console.log(FastCheck.sample(Arbitrary.make(Class), 5))
    /*
    Example Output:
    [
    Class { a: 2.6624670822171524e-44 },
    Class { a: 3.4028177873105996e+38 },
    Class { a: 3.402820626847944e+38 },
    Class { a: 3.783505853677006e-44 },
    Class { a: 3243685 }
    ]
    */

    After

    Now, the values respect the arbitrary annotation and return the expected constant:

    import { Arbitrary, FastCheck, Schema } from "effect"
    class Class extends Schema.Class<Class>("Class")({
    a: Schema.NumberFromString.annotations({
    arbitrary: () => (fc) => fc.constant(1)
    })
    }) {}
    console.log(FastCheck.sample(Arbitrary.make(Class), 5))
    /*
    [

... (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.13.6
- [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.13.6/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 Mar 4, 2025

The following labels could not be found: automerge.

Copy link
Contributor Author

dependabot bot commented on behalf of github Mar 10, 2025

Superseded by #51.

@dependabot dependabot bot closed this Mar 10, 2025
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/effect-da70b27a4a branch March 10, 2025 00:48
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