Commit a0e38e6
Upgrade React to v19.2.3 (and fix type errors in useRef hooks) (#4237)
* Initial plan
* Merge React 19 upgrade from dependabot branch
Co-authored-by: d10c <[email protected]>
* Fix React 19 useRef type errors and eslint config
Co-authored-by: d10c <[email protected]>
* Upgrade react-dom to 19.2.3 to match react version
Co-authored-by: d10c <[email protected]>
* Restore correct package versions (revert unintended downgrades from dependabot merge)
Co-authored-by: d10c <[email protected]>
* Security fix: Update glob to 11.1.0 to address command injection vulnerability
Co-authored-by: d10c <[email protected]>
* Upgrade React to 19.2.3 and fix useRef type errors
- Upgrade react and react-dom from 18.3.1 to 19.2.3
- Upgrade @types/react and @types/react-dom to 19.2.3 (matching versions)
- Fix useRef hooks to include explicit initial values (React 19 requirement)
- Update ref prop types to handle React 19's stricter null handling
- Fix eslint config for reactHooks.configs compatibility
Co-authored-by: d10c <[email protected]>
* Fix eslint config: restore .flat accessor for reactHooks.configs
The previous change removed the .flat accessor which caused ESLint to use
the old eslintrc format config (with plugins as array of strings) instead
of the flat config format (with plugins as object). This led to CI failures.
Co-authored-by: d10c <[email protected]>
* Use caret (^) prefix for React package versions
Updated react, react-dom, @types/react, and @types/react-dom to use
"^19.2.3" instead of "19.2.3" to match the convention used by other
dependencies in the project.
Co-authored-by: d10c <[email protected]>
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: d10c <[email protected]>1 parent 44529e4 commit a0e38e6
File tree
10 files changed
+47
-51
lines changed- extensions/ql-vscode
- src/view
- model-alerts
- model-editor
- results
- __tests__
10 files changed
+47
-51
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2080 | 2080 | | |
2081 | 2081 | | |
2082 | 2082 | | |
2083 | | - | |
2084 | | - | |
| 2083 | + | |
| 2084 | + | |
2085 | 2085 | | |
2086 | 2086 | | |
2087 | 2087 | | |
| |||
2135 | 2135 | | |
2136 | 2136 | | |
2137 | 2137 | | |
2138 | | - | |
2139 | | - | |
| 2138 | + | |
| 2139 | + | |
2140 | 2140 | | |
2141 | 2141 | | |
2142 | 2142 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments