Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deps): update dependency @stripe/stripe-js to v4 (#1040)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@stripe/stripe-js](https://stripe.com/docs/js) ([source](https://togithub.com/stripe/stripe-js)) | [`1.54.2` -> `4.1.0`](https://renovatebot.com/diffs/npm/@stripe%2fstripe-js/1.54.2/4.1.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@stripe%2fstripe-js/4.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@stripe%2fstripe-js/4.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@stripe%2fstripe-js/1.54.2/4.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@stripe%2fstripe-js/1.54.2/4.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>stripe/stripe-js (@​stripe/stripe-js)</summary> ### [`v4.1.0`](https://togithub.com/stripe/stripe-js/releases/tag/v4.1.0) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v4.0.0...v4.1.0) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. --> ##### New features - Update types for Saved Payment Methods ([#​625](https://togithub.com/stripe/stripe-js/issues/625)) ##### Fixes - Bump ws from 5.2.3 to 5.2.4 in /examples/parcel ([#​624](https://togithub.com/stripe/stripe-js/issues/624)) ### [`v4.0.0`](https://togithub.com/stripe/stripe-js/releases/tag/v4.0.0) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v3.5.0...v4.0.0) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. --> ##### New features - Extend ButtonThemeOption type ([#​620](https://togithub.com/stripe/stripe-js/issues/620)) This change extends ButtonThemeOption to include themes for PayPal for Express Checkout Element ##### Changed - Change ExpressCheckout Element wallets type to paymentMethods ([#​622](https://togithub.com/stripe/stripe-js/issues/622)) This change deprecates `wallets` in `StripeExpressCheckoutElementOptions` and adds `paymentMethods` instead. `paymentMethods` extends the original wallets with `link`, `paypal`, and `amazonPay`. - `ExpressCheckoutWalletOption` is removed as a type. Its usage should be replaced with `ExpressCheckoutPaymentMethodOptionWithAlways`. ### [`v3.5.0`](https://togithub.com/stripe/stripe-js/releases/tag/v3.5.0) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v3.4.1...v3.5.0) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. --> ##### New features - Add paymentMethodOrder to StripeCustomCheckoutExpressCheckoutElementsOptions ([#​613](https://togithub.com/stripe/stripe-js/issues/613)) - Type support for MobilePay ([#​610](https://togithub.com/stripe/stripe-js/issues/610)) ##### Fixes - Fix Billing Details Types ([#​611](https://togithub.com/stripe/stripe-js/issues/611)) ### [`v3.4.1`](https://togithub.com/stripe/stripe-js/releases/tag/v3.4.1) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v3.4.0...v3.4.1) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. --> ##### Fixes - Update stripe.d.ts for updating the StripeError interface ([#​588](https://togithub.com/stripe/stripe-js/issues/588)) ### [`v3.4.0`](https://togithub.com/stripe/stripe-js/releases/tag/v3.4.0) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v3.3.0...v3.4.0) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. --> ##### New features - add dedicated setupintent types; add confirmation_token ([#​606](https://togithub.com/stripe/stripe-js/issues/606)) ##### Fixes - Build before running tests ([#​598](https://togithub.com/stripe/stripe-js/issues/598)) - Add arethetypeswrong to CI/publish scripts ([#​597](https://togithub.com/stripe/stripe-js/issues/597)) ### [`v3.3.0`](https://togithub.com/stripe/stripe-js/compare/v3.2.0...v3.3.0) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v3.2.0...v3.3.0) ### [`v3.2.0`](https://togithub.com/stripe/stripe-js/releases/tag/v3.2.0): v.3.2.0 [Compare Source](https://togithub.com/stripe/stripe-js/compare/v3.1.0...v3.2.0) ##### New features - Add allow_redisplay parameter to ConfirmationTokenCreateParams and ConfirmPaymentData ([#​584](https://togithub.com/stripe/stripe-js/issues/584)) - onBehalfOf should be updateable ([#​585](https://togithub.com/stripe/stripe-js/issues/585)) ##### Changed - Bump express from 4.17.1 to 4.19.2 in /examples/rollup ([#​582](https://togithub.com/stripe/stripe-js/issues/582)) ### [`v3.1.0`](https://togithub.com/stripe/stripe-js/releases/tag/v3.1.0) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v3.0.10...v3.1.0) ##### New features - Add types for Confirmation Token GA ([#​556](https://togithub.com/stripe/stripe-js/issues/556)) ##### Fixes - Improved type mismatch fix ([#​577](https://togithub.com/stripe/stripe-js/issues/577)) ### [`v3.0.10`](https://togithub.com/stripe/stripe-js/releases/tag/v3.0.10) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v3.0.9...v3.0.10) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. --> ##### Fixes - Revert "Fix mismatched types between entrypoint and pure modules ([#​565](https://togithub.com/stripe/stripe-js/issues/565))" ([#​576](https://togithub.com/stripe/stripe-js/issues/576)) ### [`v3.0.9`](https://togithub.com/stripe/stripe-js/releases/tag/v3.0.9) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v3.0.8...v3.0.9) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. --> ##### Fixes - Fix mismatched types between entrypoint and pure modules ([#​565](https://togithub.com/stripe/stripe-js/issues/565)) ### [`v3.0.8`](https://togithub.com/stripe/stripe-js/releases/tag/v3.0.8) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v3.0.7...v3.0.8) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. --> ##### New features ##### Fixes - Add allow_redisplay to Typescript definitions ([#​572](https://togithub.com/stripe/stripe-js/issues/572)) - add fetchClientSecret param to embedded Checkout options type ([#​569](https://togithub.com/stripe/stripe-js/issues/569)) ##### Changed ### [`v3.0.7`](https://togithub.com/stripe/stripe-js/releases/tag/v3.0.7) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v3.0.6...v3.0.7) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. --> ##### New features ##### Fixes - Update Custom Checkout types ([#​567](https://togithub.com/stripe/stripe-js/issues/567)) ##### Changed ### [`v3.0.6`](https://togithub.com/stripe/stripe-js/releases/tag/v3.0.6) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v3.0.5...v3.0.6) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. --> ##### New features ##### Fixes - Fix ConfirmCashappSetupOptions typing ([#​561](https://togithub.com/stripe/stripe-js/issues/561)) ##### Changed - Bump ip from 1.1.5 to 1.1.9 in /examples/webpack ([#​557](https://togithub.com/stripe/stripe-js/issues/557)) ### [`v3.0.5`](https://togithub.com/stripe/stripe-js/releases/tag/v3.0.5) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v3.0.4...v3.0.5) ##### Fixes - Remove window declarations from pure types ([#​560](https://togithub.com/stripe/stripe-js/issues/560)) ### [`v3.0.4`](https://togithub.com/stripe/stripe-js/releases/tag/v3.0.4) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v3.0.3...v3.0.4) This release removes conditional exports added in the 3.0.x release series. Support for the `moduleResolution=node` strategy in TypeScript is restored. ##### Fixes - Remove conditional exports ([#​555](https://togithub.com/stripe/stripe-js/issues/555)) - Add pure dir to prettierignore ([#​558](https://togithub.com/stripe/stripe-js/issues/558)) ### [`v3.0.3`](https://togithub.com/stripe/stripe-js/releases/tag/v3.0.3) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v3.0.2...v3.0.3) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. --> ##### Fixes - Fix types for node16/bundler module resolution strategies ([#​553](https://togithub.com/stripe/stripe-js/issues/553)) - revert mts ([#​552](https://togithub.com/stripe/stripe-js/issues/552)) ##### Changed v3.0.3 provides a fix for some of the issues in previous v3.0.x releases. ### [`v3.0.2`](https://togithub.com/stripe/stripe-js/releases/tag/v3.0.2) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v3.0.1...v3.0.2) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. -->⚠️ We are aware of an issue impacting builds for some TypeScript users in our package releases **v3.0.0**, **v3.0.1**, **v3.0.2** and recommend users to upgrade to our latest package release [**v3.0.3**](https://togithub.com/stripe/stripe-js/releases/tag/v3.0.3) which contains a fix.⚠️ ##### Fixes - Fix TypeScript types for some builds ([#​551](https://togithub.com/stripe/stripe-js/issues/551)) ##### Changed An additional fix for ESM change from v3.0.0 ### [`v3.0.1`](https://togithub.com/stripe/stripe-js/releases/tag/v3.0.1) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v3.0.0...v3.0.1) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. -->⚠️ We are aware of an issue impacting builds for some TypeScript users in our package releases **v3.0.0**, **v3.0.1**, **v3.0.2** and recommend users to upgrade to our latest package release [**v3.0.3**](https://togithub.com/stripe/stripe-js/releases/tag/v3.0.3) which contains a fix.⚠️ ##### Fixes - Type fixes before next release ([#​550](https://togithub.com/stripe/stripe-js/issues/550)) - Fix types for exports ([#​542](https://togithub.com/stripe/stripe-js/issues/542), [#​543](https://togithub.com/stripe/stripe-js/issues/543), [#​545](https://togithub.com/stripe/stripe-js/issues/545)) ([#​549](https://togithub.com/stripe/stripe-js/issues/549)) ##### Changed New release provides fix for v3.0.0 related issues ### [`v3.0.0`](https://togithub.com/stripe/stripe-js/releases/tag/v3.0.0) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v2.4.0...v3.0.0) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. -->⚠️ We are aware of an issue impacting builds for some TypeScript users in our package releases **v3.0.0**, **v3.0.1**, **v3.0.2** and recommend users to upgrade to our latest package release [**v3.0.3**](https://togithub.com/stripe/stripe-js/releases/tag/v3.0.3) which contains a fix.⚠️ ##### Fixes - Fix ES module imports ([#​541](https://togithub.com/stripe/stripe-js/issues/541)) ##### Changed - Bump follow-redirects from 1.14.9 to 1.15.4 in /examples/webpack ([#​536](https://togithub.com/stripe/stripe-js/issues/536)) - v2.4.0 Note: This release fixes ES module imports with this pull request \[https://github.com/stripe/stripe-js/pull/541](https://togithub.com/stripe/stripe-js/pull/541)1]. Please update imports accordingly when updating to this new major release. ### [`v2.4.0`](https://togithub.com/stripe/stripe-js/releases/tag/v2.4.0) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v2.3.0...v2.4.0) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. --> ##### New features - Add `preferredNetwork` option ([#​537](https://togithub.com/stripe/stripe-js/issues/537)) ##### Fixes ##### Changed - v2.3.0 ### [`v2.3.0`](https://togithub.com/stripe/stripe-js/releases/tag/v2.3.0) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v2.2.2...v2.3.0) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. --> ##### Changed - Add ExternalPaymentMethod option to Elements.create() ([#​533](https://togithub.com/stripe/stripe-js/issues/533)) ##### Fixes - Users reports stripePromise is only instantiated once and cannot be re-instantiated on reload ([#​531](https://togithub.com/stripe/stripe-js/issues/531)) ### [`v2.2.2`](https://togithub.com/stripe/stripe-js/releases/tag/v2.2.2) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v2.2.1...v2.2.2) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. --> - Update types for Apple Pay JS Recurring, Deferred and Automatic Reload payment requests ([#​524](https://togithub.com/stripe/stripe-js/issues/524)) - v2.2.1 ##### New features ##### Fixes ##### Changed ### [`v2.2.1`](https://togithub.com/stripe/stripe-js/releases/tag/v2.2.1) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v2.2.0...v2.2.1) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. --> ##### Changed - Remove payment_method_creation from types ([#​530](https://togithub.com/stripe/stripe-js/issues/530)) ##### Fixes - User reports network failure to load Stripe.js fails again after network is restored ([#​518](https://togithub.com/stripe/stripe-js/issues/518)) ### [`v2.2.0`](https://togithub.com/stripe/stripe-js/releases/tag/v2.2.0) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v2.1.11...v2.2.0) ##### New features - Update Appearance API variable name types ([#​517](https://togithub.com/stripe/stripe-js/issues/517)) ##### Changed - Bump [@​babel/traverse](https://togithub.com/babel/traverse) from 7.10.5 to 7.23.2 in /examples/rollup ([#​508](https://togithub.com/stripe/stripe-js/issues/508)) - Bump [@​babel/traverse](https://togithub.com/babel/traverse) from 7.10.5 to 7.23.2 in /examples/parcel ([#​509](https://togithub.com/stripe/stripe-js/issues/509)) - Bump [@​babel/traverse](https://togithub.com/babel/traverse) from 7.10.5 to 7.23.2 ([#​510](https://togithub.com/stripe/stripe-js/issues/510)) - Bump [@​babel/traverse](https://togithub.com/babel/traverse) from 7.10.5 to 7.23.2 in /examples/webpack ([#​511](https://togithub.com/stripe/stripe-js/issues/511)) - Bump browserify-sign from 4.2.0 to 4.2.2 in /examples/parcel ([#​521](https://togithub.com/stripe/stripe-js/issues/521)) - Bump browserify-sign from 4.2.0 to 4.2.2 in /examples/webpack ([#​522](https://togithub.com/stripe/stripe-js/issues/522)) ### [`v2.1.11`](https://togithub.com/stripe/stripe-js/releases/tag/v2.1.11) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v2.1.10...v2.1.11) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. --> ##### New features ##### Fixes ##### Changed - Add string as valid deliveryEstimate value for ECE ([#​520](https://togithub.com/stripe/stripe-js/issues/520)) - update publish script to check for github token ([#​519](https://togithub.com/stripe/stripe-js/issues/519)) - v2.1.10 ### [`v2.1.10`](https://togithub.com/stripe/stripe-js/releases/tag/v2.1.10) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v2.1.9...v2.1.10) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. --> ##### Changed - Update release script to verify against TypeScript 4/5 releases for stripe-js ([#​515](https://togithub.com/stripe/stripe-js/issues/515)) - Allow pass null to updateShipping|BillingAddress ([#​513](https://togithub.com/stripe/stripe-js/issues/513)) ### [`v2.1.9`](https://togithub.com/stripe/stripe-js/releases/tag/v2.1.9) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v2.1.8...v2.1.9) ##### Changed - Remove requires beta access for initEmbeddedCheckout ([#​512](https://togithub.com/stripe/stripe-js/issues/512)) ### [`v2.1.8`](https://togithub.com/stripe/stripe-js/releases/tag/v2.1.8) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v2.1.7...v2.1.8) ##### Changed - chore: add repository information to package.json ([#​494](https://togithub.com/stripe/stripe-js/issues/494)) ### [`v2.1.7`](https://togithub.com/stripe/stripe-js/releases/tag/v2.1.7) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v2.1.6...v2.1.7) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. --> ##### Fixes - Add paymentMethodOptions type to the Elements group ([#​504](https://togithub.com/stripe/stripe-js/issues/504)) ### [`v2.1.6`](https://togithub.com/stripe/stripe-js/releases/tag/v2.1.6) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v2.1.5...v2.1.6) ##### Fixes - \[Types] Add optional payment_method in confirmPayment param type definition ([#​501](https://togithub.com/stripe/stripe-js/issues/501)) ### [`v2.1.5`](https://togithub.com/stripe/stripe-js/releases/tag/v2.1.5) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v2.1.4...v2.1.5) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. --> ##### New features ##### Fixes ##### Changed - Update Custom Checkout types ([#​500](https://togithub.com/stripe/stripe-js/issues/500)) ### [`v2.1.4`](https://togithub.com/stripe/stripe-js/releases/tag/v2.1.4) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v2.1.3...v2.1.4) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. --> ##### New features ##### Fixes ##### Changed - Update types for Payment Method Configuration usage ([#​461](https://togithub.com/stripe/stripe-js/issues/461)) ### [`v2.1.3`](https://togithub.com/stripe/stripe-js/releases/tag/v2.1.3) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v2.1.2...v2.1.3) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. --> ##### New features ##### Fixes ##### Changed - Update Types of CustomCheckout async actions ([#​498](https://togithub.com/stripe/stripe-js/issues/498)) ### [`v2.1.2`](https://togithub.com/stripe/stripe-js/releases/tag/v2.1.2) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v2.1.1...v2.1.2) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. --> ##### New features ##### Fixes ##### Changed - Add Embedded Checkout types ([#​495](https://togithub.com/stripe/stripe-js/issues/495)) ### [`v2.1.1`](https://togithub.com/stripe/stripe-js/releases/tag/v2.1.1) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v2.1.0...v2.1.1) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. --> ##### New features ##### Fixes - Add Custom Checkout Types ([#​489](https://togithub.com/stripe/stripe-js/issues/489)) - Remove mentions of ECE being in beta ([#​485](https://togithub.com/stripe/stripe-js/issues/485)) ##### Changed ### [`v2.1.0`](https://togithub.com/stripe/stripe-js/releases/tag/v2.1.0) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v2.0.0...v2.1.0) <!-- Please group the following commits into one of the sections below. --> <!-- Remove empty sections when done. --> ##### New features ##### Fixes ##### Changed - Add typedef for onBehalfOf ([#​480](https://togithub.com/stripe/stripe-js/issues/480) ) ### [`v2.0.0`](https://togithub.com/stripe/stripe-js/releases/tag/v2.0.0) [Compare Source](https://togithub.com/stripe/stripe-js/compare/v1.54.2...v2.0.0) ##### Changed - remove unsupported theme ‘none’ ([#​479](https://togithub.com/stripe/stripe-js/issues/479)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/kula-app/OnLaunch). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MTMuMiIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
- Loading branch information