diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index a240a82322141..41352f5e6f6d7 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -9a5b6bd84ffa69bfd8b2859ce23e56d17daa8c40 +c0274063f0d625d6e17e82f3436f4a0b78b7e58f diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index c30d5f3a87cea..81d643d7e21ef 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -17067,7 +17067,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1783 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-90273ada", + version: "18.3.0-www-modern-a8b30c49", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2154 = { @@ -17098,7 +17098,7 @@ var internals$jscomp$inline_2154 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-90273ada" + reconcilerVersion: "18.3.0-www-modern-a8b30c49" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2155 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17519,4 +17519,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "18.3.0-www-modern-90273ada"; +exports.version = "18.3.0-www-modern-a8b30c49"; diff --git a/compiled/facebook-www/ReactFlightDOMClient-dev.modern.js b/compiled/facebook-www/ReactFlightDOMClient-dev.modern.js index c34f5bbf43ba5..b652cdabd1bd0 100644 --- a/compiled/facebook-www/ReactFlightDOMClient-dev.modern.js +++ b/compiled/facebook-www/ReactFlightDOMClient-dev.modern.js @@ -35,6 +35,45 @@ if (__DEV__) { return decoder.decode(buffer); } + var badgeFormat = "[%s] "; + var pad = " "; + function printToConsole(methodName, args, badgeName) { + var offset = 0; + + switch (methodName) { + case "dir": + case "dirxml": + case "groupEnd": + case "table": { + // These methods cannot be colorized because they don't take a formatting string. + // eslint-disable-next-line react-internal/no-production-logging + console[methodName].apply(console, args); + return; + } + + case "assert": { + // assert takes formatting options as the second argument. + offset = 1; + } + } + + var newArgs = args.slice(0); + + if (typeof newArgs[offset] === "string") { + newArgs.splice( + offset, + 1, + badgeFormat + newArgs[offset], + pad + badgeName + pad + ); + } else { + newArgs.splice(offset, 0, badgeFormat, pad + badgeName + pad); + } // eslint-disable-next-line react-internal/no-production-logging + + console[methodName].apply(console, newArgs); + return; + } + var ReactDOMSharedInternals = ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; @@ -1012,9 +1051,9 @@ if (__DEV__) { var methodName = payload[0]; // TODO: Restore the fake stack before logging. // const stackTrace = payload[1]; - var args = payload.slice(2); // eslint-disable-next-line react-internal/no-production-logging - - console[methodName].apply(console, args); + var env = payload[2]; + var args = payload.slice(3); + printToConsole(methodName, args, env); } function processFullRow(response, id, tag, buffer, chunk) { diff --git a/compiled/facebook-www/ReactFlightDOMServer-dev.modern.js b/compiled/facebook-www/ReactFlightDOMServer-dev.modern.js index 2320b397ce9a1..50ff4ae429827 100644 --- a/compiled/facebook-www/ReactFlightDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactFlightDOMServer-dev.modern.js @@ -2751,9 +2751,10 @@ if (__DEV__) { } catch (x) { return "unknown value"; } - } + } // TODO: Don't double badge if this log came from another Flight Client. - var payload = [methodName, stackTrace]; // $FlowFixMe[method-unbinding] + var env = request.environmentName; + var payload = [methodName, stackTrace, env]; // $FlowFixMe[method-unbinding] payload.push.apply(payload, args); // $FlowFixMe[incompatible-type] stringify can return null diff --git a/compiled/facebook-www/ReactServer-dev.modern.js b/compiled/facebook-www/ReactServer-dev.modern.js index 56b30f5675395..3880572746dfe 100644 --- a/compiled/facebook-www/ReactServer-dev.modern.js +++ b/compiled/facebook-www/ReactServer-dev.modern.js @@ -2766,7 +2766,7 @@ if (__DEV__) { console["error"](error); }; - var ReactVersion = "18.3.0-www-modern-e9be2c3b"; + var ReactVersion = "18.3.0-www-modern-5cc54b73"; // Patch fetch var Children = {