stripe 12.0.0 → 12.1.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/CHANGELOG.md +25 -20
- package/VERSION +1 -1
- package/cjs/stripe.core.js +1 -1
- package/esm/stripe.core.js +1 -1
- package/package.json +2 -2
- package/types/Charges.d.ts +1 -0
- package/types/PaymentMethods.d.ts +1 -0
- package/types/SetupAttempts.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,37 +1,42 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 12.1.0 - 2023-04-13
|
|
4
|
+
* [#1754](https://github.com/stripe/stripe-node/pull/1754) Update generated code
|
|
5
|
+
* Add support for new value `REVOIE23` on enums `Charge.payment_method_details.ideal.bic`, `PaymentMethod.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic`
|
|
6
|
+
* [#1749](https://github.com/stripe/stripe-node/pull/1749) Type extend and ResourceNamespace better
|
|
7
|
+
|
|
3
8
|
## 12.0.0 - 2023-04-06
|
|
4
9
|
* [#1743](https://github.com/stripe/stripe-node/pull/1743) Remove `Stripe.default` and `Stripe.Stripe`
|
|
5
10
|
This was added to maintain backwards compatibility during the transition of stripe-node to a dual ES module / CommonJS package, and should not be functionally necessary.
|
|
6
11
|
* [#1742](https://github.com/stripe/stripe-node/pull/1743) Pin latest API version as the default
|
|
7
12
|
**⚠️ ACTION REQUIRED: the breaking change in this release likely affects you ⚠️**
|
|
8
|
-
|
|
9
|
-
In this release, Stripe API Version `2022-11-15` (the latest at time of release) will be sent by default on all requests.
|
|
13
|
+
|
|
14
|
+
In this release, Stripe API Version `2022-11-15` (the latest at time of release) will be sent by default on all requests.
|
|
10
15
|
The previous default was to use your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version).
|
|
11
|
-
|
|
16
|
+
|
|
12
17
|
To successfully upgrade to stripe-node v12, you must either
|
|
13
|
-
|
|
18
|
+
|
|
14
19
|
1. **(Recommended) Upgrade your integration to be compatible with API Version `2022-11-15`.**
|
|
15
|
-
|
|
20
|
+
|
|
16
21
|
Please read the API Changelog carefully for each API Version from `2022-11-15` back to your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version). Determine if you are using any of the APIs that have changed in a breaking way, and adjust your integration accordingly. Carefully test your changes with Stripe [Test Mode](https://stripe.com/docs/keys#test-live-modes) before deploying them to production.
|
|
17
|
-
|
|
22
|
+
|
|
18
23
|
You can read the [v12 migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v12) for more detailed instructions.
|
|
19
|
-
2. **(Alternative option) Specify a version other than `2022-11-15` when initializing `stripe-node`.**
|
|
20
|
-
|
|
24
|
+
2. **(Alternative option) Specify a version other than `2022-11-15` when initializing `stripe-node`.**
|
|
25
|
+
|
|
21
26
|
If you were previously initializing stripe-node without an explicit API Version, you can postpone modifying your integration by specifying a version equal to your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version). For example:
|
|
22
|
-
|
|
27
|
+
|
|
23
28
|
```diff
|
|
24
|
-
- const stripe = require('stripe')('sk_test_...');
|
|
29
|
+
- const stripe = require('stripe')('sk_test_...');
|
|
25
30
|
+ const stripe = require('stripe')('sk_test_...', {
|
|
26
31
|
+ apiVersion: 'YYYY-MM-DD' // Determine your default version from https://dashboard.stripe.com/developers
|
|
27
32
|
+ })
|
|
28
33
|
```
|
|
29
|
-
|
|
34
|
+
|
|
30
35
|
If you were already initializing stripe-node with an explicit API Version, upgrading to v12 will not affect your integration.
|
|
31
|
-
|
|
36
|
+
|
|
32
37
|
Read the [v12 migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v12) for more details.
|
|
33
|
-
|
|
34
|
-
Going forward, each major release of this library will be *pinned* by default to the latest Stripe API Version at the time of release.
|
|
38
|
+
|
|
39
|
+
Going forward, each major release of this library will be *pinned* by default to the latest Stripe API Version at the time of release.
|
|
35
40
|
That is, instead of upgrading stripe-node and separately upgrading your Stripe API Version through the Stripe Dashboard. whenever you upgrade major versions of stripe-node, you should also upgrade your integration to be compatible with the latest Stripe API version.
|
|
36
41
|
|
|
37
42
|
## 11.18.0 - 2023-04-06
|
|
@@ -44,12 +49,12 @@ This was added to maintain backwards compatibility during the transition of stri
|
|
|
44
49
|
|
|
45
50
|
## 11.17.0 - 2023-03-30
|
|
46
51
|
* [#1734](https://github.com/stripe/stripe-node/pull/1734) Update generated code
|
|
47
|
-
* Remove support for `create` method on resource `Tax.Transaction`
|
|
48
|
-
* This is not a breaking change, as this method was deprecated before the Tax Transactions API was released in favor of the `createFromCalculation` method.
|
|
49
|
-
* Add support for `export_license_id` and `export_purpose_code` on `Account.company`, `AccountCreateParams.company`, `AccountUpdateParams.company`, and `TokenCreateParams.account.company`
|
|
50
|
-
* Remove support for value `deleted` from enum `Invoice.status`
|
|
51
|
-
* This is not a breaking change, as `deleted` was never returned or accepted as input.
|
|
52
|
-
* Add support for `amount_tip` on `TerminalReaderPresentPaymentMethodParams.testHelpers`
|
|
52
|
+
* Remove support for `create` method on resource `Tax.Transaction`
|
|
53
|
+
* This is not a breaking change, as this method was deprecated before the Tax Transactions API was released in favor of the `createFromCalculation` method.
|
|
54
|
+
* Add support for `export_license_id` and `export_purpose_code` on `Account.company`, `AccountCreateParams.company`, `AccountUpdateParams.company`, and `TokenCreateParams.account.company`
|
|
55
|
+
* Remove support for value `deleted` from enum `Invoice.status`
|
|
56
|
+
* This is not a breaking change, as `deleted` was never returned or accepted as input.
|
|
57
|
+
* Add support for `amount_tip` on `TerminalReaderPresentPaymentMethodParams.testHelpers`
|
|
53
58
|
|
|
54
59
|
## 11.16.0 - 2023-03-23
|
|
55
60
|
* [#1730](https://github.com/stripe/stripe-node/pull/1730) Update generated code
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
12.
|
|
1
|
+
12.1.0
|
package/cjs/stripe.core.js
CHANGED
|
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
34
34
|
];
|
|
35
35
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
36
36
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
37
|
-
Stripe.PACKAGE_VERSION = '12.
|
|
37
|
+
Stripe.PACKAGE_VERSION = '12.1.0';
|
|
38
38
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
39
39
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
|
40
40
|
Stripe.resources = resources;
|
package/esm/stripe.core.js
CHANGED
|
@@ -31,7 +31,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
31
31
|
];
|
|
32
32
|
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
33
33
|
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
34
|
-
Stripe.PACKAGE_VERSION = '12.
|
|
34
|
+
Stripe.PACKAGE_VERSION = '12.1.0';
|
|
35
35
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
36
36
|
Stripe.StripeResource = StripeResource;
|
|
37
37
|
Stripe.resources = resources;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stripe",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.1.0",
|
|
4
4
|
"description": "Stripe API wrapper",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"stripe",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "yarn build-esm && yarn build-cjs",
|
|
64
64
|
"build-esm": "mkdir -p esm && tsc -p tsconfig.esm.json && echo '{\"type\":\"module\"}' > esm/package.json",
|
|
65
|
-
"build-cjs": "mkdir -p cjs && tsc -p tsconfig.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json",
|
|
65
|
+
"build-cjs": "mkdir -p cjs && tsc -p tsconfig.cjs.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json",
|
|
66
66
|
"clean": "rm -rf ./.nyc_output ./node_modules/.cache ./coverage ./esm ./cjs",
|
|
67
67
|
"prepack": "yarn install && yarn build",
|
|
68
68
|
"mocha": "nyc mocha",
|
package/types/Charges.d.ts
CHANGED