stripe 19.3.0 → 19.3.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/CHANGELOG.md +4 -0
- package/README.md +2 -0
- package/VERSION +1 -1
- package/cjs/RequestSender.js +1 -1
- package/cjs/stripe.core.js +1 -1
- package/esm/RequestSender.js +1 -1
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
# Changelog
|
|
2
|
+
## 19.3.1 - 2025-11-12
|
|
3
|
+
* [#2500](https://github.com/stripe/stripe-node/pull/2500) Use `TextEncoder` instead of `Buffer` to ensure support in other JS environments
|
|
4
|
+
* Fixes issues like [#2499](https://github.com/stripe/stripe-node/issues/2499) and [#2493](https://github.com/stripe/stripe-node/issues/2493) where use of `Buffer.byteLength` was causing errors in some runtime environments.
|
|
5
|
+
|
|
2
6
|
## 19.3.0 - 2025-11-05
|
|
3
7
|
* [#2488](https://github.com/stripe/stripe-node/pull/2488) Update generated code
|
|
4
8
|
* Add support for `capture_method` on `PaymentIntent.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card_present`
|
package/README.md
CHANGED
|
@@ -565,6 +565,8 @@ npm install stripe@private-preview --save
|
|
|
565
565
|
|
|
566
566
|
### Custom requests
|
|
567
567
|
|
|
568
|
+
> This feature is only available from version 17 of this SDK.
|
|
569
|
+
|
|
568
570
|
If you would like to send a request to an undocumented API (for example you are in a private beta), or if you prefer to bypass the method definitions in the library and specify your request details directly, you can use the `rawRequest` method on the StripeClient object.
|
|
569
571
|
|
|
570
572
|
```javascript
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
19.3.
|
|
1
|
+
19.3.1
|
package/cjs/RequestSender.js
CHANGED
|
@@ -430,7 +430,7 @@ class RequestSender {
|
|
|
430
430
|
contentType: apiMode == 'v2'
|
|
431
431
|
? 'application/json'
|
|
432
432
|
: 'application/x-www-form-urlencoded',
|
|
433
|
-
contentLength:
|
|
433
|
+
contentLength: new TextEncoder().encode(requestData).length,
|
|
434
434
|
apiVersion: apiVersion,
|
|
435
435
|
clientUserAgent,
|
|
436
436
|
method,
|
package/cjs/stripe.core.js
CHANGED
|
@@ -37,7 +37,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
37
37
|
];
|
|
38
38
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
39
39
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
40
|
-
Stripe.PACKAGE_VERSION = '19.3.
|
|
40
|
+
Stripe.PACKAGE_VERSION = '19.3.1';
|
|
41
41
|
Stripe.API_VERSION = apiVersion_js_1.ApiVersion;
|
|
42
42
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
43
43
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
package/esm/RequestSender.js
CHANGED
|
@@ -427,7 +427,7 @@ export class RequestSender {
|
|
|
427
427
|
contentType: apiMode == 'v2'
|
|
428
428
|
? 'application/json'
|
|
429
429
|
: 'application/x-www-form-urlencoded',
|
|
430
|
-
contentLength:
|
|
430
|
+
contentLength: new TextEncoder().encode(requestData).length,
|
|
431
431
|
apiVersion: apiVersion,
|
|
432
432
|
clientUserAgent,
|
|
433
433
|
method,
|
package/esm/stripe.core.js
CHANGED
|
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
34
34
|
];
|
|
35
35
|
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
36
36
|
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
37
|
-
Stripe.PACKAGE_VERSION = '19.3.
|
|
37
|
+
Stripe.PACKAGE_VERSION = '19.3.1';
|
|
38
38
|
Stripe.API_VERSION = ApiVersion;
|
|
39
39
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
40
40
|
Stripe.StripeResource = StripeResource;
|