Skip to content

v0.58.2

Choose a tag to compare

@github-actions github-actions released this 02 Dec 10:26
· 225 commits to main since this release
9f4117e

Patch Changes

  • #510 9064174 Thanks @mattiamanzati! - Extend anyUnknownInErrorContext diagnostic to also check Layer types

    The anyUnknownInErrorContext diagnostic now checks both Effect and Layer types for any or unknown in their error and requirements channels. This helps catch more cases where type information is being lost in your Effect applications.

    Example:

    const effectUnknown = Effect.context<unknown>();
    const layerUnknown = Layer.effectDiscard(effectUnknown);
    // Now reports: This has unknown in the requirements channel which is not recommended.

    The diagnostic also now skips explicit Layer type annotations to avoid false positives on intentional type declarations.