[PR #9063] [CLOSED] chore: bump stripe to v22 #16657

Closed
opened 2026-04-13 10:37:59 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/9063
Author: @leonardo2204
Created: 4/9/2026
Status: ❌ Closed

Base: next ← Head: main


📝 Commits (1)

📊 Changes

6 files changed (+567 additions, -545 deletions)

View changed files

➕ .changeset/honest-bears-marry.md (+5 -0)
📝 docs/content/docs/plugins/stripe.mdx (+457 -463)
📝 packages/stripe/package.json (+2 -2)
📝 packages/stripe/src/routes.ts (+4 -3)
📝 packages/stripe/src/types.ts (+7 -1)
📝 pnpm-lock.yaml (+92 -76)

📄 Description

Bumped stripe to v22.
No breaking change, except for the new Stripe type system which is a bit more annoying, so a small refactor was necessary when returning from upgradeSubscription.


Summary by cubic

Upgrade stripe to v22 across @better-auth/stripe and docs, and align types to the new SDK. Behavior change: upgradeSubscription now returns { url, redirect } instead of the full Checkout Session.

  • Dependencies

    • Bumped stripe to ^22.0.1; peer range now ^18 || ^19 || ^20 || ^21 || ^22.
    • Updated docs to install stripe@^22.0.1.
  • Migration

    • Ensure Node >= 18 (required by stripe@22).
    • If you relied on extra fields from upgradeSubscription, read data.url instead; only url and redirect are returned now.

Written for commit 62f7bf7e7e. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/9063 **Author:** [@leonardo2204](https://github.com/leonardo2204) **Created:** 4/9/2026 **Status:** ❌ Closed **Base:** `next` ← **Head:** `main` --- ### 📝 Commits (1) - [`62f7bf7`](https://github.com/better-auth/better-auth/commit/62f7bf7e7e9a8f0393f2e3459b10696fac80bdc8) Bump stripe to v22 ### 📊 Changes **6 files changed** (+567 additions, -545 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/honest-bears-marry.md` (+5 -0) 📝 `docs/content/docs/plugins/stripe.mdx` (+457 -463) 📝 `packages/stripe/package.json` (+2 -2) 📝 `packages/stripe/src/routes.ts` (+4 -3) 📝 `packages/stripe/src/types.ts` (+7 -1) 📝 `pnpm-lock.yaml` (+92 -76) </details> ### 📄 Description Bumped stripe to v22. No breaking change, except for the new Stripe type system which is a bit more annoying, so a small refactor was necessary when returning from `upgradeSubscription`. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Upgrade `stripe` to v22 across `@better-auth/stripe` and docs, and align types to the new SDK. Behavior change: `upgradeSubscription` now returns `{ url, redirect }` instead of the full Checkout Session. - **Dependencies** - Bumped `stripe` to `^22.0.1`; peer range now `^18 || ^19 || ^20 || ^21 || ^22`. - Updated docs to install `stripe@^22.0.1`. - **Migration** - Ensure Node >= 18 (required by `stripe@22`). - If you relied on extra fields from `upgradeSubscription`, read `data.url` instead; only `url` and `redirect` are returned now. <sup>Written for commit 62f7bf7e7e9a8f0393f2e3459b10696fac80bdc8. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 10:37:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#16657