Skip to content

Version Packages#2457

Merged
tim-smart merged 1 commit into
mainfrom
changeset-release/main
Apr 3, 2024
Merged

Version Packages#2457
tim-smart merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Apr 2, 2024

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@effect/rpc@0.29.0

Minor Changes

Patch Changes

@effect/rpc-http@0.27.0

Minor Changes

Patch Changes

@effect/cli@0.35.26

Patch Changes

effect@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

    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.

@effect/experimental@0.14.9

Patch Changes

@effect/opentelemetry@0.31.27

Patch Changes

@effect/platform@0.48.24

Patch Changes

@effect/platform-browser@0.31.24

Patch Changes

@effect/platform-bun@0.32.37

Patch Changes

@effect/platform-node@0.45.26

Patch Changes

@effect/platform-node-shared@0.3.24

Patch Changes

@effect/printer@0.32.2

Patch Changes

@effect/printer-ansi@0.32.26

Patch Changes

@effect/schema@0.64.18

Patch Changes

@effect/typeclass@0.23.17

Patch Changes

@effect/vitest@0.2.5

Patch Changes

@github-actions
github-actions Bot force-pushed the changeset-release/main branch 3 times, most recently from 64fcef1 to ac0cd3c Compare April 2, 2024 21:40
@github-actions
github-actions Bot force-pushed the changeset-release/main branch 5 times, most recently from 83ee342 to af32d6c Compare April 3, 2024 01:15
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from af32d6c to 8089439 Compare April 3, 2024 01:16
@tim-smart
tim-smart merged commit 7e3e438 into main Apr 3, 2024
@tim-smart
tim-smart deleted the changeset-release/main branch April 3, 2024 01:30
pull Bot pushed a commit to jessekelly881/effect that referenced this pull request Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant