-
Notifications
You must be signed in to change notification settings - Fork 13
Bump react dep version to v19 #20
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
Open
rennard
wants to merge
1
commit into
rnsb-org:master
Choose a base branch
from
rennard:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
💡 Verification agent
🧩 Analysis chain
Eh, mismatch alert, doc!
You juiced up the peer range to include React 19, but the devDependencies are still munchin’ on the old v16 carrots (
"react": "^16.0.0"and"@types/react": "^16.0.0"). That can bite you during local builds, tests, and type-checking because Yarn/NPM will hoist v16 while downstream apps expect v19 compatibility.Consider bumping the dev deps (or dropping them entirely and relying on workspaces/PNPM resolutions) so your CI environment compiles against the highest supported version.
Give it a quick spin to be sure no type or lint carrots pop up.
Eh, doc, let’s take a peek under the hood and see what versions are munchin’ on carrots in devDependencies:
🏁 Script executed:
Length of output: 357
DevDependencies Update Required
What’s up, doc? Our peerDependencies now support React 19, but devDependencies are still stuck on React 16—this can lead to hoisting surprises and type-checking hiccups in CI. Let’s bump them so we’re compiling against the highest supported version.
• File: package.json (devDependencies block)
Suggested diff:
"devDependencies": { - "@types/react": "^16.0.0", - "react": "^16.0.0", + "@types/react": "^18.2.37", // latest available typings; adjust when React 19 types land + "react": "^19.0.0", "@types/react-native": "^0.57.0", "prettier": "^2.1.1", "react-native": "^0.57.0", "typescript": "^5.2.2" },Give it a quick spin to make sure no type or lint carrots pop up.
📝 Committable suggestion
🤖 Prompt for AI Agents
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.
What are the implications of leaving this as is? We would want maximum compatibility but also recognize that certain libs are kinda old.
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.
@angelxmoreno Eh, what's up doc? Great question about keepin' those carrots fresh vs. old! Let me break down the implications of leavin' things as-is:
Implications of Keeping devDependencies at React 16:
🥕 The Good:
🐰 The Not-So-Good:
The Bugs Bunny Recommendation:
Since this is a library (not an app), I'd suggest a hybrid approach:
Why React 18 in devDependencies?
Pro tip: Consider adding a CI matrix that tests against multiple React versions if you really want belt-and-suspenders compatibility:
What's your take, doc? Want to play it safe with the middle ground, or stick with the current approach for maximum backward compatibility?
(°◡°)♡