Skip to content

v0.45.0

Choose a tag to compare

@github-actions github-actions released this 15 Oct 12:30
· 305 commits to main since this release
bca1199

Minor Changes

  • #419 7cd7216 Thanks @mattiamanzati! - Add support for custom APIs in deterministicKeys diagnostic using the @effect-identifier JSDoc tag.

    You can now enforce deterministic keys in custom APIs that follow an extends MyApi("identifier") pattern by:

    • Adding extendedKeyDetection: true to plugin options to enable detection
    • Marking the identifier parameter with /** @effect-identifier */ JSDoc tag

    Example:

    export function Repository(/** @effect-identifier */ identifier: string) {
      return Context.Tag("Repository/" + identifier);
    }
    
    export class UserRepo extends Repository("user-repo")<
      UserRepo,
      {
        /** ... */
      }
    >() {}