Skip to content

Commit 3d3db5a

Browse files
ncc-compiled
1 parent b62017c commit 3d3db5a

File tree

60 files changed

+338
-308
lines changed

Some content is hidden

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

60 files changed

+338
-308
lines changed

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

+39-37
Original file line numberDiff line numberDiff line change
@@ -12347,7 +12347,9 @@
1234712347
if (
1234812348
((hoistableRoot = maybeNodes[i]),
1234912349
hoistableRoot.getAttribute("href") ===
12350-
(null == current.href ? null : current.href) &&
12350+
(null == current.href || "" === current.href
12351+
? null
12352+
: current.href) &&
1235112353
hoistableRoot.getAttribute("rel") ===
1235212354
(null == current.rel ? null : current.rel) &&
1235312355
hoistableRoot.getAttribute("title") ===
@@ -19581,36 +19583,34 @@
1958119583
}
1958219584
case "src":
1958319585
case "href":
19584-
"" !== propKey ||
19585-
("a" === tag && "href" === value) ||
19586-
("object" === tag && "data" === value)
19587-
? hydrateSanitizedAttribute(
19588-
domElement,
19589-
value,
19590-
value,
19591-
propKey,
19592-
extraAttributes,
19593-
serverDifferences
19594-
)
19595-
: ("src" === value
19596-
? console.error(
19597-
'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
19598-
value,
19599-
value
19600-
)
19601-
: console.error(
19602-
'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
19603-
value,
19604-
value
19605-
),
19606-
hydrateSanitizedAttribute(
19607-
domElement,
19608-
value,
19609-
value,
19610-
null,
19611-
extraAttributes,
19612-
serverDifferences
19613-
));
19586+
if (
19587+
!(
19588+
"" !== propKey ||
19589+
("a" === tag && "href" === value) ||
19590+
("object" === tag && "data" === value)
19591+
)
19592+
) {
19593+
"src" === value
19594+
? console.error(
19595+
'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
19596+
value,
19597+
value
19598+
)
19599+
: console.error(
19600+
'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
19601+
value,
19602+
value
19603+
);
19604+
continue;
19605+
}
19606+
hydrateSanitizedAttribute(
19607+
domElement,
19608+
value,
19609+
value,
19610+
propKey,
19611+
extraAttributes,
19612+
serverDifferences
19613+
);
1961419614
continue;
1961519615
case "action":
1961619616
case "formAction":
@@ -20228,7 +20228,9 @@
2022820228
else if (
2022920229
name !== anyProps.rel ||
2023020230
instance.getAttribute("href") !==
20231-
(null == anyProps.href ? null : anyProps.href) ||
20231+
(null == anyProps.href || "" === anyProps.href
20232+
? null
20233+
: anyProps.href) ||
2023220234
instance.getAttribute("crossorigin") !==
2023320235
(null == anyProps.crossOrigin
2023420236
? null
@@ -25645,11 +25647,11 @@
2564525647
};
2564625648
(function () {
2564725649
var isomorphicReactPackageVersion = React.version;
25648-
if ("19.1.0-experimental-3b009b4c-20250102" !== isomorphicReactPackageVersion)
25650+
if ("19.1.0-experimental-3ce77d55-20250106" !== isomorphicReactPackageVersion)
2564925651
throw Error(
2565025652
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2565125653
(isomorphicReactPackageVersion +
25652-
"\n - react-dom: 19.1.0-experimental-3b009b4c-20250102\nLearn more: https://react.dev/warnings/version-mismatch")
25654+
"\n - react-dom: 19.1.0-experimental-3ce77d55-20250106\nLearn more: https://react.dev/warnings/version-mismatch")
2565325655
);
2565425656
})();
2565525657
("function" === typeof Map &&
@@ -25686,10 +25688,10 @@
2568625688
!(function () {
2568725689
var internals = {
2568825690
bundleType: 1,
25689-
version: "19.1.0-experimental-3b009b4c-20250102",
25691+
version: "19.1.0-experimental-3ce77d55-20250106",
2569025692
rendererPackageName: "react-dom",
2569125693
currentDispatcherRef: ReactSharedInternals,
25692-
reconcilerVersion: "19.1.0-experimental-3b009b4c-20250102"
25694+
reconcilerVersion: "19.1.0-experimental-3ce77d55-20250106"
2569325695
};
2569425696
internals.overrideHookState = overrideHookState;
2569525697
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -25833,7 +25835,7 @@
2583325835
listenToAllSupportedEvents(container);
2583425836
return new ReactDOMHydrationRoot(initialChildren);
2583525837
};
25836-
exports.version = "19.1.0-experimental-3b009b4c-20250102";
25838+
exports.version = "19.1.0-experimental-3ce77d55-20250106";
2583725839
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2583825840
"function" ===
2583925841
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

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

+11-7
Original file line numberDiff line numberDiff line change
@@ -8441,7 +8441,9 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
84418441
if (
84428442
((currentResource = maybeNodes[i]),
84438443
currentResource.getAttribute("href") ===
8444-
(null == current.href ? null : current.href) &&
8444+
(null == current.href || "" === current.href
8445+
? null
8446+
: current.href) &&
84458447
currentResource.getAttribute("rel") ===
84468448
(null == current.rel ? null : current.rel) &&
84478449
currentResource.getAttribute("title") ===
@@ -13689,7 +13691,9 @@ function canHydrateInstance(instance, type, props, inRootOrSingleton) {
1368913691
else if (
1369013692
name !== anyProps.rel ||
1369113693
instance.getAttribute("href") !==
13692-
(null == anyProps.href ? null : anyProps.href) ||
13694+
(null == anyProps.href || "" === anyProps.href
13695+
? null
13696+
: anyProps.href) ||
1369313697
instance.getAttribute("crossorigin") !==
1369413698
(null == anyProps.crossOrigin ? null : anyProps.crossOrigin) ||
1369513699
instance.getAttribute("title") !==
@@ -15306,14 +15310,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1530615310
};
1530715311
var isomorphicReactPackageVersion$jscomp$inline_1699 = React.version;
1530815312
if (
15309-
"19.1.0-experimental-3b009b4c-20250102" !==
15313+
"19.1.0-experimental-3ce77d55-20250106" !==
1531015314
isomorphicReactPackageVersion$jscomp$inline_1699
1531115315
)
1531215316
throw Error(
1531315317
formatProdErrorMessage(
1531415318
527,
1531515319
isomorphicReactPackageVersion$jscomp$inline_1699,
15316-
"19.1.0-experimental-3b009b4c-20250102"
15320+
"19.1.0-experimental-3ce77d55-20250106"
1531715321
)
1531815322
);
1531915323
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -15335,10 +15339,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1533515339
};
1533615340
var internals$jscomp$inline_2162 = {
1533715341
bundleType: 0,
15338-
version: "19.1.0-experimental-3b009b4c-20250102",
15342+
version: "19.1.0-experimental-3ce77d55-20250106",
1533915343
rendererPackageName: "react-dom",
1534015344
currentDispatcherRef: ReactSharedInternals,
15341-
reconcilerVersion: "19.1.0-experimental-3b009b4c-20250102"
15345+
reconcilerVersion: "19.1.0-experimental-3ce77d55-20250106"
1534215346
};
1534315347
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1534415348
var hook$jscomp$inline_2163 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -15444,4 +15448,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1544415448
listenToAllSupportedEvents(container);
1544515449
return new ReactDOMHydrationRoot(initialChildren);
1544615450
};
15447-
exports.version = "19.1.0-experimental-3b009b4c-20250102";
15451+
exports.version = "19.1.0-experimental-3ce77d55-20250106";

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

+39-37
Original file line numberDiff line numberDiff line change
@@ -12355,7 +12355,9 @@
1235512355
if (
1235612356
((hoistableRoot = maybeNodes[i]),
1235712357
hoistableRoot.getAttribute("href") ===
12358-
(null == current.href ? null : current.href) &&
12358+
(null == current.href || "" === current.href
12359+
? null
12360+
: current.href) &&
1235912361
hoistableRoot.getAttribute("rel") ===
1236012362
(null == current.rel ? null : current.rel) &&
1236112363
hoistableRoot.getAttribute("title") ===
@@ -19593,36 +19595,34 @@
1959319595
}
1959419596
case "src":
1959519597
case "href":
19596-
"" !== propKey ||
19597-
("a" === tag && "href" === value) ||
19598-
("object" === tag && "data" === value)
19599-
? hydrateSanitizedAttribute(
19600-
domElement,
19601-
value,
19602-
value,
19603-
propKey,
19604-
extraAttributes,
19605-
serverDifferences
19606-
)
19607-
: ("src" === value
19608-
? console.error(
19609-
'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
19610-
value,
19611-
value
19612-
)
19613-
: console.error(
19614-
'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
19615-
value,
19616-
value
19617-
),
19618-
hydrateSanitizedAttribute(
19619-
domElement,
19620-
value,
19621-
value,
19622-
null,
19623-
extraAttributes,
19624-
serverDifferences
19625-
));
19598+
if (
19599+
!(
19600+
"" !== propKey ||
19601+
("a" === tag && "href" === value) ||
19602+
("object" === tag && "data" === value)
19603+
)
19604+
) {
19605+
"src" === value
19606+
? console.error(
19607+
'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
19608+
value,
19609+
value
19610+
)
19611+
: console.error(
19612+
'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
19613+
value,
19614+
value
19615+
);
19616+
continue;
19617+
}
19618+
hydrateSanitizedAttribute(
19619+
domElement,
19620+
value,
19621+
value,
19622+
propKey,
19623+
extraAttributes,
19624+
serverDifferences
19625+
);
1962619626
continue;
1962719627
case "action":
1962819628
case "formAction":
@@ -20240,7 +20240,9 @@
2024020240
else if (
2024120241
name !== anyProps.rel ||
2024220242
instance.getAttribute("href") !==
20243-
(null == anyProps.href ? null : anyProps.href) ||
20243+
(null == anyProps.href || "" === anyProps.href
20244+
? null
20245+
: anyProps.href) ||
2024420246
instance.getAttribute("crossorigin") !==
2024520247
(null == anyProps.crossOrigin
2024620248
? null
@@ -25702,11 +25704,11 @@
2570225704
};
2570325705
(function () {
2570425706
var isomorphicReactPackageVersion = React.version;
25705-
if ("19.1.0-experimental-3b009b4c-20250102" !== isomorphicReactPackageVersion)
25707+
if ("19.1.0-experimental-3ce77d55-20250106" !== isomorphicReactPackageVersion)
2570625708
throw Error(
2570725709
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2570825710
(isomorphicReactPackageVersion +
25709-
"\n - react-dom: 19.1.0-experimental-3b009b4c-20250102\nLearn more: https://react.dev/warnings/version-mismatch")
25711+
"\n - react-dom: 19.1.0-experimental-3ce77d55-20250106\nLearn more: https://react.dev/warnings/version-mismatch")
2571025712
);
2571125713
})();
2571225714
("function" === typeof Map &&
@@ -25743,10 +25745,10 @@
2574325745
!(function () {
2574425746
var internals = {
2574525747
bundleType: 1,
25746-
version: "19.1.0-experimental-3b009b4c-20250102",
25748+
version: "19.1.0-experimental-3ce77d55-20250106",
2574725749
rendererPackageName: "react-dom",
2574825750
currentDispatcherRef: ReactSharedInternals,
25749-
reconcilerVersion: "19.1.0-experimental-3b009b4c-20250102"
25751+
reconcilerVersion: "19.1.0-experimental-3ce77d55-20250106"
2575025752
};
2575125753
internals.overrideHookState = overrideHookState;
2575225754
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -26220,7 +26222,7 @@
2622026222
exports.useFormStatus = function () {
2622126223
return resolveDispatcher().useHostTransitionStatus();
2622226224
};
26223-
exports.version = "19.1.0-experimental-3b009b4c-20250102";
26225+
exports.version = "19.1.0-experimental-3ce77d55-20250106";
2622426226
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2622526227
"function" ===
2622626228
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

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

+11-7
Original file line numberDiff line numberDiff line change
@@ -9103,7 +9103,9 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
91039103
if (
91049104
((hoistableRoot = maybeNodes[i]),
91059105
hoistableRoot.getAttribute("href") ===
9106-
(null == current.href ? null : current.href) &&
9106+
(null == current.href || "" === current.href
9107+
? null
9108+
: current.href) &&
91079109
hoistableRoot.getAttribute("rel") ===
91089110
(null == current.rel ? null : current.rel) &&
91099111
hoistableRoot.getAttribute("title") ===
@@ -15103,7 +15105,9 @@ function canHydrateInstance(instance, type, props, inRootOrSingleton) {
1510315105
else if (
1510415106
name !== anyProps.rel ||
1510515107
instance.getAttribute("href") !==
15106-
(null == anyProps.href ? null : anyProps.href) ||
15108+
(null == anyProps.href || "" === anyProps.href
15109+
? null
15110+
: anyProps.href) ||
1510715111
instance.getAttribute("crossorigin") !==
1510815112
(null == anyProps.crossOrigin ? null : anyProps.crossOrigin) ||
1510915113
instance.getAttribute("title") !==
@@ -16737,14 +16741,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1673716741
};
1673816742
var isomorphicReactPackageVersion$jscomp$inline_1847 = React.version;
1673916743
if (
16740-
"19.1.0-experimental-3b009b4c-20250102" !==
16744+
"19.1.0-experimental-3ce77d55-20250106" !==
1674116745
isomorphicReactPackageVersion$jscomp$inline_1847
1674216746
)
1674316747
throw Error(
1674416748
formatProdErrorMessage(
1674516749
527,
1674616750
isomorphicReactPackageVersion$jscomp$inline_1847,
16747-
"19.1.0-experimental-3b009b4c-20250102"
16751+
"19.1.0-experimental-3ce77d55-20250106"
1674816752
)
1674916753
);
1675016754
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -16766,10 +16770,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1676616770
};
1676716771
var internals$jscomp$inline_2303 = {
1676816772
bundleType: 0,
16769-
version: "19.1.0-experimental-3b009b4c-20250102",
16773+
version: "19.1.0-experimental-3ce77d55-20250106",
1677016774
rendererPackageName: "react-dom",
1677116775
currentDispatcherRef: ReactSharedInternals,
16772-
reconcilerVersion: "19.1.0-experimental-3b009b4c-20250102"
16776+
reconcilerVersion: "19.1.0-experimental-3ce77d55-20250106"
1677316777
};
1677416778
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1677516779
var hook$jscomp$inline_2304 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17036,7 +17040,7 @@ exports.useFormState = function (action, initialState, permalink) {
1703617040
exports.useFormStatus = function () {
1703717041
return ReactSharedInternals.H.useHostTransitionStatus();
1703817042
};
17039-
exports.version = "19.1.0-experimental-3b009b4c-20250102";
17043+
exports.version = "19.1.0-experimental-3ce77d55-20250106";
1704017044
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1704117045
"function" ===
1704217046
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -9281,5 +9281,5 @@
92819281
'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'
92829282
);
92839283
};
9284-
exports.version = "19.1.0-experimental-3b009b4c-20250102";
9284+
exports.version = "19.1.0-experimental-3ce77d55-20250106";
92859285
})();

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -6048,4 +6048,4 @@ exports.renderToString = function (children, options) {
60486048
'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'
60496049
);
60506050
};
6051-
exports.version = "19.1.0-experimental-3b009b4c-20250102";
6051+
exports.version = "19.1.0-experimental-3ce77d55-20250106";

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -9281,5 +9281,5 @@
92819281
'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 "renderToPipeableStream" which supports Suspense on the server'
92829282
);
92839283
};
9284-
exports.version = "19.1.0-experimental-3b009b4c-20250102";
9284+
exports.version = "19.1.0-experimental-3ce77d55-20250106";
92859285
})();

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -6139,4 +6139,4 @@ exports.renderToString = function (children, options) {
61396139
'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 "renderToPipeableStream" which supports Suspense on the server'
61406140
);
61416141
};
6142-
exports.version = "19.1.0-experimental-3b009b4c-20250102";
6142+
exports.version = "19.1.0-experimental-3ce77d55-20250106";

0 commit comments

Comments
 (0)