From a91335aa2c87cfae4327d67c4be55c4789f59559 Mon Sep 17 00:00:00 2001 From: BigBodyCobain <43977454+BigBodyCobain@users.noreply.github.com> Date: Fri, 30 Oct 2026 00:52:04 -0600 Subject: [PATCH] Keep React and React DOM upgrades synchronized --- .github/dependabot.yml | 15 +++++++++++++++ .github/workflows/ci.yml | 6 ++++++ frontend/package-lock.json | 4 ++-- frontend/package.json | 4 ++-- 4 files changed, 25 insertions(+), 4 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 397cf241..e59e5c9d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,6 +4,21 @@ updates: directory: "/frontend" schedule: interval: "weekly" + groups: + react-runtime: + applies-to: version-updates + patterns: + - "react" + - "react-dom" + - "@types/react" + - "@types/react-dom" + react-runtime-security: + applies-to: security-updates + patterns: + - "react" + - "react-dom" + - "@types/react" + - "@types/react-dom" - package-ecosystem: "pip" directory: "/backend" schedule: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0f22295..988eb7fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,6 +44,12 @@ jobs: cache: npm cache-dependency-path: frontend/package-lock.json - run: npm ci + - name: Check React runtime versions match + run: >- + node -e "const react = require('react/package.json').version; + const dom = require('react-dom/package.json').version; + if (react !== dom) throw new Error('React runtime mismatch: react=' + react + ', react-dom=' + dom); + console.log('React and React DOM match: ' + react);" - run: npm run lint - run: npm run format:check - run: npx vitest run --reporter=verbose diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 9acdb7ec..df1ca4a9 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -19,8 +19,8 @@ "maplibre-gl": "^4.7.1", "next": "16.3.8", "qrcode": "^1.5.4", - "react": "^19.2.7", - "react-dom": "^19.3.1", + "react": "19.3.1", + "react-dom": "19.3.1", "react-map-gl": "^8.1.0", "satellite.js": "^6.0.2", "zod": "^4.6.7" diff --git a/frontend/package.json b/frontend/package.json index e606ec48..4989595f 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -31,8 +31,8 @@ "maplibre-gl": "^4.7.1", "next": "16.3.8", "qrcode": "^1.5.4", - "react": "^19.2.7", - "react-dom": "^19.3.1", + "react": "19.3.1", + "react-dom": "19.3.1", "react-map-gl": "^8.1.0", "satellite.js": "^6.0.2", "zod": "^4.6.7"