Packages

stripe

23.2.0 · 19 Nov 2026MIT36.1M / weekRepositorynpmAtom feed

Your version

21.0.0

major26 Mar 2026Where it was published

21.0.1 is the newest release of 21.x.

In short

6 breaking2 new

  • Breaking

    This release changes the pinned API version to 2026-03-25.dahlia and contains breaking changes (prefixed with ⚠️ below).

  • Breaking

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

  • Breaking

    ⚠️ Breaking change: #2617 Add decimal_string support with vendored Decimal type

  • Breaking

    ⚠️ Breaking change: #2618#2616 Throw an error when using the wrong webhook parsing method

  • Breaking

    ⚠️ Breaking change: #2604 Add new OAuth Error classes

  • Breaking

    ⚠️ Breaking change: #2609 Drop support for Node 16

Release note

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

    ⚠️ 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

    ⚠️ Breaking change: #2618#2616 Throw an error when using the wrong webhook parsing method

  • Breaking

    ⚠️ Breaking change: #2604 Add new OAuth Error classes

  • Breaking

    ⚠️ Breaking change: #2609 Drop support for Node 16

  • Add manual amount type

  • Add runtime support for V2 int64 string-encoded fields

See the changelog for more details.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.