Skip to content

@demlik/tea's vitest peer range stops at ^3, so npm refuses vitest 4 beside it #293

Description

@usirin

Summary

@demlik/tea (0.12.0 through 0.15.0, and main) declares an optional peer vitest: "^2 || ^3" for its ./testing and ./extension/test-utils exports. npm 11 enforces optional peer ranges, so a project on vitest 4 can't install tea next to it. It fails with ERESOLVE, then Cannot read properties of null (reading 'edgesOut'). pnpm workspaces don't enforce the range, which is why this hasn't shown up before.

Where it bites

Phoenix is publishing its Tuval SDK (@kampus/tuval-sdk) to npm, and the SDK depends on tea. Its README tells outside authors to test with vitest, and current vitest is 4. Phoenix tracks this as kamp-us/phoenix#9708. For now its packed-tarball proof pins vitest 3.2.7 to get around it.

Ask

Widen peerDependencies.vitest to include ^4 (and ^5 if tea's own tests pass under it), check that ./testing and ./extension/test-utils work under vitest 4, and cut a release. Phoenix will then bump its @demlik/tea catalog pin and drop the vitest 3 pin.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions