From a2d6a50e00bf6ead894360229a92c511d4a7fb89 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 26 Dec 2024 11:11:30 +0000 Subject: [PATCH] Update Node.js to v22 --- .nvmrc | 2 +- Dockerfile | 4 ++-- Dockerfile.api | 2 +- Dockerfile.web | 2 +- api/package.json | 2 +- package.json | 2 +- web/Dockerfile | 2 +- web/package.json | 2 +- yarn.lock | 50 +++++++++++------------------------------------- 9 files changed, 20 insertions(+), 48 deletions(-) diff --git a/.nvmrc b/.nvmrc index 2edeafb0..8fdd954d 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20 \ No newline at end of file +22 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 27c4dd32..ea198656 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ # to take advantage of docker cache # build step -FROM node:20-alpine as build +FROM node:22-alpine as build RUN npm install -g @vercel/ncc@0.36.1 WORKDIR /app COPY package.json yarn.lock ./ @@ -33,7 +33,7 @@ COPY web/nginx.conf web/ # ----- api only ------ # to build only back run # docker build . --target api --tag my-api-tag` -FROM node:20-alpine as api +FROM node:22-alpine as api RUN npm install -g forever@4.0.3 RUN apk add --no-cache \ git \ diff --git a/Dockerfile.api b/Dockerfile.api index b8a00ad9..a147e34d 100644 --- a/Dockerfile.api +++ b/Dockerfile.api @@ -1,4 +1,4 @@ -FROM node:20-alpine as build +FROM node:22-alpine as build RUN apk add --no-cache \ git \ openssh-client \ diff --git a/Dockerfile.web b/Dockerfile.web index e7bc324e..27abb9e6 100644 --- a/Dockerfile.web +++ b/Dockerfile.web @@ -1,5 +1,5 @@ # build step -FROM node:20-alpine as build +FROM node:22-alpine as build WORKDIR /app COPY package.json yarn.lock ./ COPY api/package.json api/ diff --git a/api/package.json b/api/package.json index e841b0c1..0f5f6280 100644 --- a/api/package.json +++ b/api/package.json @@ -43,7 +43,7 @@ "@types/deepmerge": "^2.2.0", "@types/express": "4.17.21", "@types/memoizee": "^0.4.7", - "@types/node": "^18.19.64", + "@types/node": "^22.0.0", "@types/node-fetch": "^2.5.7", "@types/semver": "^7.5.3", "@types/ungap__structured-clone": "^0.3.0", diff --git a/package.json b/package.json index d82b15c0..83e132f6 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "turbo": "^1.12.5" }, "engines": { - "node": "^20" + "node": "^22.0.0" }, "workspaces": [ "api", diff --git a/web/Dockerfile b/web/Dockerfile index bc7e92f1..756e27ad 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -1,5 +1,5 @@ # build environment -FROM node:18-alpine as build +FROM node:22-alpine as build WORKDIR /app COPY package.json yarn.lock ./ COPY public ./public diff --git a/web/package.json b/web/package.json index 77e8819c..f9443d1e 100644 --- a/web/package.json +++ b/web/package.json @@ -62,7 +62,7 @@ "@storybook/react": "^6.5.10", "@types/flexsearch": "^0.7.3", "@types/memoizee": "^0.4.4", - "@types/node": "^18.19.64", + "@types/node": "^22.0.0", "@types/react": "^18.0.18", "@types/react-dom": "^18.0.6", "@typescript-eslint/eslint-plugin": "^4.24.0", diff --git a/yarn.lock b/yarn.lock index 08f2081a..bb006598 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1187,14 +1187,6 @@ pirates "^4.0.6" source-map-support "^0.5.16" -"@babel/runtime-corejs3@^7.16.5": - version "7.26.0" - resolved "https://registry.yarnpkg.com/@babel/runtime-corejs3/-/runtime-corejs3-7.26.0.tgz#5af6bed16073eb4a0191233d61e158a5c768c430" - integrity sha512-YXHu5lN8kJCb1LOb9PgV6pvak43X2h4HvRApcN5SdWeaItQOzfn1hgP6jasD6KWQyJDBxrVmA9o9OivlnNJK/w== - dependencies: - core-js-pure "^3.30.2" - regenerator-runtime "^0.14.0" - "@babel/runtime@^7.0.0", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.5", "@babel/runtime@^7.14.6", "@babel/runtime@^7.16.3", "@babel/runtime@^7.17.2", "@babel/runtime@^7.17.8", "@babel/runtime@^7.18.3", "@babel/runtime@^7.23.9", "@babel/runtime@^7.5.0", "@babel/runtime@^7.5.5", "@babel/runtime@^7.7.6", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7", "@babel/runtime@^7.9.2": version "7.26.0" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.26.0.tgz#8600c2f595f277c60815256418b85356a65173c1" @@ -2497,14 +2489,6 @@ redux-thunk "^2.4.2" reselect "^4.1.8" -"@retorquere/bibtex-parser@^7.0.11": - version "7.0.16" - resolved "https://registry.yarnpkg.com/@retorquere/bibtex-parser/-/bibtex-parser-7.0.16.tgz#0986bf1c777acaa9fec0b07b0f24525b59a2a049" - integrity sha512-8FyAzZZDQR3uXXwANgDkYaJVwTboES9FcPb2VPZxwuCODc7GPLSVeJpzrY7OC3NFc9BtNU7x8g6XFtUwPfGetg== - dependencies: - unicode2latex "^5.0.13" - xregexp "^5.1.1" - "@rollup/plugin-babel@^5.2.0": version "5.3.1" resolved "https://registry.yarnpkg.com/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz#04bc0608f4aa4b2e4b1aebf284344d0f68fda283" @@ -4102,12 +4086,12 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-16.18.119.tgz#88443bb82119b7c0920e86949673876cbe1c3492" integrity sha512-ia7V9a2FnhUFfetng4/sRPBMTwHZUkPFY736rb1cg9AgG7MZdR97q7/nLR9om+sq5f1la9C857E0l/nrI0RiFQ== -"@types/node@^18.19.64": - version "18.19.64" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.64.tgz#122897fb79f2a9ec9c979bded01c11461b2b1478" - integrity sha512-955mDqvO2vFf/oL7V3WiUtiz+BugyX8uVbaT2H8oj3+8dRyH2FLiNdowe7eNqRM7IOIZvzDH76EoAT+gwm6aIQ== +"@types/node@^22.0.0": + version "22.10.2" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.10.2.tgz#a485426e6d1fdafc7b0d4c7b24e2c78182ddabb9" + integrity sha512-Xxr6BBRCAOQixvonOye19wnzyDiUtTeqldOOmj3CkeblonbccA12PFwlufvRdrpjXxqnmUaeiU5EOA+7s5diUQ== dependencies: - undici-types "~5.26.4" + undici-types "~6.20.0" "@types/normalize-package-data@^2.4.0": version "2.4.4" @@ -6916,7 +6900,7 @@ core-js-compat@^3.38.0, core-js-compat@^3.38.1, core-js-compat@^3.8.1: dependencies: browserslist "^4.24.2" -core-js-pure@^3.23.3, core-js-pure@^3.30.2: +core-js-pure@^3.23.3: version "3.39.0" resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.39.0.tgz#aa0d54d70a15bdc13e7c853db87c10abc30d68f3" integrity sha512-7fEcWwKI4rJinnK+wLTezeg2smbFFdSBP6E2kQZNbnzM2s1rpKQ6aaRteZSSg7FLU3P0HGGVo/gbpfanU36urg== @@ -18589,16 +18573,16 @@ underscore@1.12.1: resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.12.1.tgz#7bb8cc9b3d397e201cf8553336d262544ead829e" integrity sha512-hEQt0+ZLDVUMhebKxL4x1BTtDY7bavVofhZ9KZ4aI26X9SRaE+Y3m83XUL1UP2jn8ynjndwCCpEHdUG+9pP1Tw== -undici-types@~5.26.4: - version "5.26.5" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" - integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== - undici-types@~6.19.8: version "6.19.8" resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.19.8.tgz#35111c9d1437ab83a7cdc0abae2f26d88eda0a02" integrity sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw== +undici-types@~6.20.0: + version "6.20.0" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.20.0.tgz#8171bf22c1f588d1554d55bf204bc624af388433" + integrity sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg== + unfetch@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/unfetch/-/unfetch-4.2.0.tgz#7e21b0ef7d363d8d9af0fb929a5555f6ef97a3be" @@ -18635,11 +18619,6 @@ unicode-property-aliases-ecmascript@^2.0.0: resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz#43d41e3be698bd493ef911077c9b131f827e8ccd" integrity sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w== -unicode2latex@^5.0.13: - version "5.0.18" - resolved "https://registry.yarnpkg.com/unicode2latex/-/unicode2latex-5.0.18.tgz#8c10fa88fd5126c58014e9f850f4398888b16120" - integrity sha512-/CX1f7nAv6QITIEZa5auBZ77c1nn7aIx2and/KNOlwzg67LDrEyMnk3K8q5VP8RCJ92qjGuSmCmSAMBoBNTqNg== - unified@9.2.0: version "9.2.0" resolved "https://registry.yarnpkg.com/unified/-/unified-9.2.0.tgz#67a62c627c40589edebbf60f53edfd4d822027f8" @@ -19983,13 +19962,6 @@ xmlchars@^2.2.0: resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb" integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw== -xregexp@^5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/xregexp/-/xregexp-5.1.1.tgz#6d3fe18819e3143aaf52f9284d34f49a59583ebb" - integrity sha512-fKXeVorD+CzWvFs7VBuKTYIW63YD1e1osxwQ8caZ6o1jg6pDAbABDG54LCIq0j5cy7PjRvGIq6sef9DYPXpncg== - dependencies: - "@babel/runtime-corejs3" "^7.16.5" - xtend@^4.0.0, xtend@^4.0.1, xtend@~4.0.1: version "4.0.2" resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54"