Skip to content

pnpm overrides silently outrank catalog entries — audit the pairs, and make dependabot stop fighting the pins #508

Closed

Description

@thinkclay

The pattern

An entry in pnpm.overrides (root package.json) silently outranks the corresponding pnpm-workspace.yaml catalog entry. When the two disagree, the catalog line is decorative — it reads like the version in use and isn't. This has now bitten three separate times:

# Package What happened
#453 @supabase/supabase-js catalog said ~2.100.1, override pinned ~2.86.0; catalog ignored. Fixed by aligning.
#501 expo-modules-autolinking override pinned 56.0.12 while expo moved to 56.0.18; every web export broke.
this @supabase/supabase-js again dependabot bumped the catalog to ~2.110.9, override still ~2.86.0 — re-introducing exactly what #453 fixed.

Plus one found by audit during the batch: expo-modules-core catalog 56.0.12 vs override 56.0.22 — leftover from #502's fix, harmless (override was the newer one) but the catalog was lying again.

Two things worth doing

1. A lint check for the class. Compare every pnpm.overrides key against the catalog and fail when a pin disagrees. It has to understand pnpm's selector syntax to avoid false positives — fast-xml-parser@>=4.0.0-beta.3 <=5.5.7 is a CVE floor that legitimately differs from the catalog, and react-dom: 19.2.3 pinning inside catalog ^19.2.3 is intentional. A naive string compare flags both. Natural home is alongside lint:sorted-keys / lint:routes, or in prepush next to the autolinking guard added in #506.

2. Stop dependabot bumping catalog entries that an override pins. Otherwise this recurs every time it runs. Either add the pinned packages to ignore in .github/dependabot.yml, or drop the override whenever the pin is no longer needed — @supabase/supabase-js's pin turned out to be unnecessary (typecheck passes clean at 2.110.9, so the batch lifted it).

Note

The pins are undocumented, unlike the pnpmOverrideNotes block in package.json that explains @docusaurus/* and webpackbar. Whatever lands here, new pins should be required to carry a note there — that block is the reason those two were easy to reason about and these were not.

Activity

  1. added a commit that references this issue on Jul 30, 2026
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