diff --git a/.github/workflows/monkey-ci.yml b/.github/workflows/monkey-ci.yml index 60ed2fcaf..b7183c5eb 100644 --- a/.github/workflows/monkey-ci.yml +++ b/.github/workflows/monkey-ci.yml @@ -2,7 +2,7 @@ name: Monkey CI env: PNPM_VERSION: "9.6.0" - NODE_VERSION: "20.19.4" + NODE_VERSION: "24.10.0" RECAPTCHA_SITE_KEY: "6Lc-V8McAAAAAJ7s6LGNe7MBZnRiwbsbiWts87aj" permissions: diff --git a/.github/workflows/pretty-check.yml b/.github/workflows/pretty-check.yml index dd49c1314..0d4ec626b 100644 --- a/.github/workflows/pretty-check.yml +++ b/.github/workflows/pretty-check.yml @@ -2,7 +2,7 @@ name: Prettier Check env: PNPM_VERSION: "9.6.0" - NODE_VERSION: "20.19.4" + NODE_VERSION: "24.10.0" on: pull_request: diff --git a/.github/workflows/pretty-fix.yml b/.github/workflows/pretty-fix.yml index c9c921ad3..609115289 100644 --- a/.github/workflows/pretty-fix.yml +++ b/.github/workflows/pretty-fix.yml @@ -2,7 +2,7 @@ name: Prettier Fix env: PNPM_VERSION: "9.6.0" - NODE_VERSION: "20.19.4" + NODE_VERSION: "24.10.0" permissions: contents: write diff --git a/.gitignore b/.gitignore index e63c4d922..788a04ad7 100644 --- a/.gitignore +++ b/.gitignore @@ -90,6 +90,7 @@ dist/ frontend/public/ backend/globalConfig.json backend/server.version +backend/src/server.version vite-build/ #cloudflare y diff --git a/.nvmrc b/.nvmrc index 5b811e532..a03e161f1 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20.19.4 \ No newline at end of file +24.10.0 \ No newline at end of file diff --git a/backend/docker/compose.yml b/backend/docker/compose.yml index 539b45ccd..b7e4fc919 100644 --- a/backend/docker/compose.yml +++ b/backend/docker/compose.yml @@ -23,7 +23,7 @@ services: container_name: monkeytype-api-server build: dockerfile_inline: | - FROM node:20.19.4 + FROM node:24.10.0 RUN npm i -g pnpm@9.6.0 RUN mkdir /pnpm-store && chown -R 1000:1000 /pnpm-store user: "node" ##this works as long as your local user has uid=1000 diff --git a/backend/package.json b/backend/package.json index 0e4aa61d0..bedb0d48e 100644 --- a/backend/package.json +++ b/backend/package.json @@ -21,7 +21,7 @@ "gen-docs": "tsx scripts/openapi.ts dist/static/api/openapi.json && redocly build-docs -o dist/static/api/internal.html internal@v2 && redocly bundle -o dist/static/api/public.json public-filter && redocly build-docs -o dist/static/api/public.html public@v2" }, "engines": { - "node": "20.19.4" + "node": "24.10.0" }, "dependencies": { "@date-fns/utc": "1.2.0", diff --git a/docker/backend/Dockerfile b/docker/backend/Dockerfile index f10446013..614ca0f56 100644 --- a/docker/backend/Dockerfile +++ b/docker/backend/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20.19.4-alpine3.19 AS builder +FROM node:24.10.0-alpine3.22 AS builder WORKDIR /app @@ -18,7 +18,7 @@ RUN pnpm deploy --filter backend --prod /prod/backend #--------------------------------- ## target image -FROM node:20.19.4-alpine3.19 +FROM node:24.10.0-alpine3.22 ## get server_version from build-arg, default to UNKNOWN ARG server_version=UNKNOWN diff --git a/docker/frontend/Dockerfile b/docker/frontend/Dockerfile index 4d73d1767..7b7ff5246 100644 --- a/docker/frontend/Dockerfile +++ b/docker/frontend/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20.19.4-alpine3.19 AS builder +FROM node:24.10.0-alpine3.22 AS builder WORKDIR /app #ENV diff --git a/docs/CONTRIBUTING_ADVANCED.md b/docs/CONTRIBUTING_ADVANCED.md index 4abee2bba..89e2f3587 100644 --- a/docs/CONTRIBUTING_ADVANCED.md +++ b/docs/CONTRIBUTING_ADVANCED.md @@ -21,7 +21,7 @@ ## Prerequisites -This contribution guide is for cases in which you need to test the functionality of your changes, or if you need to take screenshots of your changes. You will need a computer with a stable internet connection, a text editor, Git, and NodeJS with version 20.19.4. There are some additional requirements depending on what you're looking to contribute, such as Firebase for authentication, and Mongo and Docker for the backend. Read the below sections to understand how to set up each of these tools. +This contribution guide is for cases in which you need to test the functionality of your changes, or if you need to take screenshots of your changes. You will need a computer with a stable internet connection, a text editor, Git, and NodeJS with version 24.10.0. There are some additional requirements depending on what you're looking to contribute, such as Firebase for authentication, and Mongo and Docker for the backend. Read the below sections to understand how to set up each of these tools. ### Git @@ -33,9 +33,9 @@ Git is optional but we recommend you utilize it. Monkeytype uses the Git source ### NodeJS and PNPM -Currently, the project is using version `20.19.4 LTS`. +Currently, the project is using version `24.10.0 LTS`. -If you use `nvm` (if you use Windows, use [nvm-windows](https://github.com/coreybutler/nvm-windows)) then you can run `nvm install` and `nvm use` (you might need to specify the exact version eg: `nvm install 20.19.4` then `nvm use 20.19.4`) to use the version of Node.js in the `.nvmrc` file. +If you use `nvm` (if you use Windows, use [nvm-windows](https://github.com/coreybutler/nvm-windows)) then you can run `nvm install` and `nvm use` (you might need to specify the exact version eg: `nvm install 24.10.0` then `nvm use 24.10.0`) to use the version of Node.js in the `.nvmrc` file. Alternatively, you can navigate to the NodeJS [website](https://nodejs.org/en/) to download it from there. diff --git a/frontend/docker/compose.dev.yml b/frontend/docker/compose.dev.yml index 1eedc9d5d..1c760c10c 100644 --- a/frontend/docker/compose.dev.yml +++ b/frontend/docker/compose.dev.yml @@ -4,7 +4,7 @@ services: container_name: monkeytype-frontend build: dockerfile_inline: | - FROM node:20.19.4 + FROM node:24.10.0 RUN npm i -g pnpm@9.6.0 RUN mkdir /pnpm-store && chown -R 1000:1000 /pnpm-store user: "node" ##this works as long as your local user has uid=1000 diff --git a/frontend/package.json b/frontend/package.json index 0dbe3da6c..9c628c871 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -24,7 +24,7 @@ "docker": "docker compose -f docker/compose.dev.yml up" }, "engines": { - "node": "20.19.4" + "node": "24.10.0" }, "browserslist": [ "defaults", diff --git a/package.json b/package.json index 5de77b2b8..b7a81f484 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "knip": "knip" }, "engines": { - "node": "20.19.4" + "node": "24.10.0" }, "devDependencies": { "@commitlint/cli": "17.7.1",