[PR #5107] [CLOSED] fix(deps): update dependency stripe to v19 - autoclosed #5781

Closed
opened 2026-03-13 12:35:43 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5107
Author: @renovate[bot]
Created: 10/6/2025
Status: Closed

Base: canaryHead: renovate/stripe-19.x


📝 Commits (1)

  • bf0bd24 fix(deps): update dependency stripe to v19

📊 Changes

2 files changed (+321 additions, -855 deletions)

View changed files

📝 e2e/smoke/test/fixtures/tsconfig-declaration/package.json (+1 -1)
📝 pnpm-lock.yaml (+320 -854)

📄 Description

This PR contains the following updates:

Package Change Age Confidence
stripe ^18.5.0 -> ^19.3.1 age confidence

Release Notes

stripe/stripe-node (stripe)

v19.3.1

Compare Source

  • #​2500 Use TextEncoder instead of Buffer to ensure support in other JS environments
    • Fixes issues like #​2499 and #​2493 where use of Buffer.byteLength was causing errors in some runtime environments.

v19.3.0

Compare Source

  • #​2488 Update generated code
    • Add support for capture_method on PaymentIntent.payment_method_options.card_present, PaymentIntentConfirmParams.payment_method_options.card_present, PaymentIntentCreateParams.payment_method_options.card_present, and PaymentIntentUpdateParams.payment_method_options.card_present

v19.2.1

Compare Source

  • #​2492 Add support for value payment_record to enum InvoicePayment.payment.type
  • #​2485 correctly calculate content-length for JSON bodies that contain unicode

v19.2.0

Compare Source

This release changes the pinned API version to 2025-10-29.clover.

  • #​2477 Update generated code
    • Improve docs for PaymentIntent related endpoints
  • #​2469 Update generated code
    • Add support for new resources PaymentAttemptRecord, PaymentIntentAmountDetailsLineItem, and PaymentRecord
    • Add support for list and retrieve methods on resource PaymentAttemptRecord
    • Add support for report_payment_attempt_canceled, report_payment_attempt_failed, report_payment_attempt_guaranteed, report_payment_attempt_informational, report_payment_attempt, report_payment, report_refund, and retrieve methods on resource PaymentRecord
    • Add support for list method on resource PaymentIntentAmountDetailsLineItem
    • Add support for representative_declaration on Account.company, AccountCreateParams.company, AccountUpdateParams.company, and TokenCreateParams.account.company
    • Change Billing.CreditGrantCreateParams.category to be optional
    • Add support for payment_method_configuration on BillingPortal.ConfigurationCreateParams.features.payment_method_update and BillingPortal.ConfigurationUpdateParams.features.payment_method_update
    • Add support for new value solana on enum Charge.payment_method_details.crypto.network
    • Add support for new value mb_way on enum Checkout.SessionCreateParams.excluded_payment_method_types
    • Add support for twint on Checkout.Session.payment_method_options and Checkout.SessionCreateParams.payment_method_options
    • Add support for new value mb_way on enum Checkout.SessionCreateParams.payment_method_types
    • Add support for new value custom on enums ConfirmationToken.payment_method_preview.type and PaymentMethod.type
    • Add support for payment_record_refund and type on CreditNote.refunds[], CreditNoteCreateParams.refunds[], CreditNotePreviewLinesParams.refunds[], and CreditNotePreviewParams.refunds[]
    • Add support for customer_sheet and mobile_payment_element on CustomerSession.components and CustomerSessionCreateParams.components
    • Add support for new value custom on enums CustomerListPaymentMethodsParams.type, PaymentMethodCreateParams.type, and PaymentMethodListParams.type
    • Add support for provider on Customer.tax
    • Add support for new values balance_settings.updated and invoice.payment_attempt_required on enum Event.type
    • Add support for new value platform_terms_of_service on enums File.purpose and FileListParams.purpose
    • Add support for new value platform_terms_of_service on enum FileCreateParams.purpose
    • Add support for payment_record on InvoiceAttachPaymentParams, InvoicePayment.payment, and InvoicePaymentListParams.payment
    • Change type of InvoicePaymentListParams.payment.type from literal('payment_intent') to enum('payment_intent'|'payment_record')
    • Add support for new value custom on enums Invoice.payment_settings.payment_method_types, InvoiceCreateParams.payment_settings.payment_method_types, InvoiceUpdateParams.payment_settings.payment_method_types, Subscription.payment_settings.payment_method_types, SubscriptionCreateParams.payment_settings.payment_method_types, and SubscriptionUpdateParams.payment_settings.payment_method_types
    • Add support for amount_details on PaymentIntentCaptureParams, PaymentIntentConfirmParams, PaymentIntentCreateParams, PaymentIntentIncrementAuthorizationParams, and PaymentIntentUpdateParams
    • Add support for payment_details on PaymentIntentCaptureParams, PaymentIntentConfirmParams, PaymentIntentCreateParams, PaymentIntentIncrementAuthorizationParams, PaymentIntentUpdateParams, and PaymentIntent
    • Add support for discount_amount, line_items, shipping, and tax on PaymentIntent.amount_details
    • Add support for name_collection on PaymentLinkCreateParams, PaymentLinkUpdateParams, and PaymentLink
    • Add support for new value mb_way on enums PaymentLink.payment_method_types, PaymentLinkCreateParams.payment_method_types, and PaymentLinkUpdateParams.payment_method_types
    • Add support for crypto on PaymentMethodConfigurationCreateParams, PaymentMethodConfigurationUpdateParams, PaymentMethodConfiguration, and Refund.destination_details
    • Add support for mb_way on PaymentMethodConfigurationCreateParams, PaymentMethodConfigurationUpdateParams, and PaymentMethodConfiguration
    • Add support for custom on PaymentMethodCreateParams and PaymentMethod
    • Add support for excluded_payment_method_types on SetupIntentCreateParams, SetupIntentUpdateParams, and SetupIntent
    • Add support for tw on Tax.Registration.country_options and Tax.RegistrationCreateParams.country_options
    • Add support for gip on Terminal.Configuration.tipping, Terminal.ConfigurationCreateParams.tipping, and Terminal.ConfigurationUpdateParams.tipping
    • Add support for last_seen_at on Terminal.Reader
    • Add support for new values balance_settings.updated and invoice.payment_attempt_required on enums WebhookEndpointCreateParams.enabled_events and WebhookEndpointUpdateParams.enabled_events
    • Add support for new value 2025-10-29.clover on enum WebhookEndpointCreateParams.api_version
    • Add support for gt, gte, lt, lte, and types on V2.Core.EventListParams
    • Change V2.Core.EventListParams.object_id to be optional
    • Add support for snapshot event BalanceSettingsUpdatedEvent with resource BalanceSettings
    • Add support for snapshot event InvoicePaymentAttemptRequiredEvent with resource Invoice
    • Add support for error code payment_intent_rate_limit_exceeded on Invoice.last_finalization_error, PaymentIntent.last_payment_error, SetupAttempt.setup_error, SetupIntent.last_setup_error, and StripeError

v19.1.0

Compare Source

  • #​2453 add missing fetchEvent type for UnknownEventNotification

    • Add missing fetchEvent() declaration to the Stripe.Events.UnknownEventNotification interface
    • Tweak Stripe.Events.fetchRelatedObject so that it's always defined and returns null if there's no related_object. This fixes the situation where the UnknownEventNotification says that fetchRelatedObject() is defined, but calling it throws an error.
  • #​2447 Update param in deprecation docs link

  • #​2444 Update CHANGELOG.md to point to right API version

v19.0.0

Compare Source

This release changes the pinned API version to 2025-09-30.clover and contains breaking changes (prefixed with ⚠️ below)

  • #​2427 Move V2.Event API resources to V2.Core.Events

    • ⚠️ Move the below event related interfaces and types from Stripe.V2 to Stripe.V2.Core. This enables us to correctly match the API path to the namespace
      • Stripe.V2.EventDestination -> Stripe.V2.Core.EventDestination
      • Stripe.V2.Event -> Stripe.V2.Core.Event
      • Stripe.V2.EventBase -> Stripe.V2.Core.EventBase
      • Stripe.V2.Events.RelatedObject -> Stripe.V2.Core.Events.RelatedObject
  • #​2370 Add strongly typed EventNotifications
    We've overhauled how V2 Events are handled in the SDK! This approach should provide a lot more information at authoring and compile time, leading to more robust integrations. As part of this process, there are a number of changes to be aware of.

    • ⚠️ Rename function StripeClient.parseThinEvent to StripeClient.parseEventNotification and remove the Stripe.ThinEvent interface.
      • This function now returns a Stripe.V2.EventNotification which is a union of all possible event notifications instead of Stripe.ThinEvent. When applicable, these event notifications will have the relatedObject field and a function fetchRelatedObject(). They also have a fetchEvent() method to retrieve their corresponding event.
      • If this union type does not cover a new event notification that you parsed, you can cast it to UnknownEventNotification to then access the relatedObject field and the function fetchRelatedObject()
  • #​2432 Drop support for Node < 16 & clarify policy

    • Publish our new language version support policy and add a link to the README.
    • ⚠️ Drop support for Node versions < 16
    • Node 16 support is deprecated and will be removed in the next scheduled major release (March 2026)
  • #​2426 Add StripeContext object

    • Add the StripeContext class. It can be used anywhere the context option is supplied and gets serialized to a string when making requests.
    • ⚠️ Change EventNotification (formerly known as ThinEvent)'s context property from string to StripeContext
    • ⚠️ We no longer remove the stripe-context header from /v1 requests and the stripe-account header from /v2 requests. The server may reject a request with both of these headers, so if you're sending both, remove any reference to stripeAccount (since the headers are identical, but context is preferred)
  • #​2398 ⚠️ Build SDK w/ V2 OpenAPI spec

    • ⚠️ The delete methods for v2 APIs (the ones in the StripeClient.v2 namespace) now return a V2DeletedObject which has the id of the object that has been deleted and a string representing the type of the object that has been deleted.
    • ⚠️ Change the types of nullable properties in objects returned by v2 APIs (the ones in the StripeClient.v2 namespace) from a null union to optional (e.g. prop: string | null -> prop?: string).
  • #​2420 Fixed file uploading in Bun runtimes

    • Fixed issue (#​2416) with file uploads in runtimes using FetchHttpClient (e.g. Bun). This bug affected Node SDK versions between 18.1.0 to 18.5.0.
  • #​2405 support more npm tags

    • ⚠️ Starting with this release, we'll no longer be tagging releases with beta npm tag. Instead, we'll use latest, public-preview, or private-preview to more closely align with Stripe's release phases
  • #​2402, #​2413, #​2430, #​2428 Update generated code based on incoming API changes in the 2025-09-30.clover API version.

    • ⚠️ Remove support for balance_report and payout_reconciliation_report on AccountSession.components and AccountSessionCreateParams.components
    • ⚠️ Remove support for values saturday and sunday from enums Account.settings.payouts.schedule.weekly_payout_days, AccountCreateParams.settings.payouts.schedule.weekly_payout_days, and AccountUpdateParams.settings.payouts.schedule.weekly_payout_days
      • Add support for new values external_request and unsupported_business_type on enums Account.future_requirements.errors[].code, Account.requirements.errors[].code, BankAccount.future_requirements.errors[].code, BankAccount.requirements.errors[].code, Capability.future_requirements.errors[].code, Capability.requirements.errors[].code, Person.future_requirements.errors[].code, and Person.requirements.errors[].code
      • Remove support for link and pay_by_bank on PaymentMethodUpdateParams
    • ⚠️ Remove support for coupon on Discount, PromotionCodeCreateParams, and PromotionCode. Use Discount.source.coupon, PromotionCodeCreateParams.promotion.coupon and PromotionCode.coupon instead.
    • Change Invoice.id to be required.
    • Add support for new value prevented on enum Dispute.status
    • Add support for new resource BalanceSettings
    • Add support for retrieve and update methods on resource BalanceSettings
    • Add support for mb_way_payments on Account.capabilities, AccountCreateParams.capabilities, and AccountUpdateParams.capabilities
    • Add support for source on Discount
    • Add support for trial_update_behavior on BillingPortal.Configuration.features.subscription_update, BillingPortal.ConfigurationCreateParams.features.subscription_update, and BillingPortal.ConfigurationUpdateParams.features.subscription_update
    • Add support for mb_way on Charge.payment_method_details, ConfirmationToken.payment_method_preview, ConfirmationTokenCreateParams.testHelpers.payment_method_data, 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, PaymentMethodCreateParams, PaymentMethod, SetupIntentConfirmParams.payment_method_data, SetupIntentCreateParams.payment_method_data, and SetupIntentUpdateParams.payment_method_data
    • Add support for branding_settings and name_collection on Checkout.SessionCreateParams and Checkout.Session
    • Add support for excluded_payment_method_types on Checkout.SessionCreateParams, Checkout.Session, PaymentIntentConfirmParams, and PaymentIntentUpdateParams
    • Add support for unit_label on Checkout.SessionCreateParams.line_items[].price_data.product_data, InvoiceAddLinesParams.lines[].price_data.product_data, InvoiceLineItemUpdateParams.price_data.product_data, InvoiceUpdateLinesParams.lines[].price_data.product_data, and PaymentLinkCreateParams.line_items[].price_data.product_data
    • Add support for alma, billie, and satispay on Checkout.Session.payment_method_options and Checkout.SessionCreateParams.payment_method_options
    • Add support for demo_pay on Checkout.SessionCreateParams.payment_method_options
    • Add support for capture_method on Checkout.Session.payment_method_options.affirm, Checkout.Session.payment_method_options.afterpay_clearpay, Checkout.Session.payment_method_options.amazon_pay, Checkout.Session.payment_method_options.card, Checkout.Session.payment_method_options.cashapp, Checkout.Session.payment_method_options.klarna, Checkout.Session.payment_method_options.link, Checkout.Session.payment_method_options.mobilepay, Checkout.Session.payment_method_options.revolut_pay, Checkout.SessionCreateParams.payment_method_options.affirm, Checkout.SessionCreateParams.payment_method_options.afterpay_clearpay, Checkout.SessionCreateParams.payment_method_options.amazon_pay, Checkout.SessionCreateParams.payment_method_options.card, Checkout.SessionCreateParams.payment_method_options.cashapp, Checkout.SessionCreateParams.payment_method_options.klarna, Checkout.SessionCreateParams.payment_method_options.link, Checkout.SessionCreateParams.payment_method_options.mobilepay, and Checkout.SessionCreateParams.payment_method_options.revolut_pay
    • Add support for flexible on Checkout.SessionCreateParams.subscription_data.billing_mode, InvoiceCreatePreviewParams.schedule_details.billing_mode, InvoiceCreatePreviewParams.subscription_details.billing_mode, Quote.subscription_data.billing_mode, QuoteCreateParams.subscription_data.billing_mode, Subscription.billing_mode, SubscriptionCreateParams.billing_mode, SubscriptionMigrateParams.billing_mode, SubscriptionSchedule.billing_mode, and SubscriptionScheduleCreateParams.billing_mode
    • Add support for business_name and individual_name on Checkout.Session.collected_information, Checkout.Session.customer_details, CustomerCreateParams, CustomerUpdateParams, and Customer
    • Add support for new values mb_way on enums ConfirmationTokenCreateParams.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, and SetupIntentUpdateParams.payment_method_data.type
    • Add support for new values mb_way on enums ConfirmationToken.payment_method_preview.type and PaymentMethod.type
    • Add support for new values mb_way on enums CustomerListPaymentMethodsParams.type, PaymentMethodCreateParams.type, and PaymentMethodListParams.type
    • Add support for chargeback_loss_reason_code on Dispute.payment_method_details.klarna
    • Add support for net_amount and proration_details on InvoiceItem
    • Remove support for iterations on InvoiceCreatePreviewParams.schedule_details.phases[], SubscriptionScheduleCreateParams.phases[], and SubscriptionScheduleUpdateParams.phases[]
    • Add support for fraud_disputability_likelihood and risk_assessment on Issuing.AuthorizationCreateParams.testHelpers
    • Add support for second_line on Issuing.Card
    • Add support for new values mb_way on enums PaymentIntent.excluded_payment_method_types and PaymentIntentCreateParams.excluded_payment_method_types
    • Add support for fr_meal_voucher_conecs on PaymentMethodConfigurationCreateParams and PaymentMethodConfigurationUpdateParams
    • Add support for promotion on PromotionCodeCreateParams and PromotionCode
    • Add support for new values acknowledged and payment_never_settled on enum Review.closed_reason
    • Add support for provider on Tax.Settings.defaults
    • Add support for bbpos_wisepad3 on Terminal.ConfigurationCreateParams, Terminal.ConfigurationUpdateParams, and Terminal.Configuration
    • Add support for address_kana, address_kanji, display_name_kana, display_name_kanji, and phone on Terminal.LocationCreateParams, Terminal.LocationUpdateParams, and Terminal.Location
    • Change Terminal.LocationCreateParams.address to be optional
    • Change Terminal.LocationCreateParams.display_name to be optional
    • Add support for new value 2025-09-30.clover on enum WebhookEndpointCreateParams.api_version
    • Add support for error codes financial_connections_account_pending_account_numbers and financial_connections_account_unavailable_account_numbers on Invoice.last_finalization_error, PaymentIntent.last_payment_error, SetupAttempt.setup_error, SetupIntent.last_setup_error, and StripeError

Configuration

📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) (UTC), Automerge - At any time (no schedule defined).

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/5107 **Author:** [@renovate[bot]](https://github.com/apps/renovate) **Created:** 10/6/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `renovate/stripe-19.x` --- ### 📝 Commits (1) - [`bf0bd24`](https://github.com/better-auth/better-auth/commit/bf0bd24506ca86384a5d0cd52d55f054b7636872) fix(deps): update dependency stripe to v19 ### 📊 Changes **2 files changed** (+321 additions, -855 deletions) <details> <summary>View changed files</summary> 📝 `e2e/smoke/test/fixtures/tsconfig-declaration/package.json` (+1 -1) 📝 `pnpm-lock.yaml` (+320 -854) </details> ### 📄 Description This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [stripe](https://redirect.github.com/stripe/stripe-node) | [`^18.5.0` -> `^19.3.1`](https://renovatebot.com/diffs/npm/stripe/18.5.0/19.3.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/stripe/19.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/stripe/18.5.0/19.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>stripe/stripe-node (stripe)</summary> ### [`v19.3.1`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1931---2025-11-12) [Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v19.3.0...v19.3.1) - [#&#8203;2500](https://redirect.github.com/stripe/stripe-node/pull/2500) Use `TextEncoder` instead of `Buffer` to ensure support in other JS environments - Fixes issues like [#&#8203;2499](https://redirect.github.com/stripe/stripe-node/issues/2499) and [#&#8203;2493](https://redirect.github.com/stripe/stripe-node/issues/2493) where use of `Buffer.byteLength` was causing errors in some runtime environments. ### [`v19.3.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1930---2025-11-05) [Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v19.2.1...v19.3.0) - [#&#8203;2488](https://redirect.github.com/stripe/stripe-node/pull/2488) Update generated code - Add support for `capture_method` on `PaymentIntent.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card_present` ### [`v19.2.1`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1921---2025-11-04) [Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v19.2.0...v19.2.1) - [#&#8203;2492](https://redirect.github.com/stripe/stripe-node/pull/2492) Add support for value `payment_record` to enum `InvoicePayment.payment.type` - [#&#8203;2485](https://redirect.github.com/stripe/stripe-node/pull/2485) correctly calculate content-length for JSON bodies that contain unicode ### [`v19.2.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1920---2025-10-29) [Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v19.1.0...v19.2.0) This release changes the pinned API version to `2025-10-29.clover`. - [#&#8203;2477](https://redirect.github.com/stripe/stripe-node/pull/2477) Update generated code - Improve docs for PaymentIntent related endpoints - [#&#8203;2469](https://redirect.github.com/stripe/stripe-node/pull/2469) Update generated code - Add support for new resources `PaymentAttemptRecord`, `PaymentIntentAmountDetailsLineItem`, and `PaymentRecord` - Add support for `list` and `retrieve` methods on resource `PaymentAttemptRecord` - Add support for `report_payment_attempt_canceled`, `report_payment_attempt_failed`, `report_payment_attempt_guaranteed`, `report_payment_attempt_informational`, `report_payment_attempt`, `report_payment`, `report_refund`, and `retrieve` methods on resource `PaymentRecord` - Add support for `list` method on resource `PaymentIntentAmountDetailsLineItem` - Add support for `representative_declaration` on `Account.company`, `AccountCreateParams.company`, `AccountUpdateParams.company`, and `TokenCreateParams.account.company` - Change `Billing.CreditGrantCreateParams.category` to be optional - Add support for `payment_method_configuration` on `BillingPortal.ConfigurationCreateParams.features.payment_method_update` and `BillingPortal.ConfigurationUpdateParams.features.payment_method_update` - Add support for new value `solana` on enum `Charge.payment_method_details.crypto.network` - Add support for new value `mb_way` on enum `Checkout.SessionCreateParams.excluded_payment_method_types` - Add support for `twint` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options` - Add support for new value `mb_way` on enum `Checkout.SessionCreateParams.payment_method_types` - Add support for new value `custom` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type` - Add support for `payment_record_refund` and `type` on `CreditNote.refunds[]`, `CreditNoteCreateParams.refunds[]`, `CreditNotePreviewLinesParams.refunds[]`, and `CreditNotePreviewParams.refunds[]` - Add support for `customer_sheet` and `mobile_payment_element` on `CustomerSession.components` and `CustomerSessionCreateParams.components` - Add support for new value `custom` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` - Add support for `provider` on `Customer.tax` - Add support for new values `balance_settings.updated` and `invoice.payment_attempt_required` on enum `Event.type` - Add support for new value `platform_terms_of_service` on enums `File.purpose` and `FileListParams.purpose` - Add support for new value `platform_terms_of_service` on enum `FileCreateParams.purpose` - Add support for `payment_record` on `InvoiceAttachPaymentParams`, `InvoicePayment.payment`, and `InvoicePaymentListParams.payment` - Change type of `InvoicePaymentListParams.payment.type` from `literal('payment_intent')` to `enum('payment_intent'|'payment_record')` - Add support for new value `custom` on enums `Invoice.payment_settings.payment_method_types`, `InvoiceCreateParams.payment_settings.payment_method_types`, `InvoiceUpdateParams.payment_settings.payment_method_types`, `Subscription.payment_settings.payment_method_types`, `SubscriptionCreateParams.payment_settings.payment_method_types`, and `SubscriptionUpdateParams.payment_settings.payment_method_types` - Add support for `amount_details` on `PaymentIntentCaptureParams`, `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `PaymentIntentIncrementAuthorizationParams`, and `PaymentIntentUpdateParams` - Add support for `payment_details` on `PaymentIntentCaptureParams`, `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `PaymentIntentIncrementAuthorizationParams`, `PaymentIntentUpdateParams`, and `PaymentIntent` - Add support for `discount_amount`, `line_items`, `shipping`, and `tax` on `PaymentIntent.amount_details` - Add support for `name_collection` on `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` - Add support for new value `mb_way` on enums `PaymentLink.payment_method_types`, `PaymentLinkCreateParams.payment_method_types`, and `PaymentLinkUpdateParams.payment_method_types` - Add support for `crypto` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, and `Refund.destination_details` - Add support for `mb_way` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` - Add support for `custom` on `PaymentMethodCreateParams` and `PaymentMethod` - Add support for `excluded_payment_method_types` on `SetupIntentCreateParams`, `SetupIntentUpdateParams`, and `SetupIntent` - Add support for `tw` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options` - Add support for `gip` on `Terminal.Configuration.tipping`, `Terminal.ConfigurationCreateParams.tipping`, and `Terminal.ConfigurationUpdateParams.tipping` - Add support for `last_seen_at` on `Terminal.Reader` - Add support for new values `balance_settings.updated` and `invoice.payment_attempt_required` on enums `WebhookEndpointCreateParams.enabled_events` and `WebhookEndpointUpdateParams.enabled_events` - Add support for new value `2025-10-29.clover` on enum `WebhookEndpointCreateParams.api_version` - Add support for `gt`, `gte`, `lt`, `lte`, and `types` on `V2.Core.EventListParams` - Change `V2.Core.EventListParams.object_id` to be optional - Add support for snapshot event `BalanceSettingsUpdatedEvent` with resource `BalanceSettings` - Add support for snapshot event `InvoicePaymentAttemptRequiredEvent` with resource `Invoice` - Add support for error code `payment_intent_rate_limit_exceeded` on `Invoice.last_finalization_error`, `PaymentIntent.last_payment_error`, `SetupAttempt.setup_error`, `SetupIntent.last_setup_error`, and `StripeError` ### [`v19.1.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1910---2025-10-03) [Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v19.0.0...v19.1.0) - [#&#8203;2453](https://redirect.github.com/stripe/stripe-node/pull/2453) add missing fetchEvent type for UnknownEventNotification - Add missing `fetchEvent()` declaration to the `Stripe.Events.UnknownEventNotification` interface - Tweak `Stripe.Events.fetchRelatedObject` so that it's always defined and returns `null` if there's no `related_object`. This fixes the situation where the `UnknownEventNotification` says that `fetchRelatedObject()` is defined, but calling it throws an error. - [#&#8203;2447](https://redirect.github.com/stripe/stripe-node/pull/2447) Update param in deprecation docs link - [#&#8203;2444](https://redirect.github.com/stripe/stripe-node/pull/2444) Update CHANGELOG.md to point to right API version ### [`v19.0.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1900---2025-09-30) [Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v18.5.0...v19.0.0) This release changes the pinned API version to `2025-09-30.clover` and contains breaking changes (prefixed with ⚠️ below) - [#&#8203;2427](https://redirect.github.com/stripe/stripe-node/pull/2427) Move `V2.Event` API resources to `V2.Core.Events` - ⚠️ Move the below event related interfaces and types from `Stripe.V2` to `Stripe.V2.Core`. This enables us to correctly match the API path to the namespace - `Stripe.V2.EventDestination` -> `Stripe.V2.Core.EventDestination` - `Stripe.V2.Event` -> `Stripe.V2.Core.Event` - `Stripe.V2.EventBase` -> `Stripe.V2.Core.EventBase` - `Stripe.V2.Events.RelatedObject` -> `Stripe.V2.Core.Events.RelatedObject` - [#&#8203;2370](https://redirect.github.com/stripe/stripe-node/pull/2370) Add strongly typed EventNotifications We've overhauled how V2 Events are handled in the SDK! This approach should provide a lot more information at authoring and compile time, leading to more robust integrations. As part of this process, there are a number of changes to be aware of. - ⚠️ Rename function `StripeClient.parseThinEvent` to `StripeClient.parseEventNotification` and remove the `Stripe.ThinEvent` interface. - This function now returns a `Stripe.V2.EventNotification` which is a union of all possible event notifications instead of `Stripe.ThinEvent`. When applicable, these event notifications will have the `relatedObject` field and a function `fetchRelatedObject()`. They also have a `fetchEvent()` method to retrieve their corresponding event. - If this union type does not cover a new event notification that you parsed, you can cast it to `UnknownEventNotification` to then access the `relatedObject` field and the function `fetchRelatedObject()` - [#&#8203;2432](https://redirect.github.com/stripe/stripe-node/pull/2432) Drop support for Node < 16 & clarify policy - Publish our new [language version support policy](https://docs.stripe.com/sdks/versioning?lang=node#stripe-sdk-language-version-support-policy) and add a link to the README. - ⚠️ Drop support for Node versions < 16 - Node 16 support is deprecated and will be removed in the next scheduled major release (March 2026) - [#&#8203;2426](https://redirect.github.com/stripe/stripe-node/pull/2426) Add `StripeContext` object - Add the `StripeContext` class. It can be used anywhere the [context](https://docs.stripe.com/context) option is supplied and gets serialized to a string when making requests. - ⚠️ Change `EventNotification` (formerly known as `ThinEvent`)'s `context` property from `string` to `StripeContext` - ⚠️ We no longer remove the stripe-context header from /v1 requests and the stripe-account header from /v2 requests. The server may reject a request with both of these headers, so if you're sending both, remove any reference to stripeAccount (since the headers are identical, but context is preferred) - [#&#8203;2398](https://redirect.github.com/stripe/stripe-node/pull/2398) ⚠️ Build SDK w/ V2 OpenAPI spec - ⚠️ The delete methods for v2 APIs (the ones in the `StripeClient.v2` namespace) now return a `V2DeletedObject` which has the id of the object that has been deleted and a string representing the type of the object that has been deleted. - ⚠️ Change the types of nullable properties in objects returned by v2 APIs (the ones in the `StripeClient.v2` namespace) from a null union to optional (e.g. `prop: string | null` -> `prop?: string`). - [#&#8203;2420](https://redirect.github.com/stripe/stripe-node/pull/2420) Fixed file uploading in Bun runtimes - Fixed issue ([#&#8203;2416](https://redirect.github.com/stripe/stripe-node/issues/2416)) with file uploads in runtimes using `FetchHttpClient` (e.g. Bun). This bug affected Node SDK versions between 18.1.0 to 18.5.0. - [#&#8203;2405](https://redirect.github.com/stripe/stripe-node/pull/2405) support more npm tags - ⚠️ Starting with this release, we'll no longer be tagging releases with `beta` npm tag. Instead, we'll use `latest`, `public-preview`, or `private-preview` to more closely align with Stripe's [release phases](https://docs.stripe.com/release-phases) - [#&#8203;2402](https://redirect.github.com/stripe/stripe-node/pull/2402), [#&#8203;2413](https://redirect.github.com/stripe/stripe-node/pull/2413), [#&#8203;2430](https://redirect.github.com/stripe/stripe-node/pull/2430), [#&#8203;2428](https://redirect.github.com/stripe/stripe-node/pull/2428) Update generated code based on incoming API changes in the `2025-09-30.clover` API version. - ⚠️ Remove support for `balance_report` and `payout_reconciliation_report` on `AccountSession.components` and `AccountSessionCreateParams.components` - ⚠️ Remove support for values `saturday` and `sunday` from enums `Account.settings.payouts.schedule.weekly_payout_days`, `AccountCreateParams.settings.payouts.schedule.weekly_payout_days`, and `AccountUpdateParams.settings.payouts.schedule.weekly_payout_days` - Add support for new values `external_request` and `unsupported_business_type` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, `BankAccount.requirements.errors[].code`, `Capability.future_requirements.errors[].code`, `Capability.requirements.errors[].code`, `Person.future_requirements.errors[].code`, and `Person.requirements.errors[].code` - Remove support for `link` and `pay_by_bank` on `PaymentMethodUpdateParams` - ⚠️ Remove support for `coupon` on `Discount`, `PromotionCodeCreateParams`, and `PromotionCode`. Use `Discount.source.coupon`, `PromotionCodeCreateParams.promotion.coupon` and `PromotionCode.coupon` instead. - Change `Invoice.id` to be required. - Add support for new value `prevented` on enum `Dispute.status` - Add support for new resource `BalanceSettings` - Add support for `retrieve` and `update` methods on resource `BalanceSettings` - Add support for `mb_way_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - Add support for `source` on `Discount` - Add support for `trial_update_behavior` on `BillingPortal.Configuration.features.subscription_update`, `BillingPortal.ConfigurationCreateParams.features.subscription_update`, and `BillingPortal.ConfigurationUpdateParams.features.subscription_update` - Add support for `mb_way` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `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`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - Add support for `branding_settings` and `name_collection` on `Checkout.SessionCreateParams` and `Checkout.Session` - Add support for `excluded_payment_method_types` on `Checkout.SessionCreateParams`, `Checkout.Session`, `PaymentIntentConfirmParams`, and `PaymentIntentUpdateParams` - Add support for `unit_label` on `Checkout.SessionCreateParams.line_items[].price_data.product_data`, `InvoiceAddLinesParams.lines[].price_data.product_data`, `InvoiceLineItemUpdateParams.price_data.product_data`, `InvoiceUpdateLinesParams.lines[].price_data.product_data`, and `PaymentLinkCreateParams.line_items[].price_data.product_data` - Add support for `alma`, `billie`, and `satispay` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options` - Add support for `demo_pay` on `Checkout.SessionCreateParams.payment_method_options` - Add support for `capture_method` on `Checkout.Session.payment_method_options.affirm`, `Checkout.Session.payment_method_options.afterpay_clearpay`, `Checkout.Session.payment_method_options.amazon_pay`, `Checkout.Session.payment_method_options.card`, `Checkout.Session.payment_method_options.cashapp`, `Checkout.Session.payment_method_options.klarna`, `Checkout.Session.payment_method_options.link`, `Checkout.Session.payment_method_options.mobilepay`, `Checkout.Session.payment_method_options.revolut_pay`, `Checkout.SessionCreateParams.payment_method_options.affirm`, `Checkout.SessionCreateParams.payment_method_options.afterpay_clearpay`, `Checkout.SessionCreateParams.payment_method_options.amazon_pay`, `Checkout.SessionCreateParams.payment_method_options.card`, `Checkout.SessionCreateParams.payment_method_options.cashapp`, `Checkout.SessionCreateParams.payment_method_options.klarna`, `Checkout.SessionCreateParams.payment_method_options.link`, `Checkout.SessionCreateParams.payment_method_options.mobilepay`, and `Checkout.SessionCreateParams.payment_method_options.revolut_pay` - Add support for `flexible` on `Checkout.SessionCreateParams.subscription_data.billing_mode`, `InvoiceCreatePreviewParams.schedule_details.billing_mode`, `InvoiceCreatePreviewParams.subscription_details.billing_mode`, `Quote.subscription_data.billing_mode`, `QuoteCreateParams.subscription_data.billing_mode`, `Subscription.billing_mode`, `SubscriptionCreateParams.billing_mode`, `SubscriptionMigrateParams.billing_mode`, `SubscriptionSchedule.billing_mode`, and `SubscriptionScheduleCreateParams.billing_mode` - Add support for `business_name` and `individual_name` on `Checkout.Session.collected_information`, `Checkout.Session.customer_details`, `CustomerCreateParams`, `CustomerUpdateParams`, and `Customer` - Add support for new values `mb_way` on enums `ConfirmationTokenCreateParams.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`, and `SetupIntentUpdateParams.payment_method_data.type` - Add support for new values `mb_way` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type` - Add support for new values `mb_way` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` - Add support for `chargeback_loss_reason_code` on `Dispute.payment_method_details.klarna` - Add support for `net_amount` and `proration_details` on `InvoiceItem` - Remove support for `iterations` on `InvoiceCreatePreviewParams.schedule_details.phases[]`, `SubscriptionScheduleCreateParams.phases[]`, and `SubscriptionScheduleUpdateParams.phases[]` - Add support for `fraud_disputability_likelihood` and `risk_assessment` on `Issuing.AuthorizationCreateParams.testHelpers` - Add support for `second_line` on `Issuing.Card` - Add support for new values `mb_way` on enums `PaymentIntent.excluded_payment_method_types` and `PaymentIntentCreateParams.excluded_payment_method_types` - Add support for `fr_meal_voucher_conecs` on `PaymentMethodConfigurationCreateParams` and `PaymentMethodConfigurationUpdateParams` - Add support for `promotion` on `PromotionCodeCreateParams` and `PromotionCode` - Add support for new values `acknowledged` and `payment_never_settled` on enum `Review.closed_reason` - Add support for `provider` on `Tax.Settings.defaults` - Add support for `bbpos_wisepad3` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration` - Add support for `address_kana`, `address_kanji`, `display_name_kana`, `display_name_kanji`, and `phone` on `Terminal.LocationCreateParams`, `Terminal.LocationUpdateParams`, and `Terminal.Location` - Change `Terminal.LocationCreateParams.address` to be optional - Change `Terminal.LocationCreateParams.display_name` to be optional - Add support for new value `2025-09-30.clover` on enum `WebhookEndpointCreateParams.api_version` - Add support for error codes `financial_connections_account_pending_account_numbers` and `financial_connections_account_unavailable_account_numbers` on `Invoice.last_finalization_error`, `PaymentIntent.last_payment_error`, `SetupAttempt.setup_error`, `SetupIntent.last_setup_error`, and `StripeError` </details> --- ### Configuration 📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) (UTC), Automerge - At any time (no schedule defined). 🚦 **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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/better-auth/better-auth). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xMzEuOSIsInVwZGF0ZWRJblZlciI6IjQxLjE3My4xIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==--> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 12:35:43 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#5781