Open renovate[bot] opened 7 months ago
This PR contains the following updates:
2.2.4
2.4.19
📅 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 is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.
This PR contains the following updates:
2.2.4
->2.4.19
Release Notes
Effect-TS/effect (effect)
### [`v2.4.19`](https://togithub.com/Effect-TS/effect/blob/HEAD/packages/effect/CHANGELOG.md#2419) [Compare Source](https://togithub.com/Effect-TS/effect/compare/effect@2.4.18...effect@2.4.19) ##### Patch Changes - [#2503](https://togithub.com/Effect-TS/effect/pull/2503) [`41c8102`](https://togithub.com/Effect-TS/effect/commit/41c810228b1a50e4b41f19e735d7c62fe8d36871) Thanks [@gcanti](https://togithub.com/gcanti)! - Centralize error messages for bugs - [#2493](https://togithub.com/Effect-TS/effect/pull/2493) [`776ef2b`](https://togithub.com/Effect-TS/effect/commit/776ef2bb66db9aa9f68b7beab14f6986f9c1288b) Thanks [@gcanti](https://togithub.com/gcanti)! - add a `RegExp` module to `packages/effect`, closes [#2488](https://togithub.com/Effect-TS/effect/issues/2488) - [#2499](https://togithub.com/Effect-TS/effect/pull/2499) [`217147e`](https://togithub.com/Effect-TS/effect/commit/217147ea67c5c42c96f024775c41e5b070f81e4c) Thanks [@tim-smart](https://togithub.com/tim-smart)! - ensure FIFO ordering when a Deferred is resolved - [#2502](https://togithub.com/Effect-TS/effect/pull/2502) [`90776ec`](https://togithub.com/Effect-TS/effect/commit/90776ec8e8671d835b65fc33ead1de6c864b81b9) Thanks [@tim-smart](https://togithub.com/tim-smart)! - make tracing spans cheaper to construct - [#2472](https://togithub.com/Effect-TS/effect/pull/2472) [`8709856`](https://togithub.com/Effect-TS/effect/commit/870985694ae985c3cb9360ad8a25c60e6f785f55) Thanks [@tim-smart](https://togithub.com/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](https://togithub.com/Effect-TS/effect/pull/2500) [`232c353`](https://togithub.com/Effect-TS/effect/commit/232c353c2e6f743f38e57639ee30e324ffa9c2a9) Thanks [@tim-smart](https://togithub.com/tim-smart)! - simplify scope internals - [#2507](https://togithub.com/Effect-TS/effect/pull/2507) [`0ca835c`](https://togithub.com/Effect-TS/effect/commit/0ca835cbac8e69072a93ace83b534219faba24e8) Thanks [@gcanti](https://togithub.com/gcanti)! - ensure correct value is passed to mapping function in `mapAccum` loop, closes [#2506](https://togithub.com/Effect-TS/effect/issues/2506) - [#2472](https://togithub.com/Effect-TS/effect/pull/2472) [`8709856`](https://togithub.com/Effect-TS/effect/commit/870985694ae985c3cb9360ad8a25c60e6f785f55) Thanks [@tim-smart](https://togithub.com/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`: ```ts 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](https://togithub.com/Effect-TS/effect/pull/2498) [`e983740`](https://togithub.com/Effect-TS/effect/commit/e9837401145605aff5bc2ec7e73004f397c5d2d1) Thanks [@jessekelly881](https://togithub.com/jessekelly881)! - added {Readable, Subscribable}.unwrap - [#2494](https://togithub.com/Effect-TS/effect/pull/2494) [`e3e0924`](https://togithub.com/Effect-TS/effect/commit/e3e09247d46a35430fc60e4aa4032cc50814f212) Thanks [@thewilkybarkid](https://togithub.com/thewilkybarkid)! - Add `Duration.divide` and `Duration.unsafeDivide`. ```ts 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`](https://togithub.com/Effect-TS/effect/blob/HEAD/packages/effect/CHANGELOG.md#2418) [Compare Source](https://togithub.com/Effect-TS/effect/compare/effect@2.4.17...effect@2.4.18) ##### Patch Changes - [#2473](https://togithub.com/Effect-TS/effect/pull/2473) [`dadc690`](https://togithub.com/Effect-TS/effect/commit/dadc6906121c512bc32be22b52adbd1ada834594) Thanks [@tim-smart](https://togithub.com/tim-smart)! - add Logger.withConsoleLog/withConsoleError apis These apis send a Logger's output to console.log/console.error respectively. ```ts import { Logger } from "effect"; // send output to stderr const stderrLogger = Logger.withConsoleError(Logger.stringLogger); ``` ### [`v2.4.17`](https://togithub.com/Effect-TS/effect/blob/HEAD/packages/effect/CHANGELOG.md#2417) [Compare Source](https://togithub.com/Effect-TS/effect/compare/effect@2.4.16...effect@2.4.17) ##### Patch Changes - [#2461](https://togithub.com/Effect-TS/effect/pull/2461) [`8fdfda6`](https://togithub.com/Effect-TS/effect/commit/8fdfda6618be848c01b399d13bc05a9a3adfb613) Thanks [@tim-smart](https://togithub.com/tim-smart)! - add Inspectable.toStringUnknown/stringifyCircular - [#2462](https://togithub.com/Effect-TS/effect/pull/2462) [`607b2e7`](https://togithub.com/Effect-TS/effect/commit/607b2e7a7fd9318c57acf4e50ec61747eea74ad7) Thanks [@tim-smart](https://togithub.com/tim-smart)! - remove handled errors from Effect.retryOrElse - [#2461](https://togithub.com/Effect-TS/effect/pull/2461) [`8fdfda6`](https://togithub.com/Effect-TS/effect/commit/8fdfda6618be848c01b399d13bc05a9a3adfb613) Thanks [@tim-smart](https://togithub.com/tim-smart)! - improve formatting of Runtime failures - [#2415](https://togithub.com/Effect-TS/effect/pull/2415) [`8206caf`](https://togithub.com/Effect-TS/effect/commit/8206caf7c2d22c68be4313318b61cfdacf6222b6) Thanks [@tim-smart](https://togithub.com/tim-smart)! - add Iterable module This module shares many apis compared to "effect/ReadonlyArray", but is fully lazy. ```ts 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](https://togithub.com/Effect-TS/effect/pull/2438) [`7ddd654`](https://togithub.com/Effect-TS/effect/commit/7ddd65415b65ccb654ad04f4dbefe39402f15117) Thanks [@mikearnaldi](https://togithub.com/mikearnaldi)! - Support Heterogeneous Effects in Effect Iterable apis Including: - `Effect.allSuccesses` - `Effect.firstSuccessOf` - `Effect.mergeAll` - `Effect.reduceEffect` - `Effect.raceAll` - `Effect.forkAll` For example: ```ts import { Effect } from "effect"; class Foo extends Effect.Tag("Foo")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 is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.