From 8f0a9636f5073f64ccce68bc7906a8efede3c237 Mon Sep 17 00:00:00 2001 From: Albrecht Degering Date: Fri, 31 Jul 2026 02:48:56 +0200 Subject: [PATCH] Align dataflow WebUI runtime dependencies --- webui/package.json | 6 +++--- webui/src/features/dataflow/DataflowPage.tsx | 2 +- webui/src/features/dataflow/DataflowPipelinesWidget.tsx | 2 +- webui/tsconfig.json | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/webui/package.json b/webui/package.json index dbe509c..a3536b1 100644 --- a/webui/package.json +++ b/webui/package.json @@ -21,9 +21,9 @@ "@govoplan/core-webui": "^0.1.14", "@xyflow/react": "^12.11.2", "lucide-react": "^1.23.0", - "react": "^19.0.0", - "react-dom": "^19.0.0", - "react-router-dom": ">=7.18.2 <8", + "react": ">=19.2.7 <20", + "react-dom": ">=19.2.7 <20", + "react-router": ">=8.3.0 <9", "typescript": "^5.7.2" }, "peerDependenciesMeta": { diff --git a/webui/src/features/dataflow/DataflowPage.tsx b/webui/src/features/dataflow/DataflowPage.tsx index 7414d72..b41d3be 100644 --- a/webui/src/features/dataflow/DataflowPage.tsx +++ b/webui/src/features/dataflow/DataflowPage.tsx @@ -45,7 +45,7 @@ import { type AuthInfo } from "@govoplan/core-webui"; import { ReactFlowProvider } from "@xyflow/react"; -import { useLocation } from "react-router-dom"; +import { useLocation } from "react-router"; import { compileDataflowSql, cancelDataflowPipelineRun, diff --git a/webui/src/features/dataflow/DataflowPipelinesWidget.tsx b/webui/src/features/dataflow/DataflowPipelinesWidget.tsx index ac6b67a..551506c 100644 --- a/webui/src/features/dataflow/DataflowPipelinesWidget.tsx +++ b/webui/src/features/dataflow/DataflowPipelinesWidget.tsx @@ -1,6 +1,6 @@ import { useCallback } from "react"; import { Waypoints } from "lucide-react"; -import { Link } from "react-router-dom"; +import { Link } from "react-router"; import { DashboardWidgetList, DismissibleAlert, diff --git a/webui/tsconfig.json b/webui/tsconfig.json index 26fdde1..493d211 100644 --- a/webui/tsconfig.json +++ b/webui/tsconfig.json @@ -27,7 +27,7 @@ "lucide-react": ["../../govoplan-core/webui/node_modules/lucide-react/dist/lucide-react.d.ts"], "react": ["../../govoplan-core/webui/node_modules/@types/react/index.d.ts"], "react/jsx-runtime": ["../../govoplan-core/webui/node_modules/@types/react/jsx-runtime.d.ts"], - "react-router-dom": ["../../govoplan-core/webui/node_modules/react-router-dom/dist/index.d.ts"] + "react-router": ["../../govoplan-core/webui/node_modules/react-router/dist/production/index.d.ts"] } }, "include": ["src"]