-
Notifications
You must be signed in to change notification settings - Fork 452
fix(clerk-js,shared): upgrade Stripe SDK from v5 to v9 #8223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
jacekradko
wants to merge
5
commits into
main
Choose a base branch
from
jacek/upgrade-stripe-sdk
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
61686eb
fix(clerk-js,shared): upgrade Stripe SDK from v5 to v9
jacekradko a6f6fe6
chore(changeset): add changeset for Stripe SDK upgrade
jacekradko 042fd15
fix(clerk-js): bump stripe-vendors bundlewatch limit to 2KB
jacekradko e06bf3b
test(shared): add unit tests for usePaymentElement hook
jacekradko 94c15c7
Merge branch 'main' into jacek/upgrade-stripe-sdk
jacekradko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| '@clerk/clerk-js': patch | ||
| '@clerk/shared': patch | ||
| --- | ||
|
|
||
| Upgrade `@stripe/stripe-js` from 5.6.0 to 9.0.0 and `@stripe/react-stripe-js` from 3.1.1 to 6.0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: clerk/javascript
Length of output: 128
🏁 Script executed:
Repository: clerk/javascript
Length of output: 670
🏁 Script executed:
Repository: clerk/javascript
Length of output: 401
🏁 Script executed:
Repository: clerk/javascript
Length of output: 180
🏁 Script executed:
Repository: clerk/javascript
Length of output: 4393
🏁 Script executed:
Repository: clerk/javascript
Length of output: 11043
🏁 Script executed:
# Check recent git changes to understand what was modified git status git log --oneline -10Repository: clerk/javascript
Length of output: 359
🏁 Script executed:
Repository: clerk/javascript
Length of output: 42
🏁 Script executed:
Repository: clerk/javascript
Length of output: 42
🏁 Script executed:
Repository: clerk/javascript
Length of output: 678
🏁 Script executed:
Repository: clerk/javascript
Length of output: 81
🏁 Script executed:
Repository: clerk/javascript
Length of output: 905
🏁 Script executed:
Repository: clerk/javascript
Length of output: 744
🏁 Script executed:
Repository: clerk/javascript
Length of output: 79
🏁 Script executed:
Repository: clerk/javascript
Length of output: 186
🏁 Script executed:
Repository: clerk/javascript
Length of output: 238
🏁 Script executed:
Repository: clerk/javascript
Length of output: 42
🏁 Script executed:
Repository: clerk/javascript
Length of output: 42
Major Stripe SDK upgrade requires verification of payment confirmation flow before merge.
Lines 155-156 upgrade Stripe SDKs across major versions (v5→v9 for
stripe-js, v3→v6 forreact-stripe-js). These are significant version jumps that may introduce breaking changes. TheconfirmSetup()call atpackages/shared/src/react/billing/payment-element.tsx:329is critical billing code that must be verified to work correctly after this upgrade. Add test coverage (unit or e2e) or manual verification evidence for the payment confirmation flow before merging to prevent runtime billing failures.🤖 Prompt for AI Agents