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

Bump the effect group across 1 directory with 3 updates #233

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 21, 2024

Bumps the effect group with 3 updates in the / directory: @effect/platform, @effect/schema and effect.

Updates @effect/platform from 0.49.3 to 0.58.1

Release notes

Sourced from @​effect/platform's releases.

@​effect/platform@​0.58.1

Patch Changes

@​effect/platform-node@​0.52.0

Minor Changes

  • #2938 63dd0c3 Thanks @​tim-smart! - restructure platform http to use flattened modules

    Instead of using the previous re-exports, you now use the modules directly.

    Before:

    import { HttpClient } from "@effect/platform";
    HttpClient.request.get("/").pipe(HttpClient.client.fetchOk);

    After:

    import { HttpClient, HttpClientRequest } from "@effect/platform";
    HttpClientRequest.get("/").pipe(HttpClient.fetchOk);

Patch Changes

@​effect/platform@​0.58.0

Minor Changes

  • #2938 63dd0c3 Thanks @​tim-smart! - restructure platform http to use flattened modules

    Instead of using the previous re-exports, you now use the modules directly.

    Before:

    import { HttpClient } from "@effect/platform";
    HttpClient.request.get("/").pipe(HttpClient.client.fetchOk);

... (truncated)

Changelog

Sourced from @​effect/platform's changelog.

0.58.1

Patch Changes

0.58.0

Minor Changes

  • #2938 63dd0c3 Thanks @​tim-smart! - restructure platform http to use flattened modules

    Instead of using the previous re-exports, you now use the modules directly.

    Before:

    import { HttpClient } from "@effect/platform";
    HttpClient.request.get("/").pipe(HttpClient.client.fetchOk);

    After:

    import { HttpClient, HttpClientRequest } from "@effect/platform";
    HttpClientRequest.get("/").pipe(HttpClient.fetchOk);

Patch Changes

0.57.8

Patch Changes

0.57.7

Patch Changes

  • Updated dependencies [d473800]:
    • @​effect/schema@​0.68.3

0.57.6

... (truncated)

Commits

Updates @effect/schema from 0.66.1 to 0.68.4

Release notes

Sourced from @​effect/schema's releases.

@​effect/schema@​0.68.4

Patch Changes

@​effect/schema@​0.68.3

Patch Changes

  • #3028 d473800 Thanks @​gcanti! - Introducing Customizable Parsing Behavior at the Schema Level, closes #3027

    With this latest update, developers can now set specific parse options for each schema using the parseOptions annotation. This flexibility allows for precise parsing behaviors across different levels of your schema hierarchy, giving you the ability to override settings in parent schemas and propagate settings to nested schemas as needed.

    Here's how you can leverage this new feature:

    import { Schema } from "@effect/schema";
    import { Either } from "effect";
    const schema = Schema.Struct({
    a: Schema.Struct({
    b: Schema.String,
    c: Schema.String,
    }).annotations({
    title: "first error only",
    parseOptions: { errors: "first" }, // Only the first error in this sub-schema is reported
    }),
    d: Schema.String,
    }).annotations({
    title: "all errors",
    parseOptions: { errors: "all" }, // All errors in the main schema are reported
    });
    const result = Schema.decodeUnknownEither(schema)(
    { a: {} },
    { errors: "first" },
    );
    if (Either.isLeft(result)) {
    console.log(result.left.message);
    }
    /*
    all errors
    ├─ ["d"]
    │  └─ is missing
    └─ ["a"]
    └─ first error only
    └─ ["b"]
    └─ is missing
    */

... (truncated)

Changelog

Sourced from @​effect/schema's changelog.

0.68.4

Patch Changes

0.68.3

Patch Changes

  • #3028 d473800 Thanks @​gcanti! - Introducing Customizable Parsing Behavior at the Schema Level, closes #3027

    With this latest update, developers can now set specific parse options for each schema using the parseOptions annotation. This flexibility allows for precise parsing behaviors across different levels of your schema hierarchy, giving you the ability to override settings in parent schemas and propagate settings to nested schemas as needed.

    Here's how you can leverage this new feature:

    import { Schema } from "@effect/schema";
    import { Either } from "effect";
    const schema = Schema.Struct({
    a: Schema.Struct({
    b: Schema.String,
    c: Schema.String,
    }).annotations({
    title: "first error only",
    parseOptions: { errors: "first" }, // Only the first error in this sub-schema is reported
    }),
    d: Schema.String,
    }).annotations({
    title: "all errors",
    parseOptions: { errors: "all" }, // All errors in the main schema are reported
    });
    const result = Schema.decodeUnknownEither(schema)(
    { a: {} },
    { errors: "first" },
    );
    if (Either.isLeft(result)) {
    console.log(result.left.message);
    }
    /*
    all errors
    ├─ ["d"]
      └─ is missing
    └─ ["a"]
    └─ first error only
    └─ ["b"]
    └─ is missing

... (truncated)

Commits

Updates effect from 3.0.1 to 3.4.0

Release notes

Sourced from effect's releases.

effect@3.4.0

Minor Changes

  • #2938 c0ce180 Thanks @​LaureRC! - Make Option.liftPredicate dual

  • #2938 61707b6 Thanks @​LaureRC! - Add Effect.liftPredicate

    Effect.liftPredicate transforms a Predicate function into an Effect returning the input value if the predicate returns true or failing with specified error if the predicate fails.

    import { Effect } from "effect";
    const isPositive = (n: number): boolean => n > 0;
    // succeeds with 1
    Effect.liftPredicate(1, isPositive, (n) => ${n} is not positive);
    // fails with "0 is not positive"
    Effect.liftPredicate(0, isPositive, (n) => ${n} is not positive);

  • #2938 9c1b5b3 Thanks @​tim-smart! - add EventListener type to Stream to avoid use of dom lib

  • #2938 a35faf8 Thanks @​gcanti! - Add lastNonEmpty function to Chunk module, closes #2946

  • #2938 ff73c0c Thanks @​dilame! - feat(Stream): implement Success, Error, Context type accessors

  • #2938 984d516 Thanks @​tim-smart! - add Micro module

    A lightweight alternative to Effect, for when bundle size really matters.

    At a minimum, Micro adds 5kb gzipped to your bundle, and scales with the amount of features you use.

  • #2938 8c3b8a2 Thanks @​gcanti! - add ManagedRuntime type utils (Context, and Error)

  • #2938 017e2f9 Thanks @​LaureRC! - Add Either.liftPredicate

  • #2938 91bf8a2 Thanks @​msensys! - Add Tuple.at api, to retrieve an element at a specified index from a tuple.

    import { Tuple } from "effect";
    assert.deepStrictEqual(Tuple.at([1, "hello", true], 1), "hello");

  • #2938 c6a4a26 Thanks @​datner! - add ensure util for Array, used to normalize A | ReadonlyArray<A>

    import { ensure } from "effect/Array";

... (truncated)

Changelog

Sourced from effect's changelog.

3.4.0

Minor Changes

  • #2938 c0ce180 Thanks @​LaureRC! - Make Option.liftPredicate dual

  • #2938 61707b6 Thanks @​LaureRC! - Add Effect.liftPredicate

    Effect.liftPredicate transforms a Predicate function into an Effect returning the input value if the predicate returns true or failing with specified error if the predicate fails.

    import { Effect } from "effect";
    const isPositive = (n: number): boolean => n > 0;
    // succeeds with 1
    Effect.liftPredicate(1, isPositive, (n) => ${n} is not positive);
    // fails with &quot;0 is not positive&quot;
    Effect.liftPredicate(0, isPositive, (n) => ${n} is not positive);

  • #2938 9c1b5b3 Thanks @​tim-smart! - add EventListener type to Stream to avoid use of dom lib

  • #2938 a35faf8 Thanks @​gcanti! - Add lastNonEmpty function to Chunk module, closes #2946

  • #2938 ff73c0c Thanks @​dilame! - feat(Stream): implement Success, Error, Context type accessors

  • #2938 984d516 Thanks @​tim-smart! - add Micro module

    A lightweight alternative to Effect, for when bundle size really matters.

    At a minimum, Micro adds 5kb gzipped to your bundle, and scales with the amount of features you use.

  • #2938 8c3b8a2 Thanks @​gcanti! - add ManagedRuntime type utils (Context, and Error)

  • #2938 017e2f9 Thanks @​LaureRC! - Add Either.liftPredicate

  • #2938 91bf8a2 Thanks @​msensys! - Add Tuple.at api, to retrieve an element at a specified index from a tuple.

    import { Tuple } from "effect";
    assert.deepStrictEqual(Tuple.at([1, "hello", true], 1), "hello");

  • #2938 c6a4a26 Thanks @​datner! - add ensure util for Array, used to normalize A | ReadonlyArray<A>

... (truncated)

Commits

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 3 updates in the / directory: [@effect/platform](https://github.com/Effect-TS/effect/tree/HEAD/packages/platform), [@effect/schema](https://github.com/Effect-TS/effect/tree/HEAD/packages/schema) and [effect](https://github.com/Effect-TS/effect/tree/HEAD/packages/effect).


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

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

Updates `effect` from 3.0.1 to 3.4.0
- [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.4.0/packages/effect)

---
updated-dependencies:
- dependency-name: "@effect/platform"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: effect
- dependency-name: "@effect/schema"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: effect
- dependency-name: effect
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: effect
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jun 21, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Jun 24, 2024

Superseded by #237.

@dependabot dependabot bot closed this Jun 24, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/effect-3f384193d9 branch June 24, 2024 15:06
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
Projects
None yet
0 participants