PackageTrack

npm · #3862

@stripe/react-stripe-js

6.8.2stripe/react-stripe-js

React components for Stripe.js and Stripe Elements

Release timeline

104 releases since 2020
2020202120222023202420252026

Releases

  1. 2.1.116 Jun 2023
    Release notes

    Fixes

    • Wraps component destructor in a trycatch (#409)
    • Adds a missing import from the README demo. (#410)

    Changed

    • Update example to use Payment Element (#401)
    Open source →
  2. 2.1.022 Mar 2023
    Release notes

    <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. -->

    New features

    Fixes

    Changed

    • bump stripe-js javascript package (#389)
    Open source →
  3. 2.0.013 Mar 2023
    Release notes

    <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. -->

    Changed

    • Breaking: Rename PayButtonElement to ExpressCheckoutElement (#384)
    Open source →
  4. 1.16.521 Feb 2023
    Release notes

    <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. -->

    New features

    Fixes

    • Bump ua-parser-js from 0.7.28 to 0.7.33 (#378)

    Changed

    Open source →
  5. 1.16.418 Jan 2023
    Release notes

    Fixes

    • Switch back to a ref to track element creating, updating, and destroying (#376)
    Open source →
  6. 1.16.310 Jan 2023
    Release notes

    Fixes

    • Only call element.on when the merchant passes in a callback (#372)
    • Bump json5 from 1.0.1 to 1.0.2 (#370)
    Open source →
  7. 1.16.24 Jan 2023
    Release notes

    <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. -->

    Fixes

    • Revert "Only call element.on when the merchant passes in a callback (#360)" (#369)
    Open source →
  8. 1.16.18 Dec 2022
    Release notes

    <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. -->

    Fixes

    • Only call element.on when the merchant passes in a callback (#360)
    Open source →
  9. 1.16.02 Dec 2022
    Release notes

    <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. -->

    Fixes

    • add type definitions for focus and blur callback (#356)
    • Do not run the publishing release step silently (#345)

    Changed

    • Installs the latest version of @stripe/stripe-js (#357)
    • Bump minimatch from 3.0.4 to 3.1.2 (#355)
    • Bump decode-uri-component from 0.2.0 to 0.2.2 (#354)
    • Bump loader-utils from 1.4.1 to 1.4.2 (#348)
    • Remove AE beta comment (#350)
    Open source →
  10. 1.15.015 Nov 2022
    Release notes

    New features

    • Add component for payButton element (#344)

    Changed

    • Bump loader-utils from 1.4.0 to 1.4.1 (#342)
    Open source →
  11. 1.14.22 Nov 2022
    Release notes

    Changes

    • Update stripe-js version (#338)
    Open source →
  12. 1.14.127 Oct 2022
    Release notes

    <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. -->

    Fixes

    • Updated cart ready event to return event instead of element (#337)
    Open source →
  13. 1.14.026 Oct 2022
    Release notes

    <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. -->

    New features

    • Add useCartElement and useCartElementState hooks (#335)
    Open source →
  14. 1.13.013 Oct 2022
    Release notes

    <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. -->

    New features

    • Added cart component (#331)
    Open source →
  15. 1.12.026 Sept 2022
    Release notes

    <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. -->

    • revert manual version bump
    • v1.12.0
    • Add React bindings for paymentMethodMessaging Element (#323)

    New features

    Fixes

    Changed

    Open source →
  16. 1.11.022 Sept 2022
    Release notes

    <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. -->

    New features

    • Add AddressElement (#321)
    • Add onNetworksChange prop (#320)

    Changed

    • Bump stripejs version to 1.35.0 (#312)
    Open source →
  17. 1.10.028 Jul 2022
    Release notes

    <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. -->

    New features

    • add support for onLoaderStart callback (#309)
    Open source →
  18. 1.9.016 Jun 2022
    Release notes

    <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. -->

    New features

    • Add onLoadError prop (#301)

    Changed

    • update to latest stripe-js version (#298)
    Open source →
  19. 1.8.125 May 2022
    Release notes

    <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. -->

    Fixes

    • Prevent recreation of elements instance (#297)
    Open source →
  20. 1.8.016 May 2022
    Release notes

    <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. -->

    Fixes

    • Support React StrictMode (#292)
    Open source →
  21. 1.8.0-013 May 2022pre-release

    Nothing published for this version

  22. 1.7.218 Apr 2022
    Release notes

    <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. -->

    Fixes

    • fix: children prop typing on Elements component (#283)

    Changed

    • Update docs to use discord (#284)
    • Fix typo in issue template form (#282)
    • Add new bug report issue template (#279)
    Open source →
  23. 1.7.16 Apr 2022
    Release notes

    <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. -->

    Fixes

    • [Link Authentication Element] Add type support for options (#276)
    • Friendly spellcheck in comments (#264)

    Changed

    • Update README with note about React 18 compatibility (#274)
    • Bump minimist from 1.2.5 to 1.2.6 (#268)
    • Bump tar from 6.1.0 to 6.1.11 (#245)
    Open source →
  24. 1.7.014 Dec 2021
    Release notes

    New features

    • [Affirm] Add support for affirmMessage (#228)

    Fixes

    • Fix isEqual to work with special object. (#235)

    Changed

    Open source →
  25. 1.6.05 Oct 2021
    Release notes

    <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. -->

    New features

    • Add Link authentication and shipping address elements (#225)

    Changed

    • Migrate to GitHub Actions (#221)
    Open source →
  26. 1.5.023 Sept 2021
    Release notes

    <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. -->

    New features

    • Support updates to options props on the Elements provider (#220)
      • This can be used to easily change the locale of Elements.
    • [types] utilize types for Payment element (#219)

    Fixes

    • fix: example code is not valid type-safe code (#193)

    Changed

    • update to latest stripe-js version (#218)
    • Bump path-parse from 1.0.6 to 1.0.7 (#208)
    • Replaced IRC with Discord (#204)
    • Update migrating.md (#203)
    • Bump postcss from 7.0.35 to 7.0.36 (#197)
    • Upgrade Storybook to 6.x.x (#196)
    • Bump ws from 7.4.2 to 7.4.6 (#191)
    Open source →
  27. 1.4.118 May 2021
    Release notes

    Upgrade dependencies, minor changes

    <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. -->

    New features

    Fixes

    • Fix lint warnings (#183)
    • Add placeholders for payment Element (#184)
    • add registerAppInfo (#182)
    • Bump hosted-git-info from 2.8.8 to 2.8.9 (#181)
    • Bump lodash from 4.17.20 to 4.17.21 (#180)
    • Bump url-parse from 1.4.7 to 1.5.1 (#178)
    • Bump ua-parser-js from 0.7.23 to 0.7.28 (#177)
    • Bump ssri from 6.0.1 to 6.0.2 (#175)
    • add stale config. (#169)

    Changed

    Open source →
  28. 1.4.03 Mar 2021
    Release notes

    New features

    • Add support for P24 and EPS Bank account Elements (#148)
    Open source →
  29. 1.3.022 Feb 2021
    Release notes

    New features

    • Add support for afterpayClearpayMessage Element (#163)
    Open source →
  30. 1.2.21 Feb 2021
    Release notes

    Fixes

    • useLayoutEffect for synchronous cleanup (#156)
    Open source →
  31. 1.2.128 Jan 2021
    Release notes

    Fixes

    • Fix Element effect cleanup when using async stripe prop (#153)
    Open source →
  32. 1.2.015 Jan 2021
    Release notes

    New features

    • Add support for React 17 (#147)
    Open source →
  33. 1.1.21 Apr 2020
    Release notes

    Changes

    • Register package version with Stripe instance (#76)
    Open source →
  34. 1.1.131 Mar 2020
    Release notes

    Fixes

    • [types] Top level types are now correctly exported #64
    Open source →
  35. 1.1.018 Mar 2020
    Release notes

    New Features

    • Add escape event props (#71)
    Open source →
  36. 1.0.324 Feb 2020
    Release notes

    Fixes

    • Fixed an issue where build output was not correctly transpiled to ES5 #50
    Open source →
  37. 1.0.219 Feb 2020

    Nothing published for this version

  38. 1.0.119 Feb 2020
    Release notes

    Initial stable release. No changes from the last beta.

    Open source →
  39. 1.0.0-beta.713 Feb 2020pre-release
    Release notes

    New Features

    • Add FpxBankElement, and examples.
    • Add AuBankAccountElement.
      • The AU BECS Debit Payment Method is currently in beta, for more information please contact Stripe Support.
    • [types] Bump @stripe/stripe-js to 1.0.0-beta.9 to use the new Payment Methods.

    Fixes

    • Fixed the ES Module version of this package to only use the default export of react to allow integrations that don't accept named exports. (#40)
    Open source →
  40. 1.0.0-beta.612 Feb 2020pre-release
    Release notes

    Fixes

    Invalid import of prop-types causing an error when using the ES Module version of this library (#33) Various Stripe.js types from @stripe/stripe-js.

    Open source →
  41. 1.0.0-beta.56 Feb 2020pre-release
    Release notes

    Fixes

    • Fix types for TS projects not using esModuleInterop (#31)
    Open source →
  42. 1.0.0-beta.46 Feb 2020pre-release
    Release notes

    Features

    Open source →
  43. 1.0.0-beta.323 Jan 2020pre-release
    Release notes

    More examples and miscellaneous documentation updates.

    Fixes

    • Removes a warning about useLayoutEffect when using React Stripe.js with server side rendering.
    Open source →
  44. 1.0.0-beta.221 Jan 2020pre-release
    Release notes

    Reversion to v1.

    Adds support for passing Promise<StripeObject | null> to the stripe prop of Elements. This removes the need for users to create and manage their own state when asynchronously loading Stripe.js and can be used with the loadStripe function from the Stripe.js module.

    import {loadStripe} from '@stripe/stripe-js';
    
    const stripePromise = loadStripe('pk_test_6pRNASCoBOKtIshFeQd4XMUh');
    
    const App = () => (
      <Elements stripe={stripePromise}>
        {/* ... */}
      </Elements>
    );
    
    Open source →