unstale

npm / @stripe/react-stripe-js

@stripe/react-stripe-js

What changed in @stripe/react-stripe-js 2 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

9 breaking1 deprecations19 new APIs and options1 performance4 behavior and defaults3 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@stripe/react-stripe-js 75 changes

Breaking changes 1

New APIs and options 2

Behavior and default changes 1

  • Upgraded to React 19, which may affect the React version used with this package.

    7.0.0release notes

Fixes and other changes 1

  • Fixes EmbeddedCheckoutProvider not registering react-stripe-js with Stripe.js.

    7.0.1release notes

@stripe/react-stripe-js 617 changes

Breaking changes 2

  • The minimum supported peer version is now 9.10.0.

    6.9.0release notes

  • Renames the embedded checkout page API to createEmbeddedCheckoutPage.

    6.0.0release notes

Deprecations 1

  • Deprecated in favor of useCheckoutElements and useCheckoutForm; it continues working under both providers for backward compatibility and is planned for removal in v7.0.0.

    6.3.0release notes

New APIs and options 10

  • Adds the TreasuryDisclosure component for application developers to use.

    6.12.0release notes

  • Adds React wrappers for the Link Signup Element.

    6.10.0release notes

  • Adds the Terms Element to @stripe/react-stripe-js.

    6.8.0release notes

  • CSE was added to the base types in react-stripe-js.

    6.6.0release notes

  • The Checkout ExpressCheckoutElement now exposes an onCancel prop.

    6.5.0release notes

  • Adds availablepaymentmethodschange functionality.

    6.4.0release notes

  • Added a hook to use inside CheckoutElementsProvider.

    6.3.0release notes

  • Added a hook to use inside CheckoutFormProvider.

    6.3.0release notes

  • Adds the contactDetails element for developers to use.

    6.2.0release notes

  • Adds React components for Stripe Issuing Elements.

    6.1.0release notes

Performance 1

  • Checkout hook results are memoized, which can help avoid unnecessary updates when their references are used by consumers.

    6.11.0release notes

Behavior and default changes 1

  • The wrapper now returns the event handler result.

    6.5.0release notes

Fixes and other changes 2

  • Checkout provider initialization failures are handled.

    6.11.0release notes

  • Both new hooks throw a clear runtime error when called under the wrong provider.

    6.3.0release notes

@stripe/react-stripe-js 510 changes

Breaking changes 2

  • Updates CheckoutProvider to use a new shape, which may require changes to existing usage.

    5.0.0release notes

  • Removes Clover element types.

    5.0.0release notes

New APIs and options 6

  • Adds full props and options support for PaymentFormElement.

    5.5.0release notes

  • Exports disclosure components with typing.

    5.4.0release notes

  • Adds the PaymentForm Element.

    5.4.0release notes

  • Adds an Issuing disclosure React component.

    5.3.0release notes

  • Adds onChange to the Shipping and Billing Address Elements.

    5.3.0release notes

  • Exports StripeCheckoutValue from the checkout entrypoint.

    5.0.0release notes

Behavior and default changes 2

  • Publishing now fails fast when hub GitHub authentication is invalid, so maintainers discover the authentication problem sooner.

    5.6.1release notes

  • Removes the beta comment from the CurrencySelector element.

    5.4.0release notes

@stripe/react-stripe-js 43 changes

Breaking changes 2

  • CheckoutProvider now renders children unconditionally, including while checkout initialization is pending or has failed.

    4.0.0release notes

  • useCheckout() now returns a disjoint union for loading, success, and error states instead of returning the SDK or throwing an error.

    4.0.0release notes

New APIs and options 1

  • Checkout Sessions API integrations should import useCheckout and PaymentElement from this subpath instead of the package root.

    4.0.0release notes

@stripe/react-stripe-js 31 changes

Breaking changes 1

  • CustomCheckoutProvider was renamed to CheckoutProvider; update code using the old name.

    3.0.0release notes

@stripe/react-stripe-js 21 changes

Breaking changes 1

  • Renames PayButtonElement to ExpressCheckoutElement; update code using the old name.

    2.0.0release notes