-
Notifications
You must be signed in to change notification settings - Fork 0
[Snyk] Upgrade react-dom from 18.2.0 to 18.3.1 #12
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -56,7 +56,7 @@ | |
| "open": "^10.1.0", | ||
| "posthog-js": "^1.138.0", | ||
| "react": "^18.2.0", | ||
| "react-dom": "^18.2.0", | ||
| "react-dom": "^18.3.1", | ||
|
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. The View Details📝 Patch Detailsdiff --git a/skyvern-frontend/package.json b/skyvern-frontend/package.json
index 88e63d7..887d4e4 100644
--- a/skyvern-frontend/package.json
+++ b/skyvern-frontend/package.json
@@ -55,7 +55,7 @@
"nanoid": "^5.0.7",
"open": "^10.1.0",
"posthog-js": "^1.138.0",
- "react": "^18.2.0",
+ "react": "^18.3.1",
"react-dom": "^18.3.1",
"react-github-btn": "^1.4.0",
"react-hook-form": "^7.51.1",
AnalysisIncomplete React version upgrade in package.jsonWhat fails: The How to reproduce: # Verify the peerDependency requirement
npm view react-dom@18.3.1 peerDependencies
# Returns: { react: '^18.3.1' }
# Check package.json (before fix)
grep "\"react\":" skyvern-frontend/package.json
# Shows: "react": "^18.2.0"Result: The version ranges don't properly align - Expected: Both packages should specify compatible version constraints. According to the git history, commit 0f77681 upgraded react-dom from 18.2.0 to 18.3.1 but forgot to upgrade react to match. Fix applied: Updated line 58 from 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: react-dom was bumped to 18.3.1 without upgrading react, violating react-dom’s ^18.3.1 peer dependency and risking install/runtime issues. Upgrade the react dependency to the same 18.3.1 range when bumping react-dom. Prompt for AI agents |
||
| "react-github-btn": "^1.4.0", | ||
| "react-hook-form": "^7.51.1", | ||
| "react-router-dom": "^6.22.3", | ||
|
|
||
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.
To ensure compatibility and avoid potential runtime errors, the
reactpackage version should be aligned with thereact-domversion. It's best practice to keep them in sync. Sincereact-domis being upgraded to18.3.1,reactshould also be upgraded to^18.3.1.