From bd59ec2e0eae93331506875332c8891b627b2de9 Mon Sep 17 00:00:00 2001 From: Zack Tanner Date: Tue, 2 Apr 2024 06:28:23 -0700 Subject: [PATCH] Update React from `14898b6a9` to `a870b2d54` --- package.json | 20 +- ...t-dom-server-legacy.browser.development.js | 243 ++- ...ct-dom-server-legacy.browser.production.js | 145 +- ...om-server-legacy.browser.production.min.js | 321 ++-- ...eact-dom-server-legacy.node.development.js | 243 ++- ...react-dom-server-legacy.node.production.js | 151 +- ...t-dom-server-legacy.node.production.min.js | 349 ++-- ...t-dom-server-rendering-stub.development.js | 65 +- ...ct-dom-server-rendering-stub.production.js | 63 +- ...om-server-rendering-stub.production.min.js | 16 +- .../react-dom-server.browser.development.js | 259 ++- .../react-dom-server.browser.production.js | 151 +- ...react-dom-server.browser.production.min.js | 357 ++-- .../cjs/react-dom-server.bun.production.js | 151 +- .../cjs/react-dom-server.edge.development.js | 259 ++- .../cjs/react-dom-server.edge.production.js | 157 +- .../react-dom-server.edge.production.min.js | 385 ++-- .../cjs/react-dom-server.node.development.js | 257 ++- .../cjs/react-dom-server.node.production.js | 155 +- .../react-dom-server.node.production.min.js | 377 ++-- .../cjs/react-dom-test-utils.production.js | 116 +- .../react-dom-unstable_testing.development.js | 1655 ++++------------- .../react-dom-unstable_testing.production.js | 980 +++------- ...act-dom-unstable_testing.production.min.js | 825 ++++---- .../cjs/react-dom.development.js | 1653 ++++------------ .../cjs/react-dom.production.js | 978 +++------- .../cjs/react-dom.production.min.js | 823 ++++---- .../cjs/react-dom.profiling.js | 982 +++------- .../cjs/react-dom.profiling.min.js | 855 +++++---- .../cjs/react-dom.react-server.development.js | 59 +- .../cjs/react-dom.react-server.production.js | 59 +- .../react-dom.react-server.production.min.js | 12 +- .../react-dom-experimental/package.json | 5 +- ...t-dom-server-legacy.browser.development.js | 99 +- ...ct-dom-server-legacy.browser.production.js | 50 +- ...om-server-legacy.browser.production.min.js | 90 +- ...eact-dom-server-legacy.node.development.js | 99 +- ...react-dom-server-legacy.node.production.js | 56 +- ...t-dom-server-legacy.node.production.min.js | 104 +- ...t-dom-server-rendering-stub.development.js | 65 +- ...ct-dom-server-rendering-stub.production.js | 63 +- ...om-server-rendering-stub.production.min.js | 16 +- .../react-dom-server.browser.development.js | 114 +- .../react-dom-server.browser.production.js | 55 +- ...react-dom-server.browser.production.min.js | 112 +- .../cjs/react-dom-server.bun.production.js | 56 +- .../cjs/react-dom-server.edge.development.js | 114 +- .../cjs/react-dom-server.edge.production.js | 61 +- .../react-dom-server.edge.production.min.js | 130 +- .../cjs/react-dom-server.node.development.js | 112 +- .../cjs/react-dom-server.node.production.js | 59 +- .../react-dom-server.node.production.min.js | 104 +- .../cjs/react-dom-test-utils.production.js | 116 +- .../react-dom/cjs/react-dom.development.js | 868 +++------ .../react-dom/cjs/react-dom.production.js | 432 ++--- .../react-dom/cjs/react-dom.production.min.js | 717 +++---- .../react-dom/cjs/react-dom.profiling.js | 436 ++--- .../react-dom/cjs/react-dom.profiling.min.js | 757 ++++---- .../cjs/react-dom.react-server.development.js | 59 +- .../cjs/react-dom.react-server.production.js | 59 +- .../react-dom.react-server.production.min.js | 12 +- .../next/src/compiled/react-dom/package.json | 5 +- .../cjs/react-jsx-dev-runtime.development.js | 29 +- .../cjs/react-jsx-runtime.development.js | 29 +- .../cjs/react-jsx-runtime.production.js | 4 +- .../cjs/react-jsx-runtime.profiling.js | 4 +- ...ct-jsx-runtime.react-server.development.js | 29 +- ...act-jsx-runtime.react-server.production.js | 4 +- .../cjs/react.development.js | 81 +- .../cjs/react.production.js | 10 +- .../cjs/react.production.min.js | 6 +- .../cjs/react.react-server.development.js | 39 +- .../cjs/react.react-server.production.js | 10 +- .../cjs/react.react-server.production.min.js | 6 +- .../compiled/react-experimental/package.json | 3 - ...om-turbopack-client.browser.development.js | 168 +- ...dom-turbopack-client.browser.production.js | 170 +- ...turbopack-client.browser.production.min.js | 4 +- ...r-dom-turbopack-client.edge.development.js | 168 +- ...er-dom-turbopack-client.edge.production.js | 170 +- ...om-turbopack-client.edge.production.min.js | 4 +- ...r-dom-turbopack-client.node.development.js | 168 +- ...er-dom-turbopack-client.node.production.js | 170 +- ...om-turbopack-client.node.production.min.js | 4 +- ...opack-client.node.unbundled.development.js | 168 +- ...bopack-client.node.unbundled.production.js | 170 +- ...ck-client.node.unbundled.production.min.js | 4 +- ...om-turbopack-server.browser.development.js | 55 +- ...dom-turbopack-server.browser.production.js | 51 +- ...turbopack-server.browser.production.min.js | 52 +- ...r-dom-turbopack-server.edge.development.js | 55 +- ...er-dom-turbopack-server.edge.production.js | 51 +- ...om-turbopack-server.edge.production.min.js | 133 +- ...r-dom-turbopack-server.node.development.js | 53 +- ...er-dom-turbopack-server.node.production.js | 49 +- ...om-turbopack-server.node.production.min.js | 132 +- ...opack-server.node.unbundled.development.js | 53 +- ...bopack-server.node.unbundled.production.js | 49 +- ...ck-server.node.unbundled.production.min.js | 128 +- .../package.json | 7 +- ...om-turbopack-client.browser.development.js | 168 +- ...dom-turbopack-client.browser.production.js | 170 +- ...turbopack-client.browser.production.min.js | 6 +- ...r-dom-turbopack-client.edge.development.js | 168 +- ...er-dom-turbopack-client.edge.production.js | 170 +- ...om-turbopack-client.edge.production.min.js | 6 +- ...r-dom-turbopack-client.node.development.js | 168 +- ...er-dom-turbopack-client.node.production.js | 170 +- ...om-turbopack-client.node.production.min.js | 4 +- ...opack-client.node.unbundled.development.js | 168 +- ...bopack-client.node.unbundled.production.js | 170 +- ...ck-client.node.unbundled.production.min.js | 4 +- ...om-turbopack-server.browser.development.js | 55 +- ...dom-turbopack-server.browser.production.js | 51 +- ...turbopack-server.browser.production.min.js | 106 +- ...r-dom-turbopack-server.edge.development.js | 55 +- ...er-dom-turbopack-server.edge.production.js | 51 +- ...om-turbopack-server.edge.production.min.js | 117 +- ...r-dom-turbopack-server.node.development.js | 53 +- ...er-dom-turbopack-server.node.production.js | 49 +- ...om-turbopack-server.node.production.min.js | 118 +- ...opack-server.node.unbundled.development.js | 53 +- ...bopack-server.node.unbundled.production.js | 49 +- ...ck-server.node.unbundled.production.min.js | 118 +- .../react-server-dom-turbopack/package.json | 7 +- ...-dom-webpack-client.browser.development.js | 168 +- ...r-dom-webpack-client.browser.production.js | 170 +- ...m-webpack-client.browser.production.min.js | 4 +- ...ver-dom-webpack-client.edge.development.js | 168 +- ...rver-dom-webpack-client.edge.production.js | 170 +- ...-dom-webpack-client.edge.production.min.js | 4 +- ...ver-dom-webpack-client.node.development.js | 168 +- ...rver-dom-webpack-client.node.production.js | 170 +- ...-dom-webpack-client.node.production.min.js | 4 +- ...bpack-client.node.unbundled.development.js | 168 +- ...ebpack-client.node.unbundled.production.js | 170 +- ...ck-client.node.unbundled.production.min.js | 4 +- ...-dom-webpack-server.browser.development.js | 55 +- ...r-dom-webpack-server.browser.production.js | 51 +- ...m-webpack-server.browser.production.min.js | 52 +- ...ver-dom-webpack-server.edge.development.js | 55 +- ...rver-dom-webpack-server.edge.production.js | 51 +- ...-dom-webpack-server.edge.production.min.js | 133 +- ...ver-dom-webpack-server.node.development.js | 53 +- ...rver-dom-webpack-server.node.production.js | 49 +- ...-dom-webpack-server.node.production.min.js | 132 +- ...bpack-server.node.unbundled.development.js | 53 +- ...ebpack-server.node.unbundled.production.js | 49 +- ...ck-server.node.unbundled.production.min.js | 128 +- .../package.json | 7 +- ...-dom-webpack-client.browser.development.js | 168 +- ...r-dom-webpack-client.browser.production.js | 170 +- ...m-webpack-client.browser.production.min.js | 6 +- ...ver-dom-webpack-client.edge.development.js | 168 +- ...rver-dom-webpack-client.edge.production.js | 170 +- ...-dom-webpack-client.edge.production.min.js | 6 +- ...ver-dom-webpack-client.node.development.js | 168 +- ...rver-dom-webpack-client.node.production.js | 170 +- ...-dom-webpack-client.node.production.min.js | 4 +- ...bpack-client.node.unbundled.development.js | 168 +- ...ebpack-client.node.unbundled.production.js | 170 +- ...ck-client.node.unbundled.production.min.js | 4 +- ...-dom-webpack-server.browser.development.js | 55 +- ...r-dom-webpack-server.browser.production.js | 51 +- ...m-webpack-server.browser.production.min.js | 106 +- ...ver-dom-webpack-server.edge.development.js | 55 +- ...rver-dom-webpack-server.edge.production.js | 51 +- ...-dom-webpack-server.edge.production.min.js | 117 +- ...ver-dom-webpack-server.node.development.js | 53 +- ...rver-dom-webpack-server.node.production.js | 49 +- ...-dom-webpack-server.node.production.min.js | 120 +- ...bpack-server.node.unbundled.development.js | 53 +- ...ebpack-server.node.unbundled.production.js | 49 +- ...ck-server.node.unbundled.production.min.js | 120 +- .../react-server-dom-webpack/package.json | 7 +- .../cjs/react-jsx-dev-runtime.development.js | 12 +- .../cjs/react-jsx-runtime.development.js | 12 +- ...ct-jsx-runtime.react-server.development.js | 12 +- .../compiled/react/cjs/react.development.js | 67 +- .../compiled/react/cjs/react.production.js | 13 +- .../react/cjs/react.production.min.js | 2 +- .../cjs/react.react-server.development.js | 23 +- .../cjs/react.react-server.production.js | 13 +- .../cjs/react.react-server.production.min.js | 2 +- packages/next/src/compiled/react/package.json | 3 - ...cheduler-unstable_post_task.development.js | 3 +- ...scheduler-unstable_post_task.production.js | 3 +- .../cjs/scheduler.development.js | 12 +- .../cjs/scheduler.native.development.js | 12 +- .../cjs/scheduler.native.production.js | 12 +- .../cjs/scheduler.native.production.min.js | 2 +- .../cjs/scheduler.production.js | 12 +- .../cjs/scheduler.production.min.js | 4 +- .../scheduler-experimental/package.json | 5 +- ...cheduler-unstable_post_task.development.js | 3 +- ...scheduler-unstable_post_task.production.js | 3 +- .../scheduler/cjs/scheduler.development.js | 12 +- .../cjs/scheduler.native.development.js | 12 +- .../cjs/scheduler.native.production.js | 12 +- .../cjs/scheduler.native.production.min.js | 2 +- .../scheduler/cjs/scheduler.production.js | 12 +- .../scheduler/cjs/scheduler.production.min.js | 4 +- .../next/src/compiled/scheduler/package.json | 5 +- pnpm-lock.yaml | 118 +- 204 files changed, 11976 insertions(+), 15815 deletions(-) diff --git a/package.json b/package.json index f12a64a6e3bab..86a1ed55e86df 100644 --- a/package.json +++ b/package.json @@ -198,16 +198,16 @@ "random-seed": "0.3.0", "react": "18.2.0", "react-17": "npm:react@17.0.2", - "react-builtin": "npm:react@18.3.0-canary-14898b6a9-20240318", + "react-builtin": "npm:react@18.3.0-canary-a870b2d54-20240314", "react-dom": "18.2.0", "react-dom-17": "npm:react-dom@17.0.2", - "react-dom-builtin": "npm:react-dom@18.3.0-canary-14898b6a9-20240318", - "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-14898b6a9-20240318", - "react-experimental-builtin": "npm:react@0.0.0-experimental-14898b6a9-20240318", - "react-server-dom-turbopack": "18.3.0-canary-14898b6a9-20240318", - "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-14898b6a9-20240318", - "react-server-dom-webpack": "18.3.0-canary-14898b6a9-20240318", - "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-14898b6a9-20240318", + "react-dom-builtin": "npm:react-dom@18.3.0-canary-a870b2d54-20240314", + "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-a870b2d54-20240314", + "react-experimental-builtin": "npm:react@0.0.0-experimental-a870b2d54-20240314", + "react-server-dom-turbopack": "18.3.0-canary-a870b2d54-20240314", + "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-a870b2d54-20240314", + "react-server-dom-webpack": "18.3.0-canary-a870b2d54-20240314", + "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-a870b2d54-20240314", "react-ssr-prepass": "1.0.8", "react-virtualized": "9.22.3", "relay-compiler": "13.0.2", @@ -217,8 +217,8 @@ "resolve-from": "5.0.0", "sass": "1.54.0", "satori": "0.10.9", - "scheduler-builtin": "npm:scheduler@0.24.0-canary-14898b6a9-20240318", - "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-14898b6a9-20240318", + "scheduler-builtin": "npm:scheduler@0.24.0-canary-a870b2d54-20240314", + "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-a870b2d54-20240314", "seedrandom": "3.0.5", "selenium-webdriver": "4.0.0-beta.4", "semver": "7.3.7", diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js index bd07a7b8066b7..854fe3076219a 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js @@ -17,7 +17,7 @@ if (process.env.NODE_ENV !== "production") { var React = require("next/dist/compiled/react-experimental"); var ReactDOM = require('react-dom'); -var ReactVersion = '18.3.0-experimental-14898b6a9-20240318'; +var ReactVersion = '18.3.0-experimental-a870b2d54-20240314'; var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; @@ -506,6 +506,9 @@ function stringToChunk(content) { function stringToPrecomputedChunk(content) { return content; } +function clonePrecomputedChunk(chunk) { + return chunk; +} function closeWithError(destination, error) { // $FlowFixMe[incompatible-call]: This is an Error object or the destination accepts other types. destination.destroy(error); @@ -611,6 +614,13 @@ function checkHtmlStringCoercion(value) { // ----------------------------------------------------------------------------- var enableFloat = true; // Enables unstable_useMemoCache hook, intended as a compilation target for +// Ready for next major. +// +// Alias __NEXT_MAJOR__ to true for easier skimming. +// ----------------------------------------------------------------------------- + +var __NEXT_MAJOR__ = true; // Removes legacy style context +var enableBigIntSupport = __NEXT_MAJOR__; // $FlowFixMe[method-unbinding] var hasOwnProperty = Object.prototype.hasOwnProperty; @@ -822,9 +832,9 @@ function validateProperties$2(type, props) { }).join(', '); if (invalidProps.length === 1) { - error('Invalid aria prop %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type); + error('Invalid aria prop %s on <%s> tag. ' + 'For details, see https://react.dev/link/invalid-aria-props', unknownPropString, type); } else if (invalidProps.length > 1) { - error('Invalid aria props %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type); + error('Invalid aria props %s on <%s> tag. ' + 'For details, see https://react.dev/link/invalid-aria-props', unknownPropString, type); } } } @@ -857,7 +867,7 @@ function isCustomElement(tagName, props) { // These are reserved SVG and MathML elements. // We don't mind this list too much because we expect it to never grow. // The alternative is to track the namespace in a few places which is convoluted. - // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts + // https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-core-concepts case 'annotation-xml': case 'color-profile': case 'font-face': @@ -873,9 +883,9 @@ function isCustomElement(tagName, props) { } } -// When adding attributes to the HTML or SVG allowed attribute list, be sure to // also add them to this module to ensure casing and incorrect name // warnings. + var possibleStandardNames = { // HTML accept: 'accept', @@ -1369,6 +1379,10 @@ var possibleStandardNames = { zoomandpan: 'zoomAndPan' }; +{ + possibleStandardNames.inert = 'inert'; +} + var warnedProperties = {}; var EVENT_NAME_REGEX = /^on./; var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/; @@ -1566,6 +1580,16 @@ function validateProperty(tagName, name, value, eventRegistry) { // Boolean properties can accept boolean values return true; } + // fallthrough + + case 'inert': + { + { + // Boolean properties can accept boolean values + return true; + } + } + // fallthrough for new boolean props without the flag on default: { @@ -1629,6 +1653,14 @@ function validateProperty(tagName, name, value, eventRegistry) { break; } + case 'inert': + { + { + break; + } + } + // fallthrough for new boolean props without the flag on + default: { return true; @@ -1664,9 +1696,9 @@ function warnUnknownProperties(type, props, eventRegistry) { }).join(', '); if (unknownProps.length === 1) { - error('Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://reactjs.org/link/attribute-behavior ', unknownPropString, type); + error('Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://react.dev/link/attribute-behavior ', unknownPropString, type); } else if (unknownProps.length > 1) { - error('Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://reactjs.org/link/attribute-behavior ', unknownPropString, type); + error('Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://react.dev/link/attribute-behavior ', unknownPropString, type); } } } @@ -1866,7 +1898,7 @@ function escapeHtml(string) { function escapeTextForBrowser(text) { - if (typeof text === 'boolean' || typeof text === 'number') { + if (typeof text === 'boolean' || typeof text === 'number' || typeof text === 'bigint') { // this shortcircuit helps perf for types that we know will never have // special characters, especially given that this function is used often // for numeric dom ids. @@ -1907,7 +1939,6 @@ function hyphenateStyleName(name) { /* eslint-disable max-len */ var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i; -var didWarn = false; function sanitizeURL(url) { // We should never have symbols here because they get filtered out elsewhere. @@ -1915,10 +1946,11 @@ function sanitizeURL(url) { var stringifiedURL = '' + url; { - if (!didWarn && isJavaScriptProtocol.test(stringifiedURL)) { - didWarn = true; - - error('A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(stringifiedURL)); + if (isJavaScriptProtocol.test(stringifiedURL)) { + // Return a different javascript: url that doesn't cause any side-effects and just + // throws if ever visited. + // eslint-disable-next-line no-script-url + return "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')"; } } @@ -1949,19 +1981,17 @@ var NotPending = Object.freeze(sharedNotPendingObject) ; var ReactDOMSharedInternals = ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; -var ReactDOMCurrentDispatcher = ReactDOMSharedInternals.Dispatcher; -var ReactDOMServerDispatcher = { +var ReactDOMCurrentDispatcher = ReactDOMSharedInternals.ReactDOMCurrentDispatcher; +var previousDispatcher = ReactDOMCurrentDispatcher.current; +ReactDOMCurrentDispatcher.current = { prefetchDNS: prefetchDNS, preconnect: preconnect, preload: preload, preloadModule: preloadModule, - preinitStyle: preinitStyle, preinitScript: preinitScript, + preinitStyle: preinitStyle, preinitModuleScript: preinitModuleScript -}; -function prepareHostDispatcher() { - ReactDOMCurrentDispatcher.current = ReactDOMServerDispatcher; -} // We make every property of the descriptor optional because it is not a contract that +}; // We make every property of the descriptor optional because it is not a contract that var ScriptStreamingFormat = 0; var DataStreamingFormat = 1; var NothingSent @@ -2048,10 +2078,16 @@ var importMapScriptEnd = stringToPrecomputedChunk(''); // Since we stor // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; +var didWarnForNewBooleanPropsWithEmptyValue; + +{ + didWarnForNewBooleanPropsWithEmptyValue = {}; +} // Allows us to keep track of what we've already written so we can refer back to it. // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState$1(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we st // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState$1(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { const inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we stor // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; +var didWarnForNewBooleanPropsWithEmptyValue; + +{ + didWarnForNewBooleanPropsWithEmptyValue = {}; +} // Allows us to keep track of what we've already written so we can refer back to it. // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState$1(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we st // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState$1(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { const inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we stor // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; +var didWarnForNewBooleanPropsWithEmptyValue; + +{ + didWarnForNewBooleanPropsWithEmptyValue = {}; +} // Allows us to keep track of what we've already written so we can refer back to it. // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we st // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { const inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we st // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { const inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we stor // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; +var didWarnForNewBooleanPropsWithEmptyValue; + +{ + didWarnForNewBooleanPropsWithEmptyValue = {}; +} // Allows us to keep track of what we've already written so we can refer back to it. // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we st // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { const inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we stor // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; +var didWarnForNewBooleanPropsWithEmptyValue; + +{ + didWarnForNewBooleanPropsWithEmptyValue = {}; +} // Allows us to keep track of what we've already written so we can refer back to it. // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we st // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { const inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we stor // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState$1(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we st // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState$1(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { const inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we stor // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState$1(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we st // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState$1(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { const inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we stor // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we st // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { const inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we st // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { const inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we stor // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we st // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { const inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we stor // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we st // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { const inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk('