Skip to content

Conversation

priolette
Copy link
Collaborator

@priolette priolette commented Jul 9, 2025

Describe your changes

Bump react and react-dom versions to 19.1.0, bump mui to 5.16.12

Checklist before requesting a review (leave this PR as draft if any part of this list is not done.)

  • I have commented my code in hard-to understand areas.
  • I have made corresponding changes to README or wiki.
  • For front-end changes, I have updated the corresponding English translations.
  • I have run yarn run mini-ci locally to validate format and lint.
  • If I have added a new library or app, I have updated the deployment scripts to ignore changes as needed

Summary by CodeRabbit

  • Chores
    • Upgraded React and React DOM to version 19.1.0.
    • Updated TypeScript type definitions for React and React DOM to version 19.1.0.
    • Updated Material-UI packages to version 5.16.12.

Copy link
Contributor

coderabbitai bot commented Jul 9, 2025

Walkthrough

The package.json file was updated to upgrade React, React DOM, and their TypeScript type definitions from version 18.3.x to 19.1.0. Additionally, Material-UI packages @mui/material, @mui/material-nextjs, and @mui/system were upgraded from 5.16.6 to 5.16.12. No other dependencies or scripts were changed.

Changes

Files Change Summary
package.json Upgraded React, React DOM, @types/react, @types/react-dom from 18.3.x to 19.1.0; updated @mui/material, @mui/material-nextjs, @mui/system from 5.16.6 to 5.16.12

Suggested labels

CI

Poem

🌙
While gacha banners spin and spin,
I patch React up again.
From eighteen to nineteen, up we go,
My sleep debt grows, but updates flow.
If only SSR pulls were as lucky as this—
One more version, one more wish!

🎲✨


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 87e7904 and c7a1b6e.

⛔ Files ignored due to path filters (26)
  • .yarn/cache/@emotion-cache-npm-11.14.0-83baa0ff98-0a81591541.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@emotion-hash-npm-0.9.2-21b49040cb-379bde2830.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@emotion-memoize-npm-0.9.0-ccd80906b3-0381323593.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@emotion-serialize-npm-1.3.3-b390a9707a-5103312337.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@emotion-sheet-npm-1.4.0-fb64d8f222-eeb1212e32.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@emotion-unitless-npm-0.10.0-bd15580251-d79346df31.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@emotion-utils-npm-1.4.2-2cf43fb561-04cf76849c.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@emotion-weak-memoize-npm-0.4.0-76aafb2333-db5da0e89b.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@mui-core-downloads-tracker-npm-5.16.6-c96be0d16a-b8a4fda213.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@mui-core-downloads-tracker-npm-5.18.0-fd6aa9f81c-065b46739d.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@mui-material-nextjs-npm-5.16.6-a129d26a1b-e1bd6544fc.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@mui-material-nextjs-npm-5.18.0-e8fd4082d3-fadfcc1e79.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@mui-material-npm-5.18.0-2b2f144af9-b9d6cf6387.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@mui-private-theming-npm-5.16.6-5d5b0fab36-314ba598ab.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@mui-private-theming-npm-5.17.1-db0381bb38-ab755e96c8.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@mui-styled-engine-npm-5.16.6-ff5d90c365-604f83b918.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@mui-styled-engine-npm-5.18.0-4747584222-ab2d260ad5.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@mui-system-npm-5.16.6-a4adc109fb-4babc4596a.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@mui-system-npm-5.18.0-8c1c17902d-451f43889c.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@mui-types-npm-7.2.15-25e5fcb946-86c7e58a4e.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@mui-types-npm-7.2.24-37db75b643-3a7367f950.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@mui-utils-npm-5.16.6-19c1f450c3-6f8068f07f.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@mui-utils-npm-5.17.1-bd8fd3ab7c-06f9da7025.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/react-is-npm-18.3.1-370a81e1e9-e20fe84c86.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/react-is-npm-19.1.0-969a96b5b0-3eb4eac7f0.zip is excluded by !**/.yarn/**, !**/*.zip
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (1)
  • package.json (3 hunks)
✅ Files skipped from review due to trivial changes (1)
  • package.json
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
  • GitHub Check: call-build / build
  • GitHub Check: gen-file
  • GitHub Check: format
  • GitHub Check: call-build / build
  • GitHub Check: typecheck
  • GitHub Check: call-build / build
  • GitHub Check: lint
  • GitHub Check: call-build / build
  • GitHub Check: test
  • GitHub Check: call-build / build

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

github-actions bot commented Jul 9, 2025

[zzz-frontend] [Wed Jul 9 15:01:54 UTC 2025] - Deployed a5a57a6 to https://genshin-optimizer-prs.github.io/pr/3008/zzz-frontend (Takes 3-5 minutes after this completes to be available)

[sr-frontend] [Wed Jul 9 15:02:09 UTC 2025] - Deployed a5a57a6 to https://genshin-optimizer-prs.github.io/pr/3008/sr-frontend (Takes 3-5 minutes after this completes to be available)

[frontend] [Wed Jul 9 15:04:14 UTC 2025] - Deployed a5a57a6 to https://genshin-optimizer-prs.github.io/pr/3008/frontend (Takes 3-5 minutes after this completes to be available)

[zzz-frontend] [Sun Jul 13 19:55:47 UTC 2025] - Deployed c1638bd to https://genshin-optimizer-prs.github.io/pr/3008/zzz-frontend (Takes 3-5 minutes after this completes to be available)

[sr-frontend] [Sun Jul 13 19:56:20 UTC 2025] - Deployed c1638bd to https://genshin-optimizer-prs.github.io/pr/3008/sr-frontend (Takes 3-5 minutes after this completes to be available)

[frontend] [Sun Jul 13 19:57:30 UTC 2025] - Deployed c1638bd to https://genshin-optimizer-prs.github.io/pr/3008/frontend (Takes 3-5 minutes after this completes to be available)

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
package.json (1)

47-48: Minor: keep @types/react(-dom) in devDeps only

Type packages don’t belong in "dependencies" for production bundles. They should sit in "devDependencies" alongside TypeScript tooling, saving a few kilobytes from the final lockfile.

If there’s no runtime import, shift them:

"devDependencies": {
-    "@types/react": "19.1.0",
-    "@types/react-dom": "19.1.0",
+    "@types/react": "19.1.0",
+    "@types/react-dom": "19.1.0",

(Yes, tiny, but every primogem counts.)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6801df4 and 87e7904.

⛔ Files ignored due to path filters (11)
  • .yarn/cache/@types-react-dom-npm-18.3.0-111444d3eb-a0cd9b1b81.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@types-react-dom-npm-19.1.0-a0127aeb61-9bd88e628a.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@types-react-npm-18.3.1-5744cb1fe5-9224ef319a.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/@types-react-npm-19.1.0-fba5aaa1ad-7dd7e02189.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/react-dom-npm-18.3.1-a805663f38-298954ecd8.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/react-dom-npm-19.1.0-773f826e46-1d154b6543.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/react-npm-18.3.1-af38f3c1ae-a27bcfa8ff.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/react-npm-19.1.0-9804a7da5b-c0905f8cfb.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/scheduler-npm-0.23.2-6d1dd9c2b7-3e82d1f419.zip is excluded by !**/.yarn/**, !**/*.zip
  • .yarn/cache/scheduler-npm-0.26.0-980301a213-c63a9f1c0e.zip is excluded by !**/.yarn/**, !**/*.zip
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (1)
  • package.json (2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
  • GitHub Check: call-build / build
  • GitHub Check: lint
  • GitHub Check: typecheck
  • GitHub Check: format
  • GitHub Check: call-build / build
  • GitHub Check: gen-file
  • GitHub Check: test
  • GitHub Check: call-build / build
  • GitHub Check: call-build / build
  • GitHub Check: call-build / build

Comment on lines +113 to +114
"react": "19.1.0",
"react-dom": "19.1.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

⚠️ React 19 bump may brick the party

Ugh, 3 AM brain talking here: Next.js 14.2.5 and a pile of other libs in this repo are still peer-pinned to React 18. Dropping in "react": "19.1.0" and matching @types/* looks nice in the gacha banner, but expect red screens instead of sparkle animations:

next@14 officially peers on ^18.2 – no React 19 support yet.
@testing-library/[email protected], MUI 5, [email protected], etc. haven’t published 19-ready versions.
=> Runtime or type‐level mismatches, install warnings, maybe outright build failure.

Before merging, either:

  1. Upgrade framework/libs that already state React 19 peer ranges (Next 15 beta, MUI 6 alpha, etc.), or
  2. Hold this bump until ecosystem catches up.

Run a quick sanity scan:

Expect non-zero hits for 18.x ranges – those will need attention.

Also applies to: 47-48


🏁 Script executed:

#!/bin/bash
# Show packages that explicitly depend on react@^18
jq '.dependencies + .devDependencies' -r package.json | \
grep -E '"(@types/)?react(-dom)?":' -n
echo "--- Peer deps expecting react@18 ---"
fd package.json | xargs jq -r '.peerDependencies? // {}' | \
grep -E '"react":' | sort | uniq -c

Length of output: 394


I’m running on fumes here, but let’s double-check which versions of Next.js, MUI, Testing Library and React Router we’ve pinned:


🏁 Script executed:

#!/bin/bash
# 📦 Check core framework & library versions in package.json
jq '.dependencies + .devDependencies' -r package.json | \
  grep -E '"next":' -n
jq '.dependencies + .devDependencies' -r package.json | \
  grep -E '"@testing-library/react":' -n
jq '.dependencies + .devDependencies' -r package.json | \
  grep -E '"react-router-dom":' -n
jq '.dependencies + .devDependencies' -r package.json | \
  grep -E '"@mui/material":' -n

Length of output: 485


Ugh, can’t tell if I’m hallucinating or just delirious—let’s peek at the actual peer-ranges on npm before we pull the lever:


🏁 Script executed:

#!/bin/bash
echo "🔍 [email protected] peerDependencies:"
npm view [email protected] peerDependencies --json

echo "🔍 @testing-library/[email protected] peerDependencies:"
npm view @testing-library/[email protected] peerDependencies --json

echo "🔍 [email protected] peerDependencies:"
npm view [email protected] peerDependencies --json

echo "🔍 @mui/[email protected] peerDependencies:"
npm view @mui/[email protected] peerDependencies --json

Length of output: 1167


⚠️ React 19 bump incompatible with Next.js v14 & MUI v5

Ugh, running on empty here—Next.js and MUI aren’t ready for React 19, so you’ll hit red screens:

• package.json “next”: “14.2.5” peers on react@^18.2.0 (no 19 support)
• package.json “@mui/material”: “^5.16.6” peers on react@^17.0.0 || ^18.0.0
• package.json “react”: “19.1.0” & “react-dom”: “19.1.0” (current bump)
• @testing-library/[email protected] peers on ^18.0.0 || ^19.0.0 (✅)
[email protected] peers on >=16.8 (✅)

Before merging, choose one:

  1. Upgrade Next.js to v15 beta & MUI to v6 alpha (both React 19-ready)
  2. Hold the React 19 bump until the rest of the ecosystem catches up
🤖 Prompt for AI Agents
In package.json around lines 113 to 114, the React version is set to 19.1.0,
which is incompatible with the current Next.js v14.2.5 and MUI v5.16.6 versions
that expect React 18 or earlier. To fix this, either downgrade React and
React-DOM to version 18.x to match the peer dependencies or upgrade Next.js to
v15 beta and MUI to v6 alpha that support React 19. Choose one approach and
update the package.json dependencies accordingly before merging.

@priolette priolette changed the title Bump react and react-dom versions to 19.1.0 Bump react, react-dom versions to 19.1.0, bump mui to 5.16.12 Jul 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant