Copilot commented on code in PR #13632:
URL: https://github.com/apache/cloudstack/pull/13632#discussion_r4752889689


##########
ui/package.json:
##########
@@ -25,77 +25,77 @@
   },
   "scripts": {
     "prebuild": "./prebuild.sh",
-    "start": "vue-cli-service lint --no-fix && vue-cli-service serve",
-    "serve": "vue-cli-service lint --no-fix && vue-cli-service serve",
-    "build": "vue-cli-service build",
+    "start": "./node-options-wrapper.sh vue-cli-service lint --no-fix && 
./node-options-wrapper.sh vue-cli-service serve",
+    "serve": "./node-options-wrapper.sh vue-cli-service lint --no-fix && 
./node-options-wrapper.sh vue-cli-service serve",
+    "build": "NODE_OPTIONS=\"--max-old-space-size=4096${NODE_OPTIONS:+ 
$NODE_OPTIONS}\" ./node-options-wrapper.sh vue-cli-service build",
     "postbuild": "./postbuild.sh",
     "lint": "vue-cli-service lint",
     "i18n:report": "vue-cli-service i18n:report --src './src/**/*.?(js|vue)' 
--locales './src/locales/**/*.json'",
     "test:unit": "vue-cli-service test:unit"
   },
   "dependencies": {
-    "@fortawesome/fontawesome-svg-core": "^6.5.2",
-    "@fortawesome/free-brands-svg-icons": "^6.5.2",
-    "@fortawesome/free-solid-svg-icons": "^6.5.2",
-    "@fortawesome/vue-fontawesome": "^3.0.6",
+    "@fortawesome/fontawesome-svg-core": "^6.7.2",
+    "@fortawesome/free-brands-svg-icons": "^6.7.2",
+    "@fortawesome/free-solid-svg-icons": "^6.7.2",
+    "@fortawesome/vue-fontawesome": "^3.3.2",
     "@vue-js-cron/ant": "^1.1.3",
     "@vue-js-cron/core": "^3.7.1",
     "ant-design-vue": "^3.2.20",
     "antd": "^4.24.16",
     "antd-theme-webpack-plugin": "^1.3.9",
-    "axios": "^0.31.1",
+    "axios": "^1.18.1",
     "babel-plugin-require-context-hook": "^1.0.0",
     "chart.js": "^3.7.1",
-    "chartjs-adapter-moment": "^1.0.0",
-    "core-js": "^3.21.1",
-    "cronstrue": "^2.26.0",
-    "dompurify": "^3.2.6",
+    "chartjs-adapter-moment": "^1.0.1",
+    "core-js": "^3.49.0",
+    "cronstrue": "^2.59.0",
+    "dompurify": "^3.4.12",
     "enquire.js": "^2.1.6",
-    "js-cookie": "^2.2.1",
-    "lodash": "^4.17.15",
+    "js-cookie": "^3.0.8",
+    "lodash": "^4.18.1",
     "md5": "^2.2.1",
-    "minio": "^7.0.33",
+    "minio": "^7.1.3",
     "mitt": "^2.1.0",
-    "moment": "^2.26.0",
-    "moment-timezone": "^0.5.43",
+    "moment": "^2.30.1",
+    "moment-timezone": "^0.5.48",
     "npm-check-updates": "^6.0.1",
     "nprogress": "^0.2.0",
     "qrious": "^4.0.2",
     "semver": "^7.6.3",
-    "vue": "^3.2.31",
+    "vue": "^3.5.40",
     "vue-chartjs": "^4.0.7",
     "vue-clipboard2": "^0.3.1",
     "vue-code-highlight": "^0.7.8",
-    "vue-cropper": "^1.0.2",
-    "vue-i18n": "^9.1.6",
+    "vue-cropper": "^1.1.4",
+    "vue-i18n": "^9.14.5",
     "vue-loader": "^16.8.3",
-    "vue-qrious": "^3.1.0",
-    "vue-router": "^4.0.14",
+    "vue-qrious": "^3.1.1",
+    "vue-router": "^4.6.4",
     "vue-social-auth": "^1.4.9",
     "vue-uuid": "^3.0.0",
     "vue-web-storage": "^6.1.0",
     "vue3-clipboard": "^1.0.0",
-    "vue3-google-login": "^2.0.20",
+    "vue3-google-login": "^2.1.4",
     "vuedraggable": "^4.0.3",
-    "vuex": "^4.0.0-0"
+    "vuex": "^4.1.0"
   },
   "devDependencies": {
-    "@babel/core": "^7.17.5",
+    "@babel/core": "^7.29.7",
     "@vue/cli": "^4.4.1",
     "@vue/cli-plugin-babel": "~4.5.0",
     "@vue/cli-plugin-eslint": "~4.5.0",
     "@vue/cli-plugin-router": "~4.5.0",
     "@vue/cli-plugin-unit-jest": "~4.5.0",
     "@vue/cli-plugin-vuex": "~4.5.0",
     "@vue/cli-service": "~4.5.0",
-    "@vue/compiler-sfc": "^3.2.31",
+    "@vue/compiler-sfc": "^3.5.40",

Review Comment:
   Upgrading `@vue/compiler-sfc` to 3.5.40 together with Sass 1.99 makes 
vue-jest 5.0.0-0 incompatible with SFCs that use Sass: compiler-sfc 3.5.12+ 
switches to Sass's modern API when available, while this vue-jest version still 
supplies the legacy importer, causing component tests to fail during style 
compilation. Please upgrade the Jest transformer to the Vue 3.5-compatible 
package/version (and adjust Jest configuration), or keep compiler-sfc below 
3.5.12 until the test stack is migrated.



##########
ui/package.json:
##########
@@ -25,77 +25,77 @@
   },
   "scripts": {
     "prebuild": "./prebuild.sh",
-    "start": "vue-cli-service lint --no-fix && vue-cli-service serve",
-    "serve": "vue-cli-service lint --no-fix && vue-cli-service serve",
-    "build": "vue-cli-service build",
+    "start": "./node-options-wrapper.sh vue-cli-service lint --no-fix && 
./node-options-wrapper.sh vue-cli-service serve",
+    "serve": "./node-options-wrapper.sh vue-cli-service lint --no-fix && 
./node-options-wrapper.sh vue-cli-service serve",
+    "build": "NODE_OPTIONS=\"--max-old-space-size=4096${NODE_OPTIONS:+ 
$NODE_OPTIONS}\" ./node-options-wrapper.sh vue-cli-service build",
     "postbuild": "./postbuild.sh",
     "lint": "vue-cli-service lint",
     "i18n:report": "vue-cli-service i18n:report --src './src/**/*.?(js|vue)' 
--locales './src/locales/**/*.json'",
     "test:unit": "vue-cli-service test:unit"
   },
   "dependencies": {
-    "@fortawesome/fontawesome-svg-core": "^6.5.2",
-    "@fortawesome/free-brands-svg-icons": "^6.5.2",
-    "@fortawesome/free-solid-svg-icons": "^6.5.2",
-    "@fortawesome/vue-fontawesome": "^3.0.6",
+    "@fortawesome/fontawesome-svg-core": "^6.7.2",
+    "@fortawesome/free-brands-svg-icons": "^6.7.2",
+    "@fortawesome/free-solid-svg-icons": "^6.7.2",
+    "@fortawesome/vue-fontawesome": "^3.3.2",
     "@vue-js-cron/ant": "^1.1.3",
     "@vue-js-cron/core": "^3.7.1",
     "ant-design-vue": "^3.2.20",
     "antd": "^4.24.16",
     "antd-theme-webpack-plugin": "^1.3.9",
-    "axios": "^0.31.1",
+    "axios": "^1.18.1",
     "babel-plugin-require-context-hook": "^1.0.0",
     "chart.js": "^3.7.1",
-    "chartjs-adapter-moment": "^1.0.0",
-    "core-js": "^3.21.1",
-    "cronstrue": "^2.26.0",
-    "dompurify": "^3.2.6",
+    "chartjs-adapter-moment": "^1.0.1",
+    "core-js": "^3.49.0",
+    "cronstrue": "^2.59.0",
+    "dompurify": "^3.4.12",
     "enquire.js": "^2.1.6",
-    "js-cookie": "^2.2.1",
-    "lodash": "^4.17.15",
+    "js-cookie": "^3.0.8",
+    "lodash": "^4.18.1",
     "md5": "^2.2.1",
-    "minio": "^7.0.33",
+    "minio": "^7.1.3",

Review Comment:
   This upgrade resolves `[email protected]` (and `[email protected]`) whose lockfile 
engine requirements start at Node 16, but `ui/Dockerfile` still builds with 
`node:14-bullseye` and runs both `npm install` and `npm run build`. That leaves 
the published UI image on an unsupported Node version for these direct 
dependencies; please update the Docker build image to Node 16+ (and keep the 
CI/runtime versions aligned) or pin compatible package versions.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to