Skip to content

Commit a7e51aa

Browse files
committed
Fix mistaken "react-server" condition (#28835)
This is a Fizz server. DiffTrain build for commit ed40236.
1 parent 97eab46 commit a7e51aa

17 files changed

+3769
-3518
lines changed

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

Lines changed: 429 additions & 489 deletions
Large diffs are not rendered by default.

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

Lines changed: 183 additions & 255 deletions
Large diffs are not rendered by default.

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

Lines changed: 160 additions & 210 deletions
Large diffs are not rendered by default.

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

Lines changed: 330 additions & 89 deletions
Large diffs are not rendered by default.

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

Lines changed: 330 additions & 89 deletions
Large diffs are not rendered by default.

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

Lines changed: 53 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,44 +7,78 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<26fbc8eee6902991682d526f8537439c>>
10+
* @generated SignedSource<<881038bf21de122675cb4eb0358c5cfd>>
1111
*/
1212

1313
"use strict";
1414
var dynamicFlagsUntyped = require("ReactNativeInternalFeatureFlags"),
1515
React = require("react"),
1616
REACT_ELEMENT_TYPE = Symbol.for("react.element"),
17-
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
18-
disableDefaultPropsExceptForClasses =
17+
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
18+
function formatProdErrorMessage(code) {
19+
var url = "https://react.dev/errors/" + code;
20+
if (1 < arguments.length) {
21+
url += "?args[]=" + encodeURIComponent(arguments[1]);
22+
for (var i = 2; i < arguments.length; i++)
23+
url += "&args[]=" + encodeURIComponent(arguments[i]);
24+
}
25+
return (
26+
"Minified React error #" +
27+
code +
28+
"; visit " +
29+
url +
30+
" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
31+
);
32+
}
33+
var disableDefaultPropsExceptForClasses =
1934
dynamicFlagsUntyped.disableDefaultPropsExceptForClasses,
20-
hasOwnProperty = Object.prototype.hasOwnProperty,
21-
ReactCurrentOwner =
22-
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;
35+
ReactSharedInternals =
36+
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
2337
function jsxProd(type, config, maybeKey) {
24-
var propName,
25-
props = {},
26-
key = null,
38+
var key = null,
2739
ref = null;
2840
void 0 !== maybeKey && (key = "" + maybeKey);
2941
void 0 !== config.key && (key = "" + config.key);
30-
void 0 !== config.ref && (ref = config.ref);
31-
for (propName in config)
32-
hasOwnProperty.call(config, propName) &&
33-
"key" !== propName &&
42+
if (void 0 !== config.ref)
43+
a: {
44+
(ref = config.ref), (maybeKey = ReactSharedInternals.owner);
45+
if ("string" !== typeof ref)
46+
if ("number" === typeof ref || "boolean" === typeof ref) ref = "" + ref;
47+
else break a;
48+
var callback = stringRefAsCallbackRef.bind(null, ref, type, maybeKey);
49+
callback.__stringRef = ref;
50+
callback.__type = type;
51+
callback.__owner = maybeKey;
52+
ref = callback;
53+
}
54+
maybeKey = {};
55+
for (var propName in config)
56+
"key" !== propName &&
3457
"ref" !== propName &&
35-
(props[propName] = config[propName]);
36-
if (!disableDefaultPropsExceptForClasses && type && type.defaultProps)
37-
for (propName in ((config = type.defaultProps), config))
38-
void 0 === props[propName] && (props[propName] = config[propName]);
58+
(maybeKey[propName] = config[propName]);
59+
if (!disableDefaultPropsExceptForClasses && type && type.defaultProps) {
60+
config = type.defaultProps;
61+
for (var propName$0 in config)
62+
void 0 === maybeKey[propName$0] &&
63+
(maybeKey[propName$0] = config[propName$0]);
64+
}
3965
return {
4066
$$typeof: REACT_ELEMENT_TYPE,
4167
type: type,
4268
key: key,
4369
ref: ref,
44-
props: props,
45-
_owner: ReactCurrentOwner.current
70+
props: maybeKey,
71+
_owner: ReactSharedInternals.owner
4672
};
4773
}
74+
function stringRefAsCallbackRef(stringRef, type, owner, value) {
75+
if (!owner) throw Error(formatProdErrorMessage(290, stringRef));
76+
if (1 !== owner.tag) throw Error(formatProdErrorMessage(309));
77+
type = owner.stateNode;
78+
if (!type) throw Error(formatProdErrorMessage(147, stringRef));
79+
type = type.refs;
80+
null === value ? delete type[stringRef] : (type[stringRef] = value);
81+
}
4882
exports.Fragment = REACT_FRAGMENT_TYPE;
4983
exports.jsx = jsxProd;
5084
exports.jsxs = jsxProd;

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

Lines changed: 53 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,44 +7,78 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<26fbc8eee6902991682d526f8537439c>>
10+
* @generated SignedSource<<881038bf21de122675cb4eb0358c5cfd>>
1111
*/
1212

1313
"use strict";
1414
var dynamicFlagsUntyped = require("ReactNativeInternalFeatureFlags"),
1515
React = require("react"),
1616
REACT_ELEMENT_TYPE = Symbol.for("react.element"),
17-
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
18-
disableDefaultPropsExceptForClasses =
17+
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
18+
function formatProdErrorMessage(code) {
19+
var url = "https://react.dev/errors/" + code;
20+
if (1 < arguments.length) {
21+
url += "?args[]=" + encodeURIComponent(arguments[1]);
22+
for (var i = 2; i < arguments.length; i++)
23+
url += "&args[]=" + encodeURIComponent(arguments[i]);
24+
}
25+
return (
26+
"Minified React error #" +
27+
code +
28+
"; visit " +
29+
url +
30+
" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
31+
);
32+
}
33+
var disableDefaultPropsExceptForClasses =
1934
dynamicFlagsUntyped.disableDefaultPropsExceptForClasses,
20-
hasOwnProperty = Object.prototype.hasOwnProperty,
21-
ReactCurrentOwner =
22-
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;
35+
ReactSharedInternals =
36+
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
2337
function jsxProd(type, config, maybeKey) {
24-
var propName,
25-
props = {},
26-
key = null,
38+
var key = null,
2739
ref = null;
2840
void 0 !== maybeKey && (key = "" + maybeKey);
2941
void 0 !== config.key && (key = "" + config.key);
30-
void 0 !== config.ref && (ref = config.ref);
31-
for (propName in config)
32-
hasOwnProperty.call(config, propName) &&
33-
"key" !== propName &&
42+
if (void 0 !== config.ref)
43+
a: {
44+
(ref = config.ref), (maybeKey = ReactSharedInternals.owner);
45+
if ("string" !== typeof ref)
46+
if ("number" === typeof ref || "boolean" === typeof ref) ref = "" + ref;
47+
else break a;
48+
var callback = stringRefAsCallbackRef.bind(null, ref, type, maybeKey);
49+
callback.__stringRef = ref;
50+
callback.__type = type;
51+
callback.__owner = maybeKey;
52+
ref = callback;
53+
}
54+
maybeKey = {};
55+
for (var propName in config)
56+
"key" !== propName &&
3457
"ref" !== propName &&
35-
(props[propName] = config[propName]);
36-
if (!disableDefaultPropsExceptForClasses && type && type.defaultProps)
37-
for (propName in ((config = type.defaultProps), config))
38-
void 0 === props[propName] && (props[propName] = config[propName]);
58+
(maybeKey[propName] = config[propName]);
59+
if (!disableDefaultPropsExceptForClasses && type && type.defaultProps) {
60+
config = type.defaultProps;
61+
for (var propName$0 in config)
62+
void 0 === maybeKey[propName$0] &&
63+
(maybeKey[propName$0] = config[propName$0]);
64+
}
3965
return {
4066
$$typeof: REACT_ELEMENT_TYPE,
4167
type: type,
4268
key: key,
4369
ref: ref,
44-
props: props,
45-
_owner: ReactCurrentOwner.current
70+
props: maybeKey,
71+
_owner: ReactSharedInternals.owner
4672
};
4773
}
74+
function stringRefAsCallbackRef(stringRef, type, owner, value) {
75+
if (!owner) throw Error(formatProdErrorMessage(290, stringRef));
76+
if (1 !== owner.tag) throw Error(formatProdErrorMessage(309));
77+
type = owner.stateNode;
78+
if (!type) throw Error(formatProdErrorMessage(147, stringRef));
79+
type = type.refs;
80+
null === value ? delete type[stringRef] : (type[stringRef] = value);
81+
}
4882
exports.Fragment = REACT_FRAGMENT_TYPE;
4983
exports.jsx = jsxProd;
5084
exports.jsxs = jsxProd;

0 commit comments

Comments
 (0)