From cd8b8a0d500e7a4c348c35611da3ddebd67f5176 Mon Sep 17 00:00:00 2001 From: BigBodyCobain <43977454+BigBodyCobain@users.noreply.github.com> Date: Fri, 30 Oct 2026 00:03:46 -0600 Subject: [PATCH] Keep React and React DOM upgrades synchronized --- .github/dependabot.yml | 15 +++++++++++++++ .github/workflows/ci.yml | 6 ++++++ frontend/package-lock.json | 18 +++++++++--------- frontend/package.json | 4 ++-- 4 files changed, 32 insertions(+), 11 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 d48398b6..5a92123b 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);" - name: Audit production dependencies run: npm audit --omit=dev --audit-level=high - name: Test development credential bootstrap diff --git a/frontend/package-lock.json b/frontend/package-lock.json index e432b4e3..1c6cb385 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -19,8 +19,8 @@ "maplibre-gl": "^6.14.0", "next": "^16.4.3", "qrcode": "^1.5.4", - "react": "^19.2.7", - "react-dom": "^19.3.0", + "react": "19.3.1", + "react-dom": "19.3.1", "react-map-gl": "^8.1.0", "satellite.js": "^6.0.2", "zod": "^4.6.7" @@ -7806,24 +7806,24 @@ "license": "ISC" }, "node_modules/react": { - "version": "19.3.0", - "resolved": "https://registry.npmjs.org/react/-/react-19.3.0.tgz", - "integrity": "sha512-E8LUcbtBWt20bbl2YoHfx4ZDBdxVTfOKtCZn9cDSJ4l6/nuoApcpIBcj47t2wZoVX8g2ZHuMHbiShgCR1T5Sog==", + "version": "19.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-19.3.1.tgz", + "integrity": "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==", "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/react-dom": { - "version": "19.3.0", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.0.tgz", - "integrity": "sha512-JDk8dgif51OjFoDE70+OT9ICyYr+69HlmihNwp1+Nsfbna3t5sIiCa9ZJktDmQ4/1b/rn26hIAR2uYXDMr5r0Q==", + "version": "19.3.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.1.tgz", + "integrity": "sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ==", "license": "MIT", "dependencies": { "scheduler": "^0.28.0" }, "peerDependencies": { - "react": "^19.3.0" + "react": "^19.3.1" } }, "node_modules/react-is": { diff --git a/frontend/package.json b/frontend/package.json index b1f44b75..d327cb58 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -34,8 +34,8 @@ "maplibre-gl": "^6.14.0", "next": "^16.4.3", "qrcode": "^1.5.4", - "react": "^19.2.7", - "react-dom": "^19.3.0", + "react": "19.3.1", + "react-dom": "19.3.1", "react-map-gl": "^8.1.0", "satellite.js": "^6.0.2", "zod": "^4.6.7"