Skip to content

deps: evaluate stripe 20 -> 22, and reconcile the two conflicting pinned API versions #454

Open

Description

@thinkclay

What

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:

File STRIPE_API_VERSION
packages/supabase/functions/stripe-webhook/index.ts:9 '2024-06-20'
packages/supabase/functions/trpc/routers/payments.router.ts:8 '2025-11-17.clover'
packages/supabase/functions/trpc/routers/id-verification.router.ts:9 '2025-11-17.clover'

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
  • packages/supabase/types.ts — re-exports Stripe types

Acceptance criteria

  • 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

  1. added
    dependencies
    agent-ready
    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

    agent-readydependenciespriority: medium

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions