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

fix(deps): update dependency effect to v2.4.19 #99

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 24, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
effect (source) 2.4.11 -> 2.4.19 age adoption passing confidence

Release Notes

Effect-TS/effect (effect)

v2.4.19

Compare Source

Patch Changes
  • #​2503 41c8102 Thanks @​gcanti! - Centralize error messages for bugs

  • #​2493 776ef2b Thanks @​gcanti! - add a RegExp module to packages/effect, closes #​2488

  • #​2499 217147e Thanks @​tim-smart! - ensure FIFO ordering when a Deferred is resolved

  • #​2502 90776ec Thanks @​tim-smart! - make tracing spans cheaper to construct

  • #​2472 8709856 Thanks @​tim-smart! - add Subscribable trait / module

    Subscribable represents a resource that has a current value and can be subscribed to for updates.

    The following data types are subscribable:

    • A SubscriptionRef
    • An Actor from the experimental Machine module
  • #​2500 232c353 Thanks @​tim-smart! - simplify scope internals

  • #​2507 0ca835c Thanks @​gcanti! - ensure correct value is passed to mapping function in mapAccum loop, closes #​2506

  • #​2472 8709856 Thanks @​tim-smart! - add Readable module / trait

    Readable is a common interface for objects that can be read from using a get
    Effect.

    For example, Ref's implement Readable:

    import { Effect, Readable, Ref } from "effect";
    import assert from "assert";
    
    Effect.gen(function* (_) {
      const ref = yield* _(Ref.make(123));
      assert(Readable.isReadable(ref));
    
      const result = yield* _(ref.get);
      assert(result === 123);
    });
  • #​2498 e983740 Thanks @​jessekelly881! - added {Readable, Subscribable}.unwrap

  • #​2494 e3e0924 Thanks @​thewilkybarkid! - Add Duration.divide and Duration.unsafeDivide.

    import { Duration, Option } from "effect";
    import assert from "assert";
    
    assert.deepStrictEqual(
      Duration.divide("10 seconds", 2),
      Option.some(Duration.decode("5 seconds")),
    );
    assert.deepStrictEqual(Duration.divide("10 seconds", 0), Option.none());
    assert.deepStrictEqual(Duration.divide("1 nano", 1.5), Option.none());
    
    assert.deepStrictEqual(
      Duration.unsafeDivide("10 seconds", 2),
      Duration.decode("5 seconds"),
    );
    assert.deepStrictEqual(
      Duration.unsafeDivide("10 seconds", 0),
      Duration.infinity,
    );
    assert.throws(() => Duration.unsafeDivide("1 nano", 1.5));

v2.4.18

Compare Source

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);

v2.4.17

Compare Source

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:

    import { Effect } from "effect";
    
    class Foo extends Effect.Tag("Foo")<Foo, 3>() {}
    class Bar extends Effect.Tag("Bar")<Bar, 4>() {}
    
    // const program: Effect.Effect<(1 | 2 | 3 | 4)[], never, Foo | Bar>
    export const program = Effect.allSuccesses([
      Effect.succeed(1 as const),
      Effect.succeed(2 as const),
      Foo,
      Bar,
    ]);

    The above is now possible while before it was expecting all Effects to conform to the same type

  • #​2438 7ddd654 Thanks @​mikearnaldi! - add Effect.filterMap api

    Which allows you to filter and map an Iterable of Effects in one step.

    import { Effect, Option } from "effect";
    
    // resolves with `["even: 2"]
    Effect.filterMap(
      [Effect.succeed(1), Effect.succeed(2), Effect.succeed(3)],
      (i) => (i % 2 === 0 ? Option.some(`even: ${i}`) : Option.none()),
    );
  • #​2461 8fdfda6 Thanks @​tim-smart! - use Inspectable.toStringUnknown for absurd runtime errors

  • #​2460 f456ba2 Thanks @​tim-smart! - use const type parameter for Config.withDefault

    Which ensures that the fallback value type is not widened for literals.

v2.4.16

Compare Source

Patch Changes

v2.4.15

Compare Source

Patch Changes
  • #​2407 d7688c0 Thanks @​thewilkybarkid! - Add Config.duration

    This can be used to parse Duration's from environment variables:

    import { Config, Effect } from "effect"
    
    Config.duration("CACHE_TTL").pipe(
      Effect.andThen((duration) => ...)
    )
  • #​2416 b3a4fac Thanks @​mikearnaldi! - Collect exits on forEach interrupt of residual requests

v2.4.14

Compare Source

Patch Changes

v2.4.13

Compare Source

Patch Changes

v2.4.12

Compare Source

Patch Changes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/effect-2.x branch from a0e45cc to 079804e Compare March 25, 2024 03:14
@renovate renovate bot changed the title fix(deps): update dependency effect to v2.4.12 fix(deps): update dependency effect to v2.4.13 Mar 25, 2024
@renovate renovate bot force-pushed the renovate/effect-2.x branch from 079804e to b2dd424 Compare March 26, 2024 01:26
@renovate renovate bot changed the title fix(deps): update dependency effect to v2.4.13 fix(deps): update dependency effect to v2.4.14 Mar 26, 2024
@renovate renovate bot force-pushed the renovate/effect-2.x branch from b2dd424 to dde49c2 Compare March 27, 2024 14:54
@renovate renovate bot changed the title fix(deps): update dependency effect to v2.4.14 fix(deps): update dependency effect to v2.4.15 Mar 27, 2024
@renovate renovate bot force-pushed the renovate/effect-2.x branch from dde49c2 to a1f7fec Compare April 2, 2024 16:33
@renovate renovate bot changed the title fix(deps): update dependency effect to v2.4.15 fix(deps): update dependency effect to v2.4.16 Apr 2, 2024
@renovate renovate bot force-pushed the renovate/effect-2.x branch from a1f7fec to 1020431 Compare April 3, 2024 02:04
@renovate renovate bot changed the title fix(deps): update dependency effect to v2.4.16 fix(deps): update dependency effect to v2.4.17 Apr 3, 2024
@renovate renovate bot force-pushed the renovate/effect-2.x branch from 1020431 to a88b59a Compare April 5, 2024 01:58
@renovate renovate bot changed the title fix(deps): update dependency effect to v2.4.17 fix(deps): update dependency effect to v2.4.18 Apr 5, 2024
@renovate renovate bot force-pushed the renovate/effect-2.x branch from a88b59a to 3fe83e7 Compare April 15, 2024 15:41
@renovate renovate bot changed the title fix(deps): update dependency effect to v2.4.18 fix(deps): update dependency effect to v2.4.19 Apr 15, 2024
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