Skip to content

deps: pnpm override pins @supabase/supabase-js 14 minors below the catalog entry #453

Closed

Description

@thinkclay

Actual vs expected

pnpm-workspace.yaml declares the catalog entry:

'@supabase/supabase-js': ~2.100.1     # pnpm-workspace.yaml:29

but pnpm.overrides in the root manifest forces it lower:

"@supabase/supabase-js": "~2.86.0"    // package.json:288

The override wins. Every workspace that declares "@supabase/supabase-js": "catalog:" — packages/supabase, packages/sdk, packages/scf-core — silently resolves 2.86.2, fourteen minors below what the catalog says it should get.

Expected: one source of truth. Either the catalog range is honoured, or the override is documented as a deliberate ceiling.

Why this looks accidental, not deliberate

The override was introduced in b25a055fa ("fix: resolve TypeScript errors, lint warnings, and root tsconfig OOM"), in the same two-line hunk as a react-native pin:

+      "react-native": "0.84.0",
+      "@supabase/supabase-js": "~2.86.0",

That commit is about unblocking a typecheck/OOM problem, not about capping the Supabase client. The react-native pin from that same hunk has since been moved forward to 0.85.3; the supabase-js one was never revisited. It also carries no entry in pnpmOverrideNotes, unlike the other non-obvious overrides (@docusaurus/*, webpackbar), which are all documented there.

Where to look

  • package.json:288 — the override
  • pnpm-workspace.yaml:29 — the catalog entry
  • package.json → pnpmOverrideNotes — where the rationale belongs if the pin is kept
  • b25a055fa — origin commit

Acceptance criteria

  • Determine whether the ~2.86.0 ceiling is still load-bearing (try removing it and running nx run-many -t typecheck — the origin commit was about type errors and root tsconfig OOM, so that's the failure mode to watch for).
  • Then either:
    • remove the override so the catalog governs, or
    • keep it and add a pnpmOverrideNotes entry explaining what breaks without it, and lower the catalog entry to match so the two stop contradicting each other.
  • nx run-many -t build, -t typecheck and -t test green.
  • Only once this is settled, revisit the 2.108.1 bump (was chore(deps): bump @supabase/supabase-js from 2.86.2 to 2.108.1 #350, closed in the org-migration sweep).

Context

Found while triaging the Dependabot backlog in #451. The supabase-js bump was deliberately excluded from that batch because layering it on top of this contradiction would have obscured which pin was actually in effect.

Activity

  1. added
    bug
    dependencies
    agent-ready
    on Jul 30, 2026
  2. thinkclay commented on Aug 27, 2026

    @thinkclay
    ContributorAuthor

    Re-checked this while triaging the current dependabot wave. The contradiction this issue is about is gone, and there is now a lint that keeps it gone:

    • pnpm-workspace.yaml catalog: '@supabase/supabase-js': ~2.86.0
    • package.json → pnpm.overrides: "@supabase/supabase-js": "~2.86.0"
    • scripts/check-override-catalog-alignment.mjs, wired into lint and precommit, fails the build when an override contradicts its catalog entry. It cites this issue by number in its header comment. Current run: ✓ overrides/catalog aligned (9 comparable pairs checked).

    The second acceptance box asked for the rationale to be written down. It is — as a comment on the catalog entry rather than in pnpmOverrideNotes, which reads better since that is where a reader hits the pin first.

    The remaining question — whether the ~2.86 ceiling is still load-bearing — was answered by #512 rather than here: the EAS production profile pinned Node 20.19.4, and supabase-js 2.110's bundled realtime-js needs a native WebSocket global, which landed in Node 22. That killed the v1.16.0 iOS build at EAGER_BUNDLE. The builder has since been moved to Node 22 and validated end to end (build 74e0b6bb), so the build-time blocker is lifted; what is left is runtime validation of the 2.86 → 2.110 auth/realtime surface, which belongs in its own PR.

    This wave (#619) proposed the catalog at ~2.112.3 while the override still said ~2.86.0 — exactly the shape of this issue. It was held back, so the pair stays aligned.

    Proposing this be closed as done, with the supabase-js version bump itself tracked by the note on the catalog entry.

  3. thinkclay commented on Sep 11, 2026

    @thinkclay
    ContributorAuthor

    Reconciled on main — the two declarations now agree:

    pnpm-workspace.yaml:42   '@supabase/supabase-js': ~2.86.0
    package.json:273         "@supabase/supabase-js": "~2.86.0"     (pnpm.overrides)
    

    The catalog was brought down to the override rather than the override lifted to the catalog, so the resolved version is unchanged (2.86.x) and no workspace silently moved. There are still two places rather than one — the override stays because it is what forces transitive copies onto the same version — but they can no longer disagree by fourteen minors without a reviewer seeing both lines change.

    Closing as resolved. If supabase-js is bumped later, both lines move together, in one commit, per #483.

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

    agent-readybugdependenciespriority: high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions