Skip to content

Commit 1b36d09

Browse files
authored
fix(deps): upgrade node to v24.12 (#2050)
* fix(deps): upgrade to node 24 * fix: upgrade url-http so dependency re2 can build * fix: use es2022 for lib in tsconfig
1 parent ad77bbf commit 1b36d09

10 files changed

Lines changed: 270 additions & 218 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Update the VARIANT arg in docker-compose.yml to pick a Node version: 22, 24
2-
ARG VARIANT=22
2+
ARG VARIANT=24
33
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:${VARIANT}
44

55
# Update args in docker-compose.yaml to set the UID/GID of the "node" user.

.devcontainer/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
dockerfile: Dockerfile
99
args:
1010
# [Choice] Node.js version: 22, 24
11-
VARIANT: 22
11+
VARIANT: 24
1212
# On Linux, you may need to update USER_UID and USER_GID below if not your local UID is not 1000.
1313
USER_UID: 1000
1414
USER_GID: 1000

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
- name: Setup Node
9696
uses: actions/setup-node@v4
9797
with:
98-
node-version: 22
98+
node-version: 24
9999

100100
- name: Get yarn cache directory
101101
id: yarn-cache-dir-path
@@ -174,7 +174,7 @@ jobs:
174174
- name: Setup Node
175175
uses: actions/setup-node@v4
176176
with:
177-
node-version: 22
177+
node-version: 24
178178

179179
- name: Get yarn cache directory
180180
id: yarn-cache-dir-path

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ Head over to: [Client](https://github.com/graasp/client), [Library](https://gith
2020

2121
In order to run the Graasp backend, it requires:
2222

23-
- Node version 22
24-
- NPM version 10
23+
- Node version 24
24+
- NPM version 11
2525
- Yarn (can be installed through [`nvm`](https://github.com/nvm-sh/nvm))
2626
- [Docker](https://docs.docker.com/get-docker/) or [Podman](https://podman.io/): Docker is not necessary, it is possible to install everything locally. However it is strongly recommended to use the Docker installation guide.
2727

docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:22.15-bookworm AS base
1+
FROM node:24.12-bookworm AS base
22

33

44
##############################
@@ -37,7 +37,7 @@ RUN yarn set version berry && yarn workspaces focus --all --production
3737
### Run Application Step ###
3838
############################
3939
# Final step that will run the application
40-
FROM node:22.15-bookworm-slim AS runner
40+
FROM node:24.12-bookworm-slim AS runner
4141

4242
# Variable passed as a build arg. Represents the tag or git sha used for the build
4343
ARG APP_VERSION

docker/migrate.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -----> Build image
2-
FROM node:22.14.0-bookworm AS build
2+
FROM node:24.12.0-bookworm AS build
33
# update packages and install the minimal init system "dumb-init"
44
RUN apt-get update && apt-get install -y --no-install-recommends dumb-init
55

@@ -12,7 +12,7 @@ RUN npm install drizzle-kit@latest drizzle-orm@latest pg dotenv --omit=dev
1212
# -----> Production image
1313
# Select a node image with a specific LTS version
1414
# Use the debian based image with the slim variant
15-
FROM node:22.14.0-bookworm-slim
15+
FROM node:24.12.0-bookworm-slim
1616

1717
# Set the NODE_ENV to "production" to get the expected behaviour of tools
1818
ENV NODE_ENV=production

docker/workers.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:22.15-bookworm AS base
1+
FROM node:24.12-bookworm AS base
22

33

44
# -------------------------------------------------------
@@ -34,7 +34,7 @@ RUN yarn set version berry && yarn workspaces focus --all --production
3434

3535
# -------------------------------------------------------
3636
# Final step that will run the application
37-
FROM node:22.15-bookworm-slim AS runner
37+
FROM node:24.12-bookworm-slim AS runner
3838

3939
# Variable passed as a build arg. Represents the tag or git sha used for the build
4040
ARG APP_VERSION

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "graasp",
33
"version": "2.11.0",
44
"engines": {
5-
"node": ">=22.14.0"
5+
"node": ">=24.12.0"
66
},
77
"description": "Graasp next level",
88
"repository": {
@@ -117,7 +117,7 @@
117117
"striptags": "3.2.0",
118118
"tmp-promise": "3.0.3",
119119
"tsyringe": "4.9.1",
120-
"url-http": "1.3.0",
120+
"url-http": "1.3.4",
121121
"uuid": "11.1.0",
122122
"ws": "8.18.1",
123123
"y-protocols": "1.0.6",
@@ -143,7 +143,7 @@
143143
"@types/lodash.partition": "^4",
144144
"@types/lodash.uniqby": "4.7.9",
145145
"@types/mime": "3.0.4",
146-
"@types/node": "22.18.7",
146+
"@types/node": "24.1.0",
147147
"@types/node-fetch": "2",
148148
"@types/nodemailer": "6.4.15",
149149
"@types/papaparse": "5.3.15",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"lib": [
4-
"es2021",
4+
"es2022",
55
"es6",
66
"esnext.asynciterable"
77
],

0 commit comments

Comments
 (0)