Skip to content

Commit 5d5ddd7

Browse files
committed
[Flight] Encode ReactIOInfo as its own row type (facebook#33390)
Stacked on facebook#33388. This encodes the I/O entries as their own row type (`"J"`). This makes it possible to parse them directly without first parsing the debug info for each component. E.g. if you're just interested in logging the I/O without all the places it was awaited. This is not strictly necessary since the debug info is also readily available without parsing the actual trees. (That's how the Server Components Performance Track works.) However, we might want to exclude this information in profiling builds while retaining some limited form of I/O tracking. It also allows for logging side-effects that are not awaited if we wanted to. DiffTrain build for [3fb17d1](facebook@3fb17d1)
1 parent f1f9ba8 commit 5d5ddd7

24 files changed

+122
-158
lines changed

compiled-rn/VERSION_NATIVE_FB

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19.2.0-native-fb-4a1f2907-20250602
1+
19.2.0-native-fb-3fb17d16-20250603

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<de1f3d89c6a23a93361ce64653841a23>>
10+
* @generated SignedSource<<63ae1a36a15b55bf41aeacaa214c4747>>
1111
*/
1212

1313
"use strict";
@@ -404,5 +404,5 @@ __DEV__ &&
404404
exports.useFormStatus = function () {
405405
return resolveDispatcher().useHostTransitionStatus();
406406
};
407-
exports.version = "19.2.0-native-fb-4a1f2907-20250602";
407+
exports.version = "19.2.0-native-fb-3fb17d16-20250603";
408408
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<6740b7e86f43bd038f3f997b841ca5ca>>
10+
* @generated SignedSource<<33e62e39c6a8596eeeb510c25b91de95>>
1111
*/
1212

1313
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
203203
exports.useFormStatus = function () {
204204
return ReactSharedInternals.H.useHostTransitionStatus();
205205
};
206-
exports.version = "19.2.0-native-fb-4a1f2907-20250602";
206+
exports.version = "19.2.0-native-fb-3fb17d16-20250603";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<6740b7e86f43bd038f3f997b841ca5ca>>
10+
* @generated SignedSource<<33e62e39c6a8596eeeb510c25b91de95>>
1111
*/
1212

1313
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
203203
exports.useFormStatus = function () {
204204
return ReactSharedInternals.H.useHostTransitionStatus();
205205
};
206-
exports.version = "19.2.0-native-fb-4a1f2907-20250602";
206+
exports.version = "19.2.0-native-fb-3fb17d16-20250603";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<1ce2735dbf629a390c4c319a4959a2b9>>
10+
* @generated SignedSource<<f846ed083a59d257d6dea9f4e577557b>>
1111
*/
1212

1313
/*
@@ -8285,14 +8285,14 @@ __DEV__ &&
82858285
(
82868286
idWithLeadingBit & ~(1 << (32 - clz32(idWithLeadingBit) - 1))
82878287
).toString(32) + treeId;
8288-
identifierPrefix = "\u00ab" + identifierPrefix + "R" + treeId;
8288+
identifierPrefix = "_" + identifierPrefix + "R_" + treeId;
82898289
treeId = localIdCounter++;
82908290
0 < treeId && (identifierPrefix += "H" + treeId.toString(32));
8291-
identifierPrefix += "\u00bb";
8291+
identifierPrefix += "_";
82928292
} else
82938293
(treeId = globalClientIdCounter++),
82948294
(identifierPrefix =
8295-
"\u00ab" + identifierPrefix + "r" + treeId.toString(32) + "\u00bb");
8295+
"_" + identifierPrefix + "r_" + treeId.toString(32) + "_");
82968296
return (hook.memoizedState = identifierPrefix);
82978297
}
82988298
function mountRefresh() {
@@ -27026,11 +27026,11 @@ __DEV__ &&
2702627026
};
2702727027
(function () {
2702827028
var isomorphicReactPackageVersion = React.version;
27029-
if ("19.2.0-native-fb-4a1f2907-20250602" !== isomorphicReactPackageVersion)
27029+
if ("19.2.0-native-fb-3fb17d16-20250603" !== isomorphicReactPackageVersion)
2703027030
throw Error(
2703127031
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2703227032
(isomorphicReactPackageVersion +
27033-
"\n - react-dom: 19.2.0-native-fb-4a1f2907-20250602\nLearn more: https://react.dev/warnings/version-mismatch")
27033+
"\n - react-dom: 19.2.0-native-fb-3fb17d16-20250603\nLearn more: https://react.dev/warnings/version-mismatch")
2703427034
);
2703527035
})();
2703627036
("function" === typeof Map &&
@@ -27067,10 +27067,10 @@ __DEV__ &&
2706727067
!(function () {
2706827068
var internals = {
2706927069
bundleType: 1,
27070-
version: "19.2.0-native-fb-4a1f2907-20250602",
27070+
version: "19.2.0-native-fb-3fb17d16-20250603",
2707127071
rendererPackageName: "react-dom",
2707227072
currentDispatcherRef: ReactSharedInternals,
27073-
reconcilerVersion: "19.2.0-native-fb-4a1f2907-20250602"
27073+
reconcilerVersion: "19.2.0-native-fb-3fb17d16-20250603"
2707427074
};
2707527075
internals.overrideHookState = overrideHookState;
2707627076
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -27208,5 +27208,5 @@ __DEV__ &&
2720827208
listenToAllSupportedEvents(container);
2720927209
return new ReactDOMHydrationRoot(initialChildren);
2721027210
};
27211-
exports.version = "19.2.0-native-fb-4a1f2907-20250602";
27211+
exports.version = "19.2.0-native-fb-3fb17d16-20250603";
2721227212
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<8681f87bbd6ef8caf75907fd789a6398>>
10+
* @generated SignedSource<<af713a7f1668bd57d8efe85e165ab373>>
1111
*/
1212

1313
/*
@@ -5826,19 +5826,19 @@ var ContextOnlyDispatcher = {
58265826
idWithLeadingBit & ~(1 << (32 - clz32(idWithLeadingBit) - 1))
58275827
).toString(32) + JSCompiler_inline_result;
58285828
identifierPrefix =
5829-
"\u00ab" + identifierPrefix + "R" + JSCompiler_inline_result;
5829+
"_" + identifierPrefix + "R_" + JSCompiler_inline_result;
58305830
JSCompiler_inline_result = localIdCounter++;
58315831
0 < JSCompiler_inline_result &&
58325832
(identifierPrefix += "H" + JSCompiler_inline_result.toString(32));
5833-
identifierPrefix += "\u00bb";
5833+
identifierPrefix += "_";
58345834
} else
58355835
(JSCompiler_inline_result = globalClientIdCounter++),
58365836
(identifierPrefix =
5837-
"\u00ab" +
5837+
"_" +
58385838
identifierPrefix +
5839-
"r" +
5839+
"r_" +
58405840
JSCompiler_inline_result.toString(32) +
5841-
"\u00bb");
5841+
"_");
58425842
return (hook.memoizedState = identifierPrefix);
58435843
},
58445844
useHostTransitionStatus: useHostTransitionStatus,
@@ -17094,14 +17094,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1709417094
};
1709517095
var isomorphicReactPackageVersion$jscomp$inline_2017 = React.version;
1709617096
if (
17097-
"19.2.0-native-fb-4a1f2907-20250602" !==
17097+
"19.2.0-native-fb-3fb17d16-20250603" !==
1709817098
isomorphicReactPackageVersion$jscomp$inline_2017
1709917099
)
1710017100
throw Error(
1710117101
formatProdErrorMessage(
1710217102
527,
1710317103
isomorphicReactPackageVersion$jscomp$inline_2017,
17104-
"19.2.0-native-fb-4a1f2907-20250602"
17104+
"19.2.0-native-fb-3fb17d16-20250603"
1710517105
)
1710617106
);
1710717107
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17123,10 +17123,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1712317123
};
1712417124
var internals$jscomp$inline_2536 = {
1712517125
bundleType: 0,
17126-
version: "19.2.0-native-fb-4a1f2907-20250602",
17126+
version: "19.2.0-native-fb-3fb17d16-20250603",
1712717127
rendererPackageName: "react-dom",
1712817128
currentDispatcherRef: ReactSharedInternals,
17129-
reconcilerVersion: "19.2.0-native-fb-4a1f2907-20250602"
17129+
reconcilerVersion: "19.2.0-native-fb-3fb17d16-20250603"
1713017130
};
1713117131
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1713217132
var hook$jscomp$inline_2537 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17224,4 +17224,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1722417224
listenToAllSupportedEvents(container);
1722517225
return new ReactDOMHydrationRoot(initialChildren);
1722617226
};
17227-
exports.version = "19.2.0-native-fb-4a1f2907-20250602";
17227+
exports.version = "19.2.0-native-fb-3fb17d16-20250603";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-profiling.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<47f8e2f1b357bc8aeb2eb3edd8b89f75>>
10+
* @generated SignedSource<<1342eedf052099976243af3897e92f89>>
1111
*/
1212

1313
/*
@@ -5988,19 +5988,19 @@ var ContextOnlyDispatcher = {
59885988
idWithLeadingBit & ~(1 << (32 - clz32(idWithLeadingBit) - 1))
59895989
).toString(32) + JSCompiler_inline_result;
59905990
identifierPrefix =
5991-
"\u00ab" + identifierPrefix + "R" + JSCompiler_inline_result;
5991+
"_" + identifierPrefix + "R_" + JSCompiler_inline_result;
59925992
JSCompiler_inline_result = localIdCounter++;
59935993
0 < JSCompiler_inline_result &&
59945994
(identifierPrefix += "H" + JSCompiler_inline_result.toString(32));
5995-
identifierPrefix += "\u00bb";
5995+
identifierPrefix += "_";
59965996
} else
59975997
(JSCompiler_inline_result = globalClientIdCounter++),
59985998
(identifierPrefix =
5999-
"\u00ab" +
5999+
"_" +
60006000
identifierPrefix +
6001-
"r" +
6001+
"r_" +
60026002
JSCompiler_inline_result.toString(32) +
6003-
"\u00bb");
6003+
"_");
60046004
return (hook.memoizedState = identifierPrefix);
60056005
},
60066006
useHostTransitionStatus: useHostTransitionStatus,
@@ -17804,14 +17804,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1780417804
};
1780517805
var isomorphicReactPackageVersion$jscomp$inline_2120 = React.version;
1780617806
if (
17807-
"19.2.0-native-fb-4a1f2907-20250602" !==
17807+
"19.2.0-native-fb-3fb17d16-20250603" !==
1780817808
isomorphicReactPackageVersion$jscomp$inline_2120
1780917809
)
1781017810
throw Error(
1781117811
formatProdErrorMessage(
1781217812
527,
1781317813
isomorphicReactPackageVersion$jscomp$inline_2120,
17814-
"19.2.0-native-fb-4a1f2907-20250602"
17814+
"19.2.0-native-fb-3fb17d16-20250603"
1781517815
)
1781617816
);
1781717817
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17833,10 +17833,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1783317833
};
1783417834
var internals$jscomp$inline_2127 = {
1783517835
bundleType: 0,
17836-
version: "19.2.0-native-fb-4a1f2907-20250602",
17836+
version: "19.2.0-native-fb-3fb17d16-20250603",
1783717837
rendererPackageName: "react-dom",
1783817838
currentDispatcherRef: ReactSharedInternals,
17839-
reconcilerVersion: "19.2.0-native-fb-4a1f2907-20250602",
17839+
reconcilerVersion: "19.2.0-native-fb-3fb17d16-20250603",
1784017840
getLaneLabelMap: function () {
1784117841
for (
1784217842
var map = new Map(), lane = 1, index$313 = 0;
@@ -17949,4 +17949,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1794917949
listenToAllSupportedEvents(container);
1795017950
return new ReactDOMHydrationRoot(initialChildren);
1795117951
};
17952-
exports.version = "19.2.0-native-fb-4a1f2907-20250602";
17952+
exports.version = "19.2.0-native-fb-3fb17d16-20250603";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-dev.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<9e4ec8987fd8985abf65b20ee472c3ec>>
10+
* @generated SignedSource<<41c6dea7314621ba9d48447a19d99195>>
1111
*/
1212

1313
/*
@@ -8293,14 +8293,14 @@ __DEV__ &&
82938293
(
82948294
idWithLeadingBit & ~(1 << (32 - clz32(idWithLeadingBit) - 1))
82958295
).toString(32) + treeId;
8296-
identifierPrefix = "\u00ab" + identifierPrefix + "R" + treeId;
8296+
identifierPrefix = "_" + identifierPrefix + "R_" + treeId;
82978297
treeId = localIdCounter++;
82988298
0 < treeId && (identifierPrefix += "H" + treeId.toString(32));
8299-
identifierPrefix += "\u00bb";
8299+
identifierPrefix += "_";
83008300
} else
83018301
(treeId = globalClientIdCounter++),
83028302
(identifierPrefix =
8303-
"\u00ab" + identifierPrefix + "r" + treeId.toString(32) + "\u00bb");
8303+
"_" + identifierPrefix + "r_" + treeId.toString(32) + "_");
83048304
return (hook.memoizedState = identifierPrefix);
83058305
}
83068306
function mountRefresh() {
@@ -27082,11 +27082,11 @@ __DEV__ &&
2708227082
};
2708327083
(function () {
2708427084
var isomorphicReactPackageVersion = React.version;
27085-
if ("19.2.0-native-fb-4a1f2907-20250602" !== isomorphicReactPackageVersion)
27085+
if ("19.2.0-native-fb-3fb17d16-20250603" !== isomorphicReactPackageVersion)
2708627086
throw Error(
2708727087
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2708827088
(isomorphicReactPackageVersion +
27089-
"\n - react-dom: 19.2.0-native-fb-4a1f2907-20250602\nLearn more: https://react.dev/warnings/version-mismatch")
27089+
"\n - react-dom: 19.2.0-native-fb-3fb17d16-20250603\nLearn more: https://react.dev/warnings/version-mismatch")
2709027090
);
2709127091
})();
2709227092
("function" === typeof Map &&
@@ -27123,10 +27123,10 @@ __DEV__ &&
2712327123
!(function () {
2712427124
var internals = {
2712527125
bundleType: 1,
27126-
version: "19.2.0-native-fb-4a1f2907-20250602",
27126+
version: "19.2.0-native-fb-3fb17d16-20250603",
2712727127
rendererPackageName: "react-dom",
2712827128
currentDispatcherRef: ReactSharedInternals,
27129-
reconcilerVersion: "19.2.0-native-fb-4a1f2907-20250602"
27129+
reconcilerVersion: "19.2.0-native-fb-3fb17d16-20250603"
2713027130
};
2713127131
internals.overrideHookState = overrideHookState;
2713227132
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -27580,7 +27580,7 @@ __DEV__ &&
2758027580
exports.useFormStatus = function () {
2758127581
return resolveDispatcher().useHostTransitionStatus();
2758227582
};
27583-
exports.version = "19.2.0-native-fb-4a1f2907-20250602";
27583+
exports.version = "19.2.0-native-fb-3fb17d16-20250603";
2758427584
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2758527585
"function" ===
2758627586
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-prod.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<e927d99c90d9df1784ab593c88962186>>
10+
* @generated SignedSource<<b05454f7805778d864fe3ed2d2269de2>>
1111
*/
1212

1313
/*
@@ -5826,19 +5826,19 @@ var ContextOnlyDispatcher = {
58265826
idWithLeadingBit & ~(1 << (32 - clz32(idWithLeadingBit) - 1))
58275827
).toString(32) + JSCompiler_inline_result;
58285828
identifierPrefix =
5829-
"\u00ab" + identifierPrefix + "R" + JSCompiler_inline_result;
5829+
"_" + identifierPrefix + "R_" + JSCompiler_inline_result;
58305830
JSCompiler_inline_result = localIdCounter++;
58315831
0 < JSCompiler_inline_result &&
58325832
(identifierPrefix += "H" + JSCompiler_inline_result.toString(32));
5833-
identifierPrefix += "\u00bb";
5833+
identifierPrefix += "_";
58345834
} else
58355835
(JSCompiler_inline_result = globalClientIdCounter++),
58365836
(identifierPrefix =
5837-
"\u00ab" +
5837+
"_" +
58385838
identifierPrefix +
5839-
"r" +
5839+
"r_" +
58405840
JSCompiler_inline_result.toString(32) +
5841-
"\u00bb");
5841+
"_");
58425842
return (hook.memoizedState = identifierPrefix);
58435843
},
58445844
useHostTransitionStatus: useHostTransitionStatus,
@@ -17105,14 +17105,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1710517105
};
1710617106
var isomorphicReactPackageVersion$jscomp$inline_2018 = React.version;
1710717107
if (
17108-
"19.2.0-native-fb-4a1f2907-20250602" !==
17108+
"19.2.0-native-fb-3fb17d16-20250603" !==
1710917109
isomorphicReactPackageVersion$jscomp$inline_2018
1711017110
)
1711117111
throw Error(
1711217112
formatProdErrorMessage(
1711317113
527,
1711417114
isomorphicReactPackageVersion$jscomp$inline_2018,
17115-
"19.2.0-native-fb-4a1f2907-20250602"
17115+
"19.2.0-native-fb-3fb17d16-20250603"
1711617116
)
1711717117
);
1711817118
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17134,10 +17134,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1713417134
};
1713517135
var internals$jscomp$inline_2539 = {
1713617136
bundleType: 0,
17137-
version: "19.2.0-native-fb-4a1f2907-20250602",
17137+
version: "19.2.0-native-fb-3fb17d16-20250603",
1713817138
rendererPackageName: "react-dom",
1713917139
currentDispatcherRef: ReactSharedInternals,
17140-
reconcilerVersion: "19.2.0-native-fb-4a1f2907-20250602"
17140+
reconcilerVersion: "19.2.0-native-fb-3fb17d16-20250603"
1714117141
};
1714217142
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1714317143
var hook$jscomp$inline_2540 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17388,4 +17388,4 @@ exports.useFormState = function (action, initialState, permalink) {
1738817388
exports.useFormStatus = function () {
1738917389
return ReactSharedInternals.H.useHostTransitionStatus();
1739017390
};
17391-
exports.version = "19.2.0-native-fb-4a1f2907-20250602";
17391+
exports.version = "19.2.0-native-fb-3fb17d16-20250603";

0 commit comments

Comments
 (0)