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 with 3 updates #139

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 8, 2024

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

Updates @effect/platform from 0.48.21 to 0.48.27

Release notes

Sourced from @​effect/platform's releases.

@​effect/platform@​0.48.27

Patch Changes

@​effect/platform@​0.48.26

Patch Changes

  • #2477 365a486 Thanks @​tim-smart! - add PlatformConfigProvider module

    It contains a file tree provider, that can be used to read config values from a file tree.

    For example, if you have a file tree like this:

    config/
      secret
      nested/
        value
    

    You could do the following:

    import { PlatformConfigProvider } from "@effect/platform";
    import { NodeContext } from "@effect/platform-node";
    import { Config, Effect, Layer } from "effect";
    const ConfigProviderLive = PlatformConfigProvider.layerFileTree({
    rootDirectory: /config,
    }).pipe(Layer.provide(NodeContext.layer));
    Effect.gen(function* (_) {
    const secret = yield* _(Config.secret("secret"));
    const value = yield* _(Config.string("value"), Config.nested("nested"));
    }).pipe(Effect.provide(ConfigProviderLive));

@​effect/platform@​0.48.25

Patch Changes

... (truncated)

Changelog

Sourced from @​effect/platform's changelog.

0.48.27

Patch Changes

0.48.26

Patch Changes

  • #2477 365a486 Thanks @​tim-smart! - add PlatformConfigProvider module

    It contains a file tree provider, that can be used to read config values from a file tree.

    For example, if you have a file tree like this:

    config/
      secret
      nested/
        value
    

    You could do the following:

    import { PlatformConfigProvider } from "@effect/platform";
    import { NodeContext } from "@effect/platform-node";
    import { Config, Effect, Layer } from "effect";
    const ConfigProviderLive = PlatformConfigProvider.layerFileTree({
    rootDirectory: /config,
    }).pipe(Layer.provide(NodeContext.layer));
    Effect.gen(function* (_) {
    const secret = yield* _(Config.secret("secret"));
    const value = yield* _(Config.string("value"), Config.nested("nested"));
    }).pipe(Effect.provide(ConfigProviderLive));

0.48.25

Patch Changes

... (truncated)

Commits

Updates @effect/schema from 0.64.15 to 0.64.20

Release notes

Sourced from @​effect/schema's releases.

@​effect/schema@​0.64.20

Patch Changes

  • #2483 42b3651 Thanks @​gcanti! - Add ParseIssueTitle annotation, closes #2482

    When a decoding or encoding operation fails, it's useful to have additional details in the default error message returned by TreeFormatter to understand exactly which value caused the operation to fail. To achieve this, you can set an annotation that depends on the value undergoing the operation and can return an excerpt of it, making it easier to identify the problematic value. A common scenario is when the entity being validated has an id field. The ParseIssueTitle annotation facilitates this kind of analysis during error handling.

    The type of the annotation is:

    export type ParseIssueTitleAnnotation = (
      issue: ParseIssue,
    ) => string | undefined;

    If you set this annotation on a schema and the provided function returns a string, then that string is used as the title by TreeFormatter, unless a message annotation (which has the highest priority) has also been set. If the function returns undefined, then the default title used by TreeFormatter is determined with the following priorities:

    • identifier
    • title
    • description
    • ast.toString()

    Example

    import type { ParseIssue } from "@effect/schema/ParseResult";
    import * as S from "@effect/schema/Schema";
    const getOrderItemId = ({ actual }: ParseIssue) => {
    if (S.is(S.struct({ id: S.string }))(actual)) {
    return OrderItem with id: ${actual.id};
    }
    };
    const OrderItem = S.struct({
    id: S.string,
    name: S.string,
    price: S.number,
    }).annotations({
    identifier: "OrderItem",
    parseIssueTitle: getOrderItemId,
    });
    const getOrderId = ({ actual }: ParseIssue) => {
    if (S.is(S.struct({ id: S.number }))(actual)) {
    return Order with id: ${actual.id};
    }
    };
    const Order = S.struct({

... (truncated)

Changelog

Sourced from @​effect/schema's changelog.

0.64.20

Patch Changes

  • #2483 42b3651 Thanks @​gcanti! - Add ParseIssueTitle annotation, closes #2482

    When a decoding or encoding operation fails, it's useful to have additional details in the default error message returned by TreeFormatter to understand exactly which value caused the operation to fail. To achieve this, you can set an annotation that depends on the value undergoing the operation and can return an excerpt of it, making it easier to identify the problematic value. A common scenario is when the entity being validated has an id field. The ParseIssueTitle annotation facilitates this kind of analysis during error handling.

    The type of the annotation is:

    export type ParseIssueTitleAnnotation = (
      issue: ParseIssue,
    ) => string | undefined;

    If you set this annotation on a schema and the provided function returns a string, then that string is used as the title by TreeFormatter, unless a message annotation (which has the highest priority) has also been set. If the function returns undefined, then the default title used by TreeFormatter is determined with the following priorities:

    • identifier
    • title
    • description
    • ast.toString()

    Example

    import type { ParseIssue } from "@effect/schema/ParseResult";
    import * as S from "@effect/schema/Schema";
    const getOrderItemId = ({ actual }: ParseIssue) => {
    if (S.is(S.struct({ id: S.string }))(actual)) {
    return OrderItem with id: ${actual.id};
    }
    };
    const OrderItem = S.struct({
    id: S.string,
    name: S.string,
    price: S.number,
    }).annotations({
    identifier: "OrderItem",
    parseIssueTitle: getOrderItemId,
    });
    const getOrderId = ({ actual }: ParseIssue) => {
    if (S.is(S.struct({ id: S.number }))(actual)) {
    return Order with id: ${actual.id};
    }
    };

... (truncated)

Commits

Updates effect from 2.4.15 to 2.4.18

Release notes

Sourced from effect's releases.

[email protected]

Patch Changes

  • #2473 dadc690 Thanks @​tim-smart! - add Logger.withConsoleLog/withConsoleError apis

    These apis send a Logger's output to console.log/console.error respectively.

    import { Logger } from "effect";
    // send output to stderr
    const stderrLogger = Logger.withConsoleError(Logger.stringLogger);

[email protected]

Patch Changes

  • #2461 8fdfda6 Thanks @​tim-smart! - add Inspectable.toStringUnknown/stringifyCircular

  • #2462 607b2e7 Thanks @​tim-smart! - remove handled errors from Effect.retryOrElse

  • #2461 8fdfda6 Thanks @​tim-smart! - improve formatting of Runtime failures

  • #2415 8206caf Thanks @​tim-smart! - add Iterable module

    This module shares many apis compared to "effect/ReadonlyArray", but is fully lazy.

    import { Iterable, pipe } from "effect";
    // Only 5 items will be generated & transformed
    pipe(
    Iterable.range(1, 100),
    Iterable.map((i) => item ${i}),
    Iterable.take(5),
    );

  • #2438 7ddd654 Thanks @​mikearnaldi! - Support Heterogeneous Effects in Effect Iterable apis

    Including:

    • Effect.allSuccesses
    • Effect.firstSuccessOf
    • Effect.mergeAll
    • Effect.reduceEffect
    • Effect.raceAll
    • Effect.forkAll

    For example:

... (truncated)

Changelog

Sourced from effect's changelog.

2.4.18

Patch Changes

  • #2473 dadc690 Thanks @​tim-smart! - add Logger.withConsoleLog/withConsoleError apis

    These apis send a Logger's output to console.log/console.error respectively.

    import { Logger } from "effect";
    // send output to stderr
    const stderrLogger = Logger.withConsoleError(Logger.stringLogger);

2.4.17

Patch Changes

  • #2461 8fdfda6 Thanks @​tim-smart! - add Inspectable.toStringUnknown/stringifyCircular

  • #2462 607b2e7 Thanks @​tim-smart! - remove handled errors from Effect.retryOrElse

  • #2461 8fdfda6 Thanks @​tim-smart! - improve formatting of Runtime failures

  • #2415 8206caf Thanks @​tim-smart! - add Iterable module

    This module shares many apis compared to "effect/ReadonlyArray", but is fully lazy.

    import { Iterable, pipe } from "effect";
    // Only 5 items will be generated & transformed
    pipe(
    Iterable.range(1, 100),
    Iterable.map((i) => item ${i}),
    Iterable.take(5),
    );

  • #2438 7ddd654 Thanks @​mikearnaldi! - Support Heterogeneous Effects in Effect Iterable apis

    Including:

    • Effect.allSuccesses
    • Effect.firstSuccessOf
    • Effect.mergeAll
    • Effect.reduceEffect
    • Effect.raceAll
    • Effect.forkAll

... (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

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Apr 8, 2024
Bumps the effect group with 3 updates: [@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.48.21 to 0.48.27
- [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/[email protected]/packages/platform)

Updates `@effect/schema` from 0.64.15 to 0.64.20
- [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/[email protected]/packages/schema)

Updates `effect` from 2.4.15 to 2.4.18
- [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/platform"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: effect
- dependency-name: "@effect/schema"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: effect
- dependency-name: effect
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: effect
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/effect-453c9b9038 branch from c92307b to 365fae5 Compare April 12, 2024 14:09
Copy link
Contributor Author

dependabot bot commented on behalf of github Apr 15, 2024

Superseded by #145.

@dependabot dependabot bot closed this Apr 15, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/effect-453c9b9038 branch April 15, 2024 14:46
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
Development

Successfully merging this pull request may close these issues.

0 participants