chore(deps): Update dependency stripe to v22#310
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
Conversation
f09534a to
179a50b
Compare
179a50b to
791b6d0
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:
^20.3.1→^22.0.0Release 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
v21.0.1Compare Source
v21.0.0Compare Source
This release changes the pinned API version to⚠️ below). There's also a detailed migration guide to simplify your upgrade process.
2026-03-25.dahliaand contains breaking changes (prefixed withPlease review details for the breaking changes and alternatives in the Stripe API changelog before upgrading.
decimal_stringfields changed type fromstringtoStripe.Decimalin both request params and response objects. Code that reads or writes these fields asstringwill need to useStripe.Decimalinstead (construct viaDecimal.from("1.23"), serialize via.toString()). Affected fields across v1 and v2 APIs:currency_conversion.fx_ratemetric_tons; Climate.Product:metric_tons_availableunit_amount_decimalquantity_decimal,unit_amount_decimalquantity_decimal,unit_amount_decimalquantity_decimal,unit_cost_decimal,gross_amount_decimal,local_amount_decimal,national_amount_decimalamount_decimal,flat_amount_decimal,unit_amount_decimalunit_amount_decimal,flat_amount_decimal(includingcurrency_optionsandtiers)percent_ownershipunit_amount_decimal,flat_amount_decimal,quantity_decimal(where applicable)upi_paymentsonAccount.capabilities,AccountCreateParams.capabilities, andAccountUpdateParams.capabilitiesupionCharge.payment_method_details,Checkout.Session.payment_method_options,Checkout.SessionCreateParams.payment_method_options,ConfirmationToken.payment_method_preview,ConfirmationTokenCreateParams.testHelpers.payment_method_data,Mandate.payment_method_details,PaymentAttemptRecord.payment_method_details,PaymentIntent.payment_method_options,PaymentIntentConfirmParams.payment_method_data,PaymentIntentConfirmParams.payment_method_options,PaymentIntentCreateParams.payment_method_data,PaymentIntentCreateParams.payment_method_options,PaymentIntentUpdateParams.payment_method_data,PaymentIntentUpdateParams.payment_method_options,PaymentMethodConfigurationCreateParams,PaymentMethodConfigurationUpdateParams,PaymentMethodConfiguration,PaymentMethodCreateParams,PaymentMethod,PaymentRecord.payment_method_details,SetupAttempt.payment_method_details,SetupIntent.payment_method_options,SetupIntentConfirmParams.payment_method_data,SetupIntentConfirmParams.payment_method_options,SetupIntentCreateParams.payment_method_data,SetupIntentCreateParams.payment_method_options,SetupIntentUpdateParams.payment_method_data, andSetupIntentUpdateParams.payment_method_optionstempoon enumsCharge.payment_method_details.crypto.network,PaymentAttemptRecord.payment_method_details.crypto.network, andPaymentRecord.payment_method_details.crypto.networkintegration_identifieronCheckout.SessionCreateParamsandCheckout.Sessionupion enumsCheckout.SessionCreateParams.excluded_payment_method_types,PaymentIntent.excluded_payment_method_types,PaymentIntentConfirmParams.excluded_payment_method_types,PaymentIntentCreateParams.excluded_payment_method_types,PaymentIntentUpdateParams.excluded_payment_method_types,SetupIntent.excluded_payment_method_types,SetupIntentCreateParams.excluded_payment_method_types, andSetupIntentUpdateParams.excluded_payment_method_typescryptoonCheckout.SessionCreateParams.payment_method_optionsupion enumCheckout.SessionCreateParams.payment_method_typespending_invoice_item_intervalonCheckout.SessionCreateParams.subscription_dataelements,embedded_page,form, andhosted_pageon enumsCheckout.Session.ui_modeandCheckout.SessionCreateParams.ui_modemarine_carbon_removalon enumClimate.Supplier.removal_pathwayupion enumsConfirmationTokenCreateParams.testHelpers.payment_method_data.type,PaymentIntentConfirmParams.payment_method_data.type,PaymentIntentCreateParams.payment_method_data.type,PaymentIntentUpdateParams.payment_method_data.type,SetupIntentConfirmParams.payment_method_data.type,SetupIntentCreateParams.payment_method_data.type, andSetupIntentUpdateParams.payment_method_data.typeupion enumsConfirmationToken.payment_method_preview.typeandPaymentMethod.typemetadataonCreditNoteCreateParams.lines[],CreditNoteLineItem,CreditNotePreviewLinesParams.lines[], andCreditNotePreviewParams.lines[]upion enumsCustomerListPaymentMethodsParams.type,PaymentMethodCreateParams.type, andPaymentMethodListParams.typequantity_decimalonInvoiceAddLinesParams.lines[],InvoiceCreatePreviewParams.invoice_items[],InvoiceItemCreateParams,InvoiceItemUpdateParams,InvoiceItem,InvoiceLineItemUpdateParams,InvoiceLineItem, andInvoiceUpdateLinesParams.lines[]levelonIssuing.AuthorizationCreateParams.testHelpers.risk_assessment.card_testing_riskandIssuing.AuthorizationCreateParams.testHelpers.risk_assessment.merchant_dispute_riskrisk_levelonIssuing.AuthorizationCreateParams.testHelpers.risk_assessment.card_testing_riskandIssuing.AuthorizationCreateParams.testHelpers.risk_assessment.merchant_dispute_risklifecycle_controlsonIssuing.CardCreateParamsandIssuing.CardIssuing.Token.network_data.visa.card_reference_idfromstringtostring | nullPaymentAttemptRecord.payment_method_details.card.brandandPaymentRecord.payment_method_details.card.brandfromenumtoenum | nullPaymentAttemptRecord.payment_method_details.card.exp_monthandPaymentRecord.payment_method_details.card.exp_monthfromlongIntegertolongInteger | nullPaymentAttemptRecord.payment_method_details.card.exp_yearandPaymentRecord.payment_method_details.card.exp_yearfromlongIntegertolongInteger | nullPaymentAttemptRecord.payment_method_details.card.fundingandPaymentRecord.payment_method_details.card.fundingfromenum('credit'|'debit'|'prepaid'|'unknown')toenum('credit'|'debit'|'prepaid'|'unknown') | nullPaymentAttemptRecord.payment_method_details.card.last4andPaymentRecord.payment_method_details.card.last4fromstringtostring | nullPaymentAttemptRecord.payment_method_details.card.motoandPaymentRecord.payment_method_details.card.motofrombooleantoboolean | nullcryptogram,electronic_commerce_indicator,exemption_indicator_applied, andexemption_indicatoronPaymentAttemptRecord.payment_method_details.card.three_d_secureandPaymentRecord.payment_method_details.card.three_d_secureupi_handle_redirect_or_display_qr_codeonPaymentIntent.next_actionandSetupIntent.next_actionupion enumsPaymentLink.payment_method_types,PaymentLinkCreateParams.payment_method_types, andPaymentLinkUpdateParams.payment_method_typesrecommended_actionandsignalsonRadar.PaymentEvaluationinsightsonRadar.PaymentEvaluationcrypto_fingerprinton enumsRadar.ValueList.item_typeandRadar.ValueListCreateParams.item_typecanceled_by_retention_policyon enumSubscription.cancellation_details.reason2026-03-25.dahliaon enumWebhookEndpointCreateParams.api_versionV2.Core.EventDestination.events_fromandV2.Core.EventDestinationCreateParams.events_fromfromenum('other_accounts'|'self')tostringservice_period_coupon_with_metered_tiered_item_unsupportedonInvoice.last_finalization_error,PaymentIntent.last_payment_error,SetupAttempt.setup_error,SetupIntent.last_setup_error, andStripeErrorConfiguration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, 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.