@stripe/stripe-js 9.0.0-rc.3 → 9.0.1
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 +7 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/pure.js +2 -2
- package/dist/pure.mjs +2 -2
- package/dist/stripe-js/elements/payment.d.mts +1 -0
- package/dist/stripe-js/elements/payment.d.ts +1 -0
- package/dist/stripe-js/elements/tax-id.d.mts +18 -0
- package/dist/stripe-js/elements/tax-id.d.ts +18 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -42,6 +42,7 @@ pinned versions are as follows:
|
|
|
42
42
|
| v6 | acacia |
|
|
43
43
|
| v7 | basil |
|
|
44
44
|
| v8 | clover |
|
|
45
|
+
| v9 | dahlia |
|
|
45
46
|
|
|
46
47
|
## Usage
|
|
47
48
|
|
|
@@ -124,7 +125,7 @@ one. When you call `loadStripe`, it will use the existing script tag.
|
|
|
124
125
|
|
|
125
126
|
```html
|
|
126
127
|
<!-- Somewhere in your site's <head> -->
|
|
127
|
-
<script src="https://js.stripe.com/
|
|
128
|
+
<script src="https://js.stripe.com/dahlia/stripe.js" async></script>
|
|
128
129
|
```
|
|
129
130
|
|
|
130
131
|
### Importing `loadStripe` without side effects
|
|
@@ -167,3 +168,8 @@ The `loadStripe.setLoadParameters` function is only available when importing
|
|
|
167
168
|
- [Stripe.js Docs](https://stripe.com/docs/stripe-js)
|
|
168
169
|
- [Stripe.js Reference](https://stripe.com/docs/js)
|
|
169
170
|
- [React Stripe.js Docs](https://stripe.com/docs/stripe-js/react)
|
|
171
|
+
|
|
172
|
+
## Contributing
|
|
173
|
+
|
|
174
|
+
If you would like to contribute to Stripe.js, please make sure to read our
|
|
175
|
+
[contributor guidelines](CONTRIBUTING.md).
|
package/dist/index.js
CHANGED
|
@@ -71,7 +71,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
|
|
|
71
71
|
|
|
72
72
|
stripe._registerWrapper({
|
|
73
73
|
name: 'stripe-js',
|
|
74
|
-
version: "9.0.
|
|
74
|
+
version: "9.0.1",
|
|
75
75
|
startTime: startTime
|
|
76
76
|
});
|
|
77
77
|
};
|
|
@@ -172,7 +172,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
|
|
|
172
172
|
var expectedVersion = RELEASE_TRAIN;
|
|
173
173
|
|
|
174
174
|
if (isTestKey && version !== expectedVersion) {
|
|
175
|
-
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.0.
|
|
175
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.0.1", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
var stripe = maybeStripe.apply(undefined, args);
|
package/dist/index.mjs
CHANGED
|
@@ -67,7 +67,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
|
|
|
67
67
|
|
|
68
68
|
stripe._registerWrapper({
|
|
69
69
|
name: 'stripe-js',
|
|
70
|
-
version: "9.0.
|
|
70
|
+
version: "9.0.1",
|
|
71
71
|
startTime: startTime
|
|
72
72
|
});
|
|
73
73
|
};
|
|
@@ -168,7 +168,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
|
|
|
168
168
|
var expectedVersion = RELEASE_TRAIN;
|
|
169
169
|
|
|
170
170
|
if (isTestKey && version !== expectedVersion) {
|
|
171
|
-
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.0.
|
|
171
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.0.1", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
var stripe = maybeStripe.apply(undefined, args);
|
package/dist/pure.js
CHANGED
|
@@ -71,7 +71,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
|
|
|
71
71
|
|
|
72
72
|
stripe._registerWrapper({
|
|
73
73
|
name: 'stripe-js',
|
|
74
|
-
version: "9.0.
|
|
74
|
+
version: "9.0.1",
|
|
75
75
|
startTime: startTime
|
|
76
76
|
});
|
|
77
77
|
};
|
|
@@ -172,7 +172,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
|
|
|
172
172
|
var expectedVersion = RELEASE_TRAIN;
|
|
173
173
|
|
|
174
174
|
if (isTestKey && version !== expectedVersion) {
|
|
175
|
-
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.0.
|
|
175
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.0.1", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
var stripe = maybeStripe.apply(undefined, args);
|
package/dist/pure.mjs
CHANGED
|
@@ -67,7 +67,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
|
|
|
67
67
|
|
|
68
68
|
stripe._registerWrapper({
|
|
69
69
|
name: 'stripe-js',
|
|
70
|
-
version: "9.0.
|
|
70
|
+
version: "9.0.1",
|
|
71
71
|
startTime: startTime
|
|
72
72
|
});
|
|
73
73
|
};
|
|
@@ -168,7 +168,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
|
|
|
168
168
|
var expectedVersion = RELEASE_TRAIN;
|
|
169
169
|
|
|
170
170
|
if (isTestKey && version !== expectedVersion) {
|
|
171
|
-
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.0.
|
|
171
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.0.1", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
var stripe = maybeStripe.apply(undefined, args);
|
|
@@ -338,6 +338,15 @@ export interface StripeTaxIdElementOptions {
|
|
|
338
338
|
};
|
|
339
339
|
};
|
|
340
340
|
|
|
341
|
+
/**
|
|
342
|
+
* Control verification behavior for the TaxIdElement.
|
|
343
|
+
*/
|
|
344
|
+
verification?: {
|
|
345
|
+
taxId?: {
|
|
346
|
+
mode?: 'if_supported' | 'never';
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
|
|
341
350
|
/**
|
|
342
351
|
* Default value for TaxIdElement fields
|
|
343
352
|
*/
|
|
@@ -378,4 +387,13 @@ export interface StripeTaxIdElementChangeEvent {
|
|
|
378
387
|
taxIdType: TaxIdType;
|
|
379
388
|
externalTaxIdType: ExternalTaxIdType;
|
|
380
389
|
};
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Verification status for the TaxIdElement, if verification is enabled.
|
|
393
|
+
*/
|
|
394
|
+
verification?: {
|
|
395
|
+
taxId?: {
|
|
396
|
+
status: 'pending' | 'verified' | 'unverified' | 'unavailable';
|
|
397
|
+
};
|
|
398
|
+
};
|
|
381
399
|
}
|
|
@@ -338,6 +338,15 @@ export interface StripeTaxIdElementOptions {
|
|
|
338
338
|
};
|
|
339
339
|
};
|
|
340
340
|
|
|
341
|
+
/**
|
|
342
|
+
* Control verification behavior for the TaxIdElement.
|
|
343
|
+
*/
|
|
344
|
+
verification?: {
|
|
345
|
+
taxId?: {
|
|
346
|
+
mode?: 'if_supported' | 'never';
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
|
|
341
350
|
/**
|
|
342
351
|
* Default value for TaxIdElement fields
|
|
343
352
|
*/
|
|
@@ -378,4 +387,13 @@ export interface StripeTaxIdElementChangeEvent {
|
|
|
378
387
|
taxIdType: TaxIdType;
|
|
379
388
|
externalTaxIdType: ExternalTaxIdType;
|
|
380
389
|
};
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Verification status for the TaxIdElement, if verification is enabled.
|
|
393
|
+
*/
|
|
394
|
+
verification?: {
|
|
395
|
+
taxId?: {
|
|
396
|
+
status: 'pending' | 'verified' | 'unverified' | 'unavailable';
|
|
397
|
+
};
|
|
398
|
+
};
|
|
381
399
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stripe/stripe-js",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.1",
|
|
4
4
|
"description": "Stripe.js loading utility",
|
|
5
5
|
"repository": "github:stripe/stripe-js",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"jsnext:main": "lib/index.mjs",
|
|
9
9
|
"types": "lib/index.d.ts",
|
|
10
10
|
"typings": "lib/index.d.ts",
|
|
11
|
-
"releaseCandidate":
|
|
11
|
+
"releaseCandidate": false,
|
|
12
12
|
"scripts": {
|
|
13
13
|
"test": "yarn lint && yarn test:unit && yarn test:package-types && yarn test:types && yarn typecheck",
|
|
14
14
|
"test:unit": "jest",
|