Skip to content

Commit dfc3ece

Browse files
committed
refactor[react-devtools-shared]: minor parsing improvements and modifications (#27661)
Had these stashed for some time, it includes: - Some refactoring to remove unnecessary `FlowFixMe`s and type castings via `any`. - Optimized version of parsing component names. We encode string names to utf8 and then pass it serialized from backend to frontend in a single array of numbers. Previously we would call `slice` to get the corresponding encoded string as a subarray and then parse each character. New implementation skips `slice` step and just receives `left` and `right` ranges for the string to parse. - Early `break` instead of `continue` when Store receives unexpected operation, like removing an element from the Store, which is not registered yet. DiffTrain build for commit c897260.
1 parent 8a14f78 commit dfc3ece

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24901,7 +24901,7 @@ function createFiberRoot(
2490124901
return root;
2490224902
}
2490324903

24904-
var ReactVersion = "18.3.0-canary-ce2bc58a9-20231102";
24904+
var ReactVersion = "18.3.0-canary-c897260cf-20231107";
2490524905

2490624906
// Might add PROFILE later.
2490724907

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-prod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9039,7 +9039,7 @@ var devToolsConfig$jscomp$inline_1033 = {
90399039
throw Error("TestRenderer does not support findFiberByHostInstance()");
90409040
},
90419041
bundleType: 0,
9042-
version: "18.3.0-canary-ce2bc58a9-20231102",
9042+
version: "18.3.0-canary-c897260cf-20231107",
90439043
rendererPackageName: "react-test-renderer"
90449044
};
90459045
var internals$jscomp$inline_1226 = {
@@ -9070,7 +9070,7 @@ var internals$jscomp$inline_1226 = {
90709070
scheduleRoot: null,
90719071
setRefreshHandler: null,
90729072
getCurrentFiber: null,
9073-
reconcilerVersion: "18.3.0-canary-ce2bc58a9-20231102"
9073+
reconcilerVersion: "18.3.0-canary-c897260cf-20231107"
90749074
};
90759075
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
90769076
var hook$jscomp$inline_1227 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-profiling.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9465,7 +9465,7 @@ var devToolsConfig$jscomp$inline_1075 = {
94659465
throw Error("TestRenderer does not support findFiberByHostInstance()");
94669466
},
94679467
bundleType: 0,
9468-
version: "18.3.0-canary-ce2bc58a9-20231102",
9468+
version: "18.3.0-canary-c897260cf-20231107",
94699469
rendererPackageName: "react-test-renderer"
94709470
};
94719471
var internals$jscomp$inline_1267 = {
@@ -9496,7 +9496,7 @@ var internals$jscomp$inline_1267 = {
94969496
scheduleRoot: null,
94979497
setRefreshHandler: null,
94989498
getCurrentFiber: null,
9499-
reconcilerVersion: "18.3.0-canary-ce2bc58a9-20231102"
9499+
reconcilerVersion: "18.3.0-canary-c897260cf-20231107"
95009500
};
95019501
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
95029502
var hook$jscomp$inline_1268 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if (
2727
}
2828
"use strict";
2929

30-
var ReactVersion = "18.3.0-canary-ce2bc58a9-20231102";
30+
var ReactVersion = "18.3.0-canary-c897260cf-20231107";
3131

3232
// ATTENTION
3333
// When adding new symbols to this file,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,4 +580,4 @@ exports.useSyncExternalStore = function (
580580
exports.useTransition = function () {
581581
return ReactCurrentDispatcher.current.useTransition();
582582
};
583-
exports.version = "18.3.0-canary-ce2bc58a9-20231102";
583+
exports.version = "18.3.0-canary-c897260cf-20231107";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ exports.useSyncExternalStore = function (
583583
exports.useTransition = function () {
584584
return ReactCurrentDispatcher.current.useTransition();
585585
};
586-
exports.version = "18.3.0-canary-ce2bc58a9-20231102";
586+
exports.version = "18.3.0-canary-c897260cf-20231107";
587587

588588
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
589589
if (
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ce2bc58a9f6f3b0bfc8c738a0d8e2a5f3a332ff5
1+
c897260cffb6a237d5ad707a6043f68ddf9ab014

0 commit comments

Comments
 (0)