Repository navigation
chore(deps): update react monorepo to v19 - #40745
renovate[bot] wants to merge 1 commit into
Conversation
c60d230 to
edb9136
Compare
edb9136 to
6a58b5c
Compare
| "@types/react": "19.3.0", | ||
| "@types/react-dom": "19.3.0", |
There was a problem hiding this comment.
🔴 The JS typedef lint step will fail after this merges. The new React 19 type packages describe a React the visualizer pages never load. metrics.jsx:934 calls ReactDOM.render, which @ types/react-dom 19 no longer declares, so tsc under tsconfig.typecheck.json reports a missing property. The page itself runs React 16.14.0 (src/npm/src/lib.rs:136). Fix: keep @ types/react and @ types/react-dom on 16.x to match the vendored runtime, and have Renovate ignore majors for them until the runtime and the ReactDOM.render callers move to createRoot together.
Why this was flagged
ci/test/lint-main/checks/check-js-typedefs.sh:25-26 runs npm ci and then tsc -p test/dataflow-visualizer/tsconfig.typecheck.json. That config includes src/environmentd/src/http/static/js/metrics.jsx and loads the global types "react" and "react-dom". metrics.jsx:934 calls ReactDOM.render(<MetricsApp />, content). @ types/react-dom 19 removed the legacy render, hydrate and unmountComponentAtNode declarations, so tsc reports that 'render' does not exist and the lint check fails on every run. On the base branch @ types/react-dom 16.9.25 declares render and the check passes. The browser runtime is still React 16.14.0, vendored via src/npm/src/lib.rs:136 and :145 and loaded in templates/metrics-viz.html:6-7, where ReactDOM.render is the correct API. The 19.x types therefore describe the wrong API surface even where they do compile. memory.jsx:681 and hierarchical-memory.jsx:261 use the same call but are not in the typecheck include list.
Verification: metrics.jsx:934 calls ReactDOM.render(<MetricsApp />, content);. The lock file now resolves @ types/react-dom to 19.3.0, which no longer declares render. tsc will therefore report TS2339 (property 'render' does not exist) and try_status_report will fail the lint check. src/npm/src/lib.rs:134-150 vendors react and react-dom at version "16.14.0".
a8dd941 to
c1aa315
Compare
c1aa315 to
222720b
Compare
This PR contains the following updates:
16.14.71→19.3.316.9.25→19.3.0Configuration
📅 Schedule: (in timezone Etc/UTC)
* * * * 6)* 0-3 * * 0)🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.