Skip to content

v0.57.1

Choose a tag to compare

@github-actions github-actions released this 27 Nov 23:14
· 232 commits to main since this release
b16dd42

Patch Changes

  • #503 857e43e Thanks @mattiamanzati! - Add codefix to runEffectInsideEffect diagnostic that automatically transforms Effect.run* calls to use Runtime.run* when inside nested Effect contexts. The codefix will extract or reuse an existing Effect runtime and replace the direct Effect run call with the appropriate Runtime method.

    Example:

    // Before
    Effect.gen(function* () {
      websocket.onmessage = (event) => {
        Effect.runPromise(check);
      };
    });
    
    // After applying codefix
    Effect.gen(function* () {
      const effectRuntime = yield* Effect.runtime<never>();
    
      websocket.onmessage = (event) => {
        Runtime.runPromise(effectRuntime, check);
      };
    });