Skip to content

Bump react and @types/react#23

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/multi-e2615a3a50
Open

Bump react and @types/react#23
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/multi-e2615a3a50

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 23, 2026

Copy link
Copy Markdown

Bumps react and @types/react. These dependencies needed to be updated together.
Updates react from 18.3.1 to 19.2.6

Release notes

Sourced from react's releases.

19.2.6 (May 6th, 2026)

React Server Components

19.2.5 (April 8th, 2026)

React Server Components

19.2.4 (January 26th, 2026)

React Server Components

19.2.3 (December 11th, 2025)

React Server Components

19.2.2 (December 11th, 2025)

React Server Components

19.2.1 (December 3rd, 2025)

React Server Components

19.2.0 (Oct 1, 2025)

Below is a list of all new features, APIs, and bug fixes.

Read the React 19.2 release post for more information.

New React Features

  • <Activity>: A new API to hide and restore the UI and internal state of its children.
  • useEffectEvent is a React Hook that lets you extract non-reactive logic into an Effect Event.
  • cacheSignal (for RSCs) lets your know when the cache() lifetime is over.
  • React Performance tracks appear on the Performance panel’s timeline in your browser developer tools

New React DOM Features

  • Added resume APIs for partial pre-rendering with Web Streams:
  • Added resume APIs for partial pre-rendering with Node Streams:

... (truncated)

Changelog

Sourced from react's changelog.

19.2.1 (Dec 3, 2025)

React Server Components

19.2.0 (October 1st, 2025)

Below is a list of all new features, APIs, and bug fixes.

Read the React 19.2 release post for more information.

New React Features

  • <Activity>: A new API to hide and restore the UI and internal state of its children.
  • useEffectEvent is a React Hook that lets you extract non-reactive logic into an Effect Event.
  • cacheSignal (for RSCs) lets your know when the cache() lifetime is over.
  • React Performance tracks appear on the Performance panel’s timeline in your browser developer tools

New React DOM Features

  • Added resume APIs for partial pre-rendering with Web Streams:
  • Added resume APIs for partial pre-rendering with Node Streams:
  • Updated prerender APIs to return a postponed state that can be passed to the resume APIs.

Notable changes

  • React DOM now batches suspense boundary reveals, matching the behavior of client side rendering. This change is especially noticeable when animating the reveal of Suspense boundaries e.g. with the upcoming <ViewTransition> Component. React will batch as much reveals as possible before the first paint while trying to hit popular first-contentful paint metrics.
  • Add Node Web Streams (prerender, renderToReadableStream) to server-side-rendering APIs for Node.js
  • Use underscore instead of : IDs generated by useId

All Changes

React

... (truncated)

Commits

Updates @types/react from 18.3.3 to 19.2.15

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react) and [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react). These dependencies needed to be updated together.

Updates `react` from 18.3.1 to 19.2.6
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/v19.2.6/packages/react)

Updates `@types/react` from 18.3.3 to 19.2.15
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: react
  dependency-version: 19.2.6
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: "@types/react"
  dependency-version: 19.2.15
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels May 23, 2026
@vercel

vercel Bot commented May 23, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
aleph Error Error May 23, 2026 5:03pm
aleph-web Error Error May 23, 2026 5:03pm

@coderabbitai

coderabbitai Bot commented May 23, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

React and related type dependencies are upgraded from version 18 to version 19 across the project. The root package.json updates React to 19.2.6, while web/package.json upgrades both React to 19.2.6 and @types/react type definitions to 19.2.15. React-dom remains at 18.3.1 in the web package.

Changes

React Dependency Upgrade

Layer / File(s) Summary
React version bumps across package.json files
package.json, web/package.json
Root package.json updates react to 19.2.6. Web package.json updates react to 19.2.6 and @types/react to 19.2.15; react-dom stays at 18.3.1.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: bumping react and @types/react dependencies, which aligns with the file modifications.
Description check ✅ Passed The description is directly related to the changeset, providing detailed information about the dependency version updates and including release notes and changelog information.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@package.json`:
- Around line 27-28: Package.json lists "react": "19.2.6" but "react-dom":
"18.3.1", causing a major-version mismatch; update the react-dom dependency to a
React 19 release that matches (e.g., "react-dom": "19.2.6" or a caret range ^19)
and reinstall with exact versions (follow the guideline: npm install
--save-exact react@^19 react-dom@^19) so both "react" and "react-dom" entries
are the same major version.

In `@web/package.json`:
- Around line 13-14: The package.json has mismatched major versions for React
("react": "19.2.6") and react-dom ("react-dom": "18.3.1"); update react-dom to a
19.x exact version to match React (e.g., set "react-dom" to "19.2.6" or run the
command from guidelines: npm install --save-exact react@^19 react-dom@^19) so
both "react" and "react-dom" share the same major version.
- Line 19: Update the `@types/react-dom` dependency in package.json from "18.3.0"
to a v19 range to match `@types/react`@19 and React 19 (e.g., change
"`@types/react-dom`" to "^19"); then run the exact install command from the
guideline (npm install --save-exact `@types/react`@^19 `@types/react-dom`@^19) and
commit the updated package.json and lockfile so type definitions and CI type
checks align with React 19.
- Around line 10-21: The package.json dependency versions are mismatched:
"react" is at 19.2.6 while "react-dom" remains at 18.3.1; update the "react-dom"
entry to the corresponding React 19 version (e.g., "react-dom": "19.2.6") in the
dependencies block, then run install and re-run checks for React 19 changes (ref
callback return values and useRef() call signatures) across the codebase to
ensure compatibility with the upgraded "react" and "react-dom" versions.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 3c7910b4-5c37-41f4-b823-4675db05e791

📥 Commits

Reviewing files that changed from the base of the PR and between 7adbcc1 and f6b4258.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (2)
  • package.json
  • web/package.json
📜 Review details
🔇 Additional comments (1)
web/package.json (1)

12-12: 🏗️ Heavy lift

Remove React 19 compatibility concern for Next.js 16.2.6.

Next.js 16.2.6 is compatible with React 19 (Next.js docs reference App Router using React canary releases with stable React 19 changes, and the v16.2.0 release line tracks React upgrade work). The remaining check is mainly to ensure react/react-dom versions in web/package.json align with React 19 for tooling/runtime expectations.

Comment thread package.json
Comment on lines +27 to 28
"react": "19.2.6",
"react-dom": "18.3.1"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical | ⚡ Quick win

Critical: react-dom must be upgraded to match React 19.

React and react-dom must be kept at the same major version. The upgrade guide explicitly requires installing both together. Having React at 19.2.6 while react-dom remains at 18.3.1 will cause runtime incompatibilities and unpredictable behavior.

🔧 Required fix
   "react": "19.2.6",
-  "react-dom": "18.3.1"
+  "react-dom": "19.2.6"

As per coding guidelines: "Install: npm install --save-exact react@^19 react-dom@^19"

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"react": "19.2.6",
"react-dom": "18.3.1"
"react": "19.2.6",
"react-dom": "19.2.6"
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@package.json` around lines 27 - 28, Package.json lists "react": "19.2.6" but
"react-dom": "18.3.1", causing a major-version mismatch; update the react-dom
dependency to a React 19 release that matches (e.g., "react-dom": "19.2.6" or a
caret range ^19) and reinstall with exact versions (follow the guideline: npm
install --save-exact react@^19 react-dom@^19) so both "react" and "react-dom"
entries are the same major version.

Comment thread web/package.json
Comment on lines 10 to 21
"dependencies": {
"@vercel/analytics": "^2.0.1",
"next": "16.2.6",
"react": "18.3.1",
"react": "19.2.6",
"react-dom": "18.3.1"
},
"devDependencies": {
"@types/node": "20.11.17",
"@types/react": "18.3.3",
"@types/react": "19.2.15",
"@types/react-dom": "18.3.0",
"typescript": "5.4.5"
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | 🏗️ Heavy lift

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check for removed/deprecated React APIs in the web directory

echo "=== Checking for propTypes usage ==="
rg -n --type=ts --type=tsx --type=js --type=jsx -C2 '\bpropTypes\s*=' web/

echo "=== Checking for string refs ==="
rg -n --type=ts --type=tsx --type=js --type=jsx -C2 'ref\s*=\s*["\']' web/

echo "=== Checking for legacy Context APIs ==="
rg -n --type=ts --type=tsx --type=js --type=jsx -C2 '\b(contextTypes|getChildContext)\b' web/

echo "=== Checking for ReactDOM.render usage ==="
rg -n --type=ts --type=tsx --type=js --type=jsx -C2 'ReactDOM\.(render|hydrate|unmountComponentAtNode)' web/

echo "=== Checking for findDOMNode usage ==="
rg -n --type=ts --type=tsx --type=js --type=jsx -C2 '\bfindDOMNode\b' web/

echo "=== Checking for createFactory usage ==="
rg -n --type=ts --type=tsx --type=js --type=jsx -C2 '\bcreateFactory\b' web/

Repository: p-to-q/aleph

Length of output: 355


🌐 Web query:

What codemods are recommended for upgrading to React 19?

💡 Result:

Recommended React 19 upgrade codemods (run via the official codemod CLI): 1) Run the full React 19 “migration recipe” (recommended for most projects) - Command: npx codemod@latest react/19/migration-recipe [1] - This runs the React 19 codemods included in the recipe: replace-reactdom-render, replace-string-ref, replace-act-import, replace-use-form-state, and prop-types-typescript [1]. 2) TypeScript-focused types migration (separate preset) - The React team also provides types-react-codemod to migrate “most type related breaking changes” for React 19 [1]. - Command shown in the upgrade guide: npx types-react-codemod@latest preset-19./path-... [1]. 3) Individual codemods (if you prefer running one-by-one) They are available in the react-codemod repository and can be run with npx codemod react/19/ --target [2]. The recipe codemods include: - react/19/replace-reactdom-render [2] - react/19/replace-string-ref [2] - react/19/replace-act-import [2] - react/19/replace-use-form-state [2] (Other codemods exist in the repo as well, but the upgrade guide’s recipe above is the “recommended” starting point.) [1][2]

Citations:


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "=== File types in web/ (quick check) ==="
ls -1 web | head -n 50 || true

GLOBS=( -g '*.ts' -g '*.tsx' -g '*.js' -g '*.jsx' )

run_search () {
  local label="$1"; shift
  echo "=== $label ==="
  # shellcheck disable=SC2068
  rg -n -C2 "$@" web "${GLOBS[@]}" --max-count 50 || echo "(no matches)"
  echo
}

run_search "propTypes usage (function components)" '\bpropTypes\s*='
run_search "defaultProps usage" '\bdefaultProps\s*='
run_search "string refs (ref=\"...\" / ref='...')" 'ref\s*=\s*["'\'']'
run_search "legacy Context APIs (contextTypes/getChildContext)" '\b(contextTypes|getChildContext)\b'
run_search "ReactDOM.(render|hydrate|unmountComponentAtNode)" 'ReactDOM\.(render|hydrate|unmountComponentAtNode)'
run_search "findDOMNode usage" '\bfindDOMNode\b'
run_search "createFactory usage" '\bcreateFactory\b'

echo "=== createRoot usage (for ReactDOM.render replacement) ==="
rg -n -C2 'createRoot\s*\(' web "${GLOBS[@]}" --max-count 50 || echo "(no matches)"
echo

echo "=== Error handling / deprecated ref callback returns (heuristic) ==="
# Look for common bad pattern: ref={(...) => { return ... }} (heuristic only)
rg -n -C2 'ref\s*=\s*\{\s*\(?[A-Za-z0-9_,\s]*\)?\s*=>\s*\{\s*return\b' web "${GLOBS[@]}" --max-count 50 || echo "(no heuristic matches)"
echo

echo "=== Look for codemod/migration-recipe evidence in repo ==="
rg -n --max-count 50 'codemod@latest|react/19/migration-recipe|types-react-codemod|preset-19|replace-reactdom-render|replace-string-ref' . || echo "(no matches)"

Repository: p-to-q/aleph

Length of output: 806


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "=== web/package.json (lines 1-80) ==="
cat -n web/package.json | sed -n '1,80p'

echo
echo "=== Grep for codemod/migration references in web/ ==="
rg -n --max-count 50 'codemod@latest|react/19/migration-recipe|types-react-codemod|migration-recipe|preset-19|replace-reactdom-render|replace-string-ref' web/ || echo "(no matches)"

Repository: p-to-q/aleph

Length of output: 760


React 19 upgrade: deprecated API usage looks absent, but react-dom is still on v18

  • In web/, no occurrences of propTypes/defaultProps for function components, string refs (ref="..."), legacy context (contextTypes/getChildContext), ReactDOM.render(...), findDOMNode, or createFactory.
  • web/package.json uses react@19.2.6 with react-dom@18.3.1; upgrade react-dom to React 19 and re-check React 19 ref/type changes (e.g., ref callback return values and useRef() call signatures).
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@web/package.json` around lines 10 - 21, The package.json dependency versions
are mismatched: "react" is at 19.2.6 while "react-dom" remains at 18.3.1; update
the "react-dom" entry to the corresponding React 19 version (e.g., "react-dom":
"19.2.6") in the dependencies block, then run install and re-run checks for
React 19 changes (ref callback return values and useRef() call signatures)
across the codebase to ensure compatibility with the upgraded "react" and
"react-dom" versions.

Comment thread web/package.json
Comment on lines +13 to 14
"react": "19.2.6",
"react-dom": "18.3.1"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical | ⚡ Quick win

Critical: react-dom must be upgraded to match React 19.

React and react-dom must be kept at the same major version. Having React at 19.2.6 while react-dom remains at 18.3.1 will cause runtime incompatibilities.

🔧 Required fix
   "react": "19.2.6",
-  "react-dom": "18.3.1"
+  "react-dom": "19.2.6"

As per coding guidelines: "Install: npm install --save-exact react@^19 react-dom@^19"

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"react": "19.2.6",
"react-dom": "18.3.1"
"react": "19.2.6",
"react-dom": "19.2.6"
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@web/package.json` around lines 13 - 14, The package.json has mismatched major
versions for React ("react": "19.2.6") and react-dom ("react-dom": "18.3.1");
update react-dom to a 19.x exact version to match React (e.g., set "react-dom"
to "19.2.6" or run the command from guidelines: npm install --save-exact
react@^19 react-dom@^19) so both "react" and "react-dom" share the same major
version.

Comment thread web/package.json
"@types/node": "20.11.17",
"@types/react": "18.3.3",
"@types/react": "19.2.15",
"@types/react-dom": "18.3.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Major: @types/react-dom should be upgraded to match React 19.

The TypeScript type definitions for react-dom should be upgraded to version ^19 to match the upgraded @types/react at 19.2.15 and the target React version 19.2.6.

🔧 Recommended fix
   "`@types/react`": "19.2.15",
-  "`@types/react-dom`": "18.3.0",
+  "`@types/react-dom`": "19.3.0",

As per coding guidelines: "Update TypeScript types: npm install --save-exact @types/react@^19 @types/react-dom@^19"

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"@types/react-dom": "18.3.0",
"`@types/react-dom`": "19.3.0",
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@web/package.json` at line 19, Update the `@types/react-dom` dependency in
package.json from "18.3.0" to a v19 range to match `@types/react`@19 and React 19
(e.g., change "`@types/react-dom`" to "^19"); then run the exact install command
from the guideline (npm install --save-exact `@types/react`@^19
`@types/react-dom`@^19) and commit the updated package.json and lockfile so type
definitions and CI type checks align with React 19.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants