Skip to content

Commit 3310d85

Browse files
Merge upstream and update generated code for v2204 and
2 parents 4eaebca + 7ec11d5 commit 3310d85

File tree

5 files changed

+10
-14
lines changed

5 files changed

+10
-14
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,14 @@ jobs:
6363
os:
6464
- 'ubuntu-24.04'
6565
node:
66-
# should include even numbers >= 16
66+
# should include even numbers >= 18
6767
# see: https://docs.stripe.com/sdks/versioning?lang=node#stripe-sdk-language-version-support-policy
68+
# note that in Oct 2026, every version will be LTS, so it's not just even numbers anymore
69+
# see: https://nodejs.org/en/blog/announcements/evolving-the-nodejs-release-schedule
6870
- '24'
6971
- '22'
7072
- '20'
7173
- '18'
72-
- '16'
7374
runs-on: ${{ matrix.os }}
7475
permissions:
7576
contents: read
@@ -116,8 +117,7 @@ jobs:
116117
name: Publish
117118
if: >-
118119
(github.event_name == 'workflow_dispatch' || github.event_name == 'push') &&
119-
startsWith(github.ref, 'refs/tags/v') &&
120-
endsWith(github.actor, '-stripe')
120+
startsWith(github.ref, 'refs/tags/v')
121121
needs: [build, test]
122122
runs-on: 'ubuntu-24.04'
123123
permissions:

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19704d8af6f1949f2d8f646ca37978ad12f936a4
1+
10b4844dd6196e89dc7c7e022494cb75d05935f2

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ See the [`stripe-node` API docs](https://stripe.com/docs/api?lang=node) for Node
1919

2020
## Requirements
2121

22-
Per our [Language Version Support Policy](https://docs.stripe.com/sdks/versioning?lang=node#stripe-sdk-language-version-support-policy), we currently support all LTS versions of **Node.js 16+**.
22+
Per our [Language Version Support Policy](https://docs.stripe.com/sdks/versioning?lang=node#stripe-sdk-language-version-support-policy), we currently support all LTS versions of **Node.js 18+**.
2323

24-
Support for Node 16 is deprecated and will be removed in an upcoming major version. Read more and see the full schedule in the docs: https://docs.stripe.com/sdks/versioning?lang=node#stripe-sdk-language-version-support-policy
24+
Read more and see the full schedule in the docs: https://docs.stripe.com/sdks/versioning?lang=node#stripe-sdk-language-version-support-policy
2525

2626
## Installation
2727

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"bugs": "https://github.com/stripe/stripe-node/issues",
2424
"engines": {
25-
"node": ">=16"
25+
"node": ">=18"
2626
},
2727
"main": "cjs/stripe.cjs.node.js",
2828
"types": "types/index.d.ts",
@@ -56,7 +56,7 @@
5656
},
5757
"dependencies": {},
5858
"peerDependencies": {
59-
"@types/node": ">=16"
59+
"@types/node": ">=18"
6060
},
6161
"peerDependenciesMeta": {
6262
"@types/node": {

src/utils.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,7 @@ export function isOptionsHash(o: unknown): boolean | unknown {
5050
* Stringifies an Object, accommodating nested objects
5151
* (forming the conventional key 'parent[child]=value')
5252
*/
53-
export function queryStringifyRequestData(
54-
data: RequestData | string,
55-
/** @deprecated Will be removed in a future release. */
56-
_apiMode?: ApiMode
57-
): string {
53+
export function queryStringifyRequestData(data: RequestData | string): string {
5854
return stringifyRequestData(data);
5955
}
6056

0 commit comments

Comments
 (0)