From 2cc4b264da530840bf3282f0fe51511fb6000f57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Garc=C3=ADa=20Crespo?= Date: Mon, 14 Oct 2024 11:55:08 +0000 Subject: [PATCH] Use Node.js 22 (LTS) Node.js 22 was released back in April and will soon be LTS. See https://github.com/nodejs/Release. --- .github/workflows/dashboard.yml | 4 ++-- dashboard/package-lock.json | 14 +++++++------- dashboard/package.json | 2 +- docs/src/dev-manual/devel.md | 6 +++--- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/dashboard.yml b/.github/workflows/dashboard.yml index 2300039b3..e53dba5e8 100644 --- a/.github/workflows/dashboard.yml +++ b/.github/workflows/dashboard.yml @@ -9,9 +9,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v3.8.1 + - uses: actions/setup-node@v4.0.4 with: - node-version: 18.x + node-version: 22 - run: npm ci working-directory: ./dashboard - run: npm run test diff --git a/dashboard/package-lock.json b/dashboard/package-lock.json index be7345dff..32a3dfb1a 100644 --- a/dashboard/package-lock.json +++ b/dashboard/package-lock.json @@ -30,7 +30,7 @@ "@types/bootstrap": "^5.2.10", "@types/jsdom": "^21.1.7", "@types/lodash-es": "^4.17.12", - "@types/node": "^20.16.5", + "@types/node": "^22.7.5", "@vitejs/plugin-vue": "^5.1.3", "@vitest/coverage-v8": "^2.0.5", "@vue-macros/reactivity-transform": "^1.0.4", @@ -1471,9 +1471,9 @@ } }, "node_modules/@types/node": { - "version": "20.16.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.16.5.tgz", - "integrity": "sha512-VwYCweNo3ERajwy0IUlqqcyZ8/A7Zwa9ZP3MnENWcB11AejO+tLy3pu850goUW2FC/IJMdZUfKpX/yxL1gymCA==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.5.tgz", + "integrity": "sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ==", "dev": true, "license": "MIT", "dependencies": { @@ -6168,9 +6168,9 @@ } }, "@types/node": { - "version": "20.16.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.16.5.tgz", - "integrity": "sha512-VwYCweNo3ERajwy0IUlqqcyZ8/A7Zwa9ZP3MnENWcB11AejO+tLy3pu850goUW2FC/IJMdZUfKpX/yxL1gymCA==", + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.5.tgz", + "integrity": "sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ==", "dev": true, "requires": { "undici-types": "~6.19.2" diff --git a/dashboard/package.json b/dashboard/package.json index a1b85e794..411b880ac 100644 --- a/dashboard/package.json +++ b/dashboard/package.json @@ -38,7 +38,7 @@ "@types/bootstrap": "^5.2.10", "@types/jsdom": "^21.1.7", "@types/lodash-es": "^4.17.12", - "@types/node": "^20.16.5", + "@types/node": "^22.7.5", "@vitejs/plugin-vue": "^5.1.3", "@vitest/coverage-v8": "^2.0.5", "@vue-macros/reactivity-transform": "^1.0.4", diff --git a/docs/src/dev-manual/devel.md b/docs/src/dev-manual/devel.md index dbf8b8fcf..ee7ec5c87 100644 --- a/docs/src/dev-manual/devel.md +++ b/docs/src/dev-manual/devel.md @@ -41,10 +41,10 @@ to your `etc/hosts` file located like `C:/Windows/System32/drivers/etc/hosts`. ## Requirements for development While we run the services inside a Kubernetes cluster we recomend to install -Go, Node and other tools locally to ease the development process. +Go, Node.js and other tools locally to ease the development process. - [Go] (1.21+) -- [NPM and Node] (18+) +- [Node.js and npm] (22+) - GNU [Make] and [GCC] If using Linux, Node.js binary distributions are available from [NodeSource]. @@ -256,7 +256,7 @@ is sometimes not setup properly. To solve it, from the Tilt UI, restart the [manage docker as a non-root user]: https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user [tilt ui]: https://docs.tilt.dev/tutorial/3-tilt-ui.html [go]: https://go.dev/doc/install -[npm and node]: https://nodejs.org/ +[Node.js and npm]: https://nodejs.org/ [nodesource]: https://github.com/nodesource/distributions [make]: https://www.gnu.org/software/make/ [gcc]: https://gcc.gnu.org/