-
Notifications
You must be signed in to change notification settings - Fork 373
Bump React on Rails RC dependencies #768
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -78,17 +78,18 @@ | |||||||||||
| "postcss-loader": "7.3.3", | ||||||||||||
| "postcss-preset-env": "^8.5.0", | ||||||||||||
| "prop-types": "^15.8.1", | ||||||||||||
| "react": "~19.0.4", | ||||||||||||
| "react-dom": "~19.0.4", | ||||||||||||
| "react": "~19.2.7", | ||||||||||||
| "react-dom": "~19.2.7", | ||||||||||||
|
Comment on lines
+81
to
+82
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. Version triangle: three RSC packages must stay in lockstep but have independent pins
Consider anchoring all three together via a "resolutions": {
"react": "~19.2.7",
"react-dom": "~19.2.7",
"react-server-dom-webpack": "~19.2.7"
}Or at minimum add a comment above all three entries calling out that they must be bumped together. |
||||||||||||
| "react-error-boundary": "^4.1.2", | ||||||||||||
| "react-intl": "^6.4.4", | ||||||||||||
| "react-on-rails-pro": "17.0.0-rc.3", | ||||||||||||
| "react-on-rails-pro-node-renderer": "17.0.0-rc.3", | ||||||||||||
| "react-on-rails-rsc": "19.0.5-rc.7", | ||||||||||||
| "react-on-rails-pro": "17.0.0-rc.6", | ||||||||||||
| "react-on-rails-pro-node-renderer": "17.0.0-rc.6", | ||||||||||||
| "react-on-rails-rsc": "19.2.0-rc.3", | ||||||||||||
|
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. This version introduces
Suggested change
Adding it as a direct dependency makes the constraint explicit, ensures it moves in lockstep with |
||||||||||||
| "react-redux": "^8.1.0", | ||||||||||||
|
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.
Consider upgrading to |
||||||||||||
| "react-router": "^6.13.0", | ||||||||||||
| "react-router-dom": "^6.13.0", | ||||||||||||
| "react-router-redux": "^4.0.8", | ||||||||||||
| "react-server-dom-webpack": "~19.2.7", | ||||||||||||
|
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. Redundant direct pin — no app code imports this package
If the goal is to lock the version independently of
Suggested change
(Alternatively, remove this line entirely and let it be managed transitively — the yarn.lock already locks it to 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. This package is never directly imported in the application source — all RSC usage goes through The concern is forward-looking: when If the goal is to keep
Suggested change
...and add in the top-level "resolutions": {
"react-server-dom-webpack": "~19.2.7"
}That enforces the version without making this project responsible for manually upgrading a package it never directly uses. 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.
Suggested change
Move this entry to the |
||||||||||||
| "react-transition-group": "4.4.5", | ||||||||||||
| "redux": "^4.2.1", | ||||||||||||
| "redux-thunk": "^2.2.0", | ||||||||||||
|
|
||||||||||||
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.
The base
react_on_railsgem (at 17.0.0.rc.6) is not directly pinned here — it only appears in the lockfile as a transitive dep ofreact_on_rails_pro. RC gems can be yanked from RubyGems.org; if that happens,bundle installfails on fresh checkouts with no recourse.Consider adding a direct pin: