Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tool] Update Node.js to v22 #1873

Merged
merged 4 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
build_frontend:
working_directory: ~/openbas
docker:
- image: nikolaik/python-nodejs:python3.10-nodejs20
- image: nikolaik/python-nodejs:python3.10-nodejs22
resource_class: large
steps:
- run:
Expand Down
6 changes: 3 additions & 3 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ steps:
- mvn test -q

- name: frontend-tests
image: node:20-alpine
image: node:22-alpine
volumes:
- name: cache-node-frontend
path: /drone/src/openbas-front/node_modules
Expand Down Expand Up @@ -49,7 +49,7 @@ steps:
- apt update && apt install -y gnupg
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
- curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -
- curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
- apt update
- apt install -y yarn
- apt install -y nodejs
Expand All @@ -65,7 +65,7 @@ steps:
- frontend-tests

- name: frontend-e2e-tests
image: node:20.18.0
image: node:22.11.0
volumes:
- name: cache-node-frontend-e2e
path: /drone/src/openbas-front/node_modules
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20.18.0-alpine3.20 AS front-builder
FROM node:22.11.0-alpine3.20 AS front-builder

WORKDIR /opt/openbas-build/openbas-front
COPY openbas-front/packages ./packages
Expand Down
4 changes: 2 additions & 2 deletions openbas-front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"@testing-library/react": "16.0.1",
"@types/d3-hierarchy": "3.1.7",
"@types/eslint__js": "8.42.3",
"@types/node": "20.17.1",
"@types/node": "22.9.3",
"@types/pdfmake": "0.2.9",
"@types/qs": "6",
"@types/react": "18.3.12",
Expand Down Expand Up @@ -124,7 +124,7 @@
"vitest": "2.1.1"
},
"engines": {
"node": ">= 20.10.0"
"node": ">= 22.11.0"
},
"scripts": {
"start": "vite",
Expand Down
14 changes: 7 additions & 7 deletions openbas-front/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2913,12 +2913,12 @@ __metadata:
languageName: node
linkType: hard

"@types/node@npm:20.17.1":
version: 20.17.1
resolution: "@types/node@npm:20.17.1"
"@types/node@npm:22.9.3":
version: 22.9.3
resolution: "@types/node@npm:22.9.3"
dependencies:
undici-types: "npm:~6.19.2"
checksum: 10c0/214cf1fffff9c80ae0d49d7dd1f04254215d49711276fff44ff6f61e36dc8d53520509a88add6955fe029b2259c87eaf284b43bc1236d4f4f06bd80c46f0e2b8
undici-types: "npm:~6.19.8"
checksum: 10c0/954ec72bf29436ea62425a9563914a9c1e93f97b18194acd51d74d13998a701977547ed2985ed3a0e97211b785436d28377116e5f613bfcf3182d9bd81d784dc
languageName: node
linkType: hard

Expand Down Expand Up @@ -8821,7 +8821,7 @@ __metadata:
"@testing-library/react": "npm:16.0.1"
"@types/d3-hierarchy": "npm:3.1.7"
"@types/eslint__js": "npm:8.42.3"
"@types/node": "npm:20.17.1"
"@types/node": "npm:22.9.3"
"@types/pdfmake": "npm:0.2.9"
"@types/qs": "npm:6"
"@types/react": "npm:18.3.12"
Expand Down Expand Up @@ -11331,7 +11331,7 @@ __metadata:
languageName: node
linkType: hard

"undici-types@npm:~6.19.2":
"undici-types@npm:~6.19.2, undici-types@npm:~6.19.8":
version: 6.19.8
resolution: "undici-types@npm:6.19.8"
checksum: 10c0/078afa5990fba110f6824823ace86073b4638f1d5112ee26e790155f481f2a868cc3e0615505b6f4282bdf74a3d8caad715fd809e870c2bb0704e3ea6082f344
Expand Down