fix(stripe): allow selecting Stripe.js SDK version#799
Conversation
Adds a `version` option to `useScriptStripe()` and the registry config to pin the Stripe.js SDK release (e.g. `acacia`, `basil`, `clover`, `dahlia`), mirroring the Google Maps `v` option. Defaults to `basil` for backward compatibility. Closes #796
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
commit: |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThis PR adds an optional Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🔗 Linked issue
Resolves #796
❓ Type of change
📚 Description
useScriptStripe()previously pinned to thebasilrelease of Stripe.js. This adds an optionalversionoption (union of named releases plus string fallback) that gets interpolated into the loader URL, mirroring thevoption pattern used by Google Maps. Default staysbasil.