Skip to content

Commit

Permalink
ncc-compiled
Browse files Browse the repository at this point in the history
  • Loading branch information
vercel-release-bot committed Dec 19, 2024
1 parent b536cde commit 4a33e23
Show file tree
Hide file tree
Showing 146 changed files with 68,833 additions and 67,586 deletions.
15,526 changes: 7,818 additions & 7,708 deletions packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.development.js

Large diffs are not rendered by default.

7,575 changes: 3,782 additions & 3,793 deletions packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.production.js

Large diffs are not rendered by default.

15,526 changes: 7,818 additions & 7,708 deletions packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.development.js

Large diffs are not rendered by default.

11,956 changes: 6,053 additions & 5,903 deletions packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.profiling.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2132,7 +2132,7 @@
: children$jscomp$6;
Array.isArray(children$jscomp$6) && 1 < children$jscomp$6.length
? console.error(
"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be commong to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.",
"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be common to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.",
children$jscomp$6.length
)
: "function" === typeof child || "symbol" === typeof child
Expand Down Expand Up @@ -3999,9 +3999,6 @@
index
);
}
function unsupportedRefresh() {
throw Error("Cache cannot be refreshed during server rendering.");
}
function noop$1() {}
function disabledLog() {}
function disableLogs() {
Expand Down Expand Up @@ -4247,7 +4244,7 @@
if ("string" === typeof type) return describeBuiltInComponentFrame(type);
if ("function" === typeof type)
return type.prototype && type.prototype.isReactComponent
? ((type = describeNativeComponentFrame(type, !0)), type)
? describeNativeComponentFrame(type, !0)
: describeNativeComponentFrame(type, !1);
if ("object" === typeof type && null !== type) {
switch (type.$$typeof) {
Expand Down Expand Up @@ -5291,7 +5288,6 @@
} else {
switch (type) {
case REACT_LEGACY_HIDDEN_TYPE:
case REACT_DEBUG_TRACING_MODE_TYPE:
case REACT_STRICT_MODE_TYPE:
case REACT_PROFILER_TYPE:
case REACT_FRAGMENT_TYPE:
Expand Down Expand Up @@ -7848,10 +7844,8 @@
REACT_MEMO_TYPE = Symbol.for("react.memo"),
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
REACT_SCOPE_TYPE = Symbol.for("react.scope"),
REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"),
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
REACT_POSTPONE_TYPE = Symbol.for("react.postpone"),
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
ASYNC_ITERATOR = Symbol.asyncIterator,
Expand Down Expand Up @@ -9195,29 +9189,21 @@
);
return getServerSnapshot();
},
useCacheRefresh: function () {
return unsupportedRefresh;
},
useEffectEvent: function () {
return throwOnUseEffectEventCall;
},
useMemoCache: function (size) {
for (var data = Array(size), i = 0; i < size; i++)
data[i] = REACT_MEMO_CACHE_SENTINEL;
return data;
useOptimistic: function (passthrough) {
resolveCurrentlyRenderingComponent();
return [passthrough, unsupportedSetOptimisticState];
},
useActionState: useActionState,
useFormState: useActionState,
useHostTransitionStatus: function () {
resolveCurrentlyRenderingComponent();
return NotPending;
},
useOptimistic: function (passthrough) {
resolveCurrentlyRenderingComponent();
return [passthrough, unsupportedSetOptimisticState];
useEffectEvent: function () {
return throwOnUseEffectEventCall;
}
};
HooksDispatcher.useFormState = useActionState;
HooksDispatcher.useActionState = useActionState;
var currentResumableState = null,
},
currentResumableState = null,
currentTaskInDEV = null,
DefaultAsyncDispatcher = {
getCacheForType: function () {
Expand Down Expand Up @@ -9295,5 +9281,5 @@
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.0.0-experimental-372ec00c-20241209";
exports.version = "19.1.0-experimental-9463d51e-20241219";
})();
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,8 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
REACT_MEMO_TYPE = Symbol.for("react.memo"),
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
REACT_SCOPE_TYPE = Symbol.for("react.scope"),
REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"),
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
REACT_POSTPONE_TYPE = Symbol.for("react.postpone"),
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
ASYNC_ITERATOR = Symbol.asyncIterator,
Expand Down Expand Up @@ -2668,16 +2666,16 @@ function createRenderState(resumableState, generateStaticMarkup) {
"\x3c/script>"
);
bootstrapScriptContent = idPrefix + "P:";
var JSCompiler_object_inline_segmentPrefix_1643 = idPrefix + "S:";
var JSCompiler_object_inline_segmentPrefix_1640 = idPrefix + "S:";
idPrefix += "B:";
var JSCompiler_object_inline_preconnects_1657 = new Set(),
JSCompiler_object_inline_fontPreloads_1658 = new Set(),
JSCompiler_object_inline_highImagePreloads_1659 = new Set(),
JSCompiler_object_inline_styles_1660 = new Map(),
JSCompiler_object_inline_bootstrapScripts_1661 = new Set(),
JSCompiler_object_inline_scripts_1662 = new Set(),
JSCompiler_object_inline_bulkPreloads_1663 = new Set(),
JSCompiler_object_inline_preloads_1664 = {
var JSCompiler_object_inline_preconnects_1654 = new Set(),
JSCompiler_object_inline_fontPreloads_1655 = new Set(),
JSCompiler_object_inline_highImagePreloads_1656 = new Set(),
JSCompiler_object_inline_styles_1657 = new Map(),
JSCompiler_object_inline_bootstrapScripts_1658 = new Set(),
JSCompiler_object_inline_scripts_1659 = new Set(),
JSCompiler_object_inline_bulkPreloads_1660 = new Set(),
JSCompiler_object_inline_preloads_1661 = {
images: new Map(),
stylesheets: new Map(),
scripts: new Map(),
Expand Down Expand Up @@ -2714,7 +2712,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
scriptConfig.moduleScriptResources[href] = null;
scriptConfig = [];
pushLinkImpl(scriptConfig, props);
JSCompiler_object_inline_bootstrapScripts_1661.add(scriptConfig);
JSCompiler_object_inline_bootstrapScripts_1658.add(scriptConfig);
bootstrapChunks.push('<script src="', escapeTextForBrowser(src));
"string" === typeof integrity &&
bootstrapChunks.push('" integrity="', escapeTextForBrowser(integrity));
Expand Down Expand Up @@ -2755,7 +2753,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
(props.moduleScriptResources[scriptConfig] = null),
(props = []),
pushLinkImpl(props, integrity),
JSCompiler_object_inline_bootstrapScripts_1661.add(props),
JSCompiler_object_inline_bootstrapScripts_1658.add(props),
bootstrapChunks.push(
'<script type="module" src="',
escapeTextForBrowser(i)
Expand All @@ -2770,7 +2768,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
bootstrapChunks.push('" async="">\x3c/script>');
return {
placeholderPrefix: bootstrapScriptContent,
segmentPrefix: JSCompiler_object_inline_segmentPrefix_1643,
segmentPrefix: JSCompiler_object_inline_segmentPrefix_1640,
boundaryPrefix: idPrefix,
startInlineScript: "<script>",
htmlChunks: null,
Expand All @@ -2790,14 +2788,14 @@ function createRenderState(resumableState, generateStaticMarkup) {
charsetChunks: [],
viewportChunks: [],
hoistableChunks: [],
preconnects: JSCompiler_object_inline_preconnects_1657,
fontPreloads: JSCompiler_object_inline_fontPreloads_1658,
highImagePreloads: JSCompiler_object_inline_highImagePreloads_1659,
styles: JSCompiler_object_inline_styles_1660,
bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1661,
scripts: JSCompiler_object_inline_scripts_1662,
bulkPreloads: JSCompiler_object_inline_bulkPreloads_1663,
preloads: JSCompiler_object_inline_preloads_1664,
preconnects: JSCompiler_object_inline_preconnects_1654,
fontPreloads: JSCompiler_object_inline_fontPreloads_1655,
highImagePreloads: JSCompiler_object_inline_highImagePreloads_1656,
styles: JSCompiler_object_inline_styles_1657,
bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1658,
scripts: JSCompiler_object_inline_scripts_1659,
bulkPreloads: JSCompiler_object_inline_bulkPreloads_1660,
preloads: JSCompiler_object_inline_preloads_1661,
stylesToHoist: !1,
generateStaticMarkup: generateStaticMarkup
};
Expand Down Expand Up @@ -3247,101 +3245,92 @@ function readPreviousThenableFromState() {
index
);
}
function unsupportedRefresh() {
throw Error(formatProdErrorMessage(393));
}
function noop$1() {}
var HooksDispatcher = {
readContext: function (context) {
return context._currentValue2;
},
use: function (usable) {
if (null !== usable && "object" === typeof usable) {
if ("function" === typeof usable.then) return unwrapThenable(usable);
if (usable.$$typeof === REACT_CONTEXT_TYPE) return usable._currentValue2;
readContext: function (context) {
return context._currentValue2;
},
use: function (usable) {
if (null !== usable && "object" === typeof usable) {
if ("function" === typeof usable.then) return unwrapThenable(usable);
if (usable.$$typeof === REACT_CONTEXT_TYPE)
return usable._currentValue2;
}
throw Error(formatProdErrorMessage(438, String(usable)));
},
useContext: function (context) {
resolveCurrentlyRenderingComponent();
return context._currentValue2;
},
useMemo: useMemo,
useReducer: useReducer,
useRef: function (initialValue) {
currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
workInProgressHook = createWorkInProgressHook();
var previousRef = workInProgressHook.memoizedState;
return null === previousRef
? ((initialValue = { current: initialValue }),
(workInProgressHook.memoizedState = initialValue))
: previousRef;
},
useState: function (initialState) {
return useReducer(basicStateReducer, initialState);
},
useInsertionEffect: noop$1,
useLayoutEffect: noop$1,
useCallback: function (callback, deps) {
return useMemo(function () {
return callback;
}, deps);
},
useImperativeHandle: noop$1,
useEffect: noop$1,
useDebugValue: noop$1,
useDeferredValue: function (value, initialValue) {
resolveCurrentlyRenderingComponent();
return void 0 !== initialValue ? initialValue : value;
},
useTransition: function () {
resolveCurrentlyRenderingComponent();
return [!1, unsupportedStartTransition];
},
useId: function () {
var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
var overflow = JSCompiler_inline_result.overflow;
JSCompiler_inline_result = JSCompiler_inline_result.id;
JSCompiler_inline_result =
(
JSCompiler_inline_result &
~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
).toString(32) + overflow;
var resumableState = currentResumableState;
if (null === resumableState) throw Error(formatProdErrorMessage(404));
overflow = localIdCounter++;
JSCompiler_inline_result =
":" + resumableState.idPrefix + "R" + JSCompiler_inline_result;
0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
return JSCompiler_inline_result + ":";
},
useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
if (void 0 === getServerSnapshot)
throw Error(formatProdErrorMessage(407));
return getServerSnapshot();
},
useOptimistic: function (passthrough) {
resolveCurrentlyRenderingComponent();
return [passthrough, unsupportedSetOptimisticState];
},
useActionState: useActionState,
useFormState: useActionState,
useHostTransitionStatus: function () {
resolveCurrentlyRenderingComponent();
return sharedNotPendingObject;
},
useEffectEvent: function () {
return throwOnUseEffectEventCall;
}
throw Error(formatProdErrorMessage(438, String(usable)));
},
useContext: function (context) {
resolveCurrentlyRenderingComponent();
return context._currentValue2;
},
useMemo: useMemo,
useReducer: useReducer,
useRef: function (initialValue) {
currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
workInProgressHook = createWorkInProgressHook();
var previousRef = workInProgressHook.memoizedState;
return null === previousRef
? ((initialValue = { current: initialValue }),
(workInProgressHook.memoizedState = initialValue))
: previousRef;
},
useState: function (initialState) {
return useReducer(basicStateReducer, initialState);
},
useInsertionEffect: noop$1,
useLayoutEffect: noop$1,
useCallback: function (callback, deps) {
return useMemo(function () {
return callback;
}, deps);
},
useImperativeHandle: noop$1,
useEffect: noop$1,
useDebugValue: noop$1,
useDeferredValue: function (value, initialValue) {
resolveCurrentlyRenderingComponent();
return void 0 !== initialValue ? initialValue : value;
},
useTransition: function () {
resolveCurrentlyRenderingComponent();
return [!1, unsupportedStartTransition];
},
useId: function () {
var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
var overflow = JSCompiler_inline_result.overflow;
JSCompiler_inline_result = JSCompiler_inline_result.id;
JSCompiler_inline_result =
(
JSCompiler_inline_result &
~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
).toString(32) + overflow;
var resumableState = currentResumableState;
if (null === resumableState) throw Error(formatProdErrorMessage(404));
overflow = localIdCounter++;
JSCompiler_inline_result =
":" + resumableState.idPrefix + "R" + JSCompiler_inline_result;
0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
return JSCompiler_inline_result + ":";
},
useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
if (void 0 === getServerSnapshot) throw Error(formatProdErrorMessage(407));
return getServerSnapshot();
},
useCacheRefresh: function () {
return unsupportedRefresh;
},
useEffectEvent: function () {
return throwOnUseEffectEventCall;
},
useMemoCache: function (size) {
for (var data = Array(size), i = 0; i < size; i++)
data[i] = REACT_MEMO_CACHE_SENTINEL;
return data;
},
useHostTransitionStatus: function () {
resolveCurrentlyRenderingComponent();
return sharedNotPendingObject;
},
useOptimistic: function (passthrough) {
resolveCurrentlyRenderingComponent();
return [passthrough, unsupportedSetOptimisticState];
}
};
HooksDispatcher.useFormState = useActionState;
HooksDispatcher.useActionState = useActionState;
var currentResumableState = null,
currentResumableState = null,
DefaultAsyncDispatcher = {
getCacheForType: function () {
throw Error(formatProdErrorMessage(248));
Expand Down Expand Up @@ -3503,7 +3492,7 @@ function describeComponentStackByType(type) {
if ("string" === typeof type) return describeBuiltInComponentFrame(type);
if ("function" === typeof type)
return type.prototype && type.prototype.isReactComponent
? ((type = describeNativeComponentFrame(type, !0)), type)
? describeNativeComponentFrame(type, !0)
: describeNativeComponentFrame(type, !1);
if ("object" === typeof type && null !== type) {
switch (type.$$typeof) {
Expand Down Expand Up @@ -4071,7 +4060,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
else {
switch (type) {
case REACT_LEGACY_HIDDEN_TYPE:
case REACT_DEBUG_TRACING_MODE_TYPE:
case REACT_STRICT_MODE_TYPE:
case REACT_PROFILER_TYPE:
case REACT_FRAGMENT_TYPE:
Expand Down Expand Up @@ -6060,4 +6048,4 @@ exports.renderToString = function (children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.0.0-experimental-372ec00c-20241209";
exports.version = "19.1.0-experimental-9463d51e-20241219";
Loading

0 comments on commit 4a33e23

Please sign in to comment.