Skip to content

Commit 65839cc

Browse files
authored
ENG-1805 - Update Node.js version to Node 22 (#1149)
* Update Node.js version and dependencies to support Node 22 across the project - Changed Node.js engine requirement in package.json to >=22. - Updated @types/node dependencies to version 22.20.0 in various package.json files. - Adjusted CI workflows to use Node.js version 22 for all relevant jobs. - Ensured compatibility with Node 22 in pnpm-lock.yaml and pnpm-workspace.yaml. - Minor comment update in route.ts to clarify groupBy functionality in relation to Node.js versions. * nvmrc
1 parent 0ff5664 commit 65839cc

16 files changed

Lines changed: 130 additions & 117 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Node.js environment
2626
uses: actions/setup-node@v6
2727
with:
28-
node-version: 20
28+
node-version: "22"
2929
cache: "pnpm"
3030

3131
- name: Install Dependencies
@@ -55,7 +55,7 @@ jobs:
5555
- name: Setup Node.js environment
5656
uses: actions/setup-node@v6
5757
with:
58-
node-version: 20
58+
node-version: "22"
5959
cache: "pnpm"
6060

6161
- name: Install Dependencies
@@ -190,7 +190,7 @@ jobs:
190190
- name: Setup Node.js environment
191191
uses: actions/setup-node@v6
192192
with:
193-
node-version: 20
193+
node-version: "22"
194194
cache: "pnpm"
195195

196196
- name: Install Dependencies

.github/workflows/database-deploy.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@ jobs:
1414
SUPABASE_SECRET_KEY: ${{ secrets.SUPABASE_SECRET_KEY }}
1515
steps:
1616
- name: Checkout Code
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v6
1818

1919
- name: Install pnpm
20-
uses: pnpm/action-setup@v4
20+
uses: pnpm/action-setup@v6
2121
with:
2222
version: 10.15.1
2323
run_install: false
2424

25-
- uses: actions/setup-node@v4
25+
- uses: actions/setup-node@v6
2626
with:
27-
node-version: "20"
27+
node-version: "22"
2828
cache: "pnpm"
2929

3030
- name: Install Dependencies
3131
run: pnpm install --frozen-lockfile
3232

33-
- uses: supabase/setup-cli@v1
33+
- uses: supabase/setup-cli@v2
3434
with:
3535
version: latest
3636

.github/workflows/roam-main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Setup Node.js environment
3636
uses: actions/setup-node@v6
3737
with:
38-
node-version: 20
38+
node-version: "22"
3939
cache: "pnpm"
4040

4141
- name: Install Dependencies

.github/workflows/roam-pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Setup Node.js environment
3737
uses: actions/setup-node@v6
3838
with:
39-
node-version: 20
39+
node-version: "22"
4040
cache: "pnpm"
4141

4242
- name: Install Dependencies

.github/workflows/roam-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Setup Node.js environment
3232
uses: actions/setup-node@v6
3333
with:
34-
node-version: 20
34+
node-version: "22"
3535
cache: "pnpm"
3636

3737
- name: Install Dependencies

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lts/jod

apps/obsidian/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@repo/eslint-config": "workspace:*",
2121
"@repo/typescript-config": "workspace:*",
2222
"@types/mime-types": "3.0.1",
23-
"@types/node": "^20",
23+
"@types/node": "catalog:",
2424
"@types/react": "catalog:obsidian",
2525
"@types/react-dom": "catalog:obsidian",
2626
"autoprefixer": "^10.4.21",

apps/roam/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@repo/typescript-config": "workspace:*",
2222
"@types/file-saver": "2.0.5",
2323
"@types/nanoid": "2.0.0",
24-
"@types/node": "^20",
24+
"@types/node": "catalog:",
2525
"@types/react": "catalog:roam",
2626
"@types/react-dom": "catalog:roam",
2727
"@types/react-vertical-timeline-component": "^3.3.3",

apps/website/app/api/supabase/content-embedding/batch/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const batchInsertEmbeddingsProcess = async (
2323
supabase: Awaited<ReturnType<typeof createClient>>,
2424
embeddingItems: ContentEmbeddingVecTablesInsert[],
2525
): Promise<PostgrestResponse<ContentEmbeddingVecTables>> => {
26-
// groupBy is node21 only, we are using 20. Group by model, by hand.
26+
// groupBy is node21 only, this was implemented in node20. Group by model, by hand.
2727
// Note: This means that later index values may be totally wrong.
2828
// Note2: The key is a ModelName, but I cannot use an enum as a key.
2929
const byModel: { [key: string]: ContentEmbeddingVecTablesInsert[] } = {};

apps/website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"@repo/types": "workspace:*",
4545
"@repo/typescript-config": "workspace:*",
4646
"@tailwindcss/typography": "^0.5.15",
47-
"@types/node": "^20",
47+
"@types/node": "catalog:",
4848
"@types/react": "catalog:",
4949
"@types/react-dom": "catalog:",
5050
"autoprefixer": "^10.4.20",

0 commit comments

Comments
 (0)