Skip to content

dedupe-peer-dependents disregards version information #6605

Description

@klingenm

pnpm version: 8.6.0

Code to reproduce the issue:

https://github.com/klingenm/dedupe-peer-dependents-repro

Expected behavior:

The peer:

/@apollo/client/3.7.1(graphql@15.8.0)(react@16.8.0) maps to /@apollo/client/3.7.1(graphql@15.8.0)(react-dom@16.8.0)(react@16.8.0)

and

/@apollo/client/3.7.1(graphql@15.8.0)(react@18.2.0) maps to /@apollo/client/3.7.1(graphql@15.8.0)(react-dom@18.2.0)(react@18.2.0)

Actual behavior:

Both:

  • /@apollo/client/3.7.1(graphql@15.8.0)(react@16.8.0)
  • /@apollo/client/3.7.1(graphql@15.8.0)(react@18.2.0)
    maps to

/@apollo/client/3.7.1(graphql@15.8.0)(react-dom@18.2.0)(react@18.2.0)

Additional information:

This is possibly a duplicate of #6200.

  • node -v prints: v16.15.1 (also tested on 18)
  • Windows, macOS, or Linux?: macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions