-
Notifications
You must be signed in to change notification settings - Fork 805
Open
Labels
Description
Is your feature request related to a problem? Please describe.
I'd like to pin my Stripe client to the latest major version (e.g., "acacia"). Right now, I can either declare a specific monthly version, requiring intervention on each automated dependency update, or place no restriction at all. I understand that the SDK only declares types for the latest versions, but my code will typically not encounter problems, and monthly updates are documented as backwards-compatible.
Put another way: I'd like dependabot to keep Stripe automatically updated with periodic updates (bug fixes, etc.) but require manual intervention to upgrade to the next major version.
Describe the solution you'd like
// Something like
type LatestApiVersion = "2025-02-24.acacia" | "acacia"
// So that I can call
new Stripe(KEY, { apiVersion: "acacia" })
Describe alternatives you've considered
- Adding (to my code) a complicated type check & test verifying that LatestApiVersion matches 'acacia', removing
apiVersion
config - Manually upgrading Stripe and excluding from dependabot updates
Additional context
No response
mguida22