@stripe/stripe-js 1.54.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,6 +8,12 @@ you must load Stripe.js directly from `https://js.stripe.com`. You cannot
8
8
  include it in a bundle or host it yourself. This package wraps the global
9
9
  `Stripe` function provided by the Stripe.js script as an ES module.
10
10
 
11
+ Calling `loadStripe` always loads the latest version of Stripe.js, regardless of
12
+ which version of `@stripe/stripe-js` you use. Updates for this package only
13
+ impact tooling around the `loadStripe` helper itself and the TypeScript type
14
+ definitions provided for Stripe.js. Updates do not affect runtime availability
15
+ of features of Stripe.js.
16
+
11
17
  [![npm version](https://img.shields.io/npm/v/@stripe/stripe-js.svg?style=flat-square)](https://www.npmjs.com/package/@stripe/stripe-js)
12
18
 
13
19
  ## Installation
package/dist/pure.esm.js CHANGED
@@ -54,7 +54,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
54
54
 
55
55
  stripe._registerWrapper({
56
56
  name: 'stripe-js',
57
- version: "1.54.1",
57
+ version: "2.0.0",
58
58
  startTime: startTime
59
59
  });
60
60
  };
package/dist/pure.js CHANGED
@@ -58,7 +58,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
58
58
 
59
59
  stripe._registerWrapper({
60
60
  name: 'stripe-js',
61
- version: "1.54.1",
61
+ version: "2.0.0",
62
62
  startTime: startTime
63
63
  });
64
64
  };
@@ -38,7 +38,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
38
38
 
39
39
  stripe._registerWrapper({
40
40
  name: 'stripe-js',
41
- version: "1.54.1",
41
+ version: "2.0.0",
42
42
  startTime: startTime
43
43
  });
44
44
  };
package/dist/stripe.js CHANGED
@@ -42,7 +42,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
42
42
 
43
43
  stripe._registerWrapper({
44
44
  name: 'stripe-js',
45
- version: "1.54.1",
45
+ version: "2.0.0",
46
46
  startTime: startTime
47
47
  });
48
48
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/stripe-js",
3
- "version": "1.54.1",
3
+ "version": "2.0.0",
4
4
  "description": "Stripe.js loading utility",
5
5
  "main": "dist/stripe.js",
6
6
  "module": "dist/stripe.esm.js",
@@ -167,12 +167,16 @@ export interface FieldsOption {
167
167
  export type TermOption = 'auto' | 'always' | 'never';
168
168
 
169
169
  export interface TermsOption {
170
+ applePay?: TermOption;
171
+ auBecsDebit?: TermOption;
170
172
  bancontact?: TermOption;
171
173
  card?: TermOption;
174
+ cashapp?: TermOption;
175
+ googlePay?: TermOption;
172
176
  ideal?: TermOption;
177
+ paypal?: TermOption;
173
178
  sepaDebit?: TermOption;
174
179
  sofort?: TermOption;
175
- auBecsDebit?: TermOption;
176
180
  usBankAccount?: TermOption;
177
181
  }
178
182
 
@@ -890,7 +890,7 @@ export interface CustomFontSource {
890
890
  export interface Appearance {
891
891
  disableAnimations?: boolean;
892
892
 
893
- theme?: 'stripe' | 'night' | 'flat' | 'none';
893
+ theme?: 'stripe' | 'night' | 'flat';
894
894
 
895
895
  variables?: {
896
896
  // General font styles