chore(deps): update dependency stripe to v22#1827
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
Conversation
PR Summary
|
e7d9b72 to
bc7ea18
Compare
40ed00b to
b6da0ab
Compare
64ec6fa to
f1d1800
Compare
f1d1800 to
1fce990
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR contains the following updates:
^21.0.1→^22.0.1Release Notes
stripe/stripe-node (stripe)
v22.0.1Compare Source
newkeyword is now possible for CJS based TypeScript project. Resolves: 2660Stripeconstructor config parameter to useStripeConfigtype instead ofRecord<string, unknown>, restoring compile-time type safety.authenticatorproperty toStripeConfig.Stripe.API_VERSIONto retain the literal API version type.StripeConfig.stripeContextto acceptStripeContextobjects in addition to strings.rawRequestwith absolute urlsstring[]toWebhookHeadertype for compatibility with expressstring[]to the type ofsignatureparam instripe.webhooks.construct_eventmethod.v22.0.0Compare Source
This release uses the same pinned API version to⚠️ below. There's also a detailed migration guide to simplify your upgrade process.
2026-03-25.dahliaas the last major release. The breaking changes in this release are prefixed withStripe.StripeContextis no longer exported as a type. UseStripe.StripeContextTypeinstead.Stripe.errors.StripeErroris no longer a type. Usetypeof Stripe.errors.StripeErrororStripe.ErrorTypeinstead.new Stripe()to create a StripeClient instead of calling it:#2645⚠️ Remove
stripeMethodand standardize how function args are handled (including removing callback support)async / awaitinsteadRequestOptionsunder theapiKeypropertyparamsandoptionsobjects are no longer mixed. If present on a method,RequestParamsmust always come first andRequestOptionsmust always come second. To supply options without params, passundefinedas the first argument explicitlyStripeResource:createFullPath,createResourcePathWithSymbols,extend,methodand_joinUrlParts. These were mostly intended for internal use and we no longer need themAs a result, the following call patterns are no longer supported:
If those look familiar, head over to the migration guide to update your code.
#2643⚠️ Removed per-request host override. To use a custom host, set it in the client configuration. All requests from that client will use that host.
Before:
After:
#2619 Improved TypeScript support in the Node SDK
#2638 Converted V2/Amount.ts to V2/V2Amount.ts
#2635 Updated stripe.spec.ts test and constructEvent.tolerance type
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.