Skip to content

Commit 72746ed

Browse files
ncc-compiled
1 parent 9b0d6c4 commit 72746ed

File tree

146 files changed

+69996
-69660
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+69996
-69660
lines changed

packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.development.js

Lines changed: 7585 additions & 7624 deletions
Large diffs are not rendered by default.

packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.production.js

Lines changed: 5296 additions & 5330 deletions
Large diffs are not rendered by default.

packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.development.js

Lines changed: 7575 additions & 7614 deletions
Large diffs are not rendered by default.

packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.profiling.js

Lines changed: 5738 additions & 5683 deletions
Large diffs are not rendered by default.

packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2132,7 +2132,7 @@
21322132
: children$jscomp$6;
21332133
Array.isArray(children$jscomp$6) && 1 < children$jscomp$6.length
21342134
? console.error(
2135-
"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>.",
2135+
"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>.",
21362136
children$jscomp$6.length
21372137
)
21382138
: "function" === typeof child || "symbol" === typeof child
@@ -3999,9 +3999,6 @@
39993999
index
40004000
);
40014001
}
4002-
function unsupportedRefresh() {
4003-
throw Error("Cache cannot be refreshed during server rendering.");
4004-
}
40054002
function noop$1() {}
40064003
function disabledLog() {}
40074004
function disableLogs() {
@@ -4247,7 +4244,7 @@
42474244
if ("string" === typeof type) return describeBuiltInComponentFrame(type);
42484245
if ("function" === typeof type)
42494246
return type.prototype && type.prototype.isReactComponent
4250-
? ((type = describeNativeComponentFrame(type, !0)), type)
4247+
? describeNativeComponentFrame(type, !0)
42514248
: describeNativeComponentFrame(type, !1);
42524249
if ("object" === typeof type && null !== type) {
42534250
switch (type.$$typeof) {
@@ -5291,7 +5288,6 @@
52915288
} else {
52925289
switch (type) {
52935290
case REACT_LEGACY_HIDDEN_TYPE:
5294-
case REACT_DEBUG_TRACING_MODE_TYPE:
52955291
case REACT_STRICT_MODE_TYPE:
52965292
case REACT_PROFILER_TYPE:
52975293
case REACT_FRAGMENT_TYPE:
@@ -7848,10 +7844,8 @@
78487844
REACT_MEMO_TYPE = Symbol.for("react.memo"),
78497845
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
78507846
REACT_SCOPE_TYPE = Symbol.for("react.scope"),
7851-
REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"),
78527847
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
78537848
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
7854-
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
78557849
REACT_POSTPONE_TYPE = Symbol.for("react.postpone"),
78567850
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
78577851
ASYNC_ITERATOR = Symbol.asyncIterator,
@@ -9195,29 +9189,21 @@
91959189
);
91969190
return getServerSnapshot();
91979191
},
9198-
useCacheRefresh: function () {
9199-
return unsupportedRefresh;
9200-
},
9201-
useEffectEvent: function () {
9202-
return throwOnUseEffectEventCall;
9203-
},
9204-
useMemoCache: function (size) {
9205-
for (var data = Array(size), i = 0; i < size; i++)
9206-
data[i] = REACT_MEMO_CACHE_SENTINEL;
9207-
return data;
9192+
useOptimistic: function (passthrough) {
9193+
resolveCurrentlyRenderingComponent();
9194+
return [passthrough, unsupportedSetOptimisticState];
92089195
},
9196+
useActionState: useActionState,
9197+
useFormState: useActionState,
92099198
useHostTransitionStatus: function () {
92109199
resolveCurrentlyRenderingComponent();
92119200
return NotPending;
92129201
},
9213-
useOptimistic: function (passthrough) {
9214-
resolveCurrentlyRenderingComponent();
9215-
return [passthrough, unsupportedSetOptimisticState];
9202+
useEffectEvent: function () {
9203+
return throwOnUseEffectEventCall;
92169204
}
9217-
};
9218-
HooksDispatcher.useFormState = useActionState;
9219-
HooksDispatcher.useActionState = useActionState;
9220-
var currentResumableState = null,
9205+
},
9206+
currentResumableState = null,
92219207
currentTaskInDEV = null,
92229208
DefaultAsyncDispatcher = {
92239209
getCacheForType: function () {
@@ -9295,5 +9281,5 @@
92959281
'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'
92969282
);
92979283
};
9298-
exports.version = "19.0.0-experimental-372ec00c-20241209";
9284+
exports.version = "19.1.0-experimental-ef979d47-20241218";
92999285
})();

packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js

Lines changed: 104 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,8 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
6464
REACT_MEMO_TYPE = Symbol.for("react.memo"),
6565
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
6666
REACT_SCOPE_TYPE = Symbol.for("react.scope"),
67-
REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"),
6867
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
6968
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
70-
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
7169
REACT_POSTPONE_TYPE = Symbol.for("react.postpone"),
7270
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
7371
ASYNC_ITERATOR = Symbol.asyncIterator,
@@ -2668,16 +2666,16 @@ function createRenderState(resumableState, generateStaticMarkup) {
26682666
"\x3c/script>"
26692667
);
26702668
bootstrapScriptContent = idPrefix + "P:";
2671-
var JSCompiler_object_inline_segmentPrefix_1643 = idPrefix + "S:";
2669+
var JSCompiler_object_inline_segmentPrefix_1640 = idPrefix + "S:";
26722670
idPrefix += "B:";
2673-
var JSCompiler_object_inline_preconnects_1657 = new Set(),
2674-
JSCompiler_object_inline_fontPreloads_1658 = new Set(),
2675-
JSCompiler_object_inline_highImagePreloads_1659 = new Set(),
2676-
JSCompiler_object_inline_styles_1660 = new Map(),
2677-
JSCompiler_object_inline_bootstrapScripts_1661 = new Set(),
2678-
JSCompiler_object_inline_scripts_1662 = new Set(),
2679-
JSCompiler_object_inline_bulkPreloads_1663 = new Set(),
2680-
JSCompiler_object_inline_preloads_1664 = {
2671+
var JSCompiler_object_inline_preconnects_1654 = new Set(),
2672+
JSCompiler_object_inline_fontPreloads_1655 = new Set(),
2673+
JSCompiler_object_inline_highImagePreloads_1656 = new Set(),
2674+
JSCompiler_object_inline_styles_1657 = new Map(),
2675+
JSCompiler_object_inline_bootstrapScripts_1658 = new Set(),
2676+
JSCompiler_object_inline_scripts_1659 = new Set(),
2677+
JSCompiler_object_inline_bulkPreloads_1660 = new Set(),
2678+
JSCompiler_object_inline_preloads_1661 = {
26812679
images: new Map(),
26822680
stylesheets: new Map(),
26832681
scripts: new Map(),
@@ -2714,7 +2712,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
27142712
scriptConfig.moduleScriptResources[href] = null;
27152713
scriptConfig = [];
27162714
pushLinkImpl(scriptConfig, props);
2717-
JSCompiler_object_inline_bootstrapScripts_1661.add(scriptConfig);
2715+
JSCompiler_object_inline_bootstrapScripts_1658.add(scriptConfig);
27182716
bootstrapChunks.push('<script src="', escapeTextForBrowser(src));
27192717
"string" === typeof integrity &&
27202718
bootstrapChunks.push('" integrity="', escapeTextForBrowser(integrity));
@@ -2755,7 +2753,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
27552753
(props.moduleScriptResources[scriptConfig] = null),
27562754
(props = []),
27572755
pushLinkImpl(props, integrity),
2758-
JSCompiler_object_inline_bootstrapScripts_1661.add(props),
2756+
JSCompiler_object_inline_bootstrapScripts_1658.add(props),
27592757
bootstrapChunks.push(
27602758
'<script type="module" src="',
27612759
escapeTextForBrowser(i)
@@ -2770,7 +2768,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
27702768
bootstrapChunks.push('" async="">\x3c/script>');
27712769
return {
27722770
placeholderPrefix: bootstrapScriptContent,
2773-
segmentPrefix: JSCompiler_object_inline_segmentPrefix_1643,
2771+
segmentPrefix: JSCompiler_object_inline_segmentPrefix_1640,
27742772
boundaryPrefix: idPrefix,
27752773
startInlineScript: "<script>",
27762774
htmlChunks: null,
@@ -2790,14 +2788,14 @@ function createRenderState(resumableState, generateStaticMarkup) {
27902788
charsetChunks: [],
27912789
viewportChunks: [],
27922790
hoistableChunks: [],
2793-
preconnects: JSCompiler_object_inline_preconnects_1657,
2794-
fontPreloads: JSCompiler_object_inline_fontPreloads_1658,
2795-
highImagePreloads: JSCompiler_object_inline_highImagePreloads_1659,
2796-
styles: JSCompiler_object_inline_styles_1660,
2797-
bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1661,
2798-
scripts: JSCompiler_object_inline_scripts_1662,
2799-
bulkPreloads: JSCompiler_object_inline_bulkPreloads_1663,
2800-
preloads: JSCompiler_object_inline_preloads_1664,
2791+
preconnects: JSCompiler_object_inline_preconnects_1654,
2792+
fontPreloads: JSCompiler_object_inline_fontPreloads_1655,
2793+
highImagePreloads: JSCompiler_object_inline_highImagePreloads_1656,
2794+
styles: JSCompiler_object_inline_styles_1657,
2795+
bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1658,
2796+
scripts: JSCompiler_object_inline_scripts_1659,
2797+
bulkPreloads: JSCompiler_object_inline_bulkPreloads_1660,
2798+
preloads: JSCompiler_object_inline_preloads_1661,
28012799
stylesToHoist: !1,
28022800
generateStaticMarkup: generateStaticMarkup
28032801
};
@@ -3247,101 +3245,92 @@ function readPreviousThenableFromState() {
32473245
index
32483246
);
32493247
}
3250-
function unsupportedRefresh() {
3251-
throw Error(formatProdErrorMessage(393));
3252-
}
32533248
function noop$1() {}
32543249
var HooksDispatcher = {
3255-
readContext: function (context) {
3256-
return context._currentValue2;
3257-
},
3258-
use: function (usable) {
3259-
if (null !== usable && "object" === typeof usable) {
3260-
if ("function" === typeof usable.then) return unwrapThenable(usable);
3261-
if (usable.$$typeof === REACT_CONTEXT_TYPE) return usable._currentValue2;
3250+
readContext: function (context) {
3251+
return context._currentValue2;
3252+
},
3253+
use: function (usable) {
3254+
if (null !== usable && "object" === typeof usable) {
3255+
if ("function" === typeof usable.then) return unwrapThenable(usable);
3256+
if (usable.$$typeof === REACT_CONTEXT_TYPE)
3257+
return usable._currentValue2;
3258+
}
3259+
throw Error(formatProdErrorMessage(438, String(usable)));
3260+
},
3261+
useContext: function (context) {
3262+
resolveCurrentlyRenderingComponent();
3263+
return context._currentValue2;
3264+
},
3265+
useMemo: useMemo,
3266+
useReducer: useReducer,
3267+
useRef: function (initialValue) {
3268+
currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
3269+
workInProgressHook = createWorkInProgressHook();
3270+
var previousRef = workInProgressHook.memoizedState;
3271+
return null === previousRef
3272+
? ((initialValue = { current: initialValue }),
3273+
(workInProgressHook.memoizedState = initialValue))
3274+
: previousRef;
3275+
},
3276+
useState: function (initialState) {
3277+
return useReducer(basicStateReducer, initialState);
3278+
},
3279+
useInsertionEffect: noop$1,
3280+
useLayoutEffect: noop$1,
3281+
useCallback: function (callback, deps) {
3282+
return useMemo(function () {
3283+
return callback;
3284+
}, deps);
3285+
},
3286+
useImperativeHandle: noop$1,
3287+
useEffect: noop$1,
3288+
useDebugValue: noop$1,
3289+
useDeferredValue: function (value, initialValue) {
3290+
resolveCurrentlyRenderingComponent();
3291+
return void 0 !== initialValue ? initialValue : value;
3292+
},
3293+
useTransition: function () {
3294+
resolveCurrentlyRenderingComponent();
3295+
return [!1, unsupportedStartTransition];
3296+
},
3297+
useId: function () {
3298+
var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
3299+
var overflow = JSCompiler_inline_result.overflow;
3300+
JSCompiler_inline_result = JSCompiler_inline_result.id;
3301+
JSCompiler_inline_result =
3302+
(
3303+
JSCompiler_inline_result &
3304+
~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
3305+
).toString(32) + overflow;
3306+
var resumableState = currentResumableState;
3307+
if (null === resumableState) throw Error(formatProdErrorMessage(404));
3308+
overflow = localIdCounter++;
3309+
JSCompiler_inline_result =
3310+
":" + resumableState.idPrefix + "R" + JSCompiler_inline_result;
3311+
0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
3312+
return JSCompiler_inline_result + ":";
3313+
},
3314+
useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
3315+
if (void 0 === getServerSnapshot)
3316+
throw Error(formatProdErrorMessage(407));
3317+
return getServerSnapshot();
3318+
},
3319+
useOptimistic: function (passthrough) {
3320+
resolveCurrentlyRenderingComponent();
3321+
return [passthrough, unsupportedSetOptimisticState];
3322+
},
3323+
useActionState: useActionState,
3324+
useFormState: useActionState,
3325+
useHostTransitionStatus: function () {
3326+
resolveCurrentlyRenderingComponent();
3327+
return sharedNotPendingObject;
3328+
},
3329+
useEffectEvent: function () {
3330+
return throwOnUseEffectEventCall;
32623331
}
3263-
throw Error(formatProdErrorMessage(438, String(usable)));
32643332
},
3265-
useContext: function (context) {
3266-
resolveCurrentlyRenderingComponent();
3267-
return context._currentValue2;
3268-
},
3269-
useMemo: useMemo,
3270-
useReducer: useReducer,
3271-
useRef: function (initialValue) {
3272-
currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
3273-
workInProgressHook = createWorkInProgressHook();
3274-
var previousRef = workInProgressHook.memoizedState;
3275-
return null === previousRef
3276-
? ((initialValue = { current: initialValue }),
3277-
(workInProgressHook.memoizedState = initialValue))
3278-
: previousRef;
3279-
},
3280-
useState: function (initialState) {
3281-
return useReducer(basicStateReducer, initialState);
3282-
},
3283-
useInsertionEffect: noop$1,
3284-
useLayoutEffect: noop$1,
3285-
useCallback: function (callback, deps) {
3286-
return useMemo(function () {
3287-
return callback;
3288-
}, deps);
3289-
},
3290-
useImperativeHandle: noop$1,
3291-
useEffect: noop$1,
3292-
useDebugValue: noop$1,
3293-
useDeferredValue: function (value, initialValue) {
3294-
resolveCurrentlyRenderingComponent();
3295-
return void 0 !== initialValue ? initialValue : value;
3296-
},
3297-
useTransition: function () {
3298-
resolveCurrentlyRenderingComponent();
3299-
return [!1, unsupportedStartTransition];
3300-
},
3301-
useId: function () {
3302-
var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
3303-
var overflow = JSCompiler_inline_result.overflow;
3304-
JSCompiler_inline_result = JSCompiler_inline_result.id;
3305-
JSCompiler_inline_result =
3306-
(
3307-
JSCompiler_inline_result &
3308-
~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
3309-
).toString(32) + overflow;
3310-
var resumableState = currentResumableState;
3311-
if (null === resumableState) throw Error(formatProdErrorMessage(404));
3312-
overflow = localIdCounter++;
3313-
JSCompiler_inline_result =
3314-
":" + resumableState.idPrefix + "R" + JSCompiler_inline_result;
3315-
0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
3316-
return JSCompiler_inline_result + ":";
3317-
},
3318-
useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
3319-
if (void 0 === getServerSnapshot) throw Error(formatProdErrorMessage(407));
3320-
return getServerSnapshot();
3321-
},
3322-
useCacheRefresh: function () {
3323-
return unsupportedRefresh;
3324-
},
3325-
useEffectEvent: function () {
3326-
return throwOnUseEffectEventCall;
3327-
},
3328-
useMemoCache: function (size) {
3329-
for (var data = Array(size), i = 0; i < size; i++)
3330-
data[i] = REACT_MEMO_CACHE_SENTINEL;
3331-
return data;
3332-
},
3333-
useHostTransitionStatus: function () {
3334-
resolveCurrentlyRenderingComponent();
3335-
return sharedNotPendingObject;
3336-
},
3337-
useOptimistic: function (passthrough) {
3338-
resolveCurrentlyRenderingComponent();
3339-
return [passthrough, unsupportedSetOptimisticState];
3340-
}
3341-
};
3342-
HooksDispatcher.useFormState = useActionState;
3343-
HooksDispatcher.useActionState = useActionState;
3344-
var currentResumableState = null,
3333+
currentResumableState = null,
33453334
DefaultAsyncDispatcher = {
33463335
getCacheForType: function () {
33473336
throw Error(formatProdErrorMessage(248));
@@ -3503,7 +3492,7 @@ function describeComponentStackByType(type) {
35033492
if ("string" === typeof type) return describeBuiltInComponentFrame(type);
35043493
if ("function" === typeof type)
35053494
return type.prototype && type.prototype.isReactComponent
3506-
? ((type = describeNativeComponentFrame(type, !0)), type)
3495+
? describeNativeComponentFrame(type, !0)
35073496
: describeNativeComponentFrame(type, !1);
35083497
if ("object" === typeof type && null !== type) {
35093498
switch (type.$$typeof) {
@@ -4071,7 +4060,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
40714060
else {
40724061
switch (type) {
40734062
case REACT_LEGACY_HIDDEN_TYPE:
4074-
case REACT_DEBUG_TRACING_MODE_TYPE:
40754063
case REACT_STRICT_MODE_TYPE:
40764064
case REACT_PROFILER_TYPE:
40774065
case REACT_FRAGMENT_TYPE:
@@ -6060,4 +6048,4 @@ exports.renderToString = function (children, options) {
60606048
'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'
60616049
);
60626050
};
6063-
exports.version = "19.0.0-experimental-372ec00c-20241209";
6051+
exports.version = "19.1.0-experimental-ef979d47-20241218";

0 commit comments

Comments
 (0)