react-server-dom-webpack 19.0.0-rc-6d3110b4d9-20240531 → 19.0.0-rc.0
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-server-dom-webpack-client.browser.development.js +10 -5
- package/cjs/react-server-dom-webpack-client.edge.development.js +10 -5
- package/cjs/react-server-dom-webpack-client.node.development.js +11 -6
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +11 -6
- package/package.json +3 -3
@@ -1975,7 +1975,7 @@ function nullRefGetter() {
|
|
1975
1975
|
}
|
1976
1976
|
}
|
1977
1977
|
|
1978
|
-
function createElement(type, key, props, owner, // DEV-only
|
1978
|
+
function createElement(response, type, key, props, owner, // DEV-only
|
1979
1979
|
stack, // DEV-only
|
1980
1980
|
validated) // DEV-only
|
1981
1981
|
{
|
@@ -2415,7 +2415,7 @@ function parseModelTuple(response, value) {
|
|
2415
2415
|
if (tuple[0] === REACT_ELEMENT_TYPE) {
|
2416
2416
|
// TODO: Consider having React just directly accept these arrays as elements.
|
2417
2417
|
// Or even change the ReactElement type to be an array.
|
2418
|
-
return createElement(tuple[1], tuple[2], tuple[3], tuple[4] );
|
2418
|
+
return createElement(response, tuple[1], tuple[2], tuple[3], tuple[4] );
|
2419
2419
|
}
|
2420
2420
|
|
2421
2421
|
return value;
|
@@ -2425,7 +2425,7 @@ function missingCall() {
|
|
2425
2425
|
throw new Error('Trying to call a function from "use server" but the callServer option ' + 'was not implemented in your router runtime.');
|
2426
2426
|
}
|
2427
2427
|
|
2428
|
-
function createResponse(bundlerConfig, moduleLoading, callServer, encodeFormAction, nonce, temporaryReferences) {
|
2428
|
+
function createResponse(bundlerConfig, moduleLoading, callServer, encodeFormAction, nonce, temporaryReferences, findSourceMapURL) {
|
2429
2429
|
var chunks = new Map();
|
2430
2430
|
var response = {
|
2431
2431
|
_bundlerConfig: bundlerConfig,
|
@@ -2442,7 +2442,12 @@ function createResponse(bundlerConfig, moduleLoading, callServer, encodeFormActi
|
|
2442
2442
|
_rowLength: 0,
|
2443
2443
|
_buffer: [],
|
2444
2444
|
_tempRefs: temporaryReferences
|
2445
|
-
};
|
2445
|
+
};
|
2446
|
+
|
2447
|
+
{
|
2448
|
+
response._debugFindSourceMapURL = findSourceMapURL;
|
2449
|
+
} // Don't inline this call because it causes closure to outline the call above.
|
2450
|
+
|
2446
2451
|
|
2447
2452
|
response._fromJSON = createFromJSONCallback(response);
|
2448
2453
|
return response;
|
@@ -3274,7 +3279,7 @@ function close(response) {
|
|
3274
3279
|
function createResponseFromOptions(options) {
|
3275
3280
|
return createResponse(null, null, options && options.callServer ? options.callServer : undefined, undefined, // encodeFormAction
|
3276
3281
|
undefined, // nonce
|
3277
|
-
options && options.temporaryReferences ? options.temporaryReferences : undefined);
|
3282
|
+
options && options.temporaryReferences ? options.temporaryReferences : undefined, options && options.findSourceMapURL ? options.findSourceMapURL : undefined);
|
3278
3283
|
}
|
3279
3284
|
|
3280
3285
|
function startReadingFromStream(response, stream) {
|
@@ -2228,7 +2228,7 @@ function nullRefGetter() {
|
|
2228
2228
|
}
|
2229
2229
|
}
|
2230
2230
|
|
2231
|
-
function createElement(type, key, props, owner, // DEV-only
|
2231
|
+
function createElement(response, type, key, props, owner, // DEV-only
|
2232
2232
|
stack, // DEV-only
|
2233
2233
|
validated) // DEV-only
|
2234
2234
|
{
|
@@ -2668,7 +2668,7 @@ function parseModelTuple(response, value) {
|
|
2668
2668
|
if (tuple[0] === REACT_ELEMENT_TYPE) {
|
2669
2669
|
// TODO: Consider having React just directly accept these arrays as elements.
|
2670
2670
|
// Or even change the ReactElement type to be an array.
|
2671
|
-
return createElement(tuple[1], tuple[2], tuple[3], tuple[4] );
|
2671
|
+
return createElement(response, tuple[1], tuple[2], tuple[3], tuple[4] );
|
2672
2672
|
}
|
2673
2673
|
|
2674
2674
|
return value;
|
@@ -2678,7 +2678,7 @@ function missingCall() {
|
|
2678
2678
|
throw new Error('Trying to call a function from "use server" but the callServer option ' + 'was not implemented in your router runtime.');
|
2679
2679
|
}
|
2680
2680
|
|
2681
|
-
function createResponse(bundlerConfig, moduleLoading, callServer, encodeFormAction, nonce, temporaryReferences) {
|
2681
|
+
function createResponse(bundlerConfig, moduleLoading, callServer, encodeFormAction, nonce, temporaryReferences, findSourceMapURL) {
|
2682
2682
|
var chunks = new Map();
|
2683
2683
|
var response = {
|
2684
2684
|
_bundlerConfig: bundlerConfig,
|
@@ -2695,7 +2695,12 @@ function createResponse(bundlerConfig, moduleLoading, callServer, encodeFormActi
|
|
2695
2695
|
_rowLength: 0,
|
2696
2696
|
_buffer: [],
|
2697
2697
|
_tempRefs: temporaryReferences
|
2698
|
-
};
|
2698
|
+
};
|
2699
|
+
|
2700
|
+
{
|
2701
|
+
response._debugFindSourceMapURL = findSourceMapURL;
|
2702
|
+
} // Don't inline this call because it causes closure to outline the call above.
|
2703
|
+
|
2699
2704
|
|
2700
2705
|
response._fromJSON = createFromJSONCallback(response);
|
2701
2706
|
return response;
|
@@ -3534,7 +3539,7 @@ function createServerReference(id, callServer) {
|
|
3534
3539
|
}
|
3535
3540
|
|
3536
3541
|
function createResponseFromOptions(options) {
|
3537
|
-
return createResponse(options.ssrManifest.moduleMap, options.ssrManifest.moduleLoading, noServerCall, options.encodeFormAction, typeof options.nonce === 'string' ? options.nonce : undefined, options && options.temporaryReferences ? options.temporaryReferences : undefined);
|
3542
|
+
return createResponse(options.ssrManifest.moduleMap, options.ssrManifest.moduleLoading, noServerCall, options.encodeFormAction, typeof options.nonce === 'string' ? options.nonce : undefined, options && options.temporaryReferences ? options.temporaryReferences : undefined, options && options.findSourceMapURL ? options.findSourceMapURL : undefined);
|
3538
3543
|
}
|
3539
3544
|
|
3540
3545
|
function startReadingFromStream(response, stream) {
|
@@ -2226,7 +2226,7 @@ function nullRefGetter() {
|
|
2226
2226
|
}
|
2227
2227
|
}
|
2228
2228
|
|
2229
|
-
function createElement(type, key, props, owner, // DEV-only
|
2229
|
+
function createElement(response, type, key, props, owner, // DEV-only
|
2230
2230
|
stack, // DEV-only
|
2231
2231
|
validated) // DEV-only
|
2232
2232
|
{
|
@@ -2666,7 +2666,7 @@ function parseModelTuple(response, value) {
|
|
2666
2666
|
if (tuple[0] === REACT_ELEMENT_TYPE) {
|
2667
2667
|
// TODO: Consider having React just directly accept these arrays as elements.
|
2668
2668
|
// Or even change the ReactElement type to be an array.
|
2669
|
-
return createElement(tuple[1], tuple[2], tuple[3], tuple[4] );
|
2669
|
+
return createElement(response, tuple[1], tuple[2], tuple[3], tuple[4] );
|
2670
2670
|
}
|
2671
2671
|
|
2672
2672
|
return value;
|
@@ -2676,7 +2676,7 @@ function missingCall() {
|
|
2676
2676
|
throw new Error('Trying to call a function from "use server" but the callServer option ' + 'was not implemented in your router runtime.');
|
2677
2677
|
}
|
2678
2678
|
|
2679
|
-
function createResponse(bundlerConfig, moduleLoading, callServer, encodeFormAction, nonce, temporaryReferences) {
|
2679
|
+
function createResponse(bundlerConfig, moduleLoading, callServer, encodeFormAction, nonce, temporaryReferences, findSourceMapURL) {
|
2680
2680
|
var chunks = new Map();
|
2681
2681
|
var response = {
|
2682
2682
|
_bundlerConfig: bundlerConfig,
|
@@ -2693,7 +2693,12 @@ function createResponse(bundlerConfig, moduleLoading, callServer, encodeFormActi
|
|
2693
2693
|
_rowLength: 0,
|
2694
2694
|
_buffer: [],
|
2695
2695
|
_tempRefs: temporaryReferences
|
2696
|
-
};
|
2696
|
+
};
|
2697
|
+
|
2698
|
+
{
|
2699
|
+
response._debugFindSourceMapURL = findSourceMapURL;
|
2700
|
+
} // Don't inline this call because it causes closure to outline the call above.
|
2701
|
+
|
2697
2702
|
|
2698
2703
|
response._fromJSON = createFromJSONCallback(response);
|
2699
2704
|
return response;
|
@@ -3532,8 +3537,8 @@ function createServerReference(id, callServer) {
|
|
3532
3537
|
}
|
3533
3538
|
|
3534
3539
|
function createFromNodeStream(stream, ssrManifest, options) {
|
3535
|
-
var response = createResponse(ssrManifest.moduleMap, ssrManifest.moduleLoading, noServerCall, options ? options.encodeFormAction : undefined, options && typeof options.nonce === 'string' ? options.nonce : undefined, undefined // TODO: If encodeReply is supported, this should support temporaryReferences
|
3536
|
-
);
|
3540
|
+
var response = createResponse(ssrManifest.moduleMap, ssrManifest.moduleLoading, noServerCall, options ? options.encodeFormAction : undefined, options && typeof options.nonce === 'string' ? options.nonce : undefined, undefined, // TODO: If encodeReply is supported, this should support temporaryReferences
|
3541
|
+
options && options.findSourceMapURL ? options.findSourceMapURL : undefined);
|
3537
3542
|
stream.on('data', function (chunk) {
|
3538
3543
|
processBinaryChunk(response, chunk);
|
3539
3544
|
});
|
@@ -2179,7 +2179,7 @@ function nullRefGetter() {
|
|
2179
2179
|
}
|
2180
2180
|
}
|
2181
2181
|
|
2182
|
-
function createElement(type, key, props, owner, // DEV-only
|
2182
|
+
function createElement(response, type, key, props, owner, // DEV-only
|
2183
2183
|
stack, // DEV-only
|
2184
2184
|
validated) // DEV-only
|
2185
2185
|
{
|
@@ -2619,7 +2619,7 @@ function parseModelTuple(response, value) {
|
|
2619
2619
|
if (tuple[0] === REACT_ELEMENT_TYPE) {
|
2620
2620
|
// TODO: Consider having React just directly accept these arrays as elements.
|
2621
2621
|
// Or even change the ReactElement type to be an array.
|
2622
|
-
return createElement(tuple[1], tuple[2], tuple[3], tuple[4] );
|
2622
|
+
return createElement(response, tuple[1], tuple[2], tuple[3], tuple[4] );
|
2623
2623
|
}
|
2624
2624
|
|
2625
2625
|
return value;
|
@@ -2629,7 +2629,7 @@ function missingCall() {
|
|
2629
2629
|
throw new Error('Trying to call a function from "use server" but the callServer option ' + 'was not implemented in your router runtime.');
|
2630
2630
|
}
|
2631
2631
|
|
2632
|
-
function createResponse(bundlerConfig, moduleLoading, callServer, encodeFormAction, nonce, temporaryReferences) {
|
2632
|
+
function createResponse(bundlerConfig, moduleLoading, callServer, encodeFormAction, nonce, temporaryReferences, findSourceMapURL) {
|
2633
2633
|
var chunks = new Map();
|
2634
2634
|
var response = {
|
2635
2635
|
_bundlerConfig: bundlerConfig,
|
@@ -2646,7 +2646,12 @@ function createResponse(bundlerConfig, moduleLoading, callServer, encodeFormActi
|
|
2646
2646
|
_rowLength: 0,
|
2647
2647
|
_buffer: [],
|
2648
2648
|
_tempRefs: temporaryReferences
|
2649
|
-
};
|
2649
|
+
};
|
2650
|
+
|
2651
|
+
{
|
2652
|
+
response._debugFindSourceMapURL = findSourceMapURL;
|
2653
|
+
} // Don't inline this call because it causes closure to outline the call above.
|
2654
|
+
|
2650
2655
|
|
2651
2656
|
response._fromJSON = createFromJSONCallback(response);
|
2652
2657
|
return response;
|
@@ -3485,8 +3490,8 @@ function createServerReference(id, callServer) {
|
|
3485
3490
|
}
|
3486
3491
|
|
3487
3492
|
function createFromNodeStream(stream, ssrManifest, options) {
|
3488
|
-
var response = createResponse(ssrManifest.moduleMap, ssrManifest.moduleLoading, noServerCall, options ? options.encodeFormAction : undefined, options && typeof options.nonce === 'string' ? options.nonce : undefined, undefined // TODO: If encodeReply is supported, this should support temporaryReferences
|
3489
|
-
);
|
3493
|
+
var response = createResponse(ssrManifest.moduleMap, ssrManifest.moduleLoading, noServerCall, options ? options.encodeFormAction : undefined, options && typeof options.nonce === 'string' ? options.nonce : undefined, undefined, // TODO: If encodeReply is supported, this should support temporaryReferences
|
3494
|
+
options && options.findSourceMapURL ? options.findSourceMapURL : undefined);
|
3490
3495
|
stream.on('data', function (chunk) {
|
3491
3496
|
processBinaryChunk(response, chunk);
|
3492
3497
|
});
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-server-dom-webpack",
|
3
3
|
"description": "React Server Components bindings for DOM using Webpack. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.",
|
4
|
-
"version": "19.0.0-rc
|
4
|
+
"version": "19.0.0-rc.0",
|
5
5
|
"keywords": [
|
6
6
|
"react"
|
7
7
|
],
|
@@ -77,8 +77,8 @@
|
|
77
77
|
"node": ">=0.10.0"
|
78
78
|
},
|
79
79
|
"peerDependencies": {
|
80
|
-
"react": "19.0.0-rc
|
81
|
-
"react-dom": "19.0.0-rc
|
80
|
+
"react": "19.0.0-rc.0",
|
81
|
+
"react-dom": "19.0.0-rc.0",
|
82
82
|
"webpack": "^5.59.0"
|
83
83
|
},
|
84
84
|
"dependencies": {
|