react-server-dom-webpack 19.0.0-rc-6f23540c7d-20240528 → 19.0.0-rc-9d4fba0788-20240530
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 +9 -7
- package/cjs/react-server-dom-webpack-client.edge.development.js +9 -7
- package/cjs/react-server-dom-webpack-client.node.development.js +9 -7
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +9 -7
- package/cjs/react-server-dom-webpack-server.browser.development.js +1 -1
- package/cjs/react-server-dom-webpack-server.browser.production.js +5 -1
- package/cjs/react-server-dom-webpack-server.edge.development.js +1 -1
- package/cjs/react-server-dom-webpack-server.edge.production.js +5 -1
- package/cjs/react-server-dom-webpack-server.node.development.js +1 -1
- package/cjs/react-server-dom-webpack-server.node.production.js +5 -1
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +1 -1
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +5 -1
- package/package.json +3 -3
@@ -2797,10 +2797,9 @@ function resolveErrorDev(response, id, digest, message, stack) {
|
|
2797
2797
|
function resolveHint(response, code, model) {
|
2798
2798
|
var hintModel = parseModel(response, model);
|
2799
2799
|
dispatchHint(code, hintModel);
|
2800
|
-
}
|
2800
|
+
} // eslint-disable-next-line react-internal/no-production-logging
|
2801
2801
|
|
2802
2802
|
function resolveDebugInfo(response, id, debugInfo) {
|
2803
|
-
|
2804
2803
|
var chunk = getChunk(response, id);
|
2805
2804
|
var chunkDebugInfo = chunk._debugInfo || (chunk._debugInfo = []);
|
2806
2805
|
chunkDebugInfo.push(debugInfo);
|
@@ -2809,13 +2808,16 @@ function resolveDebugInfo(response, id, debugInfo) {
|
|
2809
2808
|
function resolveConsoleEntry(response, value) {
|
2810
2809
|
|
2811
2810
|
var payload = parseModel(response, value);
|
2812
|
-
var methodName = payload[0];
|
2813
|
-
// const stackTrace = payload[1];
|
2814
|
-
// const owner = payload[2];
|
2815
|
-
|
2811
|
+
var methodName = payload[0];
|
2816
2812
|
var env = payload[3];
|
2817
2813
|
var args = payload.slice(4);
|
2818
|
-
|
2814
|
+
|
2815
|
+
{
|
2816
|
+
// Printing with stack isn't really limited to owner stacks but
|
2817
|
+
// we gate it behind the same flag for now while iterating.
|
2818
|
+
printToConsole(methodName, args, env);
|
2819
|
+
return;
|
2820
|
+
}
|
2819
2821
|
}
|
2820
2822
|
|
2821
2823
|
function mergeBuffer(buffer, lastChunk) {
|
@@ -3051,10 +3051,9 @@ function resolveErrorDev(response, id, digest, message, stack) {
|
|
3051
3051
|
function resolveHint(response, code, model) {
|
3052
3052
|
var hintModel = parseModel(response, model);
|
3053
3053
|
dispatchHint(code, hintModel);
|
3054
|
-
}
|
3054
|
+
} // eslint-disable-next-line react-internal/no-production-logging
|
3055
3055
|
|
3056
3056
|
function resolveDebugInfo(response, id, debugInfo) {
|
3057
|
-
|
3058
3057
|
var chunk = getChunk(response, id);
|
3059
3058
|
var chunkDebugInfo = chunk._debugInfo || (chunk._debugInfo = []);
|
3060
3059
|
chunkDebugInfo.push(debugInfo);
|
@@ -3063,13 +3062,16 @@ function resolveDebugInfo(response, id, debugInfo) {
|
|
3063
3062
|
function resolveConsoleEntry(response, value) {
|
3064
3063
|
|
3065
3064
|
var payload = parseModel(response, value);
|
3066
|
-
var methodName = payload[0];
|
3067
|
-
// const stackTrace = payload[1];
|
3068
|
-
// const owner = payload[2];
|
3069
|
-
|
3065
|
+
var methodName = payload[0];
|
3070
3066
|
var env = payload[3];
|
3071
3067
|
var args = payload.slice(4);
|
3072
|
-
|
3068
|
+
|
3069
|
+
{
|
3070
|
+
// Printing with stack isn't really limited to owner stacks but
|
3071
|
+
// we gate it behind the same flag for now while iterating.
|
3072
|
+
printToConsole(methodName, args, env);
|
3073
|
+
return;
|
3074
|
+
}
|
3073
3075
|
}
|
3074
3076
|
|
3075
3077
|
function mergeBuffer(buffer, lastChunk) {
|
@@ -3049,10 +3049,9 @@ function resolveErrorDev(response, id, digest, message, stack) {
|
|
3049
3049
|
function resolveHint(response, code, model) {
|
3050
3050
|
var hintModel = parseModel(response, model);
|
3051
3051
|
dispatchHint(code, hintModel);
|
3052
|
-
}
|
3052
|
+
} // eslint-disable-next-line react-internal/no-production-logging
|
3053
3053
|
|
3054
3054
|
function resolveDebugInfo(response, id, debugInfo) {
|
3055
|
-
|
3056
3055
|
var chunk = getChunk(response, id);
|
3057
3056
|
var chunkDebugInfo = chunk._debugInfo || (chunk._debugInfo = []);
|
3058
3057
|
chunkDebugInfo.push(debugInfo);
|
@@ -3061,13 +3060,16 @@ function resolveDebugInfo(response, id, debugInfo) {
|
|
3061
3060
|
function resolveConsoleEntry(response, value) {
|
3062
3061
|
|
3063
3062
|
var payload = parseModel(response, value);
|
3064
|
-
var methodName = payload[0];
|
3065
|
-
// const stackTrace = payload[1];
|
3066
|
-
// const owner = payload[2];
|
3067
|
-
|
3063
|
+
var methodName = payload[0];
|
3068
3064
|
var env = payload[3];
|
3069
3065
|
var args = payload.slice(4);
|
3070
|
-
|
3066
|
+
|
3067
|
+
{
|
3068
|
+
// Printing with stack isn't really limited to owner stacks but
|
3069
|
+
// we gate it behind the same flag for now while iterating.
|
3070
|
+
printToConsole(methodName, args, env);
|
3071
|
+
return;
|
3072
|
+
}
|
3071
3073
|
}
|
3072
3074
|
|
3073
3075
|
function mergeBuffer(buffer, lastChunk) {
|
@@ -3002,10 +3002,9 @@ function resolveErrorDev(response, id, digest, message, stack) {
|
|
3002
3002
|
function resolveHint(response, code, model) {
|
3003
3003
|
var hintModel = parseModel(response, model);
|
3004
3004
|
dispatchHint(code, hintModel);
|
3005
|
-
}
|
3005
|
+
} // eslint-disable-next-line react-internal/no-production-logging
|
3006
3006
|
|
3007
3007
|
function resolveDebugInfo(response, id, debugInfo) {
|
3008
|
-
|
3009
3008
|
var chunk = getChunk(response, id);
|
3010
3009
|
var chunkDebugInfo = chunk._debugInfo || (chunk._debugInfo = []);
|
3011
3010
|
chunkDebugInfo.push(debugInfo);
|
@@ -3014,13 +3013,16 @@ function resolveDebugInfo(response, id, debugInfo) {
|
|
3014
3013
|
function resolveConsoleEntry(response, value) {
|
3015
3014
|
|
3016
3015
|
var payload = parseModel(response, value);
|
3017
|
-
var methodName = payload[0];
|
3018
|
-
// const stackTrace = payload[1];
|
3019
|
-
// const owner = payload[2];
|
3020
|
-
|
3016
|
+
var methodName = payload[0];
|
3021
3017
|
var env = payload[3];
|
3022
3018
|
var args = payload.slice(4);
|
3023
|
-
|
3019
|
+
|
3020
|
+
{
|
3021
|
+
// Printing with stack isn't really limited to owner stacks but
|
3022
|
+
// we gate it behind the same flag for now while iterating.
|
3023
|
+
printToConsole(methodName, args, env);
|
3024
|
+
return;
|
3025
|
+
}
|
3024
3026
|
}
|
3025
3027
|
|
3026
3028
|
function mergeBuffer(buffer, lastChunk) {
|
@@ -2011,7 +2011,7 @@ validated) // DEV-only
|
|
2011
2011
|
result = callComponentInDEV(Component, props, componentDebugInfo);
|
2012
2012
|
}
|
2013
2013
|
|
2014
|
-
if (typeof result === 'object' && result !== null) {
|
2014
|
+
if (typeof result === 'object' && result !== null && !isClientReference(result)) {
|
2015
2015
|
if (typeof result.then === 'function') {
|
2016
2016
|
// When the return value is in children position we can resolve it immediately,
|
2017
2017
|
// to its value without a wrapper if it's synchronously available.
|
@@ -932,7 +932,11 @@ function renderFunctionComponent(request, task, key, Component, props) {
|
|
932
932
|
thenableIndexCounter = 0;
|
933
933
|
thenableState = prevThenableState;
|
934
934
|
Component = Component(props, void 0);
|
935
|
-
if (
|
935
|
+
if (
|
936
|
+
"object" === typeof Component &&
|
937
|
+
null !== Component &&
|
938
|
+
Component.$$typeof !== CLIENT_REFERENCE_TAG$1
|
939
|
+
) {
|
936
940
|
if ("function" === typeof Component.then) {
|
937
941
|
props = Component;
|
938
942
|
if ("fulfilled" === props.status) return props.value;
|
@@ -2032,7 +2032,7 @@ validated) // DEV-only
|
|
2032
2032
|
result = callComponentInDEV(Component, props, componentDebugInfo);
|
2033
2033
|
}
|
2034
2034
|
|
2035
|
-
if (typeof result === 'object' && result !== null) {
|
2035
|
+
if (typeof result === 'object' && result !== null && !isClientReference(result)) {
|
2036
2036
|
if (typeof result.then === 'function') {
|
2037
2037
|
// When the return value is in children position we can resolve it immediately,
|
2038
2038
|
// to its value without a wrapper if it's synchronously available.
|
@@ -947,7 +947,11 @@ function renderFunctionComponent(request, task, key, Component, props) {
|
|
947
947
|
thenableIndexCounter = 0;
|
948
948
|
thenableState = prevThenableState;
|
949
949
|
Component = Component(props, void 0);
|
950
|
-
if (
|
950
|
+
if (
|
951
|
+
"object" === typeof Component &&
|
952
|
+
null !== Component &&
|
953
|
+
Component.$$typeof !== CLIENT_REFERENCE_TAG$1
|
954
|
+
) {
|
951
955
|
if ("function" === typeof Component.then) {
|
952
956
|
props = Component;
|
953
957
|
if ("fulfilled" === props.status) return props.value;
|
@@ -2083,7 +2083,7 @@ validated) // DEV-only
|
|
2083
2083
|
result = callComponentInDEV(Component, props, componentDebugInfo);
|
2084
2084
|
}
|
2085
2085
|
|
2086
|
-
if (typeof result === 'object' && result !== null) {
|
2086
|
+
if (typeof result === 'object' && result !== null && !isClientReference(result)) {
|
2087
2087
|
if (typeof result.then === 'function') {
|
2088
2088
|
// When the return value is in children position we can resolve it immediately,
|
2089
2089
|
// to its value without a wrapper if it's synchronously available.
|
@@ -973,7 +973,11 @@ function renderFunctionComponent(request, task, key, Component, props) {
|
|
973
973
|
thenableIndexCounter = 0;
|
974
974
|
thenableState = prevThenableState;
|
975
975
|
Component = Component(props, void 0);
|
976
|
-
if (
|
976
|
+
if (
|
977
|
+
"object" === typeof Component &&
|
978
|
+
null !== Component &&
|
979
|
+
Component.$$typeof !== CLIENT_REFERENCE_TAG$1
|
980
|
+
) {
|
977
981
|
if ("function" === typeof Component.then) {
|
978
982
|
props = Component;
|
979
983
|
if ("fulfilled" === props.status) return props.value;
|
@@ -2083,7 +2083,7 @@ validated) // DEV-only
|
|
2083
2083
|
result = callComponentInDEV(Component, props, componentDebugInfo);
|
2084
2084
|
}
|
2085
2085
|
|
2086
|
-
if (typeof result === 'object' && result !== null) {
|
2086
|
+
if (typeof result === 'object' && result !== null && !isClientReference(result)) {
|
2087
2087
|
if (typeof result.then === 'function') {
|
2088
2088
|
// When the return value is in children position we can resolve it immediately,
|
2089
2089
|
// to its value without a wrapper if it's synchronously available.
|
@@ -973,7 +973,11 @@ function renderFunctionComponent(request, task, key, Component, props) {
|
|
973
973
|
thenableIndexCounter = 0;
|
974
974
|
thenableState = prevThenableState;
|
975
975
|
Component = Component(props, void 0);
|
976
|
-
if (
|
976
|
+
if (
|
977
|
+
"object" === typeof Component &&
|
978
|
+
null !== Component &&
|
979
|
+
Component.$$typeof !== CLIENT_REFERENCE_TAG$1
|
980
|
+
) {
|
977
981
|
if ("function" === typeof Component.then) {
|
978
982
|
props = Component;
|
979
983
|
if ("fulfilled" === props.status) return props.value;
|
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-9d4fba0788-20240530",
|
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-9d4fba0788-20240530",
|
81
|
+
"react-dom": "19.0.0-rc-9d4fba0788-20240530",
|
82
82
|
"webpack": "^5.59.0"
|
83
83
|
},
|
84
84
|
"dependencies": {
|