Repository navigation
Description
Actual vs expected
pnpm-workspace.yaml declares the catalog entry:
'@supabase/supabase-js': ~2.100.1 # pnpm-workspace.yaml:29but pnpm.overrides in the root manifest forces it lower:
"@supabase/supabase-js": "~2.86.0" // package.json:288The 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 overridepnpm-workspace.yaml:29— the catalog entrypackage.json→pnpmOverrideNotes— where the rationale belongs if the pin is keptb25a055fa— origin commit
Acceptance criteria
- Determine whether the
~2.86.0ceiling is still load-bearing (try removing it and runningnx 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
pnpmOverrideNotesentry 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 typecheckand-t testgreen. - 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
chore(deps): batch dependabot #495, #500, #503, #505 — holding two bu…
fix(deps): pin @supabase/supabase-js back to 2.86 — 2.110 breaks the …
test(deps): fail fast when a pnpm override contradicts its catalog en…
thinkclay commentedon Aug 27, 2026
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.yamlcatalog:'@supabase/supabase-js': ~2.86.0package.json→pnpm.overrides:"@supabase/supabase-js": "~2.86.0"scripts/check-override-catalog-alignment.mjs, wired intolintandprecommit, 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-jsneeds a nativeWebSocketglobal, which landed in Node 22. That killed the v1.16.0 iOS build atEAGER_BUNDLE. The builder has since been moved to Node 22 and validated end to end (build74e0b6bb), 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.
chore(deps): batch dependabot #550, #551, #619, #641, #642 — and unbl…
chore(deps): batch dependabot #550, #551, #619, #641, #642 — and unbl…
ci(dependabot): stop proposing the supabase-js bump that cannot pass …
thinkclay commentedon Sep 11, 2026
Reconciled on
main— the two declarations now agree: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.