Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@
"jsqr": "^1.4.0",
"lottie-react": "^2.4.0",
"multicoin-address-validator": "^0.5.22",
"next": "15.3.1",
"next": "15.3.6",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

cat -n package.json | sed -n '65,115p'

Repository: peanutprotocol/peanut-ui

Length of output: 2211


🌐 Web query:

@types/react @types/react-dom React 19 latest versions npm

💡 Result:

As of today (Dec 4, 2025):

  • react (npm "latest" tag): 19.1.1. [1]
  • React 19.2 (release announced Oct 1, 2025) — available details on the React site. [2]
  • @types/react: 19.2.3. [3]
  • @types/react-dom: 19.2.3. [4]

Sources:
[1] npm react package (versions/tags).
[2] React 19.2 release post — react.dev (Oct 1, 2025).
[3] @types/react releases (npm / ReleaseAlert).
[4] @types/react-dom releases (npm / ReleaseAlert).


Update TypeScript type definitions to match React 19.2.1 runtime version.

The runtime dependencies are being upgraded to React 19.2.1 and react-dom 19.2.1, but the type definitions in devDependencies (lines 109–111) remain pinned to version 18 (@types/react@^18.3.12 and @types/react-dom@^18.3.1). This mismatch will cause TypeScript compilation errors and type checking failures throughout the codebase.

Update the type definitions to @types/react@^19.2.3 and @types/react-dom@^19.2.3:

-        "@types/react": "^18.3.12",
-        "@types/react-csv": "^1.1.10",
-        "@types/react-dom": "^18.3.1",
+        "@types/react": "^19.2.3",
+        "@types/react-csv": "^1.1.10",
+        "@types/react-dom": "^19.2.3",

Also applies to: 71-71, 73-73

🤖 Prompt for AI Agents
In package.json around lines 69, 71 and 73 (and the devDependencies block around
lines ~109–111), the runtime React/react-dom versions were upgraded to 19.2.1
but the TypeScript type packages remain pinned to @types/react@^18.x and
@types/react-dom@^18.x; update those devDependencies to @types/react@^19.2.3 and
@types/react-dom@^19.2.3 so the type definitions match the React 19.2.1 runtime
and avoid TypeScript type errors.

"pulltorefreshjs": "^0.1.22",
"react": "^19.1.0",
"react": "^19.2.1",
"react-csv": "^2.2.2",
"react-dom": "^19.1.0",
"react-dom": "^19.2.1",
"react-fast-marquee": "^1.6.5",
"react-force-graph-2d": "^1.25.10",
"react-ga4": "^2.1.0",
Expand Down
Loading
Loading