Skip to content

Commit 9ba40ab

Browse files
committed
Regenerate RSC pin references after rebase
1 parent ba3f2f4 commit 9ba40ab

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

llms-full.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27000,6 +27000,7 @@ After a release, run `/update-changelog` in Claude Code to analyze commits, writ
2700027000

2700127001
#### Changed
2700227002

27003+
- **[Pro]** **RSC peer compatibility accepts the coordinated React 19.2 floor**: The Pro node renderer now allows React and React DOM `19.2.x` starting at `19.2.7`, matching the floor required by the `react-on-rails-rsc` 19.2 package line while preserving the existing React `19.0.x` support window. Refs [Issue 3865](https://github.com/shakacode/react_on_rails/issues/3865).
2700327004
- **[Pro]** **Pinned the RSC runtime to stable `react-on-rails-rsc@19.0.5`**: the generator and Pro dummy app now install the stable `19.0.5` package, while `react-on-rails-pro` declares an explicit optional peer range for stable `~19.0.5` plus the prior coordinated `19.0.5-rc.6` / `19.0.5-rc.7` pins so existing RC apps can upgrade far enough for the node renderer to warn them onto stable. Fixes [Issue 3965](https://github.com/shakacode/react_on_rails/issues/3965).
2700427005

2700527006
#### Fixed

packages/react-on-rails-pro-node-renderer/src/shared/checkRscPeerCompatibility.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,8 @@ const isSupportedReactTuple = (
130130
(range) => rscTuple[1] === range.rscMinor && minor === range.minor && patch >= range.minPatch,
131131
);
132132

133-
const isSupportedRscMinor = (
134-
rscTuple: VersionTuple,
135-
{ supportedRanges }: RscPeerSupport['react'],
136-
): boolean => supportedRanges.some((range) => rscTuple[1] === range.rscMinor);
133+
const isSupportedRscMinor = (rscTuple: VersionTuple, { supportedRanges }: RscPeerSupport['react']): boolean =>
134+
supportedRanges.some((range) => rscTuple[1] === range.rscMinor);
137135

138136
const isAllowedRscPrerelease = (
139137
rscVersion: string,
@@ -259,7 +257,8 @@ export function checkRscPeerCompatibility(
259257
}
260258

261259
const recommendedMinTuple = parseTuple(reactOnRailsRsc.recommendedMin);
262-
const isPrereleaseAtRecommendedMin = sameTuple(rscTuple, recommendedMinTuple) && isPrereleaseVersion(rscVersion);
260+
const isPrereleaseAtRecommendedMin =
261+
sameTuple(rscTuple, recommendedMinTuple) && isPrereleaseVersion(rscVersion);
263262
if (!isAtLeast(rscTuple, recommendedMinTuple) || isPrereleaseAtRecommendedMin) {
264263
const message = isPrereleaseAtRecommendedMin
265264
? prereleaseWarnMessage(rscVersion, reactOnRailsRsc.recommendedMin, proVersion)

0 commit comments

Comments
 (0)