Skip to content

Releases: stripe/react-stripe-js

v5.3.0

27 Oct 18:42
dfbdf22

Choose a tag to compare

New features

  • Add Issuing disclosure React component (#633)

Fixes

  • Add onChange to Shipping and Billing Address Element (#637)

Changed

  • [EwCS]: Update storybook with loadActionsResult (#632)

v5.2.0

07 Oct 22:41
v5.2.0
ed15385

Choose a tag to compare

  • v5.1.0
  • Add Financial Account for Platforms disclosure React component (#630)

New features

Fixes

Changed

v5.0.0

01 Oct 00:26
e31c012

Choose a tag to compare

Stripe.js Clover changelog: https://docs.stripe.com/changelog?category=stripejs

Fixes

  • export StripeCheckoutValue from checkout entrypoint #625 (#625)

Changed

  • Remove Clover element types (#626)
  • [breaking] Update CheckoutProvider to use new shape (#615)
  • [EwCS] update storybook example to v4 (#622)

v4.0.2

09 Sep 22:40
eda0bb1

Choose a tag to compare

Changed

  • Add release candidate logic to publish script (#618)

v4.0.1

08 Sep 20:45
cd4b2d5

Choose a tag to compare

Fixes

  • Fix Shipping/BillingAddressElement Render (#616)

Changed

  • Bump sha.js from 2.4.11 to 2.4.12 (#610)
  • Bump cipher-base from 1.0.4 to 1.0.6 (#614)

v3.10.0

03 Sep 16:57
v3.10.0
b84e4dd

Choose a tag to compare

Fixes

  • Remove broken Travis badge (#612)

Changed

  • Add SPM events/types/tests (#613)

v4.0.0

02 Sep 20:20
v4.0.0
fc16f86

Choose a tag to compare

Changed

  • [breaking] split out custom checkout imports (#609)
  • Update useCheckout to return loading/error states (#606)

Upgrade guidance

Import changes

Checkout paths changed:
Note: this only applies to Elements with Checkout Sessions API integrations.

import {useCheckout, PaymentElement} from '@stripe/react-stripe-js';

to

import {useCheckout, PaymentElement} from '@stripe/react-stripe-js/checkout';

useCheckout changes

Previously:

  • CheckoutProvider renders children if initCheckout succeeded, and null otherwise.
  • useCheckout() returns the SDK if initCheckout succeeded, and throws an error otherwise.

Now (>= v4.0.0):

  • CheckoutProvider renders children unconditionally.
  • useCheckout() returns a disjoint union describing the asynchronous state. The new return value now looks like:
type useCheckout = () =>
  | {type: 'loading'}
  | {
      type: 'success';
      checkout: CheckoutValue;
    }
  | {type: 'error'; error: {message: string}};

v3.9.2

25 Aug 18:34
757fdcd

Choose a tag to compare

Changed

  • Fix JSDoc elements link (#608)

v3.9.1

18 Aug 19:20
8b06bcf

Choose a tag to compare

Fixes

  • Patch for global JSX namespace deprecation in React 19 (#607)

v3.9.0

01 Aug 18:54
faffe7d

Choose a tag to compare

New features

  • feat: load fonts when they change (#605)