diff --git a/.circleci/config.yml b/.circleci/config.yml index bd7ae546c3..82444cbf9d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ version: 2.1 jobs: install_deps: docker: - - image: cimg/node:22.11 + - image: cimg/node:22.22 steps: - checkout - run: @@ -28,7 +28,7 @@ jobs: - ./packages/extension/node_modules test_extension: docker: - - image: cimg/node:22.11 + - image: cimg/node:22.22 parallelism: 1 steps: - checkout @@ -49,7 +49,7 @@ jobs: path: ./test-results test_webapp: docker: - - image: cimg/node:22.11 + - image: cimg/node:22.22 parallelism: 1 steps: - checkout @@ -70,7 +70,7 @@ jobs: path: ./test-results lint_shared: docker: - - image: cimg/node:22.11 + - image: cimg/node:22.22 resource_class: large steps: - checkout @@ -84,7 +84,7 @@ jobs: working_directory: packages/shared test_shared: docker: - - image: cimg/node:22.11 + - image: cimg/node:22.22 parallelism: 1 steps: - checkout @@ -104,7 +104,7 @@ jobs: path: ./test-results build_extension: docker: - - image: cimg/node:22.11 + - image: cimg/node:22.22 resource_class: large steps: - checkout diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 919b82e74f..187c59127a 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -19,7 +19,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '22.11' + node-version: '22.22' - name: Install pnpm uses: pnpm/action-setup@v4 diff --git a/.nvmrc b/.nvmrc index 8b84b727be..f766ee84dd 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -22.11 +22.22 diff --git a/AGENTS.md b/AGENTS.md index ff02b4af33..e68e55eaee 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -26,7 +26,7 @@ This is a pnpm monorepo containing the daily.dev application suite: ## Technology Stack -- **Node.js v22.11** (see `package.json` `volta` and `packageManager` properties, also `.nvmrc`) +- **Node.js v22.22** (see `package.json` `volta` and `packageManager` properties, also `.nvmrc`) - **pnpm 9.14.4** for package management (see `package.json` `packageManager` property) - **TypeScript** across all packages - **React 18.3.1** with Next.js 15 for webapp (Pages Router, NOT App Router/Server Components) @@ -291,4 +291,16 @@ When reviewing code (or writing code that will be reviewed): - **Delete dead code** - Remove unused components, functions, exports, and files. Don't leave code "for later" - **Avoid confusing naming** - Don't create multiple components with the same name in different locations (e.g., two `AboutMe` components) - **Remove unused exports** - If a function/constant is only used internally, don't export it -- **Clean up duplicates** - If the same interface/type is defined in multiple places, consolidate to one location and import \ No newline at end of file +- **Clean up duplicates** - If the same interface/type is defined in multiple places, consolidate to one location and import + +## Node.js Version Upgrade Checklist + +When upgrading Node.js version, update these files: +- `.nvmrc` +- `Dockerfile` +- `.github/workflows/e2e-tests.yml` +- `.circleci/config.yml` (multiple occurrences) +- `packages/playwright/package.json` (engines field) +- This file (`CLAUDE.md` - Technology Stack section) + +After updating, run `pnpm install` to check if lock file needs updating and commit any changes. \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 97370657af..a218551c8a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:22.11-alpine +FROM node:22.22-alpine RUN apk add g++ make python3 RUN mkdir -p /opt/app diff --git a/package.json b/package.json index db30628405..2574321a2e 100644 --- a/package.json +++ b/package.json @@ -16,5 +16,8 @@ "patchedDependencies": { "graphql-request@3.7.0": "patches/graphql-request@3.7.0.patch" } + }, + "volta": { + "node": "22.22.0" } } diff --git a/packages/playwright/package.json b/packages/playwright/package.json index c3ba77430c..185478f8fe 100644 --- a/packages/playwright/package.json +++ b/packages/playwright/package.json @@ -18,7 +18,7 @@ "typescript": "^5.6.0" }, "engines": { - "node": ">=22.11.0" + "node": ">=22.22.0" }, "dependencies": { "dotenv": "^17.2.1"