react-dom 19.2.0-canary-280ff6fe-20250606 → 19.2.0-canary-b6c0aa88-20250609
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 +5 -5
- package/cjs/react-dom-client.production.js +5 -5
- package/cjs/react-dom-profiling.development.js +5 -5
- package/cjs/react-dom-profiling.profiling.js +5 -5
- 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
@@ -25478,11 +25478,11 @@
|
|
25478
25478
|
};
|
25479
25479
|
(function () {
|
25480
25480
|
var isomorphicReactPackageVersion = React.version;
|
25481
|
-
if ("19.2.0-canary-
|
25481
|
+
if ("19.2.0-canary-b6c0aa88-20250609" !== isomorphicReactPackageVersion)
|
25482
25482
|
throw Error(
|
25483
25483
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
25484
25484
|
(isomorphicReactPackageVersion +
|
25485
|
-
"\n - react-dom: 19.2.0-canary-
|
25485
|
+
"\n - react-dom: 19.2.0-canary-b6c0aa88-20250609\nLearn more: https://react.dev/warnings/version-mismatch")
|
25486
25486
|
);
|
25487
25487
|
})();
|
25488
25488
|
("function" === typeof Map &&
|
@@ -25519,10 +25519,10 @@
|
|
25519
25519
|
!(function () {
|
25520
25520
|
var internals = {
|
25521
25521
|
bundleType: 1,
|
25522
|
-
version: "19.2.0-canary-
|
25522
|
+
version: "19.2.0-canary-b6c0aa88-20250609",
|
25523
25523
|
rendererPackageName: "react-dom",
|
25524
25524
|
currentDispatcherRef: ReactSharedInternals,
|
25525
|
-
reconcilerVersion: "19.2.0-canary-
|
25525
|
+
reconcilerVersion: "19.2.0-canary-b6c0aa88-20250609"
|
25526
25526
|
};
|
25527
25527
|
internals.overrideHookState = overrideHookState;
|
25528
25528
|
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
@@ -25660,7 +25660,7 @@
|
|
25660
25660
|
listenToAllSupportedEvents(container);
|
25661
25661
|
return new ReactDOMHydrationRoot(initialChildren);
|
25662
25662
|
};
|
25663
|
-
exports.version = "19.2.0-canary-
|
25663
|
+
exports.version = "19.2.0-canary-b6c0aa88-20250609";
|
25664
25664
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
25665
25665
|
"function" ===
|
25666
25666
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
@@ -15693,14 +15693,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
|
15693
15693
|
};
|
15694
15694
|
var isomorphicReactPackageVersion$jscomp$inline_1851 = React.version;
|
15695
15695
|
if (
|
15696
|
-
"19.2.0-canary-
|
15696
|
+
"19.2.0-canary-b6c0aa88-20250609" !==
|
15697
15697
|
isomorphicReactPackageVersion$jscomp$inline_1851
|
15698
15698
|
)
|
15699
15699
|
throw Error(
|
15700
15700
|
formatProdErrorMessage(
|
15701
15701
|
527,
|
15702
15702
|
isomorphicReactPackageVersion$jscomp$inline_1851,
|
15703
|
-
"19.2.0-canary-
|
15703
|
+
"19.2.0-canary-b6c0aa88-20250609"
|
15704
15704
|
)
|
15705
15705
|
);
|
15706
15706
|
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
@@ -15722,10 +15722,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
|
15722
15722
|
};
|
15723
15723
|
var internals$jscomp$inline_2344 = {
|
15724
15724
|
bundleType: 0,
|
15725
|
-
version: "19.2.0-canary-
|
15725
|
+
version: "19.2.0-canary-b6c0aa88-20250609",
|
15726
15726
|
rendererPackageName: "react-dom",
|
15727
15727
|
currentDispatcherRef: ReactSharedInternals,
|
15728
|
-
reconcilerVersion: "19.2.0-canary-
|
15728
|
+
reconcilerVersion: "19.2.0-canary-b6c0aa88-20250609"
|
15729
15729
|
};
|
15730
15730
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
15731
15731
|
var hook$jscomp$inline_2345 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
@@ -15823,4 +15823,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
|
|
15823
15823
|
listenToAllSupportedEvents(container);
|
15824
15824
|
return new ReactDOMHydrationRoot(initialChildren);
|
15825
15825
|
};
|
15826
|
-
exports.version = "19.2.0-canary-
|
15826
|
+
exports.version = "19.2.0-canary-b6c0aa88-20250609";
|
@@ -25530,11 +25530,11 @@
|
|
25530
25530
|
};
|
25531
25531
|
(function () {
|
25532
25532
|
var isomorphicReactPackageVersion = React.version;
|
25533
|
-
if ("19.2.0-canary-
|
25533
|
+
if ("19.2.0-canary-b6c0aa88-20250609" !== isomorphicReactPackageVersion)
|
25534
25534
|
throw Error(
|
25535
25535
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
25536
25536
|
(isomorphicReactPackageVersion +
|
25537
|
-
"\n - react-dom: 19.2.0-canary-
|
25537
|
+
"\n - react-dom: 19.2.0-canary-b6c0aa88-20250609\nLearn more: https://react.dev/warnings/version-mismatch")
|
25538
25538
|
);
|
25539
25539
|
})();
|
25540
25540
|
("function" === typeof Map &&
|
@@ -25571,10 +25571,10 @@
|
|
25571
25571
|
!(function () {
|
25572
25572
|
var internals = {
|
25573
25573
|
bundleType: 1,
|
25574
|
-
version: "19.2.0-canary-
|
25574
|
+
version: "19.2.0-canary-b6c0aa88-20250609",
|
25575
25575
|
rendererPackageName: "react-dom",
|
25576
25576
|
currentDispatcherRef: ReactSharedInternals,
|
25577
|
-
reconcilerVersion: "19.2.0-canary-
|
25577
|
+
reconcilerVersion: "19.2.0-canary-b6c0aa88-20250609"
|
25578
25578
|
};
|
25579
25579
|
internals.overrideHookState = overrideHookState;
|
25580
25580
|
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
@@ -26042,7 +26042,7 @@
|
|
26042
26042
|
exports.useFormStatus = function () {
|
26043
26043
|
return resolveDispatcher().useHostTransitionStatus();
|
26044
26044
|
};
|
26045
|
-
exports.version = "19.2.0-canary-
|
26045
|
+
exports.version = "19.2.0-canary-b6c0aa88-20250609";
|
26046
26046
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
26047
26047
|
"function" ===
|
26048
26048
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
@@ -16394,14 +16394,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
|
16394
16394
|
};
|
16395
16395
|
var isomorphicReactPackageVersion$jscomp$inline_1955 = React.version;
|
16396
16396
|
if (
|
16397
|
-
"19.2.0-canary-
|
16397
|
+
"19.2.0-canary-b6c0aa88-20250609" !==
|
16398
16398
|
isomorphicReactPackageVersion$jscomp$inline_1955
|
16399
16399
|
)
|
16400
16400
|
throw Error(
|
16401
16401
|
formatProdErrorMessage(
|
16402
16402
|
527,
|
16403
16403
|
isomorphicReactPackageVersion$jscomp$inline_1955,
|
16404
|
-
"19.2.0-canary-
|
16404
|
+
"19.2.0-canary-b6c0aa88-20250609"
|
16405
16405
|
)
|
16406
16406
|
);
|
16407
16407
|
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
@@ -16423,10 +16423,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
|
16423
16423
|
};
|
16424
16424
|
var internals$jscomp$inline_1962 = {
|
16425
16425
|
bundleType: 0,
|
16426
|
-
version: "19.2.0-canary-
|
16426
|
+
version: "19.2.0-canary-b6c0aa88-20250609",
|
16427
16427
|
rendererPackageName: "react-dom",
|
16428
16428
|
currentDispatcherRef: ReactSharedInternals,
|
16429
|
-
reconcilerVersion: "19.2.0-canary-
|
16429
|
+
reconcilerVersion: "19.2.0-canary-b6c0aa88-20250609",
|
16430
16430
|
getLaneLabelMap: function () {
|
16431
16431
|
for (
|
16432
16432
|
var map = new Map(), lane = 1, index$293 = 0;
|
@@ -16699,7 +16699,7 @@ exports.useFormState = function (action, initialState, permalink) {
|
|
16699
16699
|
exports.useFormStatus = function () {
|
16700
16700
|
return ReactSharedInternals.H.useHostTransitionStatus();
|
16701
16701
|
};
|
16702
|
-
exports.version = "19.2.0-canary-
|
16702
|
+
exports.version = "19.2.0-canary-b6c0aa88-20250609";
|
16703
16703
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
16704
16704
|
"function" ===
|
16705
16705
|
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-b6c0aa88-20250609";
|
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-b6c0aa88-20250609";
|
@@ -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-b6c0aa88-20250609";
|
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-b6c0aa88-20250609";
|
@@ -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-b6c0aa88-20250609" !== 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-b6c0aa88-20250609\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-b6c0aa88-20250609";
|
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-b6c0aa88-20250609" !== isomorphicReactPackageVersion)
|
6815
6815
|
throw Error(
|
6816
6816
|
formatProdErrorMessage(
|
6817
6817
|
527,
|
6818
6818
|
isomorphicReactPackageVersion,
|
6819
|
-
"19.2.0-canary-
|
6819
|
+
"19.2.0-canary-b6c0aa88-20250609"
|
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-b6c0aa88-20250609";
|
@@ -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-b6c0aa88-20250609" !==
|
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-b6c0aa88-20250609\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-b6c0aa88-20250609";
|
@@ -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-b6c0aa88-20250609" !==
|
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-b6c0aa88-20250609\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-b6c0aa88-20250609";
|
@@ -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-b6c0aa88-20250609" !== 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-b6c0aa88-20250609\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-b6c0aa88-20250609";
|
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-b6c0aa88-20250609" !== 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-b6c0aa88-20250609\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-b6c0aa88-20250609";
|
@@ -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-b6c0aa88-20250609" !== 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-b6c0aa88-20250609\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-b6c0aa88-20250609";
|
9999
10188
|
})();
|
@@ -6801,11 +6801,11 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
6801
6801
|
}
|
6802
6802
|
function ensureCorrectIsomorphicReactVersion() {
|
6803
6803
|
var isomorphicReactPackageVersion = React.version;
|
6804
|
-
if ("19.2.0-canary-
|
6804
|
+
if ("19.2.0-canary-b6c0aa88-20250609" !== isomorphicReactPackageVersion)
|
6805
6805
|
throw Error(
|
6806
6806
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
6807
6807
|
(isomorphicReactPackageVersion +
|
6808
|
-
"\n - react-dom: 19.2.0-canary-
|
6808
|
+
"\n - react-dom: 19.2.0-canary-b6c0aa88-20250609\nLearn more: https://react.dev/warnings/version-mismatch")
|
6809
6809
|
);
|
6810
6810
|
}
|
6811
6811
|
ensureCorrectIsomorphicReactVersion();
|
@@ -6850,8 +6850,42 @@ function createRequestImpl(children, options) {
|
|
6850
6850
|
options ? options.formState : void 0
|
6851
6851
|
);
|
6852
6852
|
}
|
6853
|
+
function createFakeWritableFromReadableStreamController$1(controller) {
|
6854
|
+
return {
|
6855
|
+
write: function (chunk) {
|
6856
|
+
"string" === typeof chunk && (chunk = textEncoder.encode(chunk));
|
6857
|
+
controller.enqueue(chunk);
|
6858
|
+
return !0;
|
6859
|
+
},
|
6860
|
+
end: function () {
|
6861
|
+
controller.close();
|
6862
|
+
},
|
6863
|
+
destroy: function (error) {
|
6864
|
+
"function" === typeof controller.error
|
6865
|
+
? controller.error(error)
|
6866
|
+
: controller.close();
|
6867
|
+
}
|
6868
|
+
};
|
6869
|
+
}
|
6853
6870
|
ensureCorrectIsomorphicReactVersion();
|
6854
|
-
function
|
6871
|
+
function createFakeWritableFromReadableStreamController(controller) {
|
6872
|
+
return {
|
6873
|
+
write: function (chunk) {
|
6874
|
+
"string" === typeof chunk && (chunk = textEncoder.encode(chunk));
|
6875
|
+
controller.enqueue(chunk);
|
6876
|
+
return !0;
|
6877
|
+
},
|
6878
|
+
end: function () {
|
6879
|
+
controller.close();
|
6880
|
+
},
|
6881
|
+
destroy: function (error) {
|
6882
|
+
"function" === typeof controller.error
|
6883
|
+
? controller.error(error)
|
6884
|
+
: controller.close();
|
6885
|
+
}
|
6886
|
+
};
|
6887
|
+
}
|
6888
|
+
function createFakeWritableFromReadable(readable) {
|
6855
6889
|
return {
|
6856
6890
|
write: function (chunk) {
|
6857
6891
|
return readable.push(chunk);
|
@@ -6864,6 +6898,79 @@ function createFakeWritable(readable) {
|
|
6864
6898
|
}
|
6865
6899
|
};
|
6866
6900
|
}
|
6901
|
+
exports.prerender = function (children, options) {
|
6902
|
+
return new Promise(function (resolve, reject) {
|
6903
|
+
var onHeaders = options ? options.onHeaders : void 0,
|
6904
|
+
onHeadersImpl;
|
6905
|
+
onHeaders &&
|
6906
|
+
(onHeadersImpl = function (headersDescriptor) {
|
6907
|
+
onHeaders(new Headers(headersDescriptor));
|
6908
|
+
});
|
6909
|
+
var resources = createResumableState(
|
6910
|
+
options ? options.identifierPrefix : void 0,
|
6911
|
+
options ? options.unstable_externalRuntimeSrc : void 0,
|
6912
|
+
options ? options.bootstrapScriptContent : void 0,
|
6913
|
+
options ? options.bootstrapScripts : void 0,
|
6914
|
+
options ? options.bootstrapModules : void 0
|
6915
|
+
),
|
6916
|
+
request = createPrerenderRequest(
|
6917
|
+
children,
|
6918
|
+
resources,
|
6919
|
+
createRenderState(
|
6920
|
+
resources,
|
6921
|
+
void 0,
|
6922
|
+
options ? options.unstable_externalRuntimeSrc : void 0,
|
6923
|
+
options ? options.importMap : void 0,
|
6924
|
+
onHeadersImpl,
|
6925
|
+
options ? options.maxHeadersLength : void 0
|
6926
|
+
),
|
6927
|
+
createRootFormatContext(options ? options.namespaceURI : void 0),
|
6928
|
+
options ? options.progressiveChunkSize : void 0,
|
6929
|
+
options ? options.onError : void 0,
|
6930
|
+
function () {
|
6931
|
+
var writable,
|
6932
|
+
result = {
|
6933
|
+
prelude: new ReadableStream(
|
6934
|
+
{
|
6935
|
+
type: "bytes",
|
6936
|
+
start: function (controller) {
|
6937
|
+
writable =
|
6938
|
+
createFakeWritableFromReadableStreamController(
|
6939
|
+
controller
|
6940
|
+
);
|
6941
|
+
},
|
6942
|
+
pull: function () {
|
6943
|
+
startFlowing(request, writable);
|
6944
|
+
},
|
6945
|
+
cancel: function (reason) {
|
6946
|
+
request.destination = null;
|
6947
|
+
abort(request, reason);
|
6948
|
+
}
|
6949
|
+
},
|
6950
|
+
{ highWaterMark: 0 }
|
6951
|
+
)
|
6952
|
+
};
|
6953
|
+
resolve(result);
|
6954
|
+
},
|
6955
|
+
void 0,
|
6956
|
+
void 0,
|
6957
|
+
reject,
|
6958
|
+
options ? options.onPostpone : void 0
|
6959
|
+
);
|
6960
|
+
if (options && options.signal) {
|
6961
|
+
var signal = options.signal;
|
6962
|
+
if (signal.aborted) abort(request, signal.reason);
|
6963
|
+
else {
|
6964
|
+
var listener = function () {
|
6965
|
+
abort(request, signal.reason);
|
6966
|
+
signal.removeEventListener("abort", listener);
|
6967
|
+
};
|
6968
|
+
signal.addEventListener("abort", listener);
|
6969
|
+
}
|
6970
|
+
}
|
6971
|
+
startWork(request);
|
6972
|
+
});
|
6973
|
+
};
|
6867
6974
|
exports.prerenderToNodeStream = function (children, options) {
|
6868
6975
|
return new Promise(function (resolve, reject) {
|
6869
6976
|
var resumableState = createResumableState(
|
@@ -6893,7 +7000,7 @@ exports.prerenderToNodeStream = function (children, options) {
|
|
6893
7000
|
startFlowing(request, writable);
|
6894
7001
|
}
|
6895
7002
|
}),
|
6896
|
-
writable =
|
7003
|
+
writable = createFakeWritableFromReadable(readable);
|
6897
7004
|
resolve({ prelude: readable });
|
6898
7005
|
},
|
6899
7006
|
void 0,
|
@@ -6954,4 +7061,86 @@ exports.renderToPipeableStream = function (children, options) {
|
|
6954
7061
|
}
|
6955
7062
|
};
|
6956
7063
|
};
|
6957
|
-
exports.
|
7064
|
+
exports.renderToReadableStream = function (children, options) {
|
7065
|
+
return new Promise(function (resolve, reject) {
|
7066
|
+
var onFatalError,
|
7067
|
+
onAllReady,
|
7068
|
+
allReady = new Promise(function (res, rej) {
|
7069
|
+
onAllReady = res;
|
7070
|
+
onFatalError = rej;
|
7071
|
+
}),
|
7072
|
+
onHeaders = options ? options.onHeaders : void 0,
|
7073
|
+
onHeadersImpl;
|
7074
|
+
onHeaders &&
|
7075
|
+
(onHeadersImpl = function (headersDescriptor) {
|
7076
|
+
onHeaders(new Headers(headersDescriptor));
|
7077
|
+
});
|
7078
|
+
var resumableState = createResumableState(
|
7079
|
+
options ? options.identifierPrefix : void 0,
|
7080
|
+
options ? options.unstable_externalRuntimeSrc : void 0,
|
7081
|
+
options ? options.bootstrapScriptContent : void 0,
|
7082
|
+
options ? options.bootstrapScripts : void 0,
|
7083
|
+
options ? options.bootstrapModules : void 0
|
7084
|
+
),
|
7085
|
+
request = createRequest(
|
7086
|
+
children,
|
7087
|
+
resumableState,
|
7088
|
+
createRenderState(
|
7089
|
+
resumableState,
|
7090
|
+
options ? options.nonce : void 0,
|
7091
|
+
options ? options.unstable_externalRuntimeSrc : void 0,
|
7092
|
+
options ? options.importMap : void 0,
|
7093
|
+
onHeadersImpl,
|
7094
|
+
options ? options.maxHeadersLength : void 0
|
7095
|
+
),
|
7096
|
+
createRootFormatContext(options ? options.namespaceURI : void 0),
|
7097
|
+
options ? options.progressiveChunkSize : void 0,
|
7098
|
+
options ? options.onError : void 0,
|
7099
|
+
onAllReady,
|
7100
|
+
function () {
|
7101
|
+
var writable,
|
7102
|
+
stream = new ReadableStream(
|
7103
|
+
{
|
7104
|
+
type: "bytes",
|
7105
|
+
start: function (controller) {
|
7106
|
+
writable =
|
7107
|
+
createFakeWritableFromReadableStreamController$1(
|
7108
|
+
controller
|
7109
|
+
);
|
7110
|
+
},
|
7111
|
+
pull: function () {
|
7112
|
+
startFlowing(request, writable);
|
7113
|
+
},
|
7114
|
+
cancel: function (reason) {
|
7115
|
+
request.destination = null;
|
7116
|
+
abort(request, reason);
|
7117
|
+
}
|
7118
|
+
},
|
7119
|
+
{ highWaterMark: 0 }
|
7120
|
+
);
|
7121
|
+
stream.allReady = allReady;
|
7122
|
+
resolve(stream);
|
7123
|
+
},
|
7124
|
+
function (error) {
|
7125
|
+
allReady.catch(function () {});
|
7126
|
+
reject(error);
|
7127
|
+
},
|
7128
|
+
onFatalError,
|
7129
|
+
options ? options.onPostpone : void 0,
|
7130
|
+
options ? options.formState : void 0
|
7131
|
+
);
|
7132
|
+
if (options && options.signal) {
|
7133
|
+
var signal = options.signal;
|
7134
|
+
if (signal.aborted) abort(request, signal.reason);
|
7135
|
+
else {
|
7136
|
+
var listener = function () {
|
7137
|
+
abort(request, signal.reason);
|
7138
|
+
signal.removeEventListener("abort", listener);
|
7139
|
+
};
|
7140
|
+
signal.addEventListener("abort", listener);
|
7141
|
+
}
|
7142
|
+
}
|
7143
|
+
startWork(request);
|
7144
|
+
});
|
7145
|
+
};
|
7146
|
+
exports.version = "19.2.0-canary-b6c0aa88-20250609";
|
@@ -416,7 +416,7 @@
|
|
416
416
|
exports.useFormStatus = function () {
|
417
417
|
return resolveDispatcher().useHostTransitionStatus();
|
418
418
|
};
|
419
|
-
exports.version = "19.2.0-canary-
|
419
|
+
exports.version = "19.2.0-canary-b6c0aa88-20250609";
|
420
420
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
421
421
|
"function" ===
|
422
422
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
@@ -207,4 +207,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
|
207
207
|
exports.useFormStatus = function () {
|
208
208
|
return ReactSharedInternals.H.useHostTransitionStatus();
|
209
209
|
};
|
210
|
-
exports.version = "19.2.0-canary-
|
210
|
+
exports.version = "19.2.0-canary-b6c0aa88-20250609";
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-dom",
|
3
|
-
"version": "19.2.0-canary-
|
3
|
+
"version": "19.2.0-canary-b6c0aa88-20250609",
|
4
4
|
"description": "React package for working with the DOM.",
|
5
5
|
"main": "index.js",
|
6
6
|
"repository": {
|
@@ -17,10 +17,10 @@
|
|
17
17
|
},
|
18
18
|
"homepage": "https://react.dev/",
|
19
19
|
"dependencies": {
|
20
|
-
"scheduler": "0.27.0-canary-
|
20
|
+
"scheduler": "0.27.0-canary-b6c0aa88-20250609"
|
21
21
|
},
|
22
22
|
"peerDependencies": {
|
23
|
-
"react": "19.2.0-canary-
|
23
|
+
"react": "19.2.0-canary-b6c0aa88-20250609"
|
24
24
|
},
|
25
25
|
"files": [
|
26
26
|
"LICENSE",
|
package/server.node.js
CHANGED
@@ -13,6 +13,10 @@ exports.version = l.version;
|
|
13
13
|
exports.renderToString = l.renderToString;
|
14
14
|
exports.renderToStaticMarkup = l.renderToStaticMarkup;
|
15
15
|
exports.renderToPipeableStream = s.renderToPipeableStream;
|
16
|
+
exports.renderToReadableStream = s.renderToReadableStream;
|
16
17
|
if (s.resumeToPipeableStream) {
|
17
18
|
exports.resumeToPipeableStream = s.resumeToPipeableStream;
|
18
19
|
}
|
20
|
+
if (s.resume) {
|
21
|
+
exports.resume = s.resume;
|
22
|
+
}
|
package/static.node.js
CHANGED
@@ -9,4 +9,6 @@ if (process.env.NODE_ENV === 'production') {
|
|
9
9
|
|
10
10
|
exports.version = s.version;
|
11
11
|
exports.prerenderToNodeStream = s.prerenderToNodeStream;
|
12
|
+
exports.prerender = s.prerender;
|
12
13
|
exports.resumeAndPrerenderToNodeStream = s.resumeAndPrerenderToNodeStream;
|
14
|
+
exports.resumeAndPrerender = s.resumeAndPrerender;
|