Skip to content

Commit 6db1091

Browse files
committed
[v8] drop node 18 (#1366)
This pull request updates the project's Node.js version requirements and related configuration files to use Node.js 20 or newer, and removes support for Node.js 18. These changes help ensure compatibility with the latest Node.js features and security updates. **Node.js version updates:** * Updated the required Node.js engine in `package.json` from `>=18` to `>=20`. * Changed the `@types/node` development dependency in `package.json` from version `~18` to `~20`. **CI/CD workflow updates:** * Modified the matrix in `.github/workflows/ci.yml` to run tests only on Node.js versions 20, 22, and 24, removing Node.js 18. * Updated the Node.js version used in `.github/workflows/fix-latest.yml`, `.github/workflows/release.yml`, and `.github/workflows/runtime-tests.yml` from 18 to 22. [[1]](diffhunk://#diff-942585ab102b61d7fc2b3ebd901f78b627f006e4fe9ed539189fce8bfc503740L23-R23) [[2]](diffhunk://#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34L22-R22) [[3]](diffhunk://#diff-8240caaafb609c069828d284a282ebeb4f57b1ce1668ab60c97ad12412dfeb6dL12-R12) Does this require changes to the WorkOS Docs? E.g. the [API Reference](https://workos.com/docs/reference) or code snippets need updates. ``` [ ] Yes ``` If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.
1 parent 70c7061 commit 6db1091

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19-
node: [18, 20, 22, 24]
19+
node: [20, 22, 24]
2020
steps:
2121
- uses: actions/checkout@v4
2222
- uses: actions/setup-node@v4

.github/workflows/fix-latest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions/checkout@v4
2121
- uses: actions/setup-node@v4
2222
with:
23-
node-version: 18
23+
node-version: 22
2424
registry-url: 'https://registry.npmjs.org'
2525

2626
- name: Install Dependencies

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/checkout@v4
2020
- uses: actions/setup-node@v4
2121
with:
22-
node-version: 18
22+
node-version: 22
2323
registry-url: 'https://registry.npmjs.org'
2424

2525
- name: Install Dependencies

.github/workflows/runtime-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
- uses: actions/checkout@v4
1010
- uses: actions/setup-node@v4
1111
with:
12-
node-version: '18'
12+
node-version: 22
1313
- uses: denoland/setup-deno@v2
1414
with:
1515
deno-version: v1.x

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ See the [API Reference](https://workos.com/docs/reference/client-libraries) for
1111

1212
## Requirements
1313

14-
Node 18 or higher.
14+
Node 20 or higher.
1515

1616
## Installation
1717

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"workos"
1010
],
1111
"engines": {
12-
"node": ">=18"
12+
"node": ">=20"
1313
},
1414
"type": "module",
1515
"main": "./lib/cjs/index.cjs",
@@ -53,7 +53,7 @@
5353
"@types/cookie": "^0.6.0",
5454
"@types/glob": "^8.1.0",
5555
"@types/jest": "^29.5.14",
56-
"@types/node": "~18",
56+
"@types/node": "~20",
5757
"@types/qs": "^6.14.0",
5858
"@typescript-eslint/parser": "^8.25.0",
5959
"babel-jest": "^29.7.0",

0 commit comments

Comments
 (0)