-
Notifications
You must be signed in to change notification settings - Fork 1
[Snyk] Upgrade react-dom from 18.3.1 to 19.2.0 #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -12,7 +12,7 @@ | |||||||||||||||||||
| }, | ||||||||||||||||||||
| "dependencies": { | ||||||||||||||||||||
| "react": "^18.2.0", | ||||||||||||||||||||
| "react-dom": "^18.2.0" | ||||||||||||||||||||
| "react-dom": "^19.2.0" | ||||||||||||||||||||
|
Comment on lines
14
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛑 Version Mismatch: React and React DOM versions must be synchronized. Upgrading only
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This PR upgrades Important: React 19 introduces breaking changes. You should review the official React 19 upgrade guide. Furthermore, this is a TypeScript project, but official type definitions for React 19 ( If you decide to proceed, your "dependencies": {
"react": "^19.2.0",
"react-dom": "^19.2.0"
}You will also need to find and update to compatible versions of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚨 CRITICAL: Version Mismatch React and React DOM versions must be synchronized. This PR only upgrades
Required fix: Upgrade both packages together to the same major version:
Suggested change
This is a breaking change that requires both packages to be upgraded simultaneously. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2 | Confidence: Medium
|
||||||||||||||||||||
| }, | ||||||||||||||||||||
|
Comment on lines
13
to
16
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P1 | Confidence: High This upgrade creates a major version mismatch between
Suggested change
Evidence: path:go_wails_react/frontend/src/main.jsx, path:go_wails_react/frontend/src/main.tsx, symbol:createRoot, symbol:ReactDOM |
||||||||||||||||||||
| "devDependencies": { | ||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P1 | Confidence: High The TypeScript type definitions remain at React 18 versions while the runtime dependency upgrades to React 19. This mismatch will cause type errors and incorrect type checking, as the
Suggested change
Evidence: path:go_wails_react/frontend/src/main.tsx, search:ReactDOM P2 | Confidence: Medium Speculative: The React testing library and Vite React plugin may have compatibility requirements with React 19. Code Suggestion: Check compatibility and potentially update:
"devDependencies": {
"@testing-library/react": "^16.3.0", // Verify v16 works with React 19
"@vitejs/plugin-react": "^4.0.0", // v4+ officially supports React 19
}Evidence: path:go_wails_react/frontend/src/main.jsx, path:go_wails_react/frontend/src/main.tsx |
||||||||||||||||||||
| "@testing-library/jest-dom": "^6.9.1", | ||||||||||||||||||||
|
|
||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upgrading react-dom to 19.2.0 while keeping react at 18.2.0 creates a version mismatch. React and react-dom must have matching major versions to work correctly. The react dependency should also be upgraded to ^19.2.0 to match react-dom.