yarn stripe 21.0.0
v21.0.0

latest releases: 21.1.0-alpha.1, 21.1.0-beta.1
6 hours ago

This release changes the pinned API version to 2026-03-25.dahlia and contains breaking changes (prefixed with ⚠️ below). There's also a detailed migration guide to simplify your upgrade process.

Please review details for the breaking changes and alternatives in the Stripe API changelog before upgrading.

Note: we're releasing another major version very soon that overhauls and improves the package's structure and typescript types. That will also use 2026-03-25.dahlia as an API version and will mostly be a drop-in replacement.

  • ⚠️ Breaking change: #2617 Add decimal_string support with vendored Decimal type
    • All decimal_string fields changed type from string to Stripe.Decimal in both request params and response objects. Code that reads or writes these fields as string will need to use Stripe.Decimal instead (construct via Decimal.from("1.23"), serialize via .toString()). Affected fields across v1 and v2 APIs:
      • Checkout.Session: currency_conversion.fx_rate
      • Climate.Order: metric_tons; Climate.Product: metric_tons_available
      • CreditNoteLineItem: unit_amount_decimal
      • InvoiceItem: quantity_decimal, unit_amount_decimal
      • InvoiceLineItem: quantity_decimal, unit_amount_decimal
      • Issuing.Authorization / Issuing.Transaction (and TestHelpers): quantity_decimal, unit_cost_decimal, gross_amount_decimal, local_amount_decimal, national_amount_decimal
      • Plan: amount_decimal, flat_amount_decimal, unit_amount_decimal
      • Price: unit_amount_decimal, flat_amount_decimal (including currency_options and tiers)
      • V2.Core.Account / V2.Core.AccountPerson: percent_ownership
      • Request params on Invoice, Product, Quote, Subscription, SubscriptionItem, SubscriptionSchedule, PaymentLink: unit_amount_decimal, flat_amount_decimal, quantity_decimal (where applicable)
  • ⚠️ Breaking change: #2618#2616 Throw an error when using the wrong webhook parsing method
  • ⚠️ Breaking change: #2604 Add new OAuth Error classes
  • ⚠️ Breaking change: #2609 Drop support for Node 16
  • #2612 add manual amount type
  • #2600 Add runtime support for V2 int64 string-encoded fields

See the changelog for more details.

Don't miss a new stripe release

NewReleases is sending notifications on new releases.