Skip to content

Commit a057145

Browse files
committed
Upgrade React/NextJS version to fix CVE-2025-55182
1 parent 083b05a commit a057145

File tree

2 files changed

+48
-34
lines changed

2 files changed

+48
-34
lines changed

webui/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121
"@types/js-yaml": "^4.0.9",
2222
"axios": "^1.6.7",
2323
"js-yaml": "^4.1.0",
24-
"next": "15.5.4",
25-
"react": "19.2.0",
26-
"react-dom": "19.2.0"
24+
"next": "^16.0.7",
25+
"react": "^19.2.1",
26+
"react-dom": "^19.2.1"
2727
},
2828
"devDependencies": {
2929
"@types/node": "^20",
30-
"@types/react": "19.2.2",
31-
"@types/react-dom": "19.2.1",
30+
"@types/react": "^19.2.3",
31+
"@types/react-dom": "^19.2.2",
3232
"autoprefixer": "^10.0.1",
33-
"eslint": "^8",
34-
"eslint-config-next": "15.5.4",
33+
"eslint": "^9.39.1",
34+
"eslint-config-next": "^16.0.7",
3535
"eslint-config-prettier": "^10.1.1",
3636
"postcss": "^8",
3737
"prettier": "^3.6.2",
@@ -40,7 +40,7 @@
4040
"typescript": "^5"
4141
},
4242
"overrides": {
43-
"@types/react": "19.2.2",
44-
"@types/react-dom": "19.2.1"
43+
"@types/react": "^19.2.3",
44+
"@types/react-dom": "^19.2.2"
4545
}
4646
}

webui/tsconfig.json

Lines changed: 39 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,44 @@
1515
* KIND, either express or implied. See the License for the
1616
* specific language governing permissions and limitations
1717
* under the License.
18-
*/ {
19-
"compilerOptions": {
20-
"lib": ["dom", "dom.iterable", "esnext"],
21-
"allowJs": true,
22-
"skipLibCheck": true,
23-
"strict": true,
24-
"noEmit": true,
25-
"esModuleInterop": true,
26-
"module": "esnext",
27-
"moduleResolution": "bundler",
28-
"resolveJsonModule": true,
29-
"isolatedModules": true,
30-
"jsx": "preserve",
31-
"incremental": true,
32-
"plugins": [
33-
{
34-
"name": "next"
35-
}
36-
],
37-
"paths": {
38-
"@/*": ["./src/*"]
39-
},
40-
"target": "ES2017"
18+
*/{
19+
"compilerOptions": {
20+
"lib": [
21+
"dom",
22+
"dom.iterable",
23+
"esnext"
24+
],
25+
"allowJs": true,
26+
"skipLibCheck": true,
27+
"strict": true,
28+
"noEmit": true,
29+
"esModuleInterop": true,
30+
"module": "esnext",
31+
"moduleResolution": "bundler",
32+
"resolveJsonModule": true,
33+
"isolatedModules": true,
34+
"jsx": "react-jsx",
35+
"incremental": true,
36+
"plugins": [
37+
{
38+
"name": "next"
39+
}
40+
],
41+
"paths": {
42+
"@/*": [
43+
"./src/*"
44+
]
4145
},
42-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
43-
"exclude": ["node_modules"]
46+
"target": "ES2017"
47+
},
48+
"include": [
49+
"next-env.d.ts",
50+
"**/*.ts",
51+
"**/*.tsx",
52+
".next/types/**/*.ts",
53+
".next/dev/types/**/*.ts"
54+
],
55+
"exclude": [
56+
"node_modules"
57+
]
4458
}

0 commit comments

Comments
 (0)