Quellcode durchsuchen

Upgrade dependencies for Node.js 22.13.1 compatibility

Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
Mihaela Balutoiu vor 1 Jahr
Ursprung
Commit
beaca29a2c
4 geänderte Dateien mit 409 neuen und 310 gelöschten Zeilen
  1. 1 2
      .github/workflows/build.yml
  2. 1 2
      Dockerfile
  3. 62 57
      package.json
  4. 345 249
      yarn.lock

+ 1 - 2
.github/workflows/build.yml

@@ -13,7 +13,7 @@ jobs:
       - name: Setup Node.js
         uses: actions/setup-node@v1
         with:
-          node-version: 18.x
+          node-version: 22.x
 
       - name: Setup Corepack
         run: corepack enable
@@ -37,7 +37,6 @@ jobs:
 
       - name: Development build
         env:
-          NODE_OPTIONS: "--openssl-legacy-provider"
           NODE_ENV: development
         run: npm run build:dev
 

+ 1 - 2
Dockerfile

@@ -1,10 +1,9 @@
-FROM node:18
+FROM node:22.13.1
 
 WORKDIR /root/coriolis-web
 
 COPY ./ .
 
-ENV NODE_OPTIONS=--openssl-legacy-provider
 ENV NODE_ENV=production
 
 RUN corepack enable

+ 62 - 57
package.json

@@ -22,9 +22,11 @@
     "storybook": "start-storybook"
   },
   "devDependencies": {
+    "@eslint/eslintrc": "^3.3.1",
+    "@eslint/js": "^9.24.0",
     "@storybook/react": "^6.4.13",
     "@testing-library/dom": "^8.11.1",
-    "@testing-library/react": "^12.1.2",
+    "@testing-library/react": "^16.3.0",
     "@testing-library/user-event": "^13.5.0",
     "@types/connect": "^3.4.33",
     "@types/express": "^5.0.1",
@@ -33,85 +35,88 @@
     "@types/js-cookie": "^2.2.6",
     "@types/luxon": "^3.3.3",
     "@types/moment-timezone": "^0.5.13",
-    "@types/react": "^16.13.1",
+    "@types/react": "^18.0.0",
     "@types/react-collapse": "^5.0.0",
-    "@types/react-dom": "^16.9.8",
+    "@types/react-dom": "^18.0.11",
     "@types/react-modal": "^3.10.5",
     "@types/react-notification-system": "^0.2.39",
-    "@types/react-router-dom": "^5.1.2",
     "@types/react-tooltip": "^4.2.4",
-    "@types/styled-components": "^5.1.27",
-    "@typescript-eslint/eslint-plugin": "^5.36.2",
-    "@typescript-eslint/parser": "^5.36.2",
-    "cross-spawn": "^7.0.5",
-    "cypress": "13.3.1",
-    "eslint": "^8.23.0",
-    "eslint-config-prettier": "^8.5.0",
+    "@types/styled-components": "^5.1.34",
+    "@typescript-eslint/eslint-plugin": "^8.30.1",
+    "@typescript-eslint/parser": "^8.30.1",
+    "cross-spawn": "^7.0.6",
+    "cypress": "14.3.2",
+    "eslint": "^9.24.0",
+    "eslint-config-prettier": "^10.1.2",
     "eslint-plugin-coriolis-web": "file:./src/utils/eslint-plugin-coriolis-web",
-    "eslint-plugin-prettier": "^4.2.1",
+    "eslint-plugin-prettier": "^5.2.6",
     "eslint-plugin-react": "^7.31.7",
-    "jest": "^27.3.1",
+    "globals": "^16.0.0",
+    "jest": "^29.7.0",
     "jest-canvas-mock": "^2.5.2",
-    "nodemon": "^2.0.4",
-    "prettier": "^2.7.1"
+    "jest-environment-jsdom": "^29.7.0",
+    "nodemon": "^3.1.9",
+    "prettier": "^3.5.3",
+    "util": "^0.12.5"
   },
   "dependencies": {
-    "@babel/core": "^7.7.2",
-    "@babel/plugin-proposal-class-properties": "^7.7.0",
-    "@babel/plugin-proposal-decorators": "^7.7.0",
-    "@babel/plugin-proposal-object-rest-spread": "^7.6.2",
-    "@babel/plugin-proposal-optional-chaining": "^7.8.3",
-    "@babel/preset-env": "^7.7.1",
-    "@babel/preset-react": "^7.7.0",
-    "@babel/preset-typescript": "^7.16.0",
-    "@babel/register": "^7.7.0",
-    "ansi-to-html": "^0.6.14",
-    "autobind-decorator": "^2.1.0",
+    "@babel/core": "^7.26.10",
+    "@babel/plugin-proposal-class-properties": "^7.18.6",
+    "@babel/plugin-proposal-decorators": "^7.25.9",
+    "@babel/plugin-proposal-object-rest-spread": "^7.20.7",
+    "@babel/plugin-proposal-optional-chaining": "^7.21.0",
+    "@babel/preset-env": "^7.26.9",
+    "@babel/preset-react": "^7.26.3",
+    "@babel/preset-typescript": "^7.27.0",
+    "@babel/register": "^7.25.9",
+    "@pmmmwh/react-refresh-webpack-plugin": "^0.5.16",
+    "ansi-to-html": "^0.7.2",
+    "autobind-decorator": "^2.4.0",
     "axios": "^0.30.0",
-    "babel-loader": "^8.0.6",
-    "babel-plugin-styled-components": "^1.10.6",
-    "body-parser": "^1.20.3",
+    "babel-loader": "^10.0.0",
+    "babel-plugin-styled-components": "^2.1.4",
+    "body-parser": "^2.2.0",
     "clean-webpack-plugin": "^4.0.0",
     "copy-webpack-plugin": "^13.0.0",
-    "dotenv": "^8.2.0",
+    "dotenv": "^14.3.2",
     "express": "^5.1.0",
-    "file-loader": "^4.2.0",
-    "file-saver": "^2.0.2",
+    "file-loader": "^6.2.0",
+    "file-saver": "^2.0.5",
     "fs": "^0.0.1-security",
     "html-webpack-plugin": "^5.6.3",
-    "js-base64": "^3.5.2",
-    "js-cookie": "^2.2.1",
-    "jszip": "^3.8.0",
-    "lodash": "^4.17.19",
-    "luxon": "^3.4.3",
+    "js-base64": "^3.7.7",
+    "js-cookie": "^3.0.5",
+    "jszip": "^3.10.1",
+    "lodash": "^4.17.21",
+    "luxon": "^3.6.1",
     "mobx": "^5.15.4",
     "mobx-react": "^6.2.2",
-    "moment-timezone": "^0.5.35",
-    "ms-rest-azure": "^2.4.5",
+    "moment-timezone": "^0.5.48",
+    "ms-rest-azure": "^3.0.2",
     "path": "^0.12.7",
-    "react": "^16.13.1",
-    "react-collapse": "^5.0.1",
-    "react-datetime": "^3.1.1",
-    "react-dom": "^16.13.1",
-    "react-hot-loader": "^4.12.17",
-    "react-idle-timer": "^4.3.6",
-    "react-modal": "^3.11.2",
+    "react": "^18.2.0",
+    "react-collapse": "^5.1.1",
+    "react-datetime": "^3.3.1",
+    "react-dom": "^18.2.0",
+    "react-idle-timer": "^5.7.2",
+    "react-modal": "^3.16.3",
     "react-motion": "^0.5.2",
     "react-notification-system": "^0.4.0",
-    "react-router-dom": "^5.1.2",
+    "react-refresh": "^0.16.0",
+    "react-router": "^7.4.0",
     "react-tooltip": "^4.5.1",
-    "react-transition-group": "1.x",
-    "request": "^2.88.0",
+    "react-transition-group": "^4.x",
+    "request": "^2.88.2",
     "require-without-cache": "^0.0.6",
-    "rimraf": "^2.6.2",
-    "styled-components": "^4.4.1",
-    "tai-password-strength": "^1.1.2",
-    "ts-node": "^10.4.0",
-    "typescript": "^4.5.3",
-    "url-loader": "^4.1.0",
-    "webpack": "^5.99.0",
+    "rimraf": "^6.0.1",
+    "styled-components": "^5.3.11",
+    "tai-password-strength": "^1.1.3",
+    "ts-node": "^10.9.2",
+    "typescript": "^5.8.3",
+    "url-loader": "^4.1.1",
+    "webpack": "^5.99.7",
     "webpack-cli": "^6.0.1",
-    "webpack-dev-server": "^5.2.0",
+    "webpack-dev-server": "^5.2.1",
     "webpack-merge": "^6.0.1"
   },
   "resolutions": {

Datei-Diff unterdrückt, da er zu groß ist
+ 345 - 249
yarn.lock


Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.