Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: stripe/react-stripe-js

v4.0.2

09 Sep 22:40
eda0bb1
Compare
Choose a tag to compare

Changed

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

v4.0.1

08 Sep 20:45
cd4b2d5
Compare
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
Compare
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
Compare
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
Compare
Choose a tag to compare

Changed

  • Fix JSDoc elements link (#608)

v3.9.1

18 Aug 19:20
8b06bcf
Compare
Choose a tag to compare

Fixes

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

v3.9.0

01 Aug 18:54
faffe7d
Compare
Choose a tag to compare

New features

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

v3.8.1

28 Jul 19:56
f6ee672
Compare
Choose a tag to compare

Changed

  • Update docs link Elements.tsx (#602)

v3.8.0

22 Jul 21:40
381f2ff
Compare
Choose a tag to compare

New features

  • Add Tax ID Element Types (#604)

Fixes

  • Bump pbkdf2 from 3.1.1 to 3.1.3 (#599)
  • Migrate to stale action from stable bot (#600)
  • adds check for prerequisites (#590)

Changed

v3.7.0

02 May 16:14
84bab2a
Compare
Choose a tag to compare

New features

  • Export CheckoutContextValue type for useCheckout hook (#588)

Fixes

  • Fix clean publish bug (#583)
  • Fix issue with ignored appearance changes. (#589)

Changed