Skip to content

fix(payments): align the stripe apiVersion literals with the vendored SDK#2012

Open
chrisbbreuer wants to merge 1 commit into
mainfrom
fix/stripe-api-version-literals
Open

fix(payments): align the stripe apiVersion literals with the vendored SDK#2012
chrisbbreuer wants to merge 1 commit into
mainfrom
fix/stripe-api-version-literals

Conversation

@chrisbbreuer

Copy link
Copy Markdown
Member

bun run typecheck (tsc --build tsconfig.framework.json) has been failing on main — including on every recent PR — with:

storage/framework/core/payments/src/drivers/stripe.ts(42,13): error TS2322: Type '"2026-03-25.dahlia"' is not assignable to type '"2026-06-24.dahlia"'.
storage/framework/core/orm/src/traits/billable.ts(331,35): error TS2322: Type '"2026-03-25.dahlia"' is not assignable to type '"2026-06-24.dahlia"'.

The vendored stripe package is 22.3.0, which pins API version 2026-06-24.dahlia (stripe/esm/apiVersion.js), but the two hardcoded literals still said 2026-03-25.dahlia. Per the code comment in stripe.ts ("Update both at once"), the SDK was already bumped — this completes the pair.

Side effect of the red typecheck: the deploy and publish-commit jobs (needs: [lint, typecheck, test]) have been getting skipped on main as well.

Left for review rather than auto-merged since this area is actively moving (workspace catalog adoption).

… SDK

stripe 22.3.0 pins API version 2026-06-24.dahlia, but the two hardcoded
fallbacks still said 2026-03-25.dahlia, failing tsc --build (TS2322 in
payments/src/drivers/stripe.ts and orm/src/traits/billable.ts) and with
it the typecheck job on main. Per the code comment, the literal and the
SDK move together — the SDK was already bumped, this completes it.
@github-actions github-actions Bot added storage @stacksjs/storage payments @stacksjs/payments core orm labels Jul 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core orm payments @stacksjs/payments storage @stacksjs/storage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant