react-dom 19.2.0-canary-280ff6fe-20250606 → 19.2.0-canary-56408a5b-20250610
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/react-dom-client.development.js +167 -153
- package/cjs/react-dom-client.production.js +59 -40
- package/cjs/react-dom-profiling.development.js +167 -153
- package/cjs/react-dom-profiling.profiling.js +59 -40
- package/cjs/react-dom-server-legacy.browser.development.js +1 -1
- package/cjs/react-dom-server-legacy.browser.production.js +1 -1
- package/cjs/react-dom-server-legacy.node.development.js +1 -1
- package/cjs/react-dom-server-legacy.node.production.js +1 -1
- package/cjs/react-dom-server.browser.development.js +3 -3
- package/cjs/react-dom-server.browser.production.js +3 -3
- package/cjs/react-dom-server.bun.development.js +3 -3
- package/cjs/react-dom-server.bun.production.js +3 -3
- package/cjs/react-dom-server.edge.development.js +3 -3
- package/cjs/react-dom-server.edge.production.js +3 -3
- package/cjs/react-dom-server.node.development.js +194 -5
- package/cjs/react-dom-server.node.production.js +194 -5
- package/cjs/react-dom.development.js +1 -1
- package/cjs/react-dom.production.js +1 -1
- package/cjs/react-dom.react-server.development.js +1 -1
- package/cjs/react-dom.react-server.production.js +1 -1
- package/package.json +3 -3
- package/server.node.js +4 -0
- package/static.node.js +2 -0
@@ -7145,7 +7145,8 @@ function initSuspenseListRenderState(
|
|
7145
7145
|
isBackwards,
|
7146
7146
|
tail,
|
7147
7147
|
lastContentRow,
|
7148
|
-
tailMode
|
7148
|
+
tailMode,
|
7149
|
+
treeForkCount
|
7149
7150
|
) {
|
7150
7151
|
var renderState = workInProgress.memoizedState;
|
7151
7152
|
null === renderState
|
@@ -7155,14 +7156,16 @@ function initSuspenseListRenderState(
|
|
7155
7156
|
renderingStartTime: 0,
|
7156
7157
|
last: lastContentRow,
|
7157
7158
|
tail: tail,
|
7158
|
-
tailMode: tailMode
|
7159
|
+
tailMode: tailMode,
|
7160
|
+
treeForkCount: treeForkCount
|
7159
7161
|
})
|
7160
7162
|
: ((renderState.isBackwards = isBackwards),
|
7161
7163
|
(renderState.rendering = null),
|
7162
7164
|
(renderState.renderingStartTime = 0),
|
7163
7165
|
(renderState.last = lastContentRow),
|
7164
7166
|
(renderState.tail = tail),
|
7165
|
-
(renderState.tailMode = tailMode)
|
7167
|
+
(renderState.tailMode = tailMode),
|
7168
|
+
(renderState.treeForkCount = treeForkCount));
|
7166
7169
|
}
|
7167
7170
|
function updateSuspenseListComponent(current, workInProgress, renderLanes) {
|
7168
7171
|
var nextProps = workInProgress.pendingProps,
|
@@ -7177,6 +7180,7 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) {
|
|
7177
7180
|
: (suspenseContext &= 1);
|
7178
7181
|
push(suspenseStackCursor, suspenseContext);
|
7179
7182
|
reconcileChildren(current, workInProgress, nextProps, renderLanes);
|
7183
|
+
nextProps = isHydrating ? treeForkCount : 0;
|
7180
7184
|
if (!shouldForceFallback && null !== current && 0 !== (current.flags & 128))
|
7181
7185
|
a: for (current = workInProgress.child; null !== current; ) {
|
7182
7186
|
if (13 === current.tag)
|
@@ -7216,7 +7220,8 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) {
|
|
7216
7220
|
!1,
|
7217
7221
|
revealOrder,
|
7218
7222
|
renderLanes,
|
7219
|
-
tailMode
|
7223
|
+
tailMode,
|
7224
|
+
nextProps
|
7220
7225
|
);
|
7221
7226
|
break;
|
7222
7227
|
case "backwards":
|
@@ -7239,11 +7244,19 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) {
|
|
7239
7244
|
!0,
|
7240
7245
|
renderLanes,
|
7241
7246
|
null,
|
7242
|
-
tailMode
|
7247
|
+
tailMode,
|
7248
|
+
nextProps
|
7243
7249
|
);
|
7244
7250
|
break;
|
7245
7251
|
case "together":
|
7246
|
-
initSuspenseListRenderState(
|
7252
|
+
initSuspenseListRenderState(
|
7253
|
+
workInProgress,
|
7254
|
+
!1,
|
7255
|
+
null,
|
7256
|
+
null,
|
7257
|
+
void 0,
|
7258
|
+
nextProps
|
7259
|
+
);
|
7247
7260
|
break;
|
7248
7261
|
default:
|
7249
7262
|
workInProgress.memoizedState = null;
|
@@ -8532,12 +8545,12 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
8532
8545
|
);
|
8533
8546
|
case 19:
|
8534
8547
|
pop(suspenseStackCursor);
|
8535
|
-
|
8536
|
-
if (null ===
|
8537
|
-
|
8538
|
-
nextResource =
|
8548
|
+
newProps = workInProgress.memoizedState;
|
8549
|
+
if (null === newProps) return bubbleProperties(workInProgress), null;
|
8550
|
+
type = 0 !== (workInProgress.flags & 128);
|
8551
|
+
nextResource = newProps.rendering;
|
8539
8552
|
if (null === nextResource)
|
8540
|
-
if (
|
8553
|
+
if (type) cutOffTailIfNeeded(newProps, !1);
|
8541
8554
|
else {
|
8542
8555
|
if (
|
8543
8556
|
0 !== workInProgressRootExitStatus ||
|
@@ -8547,7 +8560,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
8547
8560
|
nextResource = findFirstSuspended(current);
|
8548
8561
|
if (null !== nextResource) {
|
8549
8562
|
workInProgress.flags |= 128;
|
8550
|
-
cutOffTailIfNeeded(
|
8563
|
+
cutOffTailIfNeeded(newProps, !1);
|
8551
8564
|
current = nextResource.updateQueue;
|
8552
8565
|
workInProgress.updateQueue = current;
|
8553
8566
|
scheduleRetryEffect(workInProgress, current);
|
@@ -8560,62 +8573,68 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
8560
8573
|
suspenseStackCursor,
|
8561
8574
|
(suspenseStackCursor.current & 1) | 2
|
8562
8575
|
);
|
8576
|
+
isHydrating &&
|
8577
|
+
pushTreeFork(workInProgress, newProps.treeForkCount);
|
8563
8578
|
return workInProgress.child;
|
8564
8579
|
}
|
8565
8580
|
current = current.sibling;
|
8566
8581
|
}
|
8567
|
-
null !==
|
8582
|
+
null !== newProps.tail &&
|
8568
8583
|
now$1() > workInProgressRootRenderTargetTime &&
|
8569
8584
|
((workInProgress.flags |= 128),
|
8570
|
-
(
|
8571
|
-
cutOffTailIfNeeded(
|
8585
|
+
(type = !0),
|
8586
|
+
cutOffTailIfNeeded(newProps, !1),
|
8572
8587
|
(workInProgress.lanes = 4194304));
|
8573
8588
|
}
|
8574
8589
|
else {
|
8575
|
-
if (!
|
8590
|
+
if (!type)
|
8576
8591
|
if (
|
8577
8592
|
((current = findFirstSuspended(nextResource)), null !== current)
|
8578
8593
|
) {
|
8579
8594
|
if (
|
8580
8595
|
((workInProgress.flags |= 128),
|
8581
|
-
(
|
8596
|
+
(type = !0),
|
8582
8597
|
(current = current.updateQueue),
|
8583
8598
|
(workInProgress.updateQueue = current),
|
8584
8599
|
scheduleRetryEffect(workInProgress, current),
|
8585
|
-
cutOffTailIfNeeded(
|
8586
|
-
null ===
|
8587
|
-
"hidden" ===
|
8600
|
+
cutOffTailIfNeeded(newProps, !0),
|
8601
|
+
null === newProps.tail &&
|
8602
|
+
"hidden" === newProps.tailMode &&
|
8588
8603
|
!nextResource.alternate &&
|
8589
8604
|
!isHydrating)
|
8590
8605
|
)
|
8591
8606
|
return bubbleProperties(workInProgress), null;
|
8592
8607
|
} else
|
8593
|
-
2 * now$1() -
|
8608
|
+
2 * now$1() - newProps.renderingStartTime >
|
8594
8609
|
workInProgressRootRenderTargetTime &&
|
8595
8610
|
536870912 !== renderLanes &&
|
8596
8611
|
((workInProgress.flags |= 128),
|
8597
|
-
(
|
8598
|
-
cutOffTailIfNeeded(
|
8612
|
+
(type = !0),
|
8613
|
+
cutOffTailIfNeeded(newProps, !1),
|
8599
8614
|
(workInProgress.lanes = 4194304));
|
8600
|
-
|
8615
|
+
newProps.isBackwards
|
8601
8616
|
? ((nextResource.sibling = workInProgress.child),
|
8602
8617
|
(workInProgress.child = nextResource))
|
8603
|
-
: ((current =
|
8618
|
+
: ((current = newProps.last),
|
8604
8619
|
null !== current
|
8605
8620
|
? (current.sibling = nextResource)
|
8606
8621
|
: (workInProgress.child = nextResource),
|
8607
|
-
(
|
8622
|
+
(newProps.last = nextResource));
|
8608
8623
|
}
|
8609
|
-
if (null !==
|
8624
|
+
if (null !== newProps.tail)
|
8610
8625
|
return (
|
8611
|
-
(
|
8612
|
-
(
|
8613
|
-
(
|
8614
|
-
(
|
8615
|
-
(
|
8616
|
-
(
|
8617
|
-
push(
|
8618
|
-
|
8626
|
+
(current = newProps.tail),
|
8627
|
+
(newProps.rendering = current),
|
8628
|
+
(newProps.tail = current.sibling),
|
8629
|
+
(newProps.renderingStartTime = now$1()),
|
8630
|
+
(current.sibling = null),
|
8631
|
+
(renderLanes = suspenseStackCursor.current),
|
8632
|
+
push(
|
8633
|
+
suspenseStackCursor,
|
8634
|
+
type ? (renderLanes & 1) | 2 : renderLanes & 1
|
8635
|
+
),
|
8636
|
+
isHydrating && pushTreeFork(workInProgress, newProps.treeForkCount),
|
8637
|
+
current
|
8619
8638
|
);
|
8620
8639
|
bubbleProperties(workInProgress);
|
8621
8640
|
return null;
|
@@ -16394,14 +16413,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
|
16394
16413
|
};
|
16395
16414
|
var isomorphicReactPackageVersion$jscomp$inline_1955 = React.version;
|
16396
16415
|
if (
|
16397
|
-
"19.2.0-canary-
|
16416
|
+
"19.2.0-canary-56408a5b-20250610" !==
|
16398
16417
|
isomorphicReactPackageVersion$jscomp$inline_1955
|
16399
16418
|
)
|
16400
16419
|
throw Error(
|
16401
16420
|
formatProdErrorMessage(
|
16402
16421
|
527,
|
16403
16422
|
isomorphicReactPackageVersion$jscomp$inline_1955,
|
16404
|
-
"19.2.0-canary-
|
16423
|
+
"19.2.0-canary-56408a5b-20250610"
|
16405
16424
|
)
|
16406
16425
|
);
|
16407
16426
|
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
@@ -16423,10 +16442,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
|
16423
16442
|
};
|
16424
16443
|
var internals$jscomp$inline_1962 = {
|
16425
16444
|
bundleType: 0,
|
16426
|
-
version: "19.2.0-canary-
|
16445
|
+
version: "19.2.0-canary-56408a5b-20250610",
|
16427
16446
|
rendererPackageName: "react-dom",
|
16428
16447
|
currentDispatcherRef: ReactSharedInternals,
|
16429
|
-
reconcilerVersion: "19.2.0-canary-
|
16448
|
+
reconcilerVersion: "19.2.0-canary-56408a5b-20250610",
|
16430
16449
|
getLaneLabelMap: function () {
|
16431
16450
|
for (
|
16432
16451
|
var map = new Map(), lane = 1, index$293 = 0;
|
@@ -16699,7 +16718,7 @@ exports.useFormState = function (action, initialState, permalink) {
|
|
16699
16718
|
exports.useFormStatus = function () {
|
16700
16719
|
return ReactSharedInternals.H.useHostTransitionStatus();
|
16701
16720
|
};
|
16702
|
-
exports.version = "19.2.0-canary-
|
16721
|
+
exports.version = "19.2.0-canary-56408a5b-20250610";
|
16703
16722
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
16704
16723
|
"function" ===
|
16705
16724
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
@@ -9662,5 +9662,5 @@
|
|
9662
9662
|
'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'
|
9663
9663
|
);
|
9664
9664
|
};
|
9665
|
-
exports.version = "19.2.0-canary-
|
9665
|
+
exports.version = "19.2.0-canary-56408a5b-20250610";
|
9666
9666
|
})();
|
@@ -6425,4 +6425,4 @@ exports.renderToString = function (children, options) {
|
|
6425
6425
|
'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'
|
6426
6426
|
);
|
6427
6427
|
};
|
6428
|
-
exports.version = "19.2.0-canary-
|
6428
|
+
exports.version = "19.2.0-canary-56408a5b-20250610";
|
@@ -9662,5 +9662,5 @@
|
|
9662
9662
|
'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'
|
9663
9663
|
);
|
9664
9664
|
};
|
9665
|
-
exports.version = "19.2.0-canary-
|
9665
|
+
exports.version = "19.2.0-canary-56408a5b-20250610";
|
9666
9666
|
})();
|
@@ -6508,4 +6508,4 @@ exports.renderToString = function (children, options) {
|
|
6508
6508
|
'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'
|
6509
6509
|
);
|
6510
6510
|
};
|
6511
|
-
exports.version = "19.2.0-canary-
|
6511
|
+
exports.version = "19.2.0-canary-56408a5b-20250610";
|
@@ -8413,11 +8413,11 @@
|
|
8413
8413
|
}
|
8414
8414
|
function ensureCorrectIsomorphicReactVersion() {
|
8415
8415
|
var isomorphicReactPackageVersion = React.version;
|
8416
|
-
if ("19.2.0-canary-
|
8416
|
+
if ("19.2.0-canary-56408a5b-20250610" !== isomorphicReactPackageVersion)
|
8417
8417
|
throw Error(
|
8418
8418
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
8419
8419
|
(isomorphicReactPackageVersion +
|
8420
|
-
"\n - react-dom: 19.2.0-canary-
|
8420
|
+
"\n - react-dom: 19.2.0-canary-56408a5b-20250610\nLearn more: https://react.dev/warnings/version-mismatch")
|
8421
8421
|
);
|
8422
8422
|
}
|
8423
8423
|
var React = require("react"),
|
@@ -10105,5 +10105,5 @@
|
|
10105
10105
|
startWork(request);
|
10106
10106
|
});
|
10107
10107
|
};
|
10108
|
-
exports.version = "19.2.0-canary-
|
10108
|
+
exports.version = "19.2.0-canary-56408a5b-20250610";
|
10109
10109
|
})();
|
@@ -6811,12 +6811,12 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
6811
6811
|
}
|
6812
6812
|
function ensureCorrectIsomorphicReactVersion() {
|
6813
6813
|
var isomorphicReactPackageVersion = React.version;
|
6814
|
-
if ("19.2.0-canary-
|
6814
|
+
if ("19.2.0-canary-56408a5b-20250610" !== isomorphicReactPackageVersion)
|
6815
6815
|
throw Error(
|
6816
6816
|
formatProdErrorMessage(
|
6817
6817
|
527,
|
6818
6818
|
isomorphicReactPackageVersion,
|
6819
|
-
"19.2.0-canary-
|
6819
|
+
"19.2.0-canary-56408a5b-20250610"
|
6820
6820
|
)
|
6821
6821
|
);
|
6822
6822
|
}
|
@@ -6963,4 +6963,4 @@ exports.renderToReadableStream = function (children, options) {
|
|
6963
6963
|
startWork(request);
|
6964
6964
|
});
|
6965
6965
|
};
|
6966
|
-
exports.version = "19.2.0-canary-
|
6966
|
+
exports.version = "19.2.0-canary-56408a5b-20250610";
|
@@ -9282,13 +9282,13 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
9282
9282
|
}
|
9283
9283
|
var isomorphicReactPackageVersion$jscomp$inline_761 = React.version;
|
9284
9284
|
if (
|
9285
|
-
"19.2.0-canary-
|
9285
|
+
"19.2.0-canary-56408a5b-20250610" !==
|
9286
9286
|
isomorphicReactPackageVersion$jscomp$inline_761
|
9287
9287
|
)
|
9288
9288
|
throw Error(
|
9289
9289
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
9290
9290
|
(isomorphicReactPackageVersion$jscomp$inline_761 +
|
9291
|
-
"\n - react-dom: 19.2.0-canary-
|
9291
|
+
"\n - react-dom: 19.2.0-canary-56408a5b-20250610\nLearn more: https://react.dev/warnings/version-mismatch")
|
9292
9292
|
);
|
9293
9293
|
exports.renderToReadableStream = function (children, options) {
|
9294
9294
|
return new Promise(function (resolve, reject) {
|
@@ -9381,4 +9381,4 @@ exports.renderToReadableStream = function (children, options) {
|
|
9381
9381
|
startWork(request$jscomp$0);
|
9382
9382
|
});
|
9383
9383
|
};
|
9384
|
-
exports.version = "19.2.0-canary-
|
9384
|
+
exports.version = "19.2.0-canary-56408a5b-20250610";
|
@@ -6456,13 +6456,13 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
6456
6456
|
}
|
6457
6457
|
var isomorphicReactPackageVersion$jscomp$inline_813 = React.version;
|
6458
6458
|
if (
|
6459
|
-
"19.2.0-canary-
|
6459
|
+
"19.2.0-canary-56408a5b-20250610" !==
|
6460
6460
|
isomorphicReactPackageVersion$jscomp$inline_813
|
6461
6461
|
)
|
6462
6462
|
throw Error(
|
6463
6463
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
6464
6464
|
(isomorphicReactPackageVersion$jscomp$inline_813 +
|
6465
|
-
"\n - react-dom: 19.2.0-canary-
|
6465
|
+
"\n - react-dom: 19.2.0-canary-56408a5b-20250610\nLearn more: https://react.dev/warnings/version-mismatch")
|
6466
6466
|
);
|
6467
6467
|
exports.renderToReadableStream = function (children, options) {
|
6468
6468
|
return new Promise(function (resolve, reject) {
|
@@ -6553,4 +6553,4 @@ exports.renderToReadableStream = function (children, options) {
|
|
6553
6553
|
startWork(request);
|
6554
6554
|
});
|
6555
6555
|
};
|
6556
|
-
exports.version = "19.2.0-canary-
|
6556
|
+
exports.version = "19.2.0-canary-56408a5b-20250610";
|
@@ -8436,11 +8436,11 @@
|
|
8436
8436
|
}
|
8437
8437
|
function ensureCorrectIsomorphicReactVersion() {
|
8438
8438
|
var isomorphicReactPackageVersion = React.version;
|
8439
|
-
if ("19.2.0-canary-
|
8439
|
+
if ("19.2.0-canary-56408a5b-20250610" !== isomorphicReactPackageVersion)
|
8440
8440
|
throw Error(
|
8441
8441
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
8442
8442
|
(isomorphicReactPackageVersion +
|
8443
|
-
"\n - react-dom: 19.2.0-canary-
|
8443
|
+
"\n - react-dom: 19.2.0-canary-56408a5b-20250610\nLearn more: https://react.dev/warnings/version-mismatch")
|
8444
8444
|
);
|
8445
8445
|
}
|
8446
8446
|
var React = require("react"),
|
@@ -10124,5 +10124,5 @@
|
|
10124
10124
|
startWork(request);
|
10125
10125
|
});
|
10126
10126
|
};
|
10127
|
-
exports.version = "19.2.0-canary-
|
10127
|
+
exports.version = "19.2.0-canary-56408a5b-20250610";
|
10128
10128
|
})();
|
@@ -6909,11 +6909,11 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
6909
6909
|
}
|
6910
6910
|
function ensureCorrectIsomorphicReactVersion() {
|
6911
6911
|
var isomorphicReactPackageVersion = React.version;
|
6912
|
-
if ("19.2.0-canary-
|
6912
|
+
if ("19.2.0-canary-56408a5b-20250610" !== isomorphicReactPackageVersion)
|
6913
6913
|
throw Error(
|
6914
6914
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
6915
6915
|
(isomorphicReactPackageVersion +
|
6916
|
-
"\n - react-dom: 19.2.0-canary-
|
6916
|
+
"\n - react-dom: 19.2.0-canary-56408a5b-20250610\nLearn more: https://react.dev/warnings/version-mismatch")
|
6917
6917
|
);
|
6918
6918
|
}
|
6919
6919
|
ensureCorrectIsomorphicReactVersion();
|
@@ -7059,4 +7059,4 @@ exports.renderToReadableStream = function (children, options) {
|
|
7059
7059
|
startWork(request);
|
7060
7060
|
});
|
7061
7061
|
};
|
7062
|
-
exports.version = "19.2.0-canary-
|
7062
|
+
exports.version = "19.2.0-canary-56408a5b-20250610";
|
@@ -8311,11 +8311,11 @@
|
|
8311
8311
|
}
|
8312
8312
|
function ensureCorrectIsomorphicReactVersion() {
|
8313
8313
|
var isomorphicReactPackageVersion = React.version;
|
8314
|
-
if ("19.2.0-canary-
|
8314
|
+
if ("19.2.0-canary-56408a5b-20250610" !== isomorphicReactPackageVersion)
|
8315
8315
|
throw Error(
|
8316
8316
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
8317
8317
|
(isomorphicReactPackageVersion +
|
8318
|
-
"\n - react-dom: 19.2.0-canary-
|
8318
|
+
"\n - react-dom: 19.2.0-canary-56408a5b-20250610\nLearn more: https://react.dev/warnings/version-mismatch")
|
8319
8319
|
);
|
8320
8320
|
}
|
8321
8321
|
function createDrainHandler(destination, request) {
|
@@ -8359,7 +8359,41 @@
|
|
8359
8359
|
options ? options.formState : void 0
|
8360
8360
|
);
|
8361
8361
|
}
|
8362
|
-
function
|
8362
|
+
function createFakeWritableFromReadableStreamController$1(controller) {
|
8363
|
+
return {
|
8364
|
+
write: function (chunk) {
|
8365
|
+
"string" === typeof chunk && (chunk = textEncoder.encode(chunk));
|
8366
|
+
controller.enqueue(chunk);
|
8367
|
+
return !0;
|
8368
|
+
},
|
8369
|
+
end: function () {
|
8370
|
+
controller.close();
|
8371
|
+
},
|
8372
|
+
destroy: function (error) {
|
8373
|
+
"function" === typeof controller.error
|
8374
|
+
? controller.error(error)
|
8375
|
+
: controller.close();
|
8376
|
+
}
|
8377
|
+
};
|
8378
|
+
}
|
8379
|
+
function createFakeWritableFromReadableStreamController(controller) {
|
8380
|
+
return {
|
8381
|
+
write: function (chunk) {
|
8382
|
+
"string" === typeof chunk && (chunk = textEncoder.encode(chunk));
|
8383
|
+
controller.enqueue(chunk);
|
8384
|
+
return !0;
|
8385
|
+
},
|
8386
|
+
end: function () {
|
8387
|
+
controller.close();
|
8388
|
+
},
|
8389
|
+
destroy: function (error) {
|
8390
|
+
"function" === typeof controller.error
|
8391
|
+
? controller.error(error)
|
8392
|
+
: controller.close();
|
8393
|
+
}
|
8394
|
+
};
|
8395
|
+
}
|
8396
|
+
function createFakeWritableFromReadable(readable) {
|
8363
8397
|
return {
|
8364
8398
|
write: function (chunk) {
|
8365
8399
|
return readable.push(chunk);
|
@@ -9905,6 +9939,79 @@
|
|
9905
9939
|
flushedByteSize = 0;
|
9906
9940
|
ensureCorrectIsomorphicReactVersion();
|
9907
9941
|
ensureCorrectIsomorphicReactVersion();
|
9942
|
+
exports.prerender = function (children, options) {
|
9943
|
+
return new Promise(function (resolve, reject) {
|
9944
|
+
var onHeaders = options ? options.onHeaders : void 0,
|
9945
|
+
onHeadersImpl;
|
9946
|
+
onHeaders &&
|
9947
|
+
(onHeadersImpl = function (headersDescriptor) {
|
9948
|
+
onHeaders(new Headers(headersDescriptor));
|
9949
|
+
});
|
9950
|
+
var resources = createResumableState(
|
9951
|
+
options ? options.identifierPrefix : void 0,
|
9952
|
+
options ? options.unstable_externalRuntimeSrc : void 0,
|
9953
|
+
options ? options.bootstrapScriptContent : void 0,
|
9954
|
+
options ? options.bootstrapScripts : void 0,
|
9955
|
+
options ? options.bootstrapModules : void 0
|
9956
|
+
),
|
9957
|
+
request = createPrerenderRequest(
|
9958
|
+
children,
|
9959
|
+
resources,
|
9960
|
+
createRenderState(
|
9961
|
+
resources,
|
9962
|
+
void 0,
|
9963
|
+
options ? options.unstable_externalRuntimeSrc : void 0,
|
9964
|
+
options ? options.importMap : void 0,
|
9965
|
+
onHeadersImpl,
|
9966
|
+
options ? options.maxHeadersLength : void 0
|
9967
|
+
),
|
9968
|
+
createRootFormatContext(options ? options.namespaceURI : void 0),
|
9969
|
+
options ? options.progressiveChunkSize : void 0,
|
9970
|
+
options ? options.onError : void 0,
|
9971
|
+
function () {
|
9972
|
+
var writable,
|
9973
|
+
result = {
|
9974
|
+
prelude: new ReadableStream(
|
9975
|
+
{
|
9976
|
+
type: "bytes",
|
9977
|
+
start: function (controller) {
|
9978
|
+
writable =
|
9979
|
+
createFakeWritableFromReadableStreamController(
|
9980
|
+
controller
|
9981
|
+
);
|
9982
|
+
},
|
9983
|
+
pull: function () {
|
9984
|
+
startFlowing(request, writable);
|
9985
|
+
},
|
9986
|
+
cancel: function (reason) {
|
9987
|
+
request.destination = null;
|
9988
|
+
abort(request, reason);
|
9989
|
+
}
|
9990
|
+
},
|
9991
|
+
{ highWaterMark: 0 }
|
9992
|
+
)
|
9993
|
+
};
|
9994
|
+
resolve(result);
|
9995
|
+
},
|
9996
|
+
void 0,
|
9997
|
+
void 0,
|
9998
|
+
reject,
|
9999
|
+
options ? options.onPostpone : void 0
|
10000
|
+
);
|
10001
|
+
if (options && options.signal) {
|
10002
|
+
var signal = options.signal;
|
10003
|
+
if (signal.aborted) abort(request, signal.reason);
|
10004
|
+
else {
|
10005
|
+
var listener = function () {
|
10006
|
+
abort(request, signal.reason);
|
10007
|
+
signal.removeEventListener("abort", listener);
|
10008
|
+
};
|
10009
|
+
signal.addEventListener("abort", listener);
|
10010
|
+
}
|
10011
|
+
}
|
10012
|
+
startWork(request);
|
10013
|
+
});
|
10014
|
+
};
|
9908
10015
|
exports.prerenderToNodeStream = function (children, options) {
|
9909
10016
|
return new Promise(function (resolve, reject) {
|
9910
10017
|
var resumableState = createResumableState(
|
@@ -9934,7 +10041,7 @@
|
|
9934
10041
|
startFlowing(request, writable);
|
9935
10042
|
}
|
9936
10043
|
}),
|
9937
|
-
writable =
|
10044
|
+
writable = createFakeWritableFromReadable(readable);
|
9938
10045
|
resolve({ prelude: readable });
|
9939
10046
|
},
|
9940
10047
|
void 0,
|
@@ -9995,5 +10102,87 @@
|
|
9995
10102
|
}
|
9996
10103
|
};
|
9997
10104
|
};
|
9998
|
-
exports.
|
10105
|
+
exports.renderToReadableStream = function (children, options) {
|
10106
|
+
return new Promise(function (resolve, reject) {
|
10107
|
+
var onFatalError,
|
10108
|
+
onAllReady,
|
10109
|
+
allReady = new Promise(function (res, rej) {
|
10110
|
+
onAllReady = res;
|
10111
|
+
onFatalError = rej;
|
10112
|
+
}),
|
10113
|
+
onHeaders = options ? options.onHeaders : void 0,
|
10114
|
+
onHeadersImpl;
|
10115
|
+
onHeaders &&
|
10116
|
+
(onHeadersImpl = function (headersDescriptor) {
|
10117
|
+
onHeaders(new Headers(headersDescriptor));
|
10118
|
+
});
|
10119
|
+
var resumableState = createResumableState(
|
10120
|
+
options ? options.identifierPrefix : void 0,
|
10121
|
+
options ? options.unstable_externalRuntimeSrc : void 0,
|
10122
|
+
options ? options.bootstrapScriptContent : void 0,
|
10123
|
+
options ? options.bootstrapScripts : void 0,
|
10124
|
+
options ? options.bootstrapModules : void 0
|
10125
|
+
),
|
10126
|
+
request = createRequest(
|
10127
|
+
children,
|
10128
|
+
resumableState,
|
10129
|
+
createRenderState(
|
10130
|
+
resumableState,
|
10131
|
+
options ? options.nonce : void 0,
|
10132
|
+
options ? options.unstable_externalRuntimeSrc : void 0,
|
10133
|
+
options ? options.importMap : void 0,
|
10134
|
+
onHeadersImpl,
|
10135
|
+
options ? options.maxHeadersLength : void 0
|
10136
|
+
),
|
10137
|
+
createRootFormatContext(options ? options.namespaceURI : void 0),
|
10138
|
+
options ? options.progressiveChunkSize : void 0,
|
10139
|
+
options ? options.onError : void 0,
|
10140
|
+
onAllReady,
|
10141
|
+
function () {
|
10142
|
+
var writable,
|
10143
|
+
stream = new ReadableStream(
|
10144
|
+
{
|
10145
|
+
type: "bytes",
|
10146
|
+
start: function (controller) {
|
10147
|
+
writable =
|
10148
|
+
createFakeWritableFromReadableStreamController$1(
|
10149
|
+
controller
|
10150
|
+
);
|
10151
|
+
},
|
10152
|
+
pull: function () {
|
10153
|
+
startFlowing(request, writable);
|
10154
|
+
},
|
10155
|
+
cancel: function (reason) {
|
10156
|
+
request.destination = null;
|
10157
|
+
abort(request, reason);
|
10158
|
+
}
|
10159
|
+
},
|
10160
|
+
{ highWaterMark: 0 }
|
10161
|
+
);
|
10162
|
+
stream.allReady = allReady;
|
10163
|
+
resolve(stream);
|
10164
|
+
},
|
10165
|
+
function (error) {
|
10166
|
+
allReady.catch(function () {});
|
10167
|
+
reject(error);
|
10168
|
+
},
|
10169
|
+
onFatalError,
|
10170
|
+
options ? options.onPostpone : void 0,
|
10171
|
+
options ? options.formState : void 0
|
10172
|
+
);
|
10173
|
+
if (options && options.signal) {
|
10174
|
+
var signal = options.signal;
|
10175
|
+
if (signal.aborted) abort(request, signal.reason);
|
10176
|
+
else {
|
10177
|
+
var listener = function () {
|
10178
|
+
abort(request, signal.reason);
|
10179
|
+
signal.removeEventListener("abort", listener);
|
10180
|
+
};
|
10181
|
+
signal.addEventListener("abort", listener);
|
10182
|
+
}
|
10183
|
+
}
|
10184
|
+
startWork(request);
|
10185
|
+
});
|
10186
|
+
};
|
10187
|
+
exports.version = "19.2.0-canary-56408a5b-20250610";
|
9999
10188
|
})();
|