Skip to content

Releases

@effect/[email protected]

Choose a tag to compare

@github-actions github-actions released this 16 Oct 17:18
cb91d70

Patch Changes

  • #781 dae2015 Thanks @mattiamanzati! - Update Effect v4 support to 4.0.5 and fix runEffectInsideEffect.

    Effect.runPromiseExit and Effect.runSyncExit called inside an Effect are now reported, like Effect.runPromise and Effect.runSync:

    export const program = Effect.gen(function* () {
      yield* Effect.void;
      setTimeout(() => {
        Effect.runPromiseExit(child);
        // ^- now suggests Effect.runPromiseExitWith (v4) or Runtime.runPromiseExit (v3)
      }, 0);
    });

    The v4 quick fix now inserts yield* Effect.context<never>() instead of the removed Effect.services, and reuses an existing yield* Effect.context() binding:

    export const program = Effect.gen(function* () {
      const context = yield* Effect.context<never>();
      const run = () => Effect.runSyncWith(context)(Effect.succeed(1));
      return [context, run()] as const;
    });

@effect/[email protected]

Choose a tag to compare

@github-actions github-actions released this 06 Oct 14:25
0681c52

Patch Changes

  • #777 4478eec Thanks @CasperEngl! - missedPipeableOpportunity now reports calls whose result is used as a method receiver, and the calls nested inside them. These were skipped before:

    // now reported: `Inner.pipe(...)`
    export const B = Schema.NullishOr(Inner).annotations({ identifier: "B" });
    
    // now reported, including the nested `Schema.Array(Inner)`
    export const C = Schema.NullishOr(
      Schema.Struct({ x: Schema.Array(Inner) })
    ).annotations({ identifier: "C" });

    Other diagnostics built on the same piping analysis, such as flatMapToMap and strictEffectProvide, now also check calls in these positions.

@effect/[email protected]

Choose a tag to compare

@github-actions github-actions released this 28 Sep 10:54
690fa51

Patch Changes

  • #770 5e4d380 Thanks @mattiamanzati! - Update Effect v4 compatibility to 4.0.0-beta.107.

  • #774 8e9cb21 Thanks @mattiamanzati! - Update Effect v4 compatibility to 4.0.0-rc.115 and allow Effect.provide at recognized application entry points.

  • #775 de7f7be Thanks @mattiamanzati! - Update Effect v4 compatibility to 4.0.0-rc.118. Migrate CLI, HTTP, schema model, and encoding imports to the new package paths, including the v4 examples and diagnostics.

@effect/[email protected]

Choose a tag to compare

@github-actions github-actions released this 07 Aug 08:27
ab560cb

Patch Changes

  • #768 15fb3c3 Thanks @mattiamanzati! - Update Effect v4 compatibility to 4.0.0-beta.104, including the renamed Schema.Error and Schema.TaggedError constructors.

@effect/[email protected]

Choose a tag to compare

@github-actions github-actions released this 23 Jul 14:47
f26d583

Patch Changes

  • #765 6b9dab5 Thanks @mattiamanzati! - Ignore Effect v4 local Effect.provide(..., { local: true }) calls when reporting chained provides with the multipleEffectProvide diagnostic.

@effect/[email protected]

Choose a tag to compare

@github-actions github-actions released this 13 Jul 09:22
f0c65e4

Minor Changes

  • #760 f1fca78 Thanks @mattiamanzati! - Add the flatMapToMap style diagnostic, which suggests replacing Effect.flatMap((value) => Effect.succeed(f(value))) with Effect.map((value) => f(value)).

Patch Changes

  • #762 5e71871 Thanks @mattiamanzati! - Enable skipLibCheck in the diagnostics test harness to reduce test runtime and memory usage.

  • #763 0dc8034 Thanks @mattiamanzati! - Update the setup command to configure VS Code with the unified js/ts TypeScript settings.

  • #742 939a049 Thanks @RezaOwliaei! - Update README to replace deprecated VSCode TypeScript settings (typescript.tsdk and typescript.enablePromptUseWorkspaceTsdk) with the current recommended configuration.

@effect/[email protected]

Choose a tag to compare

@github-actions github-actions released this 10 Jul 08:45
8857f0c

Patch Changes

  • #758 6ef9a46 Thanks @mattiamanzati! - Skip Effect diagnostics for external library files in patched tsc runs when TypeScript skipLibCheck is enabled.

@effect/[email protected]

Choose a tag to compare

@github-actions github-actions released this 09 Jul 15:06
b48244c

Patch Changes

  • #751 8d0b85a Thanks @mattiamanzati! - Reject unsupported TypeScript versions when loading or patching TypeScript, directing TypeScript 7 users to @effect/tsgo.

  • #754 1dce66b Thanks @mattiamanzati! - Update the Effect v4 harness and language-service development dependencies to Effect 4.0.0-beta.94, including compatibility updates for the latest Effect API and Schema type output.

@effect/[email protected]

Choose a tag to compare

@github-actions github-actions released this 03 Jul 09:57
3be0ce8

Patch Changes

  • #746 5da9914 Thanks @mattiamanzati! - Avoid suggesting removal of Effect.gen when a single return statement contains multiple yield* expressions, which would produce invalid code.

@effect/[email protected]

Choose a tag to compare

@github-actions github-actions released this 02 Jul 14:53
adaa834

Patch Changes

  • #744 1707983 Thanks @mattiamanzati! - Fix lazyPromiseInEffectSync false positives for Effect.sync thunks whose return type degrades to any. Promise detection now ignores any and unknown before falling back to assignability against the global Promise type.

  • #740 df50dfc Thanks @jbmusso! - Fix effectRpcDefinition wiping the upstream go-to-definition result when the user clicks on a JSX <Namespace.Component /> tag name. The plugin's RpcClient → Rpc enrichment now skips ancestor nodes whose type cannot be resolved (such as JSX tag-name nodes) instead of returning undefined for the entire request.