Skip to content

@cratis/components.primereact pins its Components peer to an exact version, contradicting its own README #233

Description

@cratis-stagehand

@cratis/components.primereact@4.1.0 declares:

"peerDependencies": { "@cratis/components": "4.1.0", ... }

while its bundled README.md states:

The adapter requires @cratis/components >=4 <5. This range is intentionally bounded to the Components major whose renderer ABI and stable presentation profile it implements.

Those two cannot both be true. The exact pin is what npm/yarn actually enforce, so a consuming application has to pin @cratis/components to 4.1.0 exactly rather than ^4.0.0, and every subsequent Components patch is a lockstep bump of both packages or a peer-dependency error.

Expected: the peer range to match the documented >=4 <5, so the adapter tracks the renderer ABI major it implements rather than one specific release.

If the exact pin is deliberate — e.g. the renderer ABI is not actually stable within the major yet — then the README claim is the thing that is wrong, and saying so explicitly would be more useful than the current contradiction, because it tells adopters to expect a coordinated bump on every release.

Found while migrating Cratis/Stagehand to Components 4 (Cratis/Stagehand#356); we pinned @cratis/components to 4.1.0 exactly to satisfy it.

Activity

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

    dependenciesPull requests that update a dependency filesemver

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions