You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
deps: evaluate stripe 20 -> 22, and reconcile the two conflicting pinned API versions #454
packages/supabase/package.json:37 pins "stripe": "20.0.0" exactly. Dependabot proposed 22.2.0 (was #344, closed in the org-migration sweep). Two majors, so it was deliberately excluded from the #451 batch.
Found while investigating: the pinned API version is already inconsistent
The Stripe API version is declared per-file as a local const, and the values disagree:
So the webhook handler is talking to Stripe on an API version ~17 months older than the payment routers. This is worth fixing regardless of whether the major bump happens — and it should probably be fixed first, since a stripe major bump typically ships a new default apiVersion and typed apiVersion union, which would force all three to move anyway.
Where to look
packages/supabase/package.json:37 — the pin
packages/supabase/functions/stripe-webhook/index.ts — webhook, older API version
packages/supabase/functions/trpc/routers/{payments,id-verification,account-deletion,ccpa,stripe-settings}.router.ts — the other call sites
Hoist STRIPE_API_VERSION to a single shared constant rather than five local consts, and pick one version deliberately.
Confirm against the Stripe changelogs what breaks between 20 → 21 → 22 for the surfaces actually used (webhooks, payment intents, identity verification, account deletion).
nx run-many -t typecheck green — the apiVersion field is a typed literal union in recent Stripe SDKs, so a mismatch surfaces there.
packages/supabase tests green (note: several suites need a running local stack — pnpm supa start).
Decide whether to keep the exact pin or move to a caret range.
Context
Deferred from the #451 dependency batch. CI is still billing-blocked (#375), so this needs local verification.
Activity
fix(build): supabase:build has been failing on the Stripe apiVersion …