Skip to content

The published declarations need effect 4.1, but the peer range admits ^4.0.0 #586

Closed

Description

@thomasfosterau

What's wrong

0.21.0 peers effect ^4.0.0, but its declarations are only correct on effect 4.1. On effect 4.0.6, Group.resource endpoints' ~Success resolves to any, so typed Client.make consumers lose their response types.

Repro (relayed from preferenceflow): preferenceflow at c46174c (effect 4.0.6), bumped to effect-jsonapi 0.21.0, gives 9 type errors in apps/cli. On effect 4.1.2 it gives 0.

Fix

  • Raise the effect peer (catalogs.peers) to ^4.1.0, with the catalog comment naming the dependency-forced reason (the 4.1 HttpApi types), per AGENTS.md. Minor changeset, with a migration note: apps move to effect ≥ 4.1.0.
  • Add a CI type-level check at the floor: type-check the emitted declarations (test/emitted/*, typecheck:dist) and a typed Client.make consumer against the lowest admitted effect (4.1.0), so the peer floor can't drift again.

Activity

  1. added a commit that references this issue on Nov 12, 2026
    5c99ab0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions