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.13.1 to 3.13.6 #124

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

dependabot[bot]
Copy link
Contributor

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

Bumps effect from 3.13.1 to 3.13.6.

Release notes

Sourced from effect's releases.

[email protected]

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 this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [effect](https://github.com/Effect-TS/effect/tree/HEAD/packages/effect) from 3.13.1 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/[email protected]/packages/effect)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Mar 3, 2025
@xzhayon xzhayon merged commit d82dd32 into main Mar 4, 2025
7 checks passed
@xzhayon xzhayon deleted the dependabot/npm_and_yarn/effect-3.13.6 branch March 4, 2025 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant