react-server-dom-webpack 0.0.0-experimental-c3cdbec0a7-20240708 → 0.0.0-experimental-85acf2d195-20240711
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 +11 -0
- package/cjs/react-server-dom-webpack-client.edge.development.js +11 -0
- package/cjs/react-server-dom-webpack-client.node.development.js +11 -0
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +11 -0
- package/cjs/react-server-dom-webpack-server.browser.development.js +17 -15
- package/cjs/react-server-dom-webpack-server.edge.development.js +17 -15
- package/cjs/react-server-dom-webpack-server.node.development.js +20 -18
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +20 -18
- package/package.json +3 -3
|
@@ -1302,6 +1302,17 @@
|
|
|
1302
1302
|
} catch (x) {
|
|
1303
1303
|
return function () {};
|
|
1304
1304
|
}
|
|
1305
|
+
case "Y":
|
|
1306
|
+
return (
|
|
1307
|
+
Object.defineProperty(parentObject, key, {
|
|
1308
|
+
get: function () {
|
|
1309
|
+
throw "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
|
|
1310
|
+
},
|
|
1311
|
+
enumerable: !0,
|
|
1312
|
+
configurable: !1
|
|
1313
|
+
}),
|
|
1314
|
+
null
|
|
1315
|
+
);
|
|
1305
1316
|
default:
|
|
1306
1317
|
return (
|
|
1307
1318
|
(value = value.slice(1)),
|
|
@@ -1473,6 +1473,17 @@
|
|
|
1473
1473
|
} catch (x) {
|
|
1474
1474
|
return function () {};
|
|
1475
1475
|
}
|
|
1476
|
+
case "Y":
|
|
1477
|
+
return (
|
|
1478
|
+
Object.defineProperty(parentObject, key, {
|
|
1479
|
+
get: function () {
|
|
1480
|
+
throw "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
|
|
1481
|
+
},
|
|
1482
|
+
enumerable: !0,
|
|
1483
|
+
configurable: !1
|
|
1484
|
+
}),
|
|
1485
|
+
null
|
|
1486
|
+
);
|
|
1476
1487
|
default:
|
|
1477
1488
|
return (
|
|
1478
1489
|
(value = value.slice(1)),
|
|
@@ -1473,6 +1473,17 @@
|
|
|
1473
1473
|
} catch (x) {
|
|
1474
1474
|
return function () {};
|
|
1475
1475
|
}
|
|
1476
|
+
case "Y":
|
|
1477
|
+
return (
|
|
1478
|
+
Object.defineProperty(parentObject, key, {
|
|
1479
|
+
get: function () {
|
|
1480
|
+
throw "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
|
|
1481
|
+
},
|
|
1482
|
+
enumerable: !0,
|
|
1483
|
+
configurable: !1
|
|
1484
|
+
}),
|
|
1485
|
+
null
|
|
1486
|
+
);
|
|
1476
1487
|
default:
|
|
1477
1488
|
return (
|
|
1478
1489
|
(value = value.slice(1)),
|
|
@@ -1448,6 +1448,17 @@
|
|
|
1448
1448
|
} catch (x) {
|
|
1449
1449
|
return function () {};
|
|
1450
1450
|
}
|
|
1451
|
+
case "Y":
|
|
1452
|
+
return (
|
|
1453
|
+
Object.defineProperty(parentObject, key, {
|
|
1454
|
+
get: function () {
|
|
1455
|
+
throw "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
|
|
1456
|
+
},
|
|
1457
|
+
enumerable: !0,
|
|
1458
|
+
configurable: !1
|
|
1459
|
+
}),
|
|
1460
|
+
null
|
|
1461
|
+
);
|
|
1451
1462
|
default:
|
|
1452
1463
|
return (
|
|
1453
1464
|
(value = value.slice(1)),
|
|
@@ -2125,7 +2125,7 @@
|
|
|
2125
2125
|
((parent = request.temporaryReferences.get(value)), void 0 !== parent)
|
|
2126
2126
|
)
|
|
2127
2127
|
return "$T" + parent;
|
|
2128
|
-
if (
|
|
2128
|
+
if (500 < counter.objectCount) return "$Y";
|
|
2129
2129
|
counter.objectCount++;
|
|
2130
2130
|
parent = request.writtenObjects.get(value);
|
|
2131
2131
|
if ("function" === typeof value.then) {
|
|
@@ -2138,15 +2138,15 @@
|
|
|
2138
2138
|
);
|
|
2139
2139
|
case "rejected":
|
|
2140
2140
|
return (
|
|
2141
|
-
(
|
|
2141
|
+
(counter = value.reason),
|
|
2142
2142
|
request.pendingChunks++,
|
|
2143
|
-
(
|
|
2144
|
-
"object" === typeof
|
|
2145
|
-
null !==
|
|
2146
|
-
|
|
2147
|
-
? emitPostponeChunk(request,
|
|
2148
|
-
: emitErrorChunk(request,
|
|
2149
|
-
"$@" +
|
|
2143
|
+
(value = request.nextChunkId++),
|
|
2144
|
+
"object" === typeof counter &&
|
|
2145
|
+
null !== counter &&
|
|
2146
|
+
counter.$$typeof === REACT_POSTPONE_TYPE
|
|
2147
|
+
? emitPostponeChunk(request, value, counter)
|
|
2148
|
+
: emitErrorChunk(request, value, "", counter),
|
|
2149
|
+
"$@" + value.toString(16)
|
|
2150
2150
|
);
|
|
2151
2151
|
}
|
|
2152
2152
|
return "$@";
|
|
@@ -2156,9 +2156,11 @@
|
|
|
2156
2156
|
: isArrayImpl(value)
|
|
2157
2157
|
? value
|
|
2158
2158
|
: value instanceof Map
|
|
2159
|
-
?
|
|
2159
|
+
? ((value = Array.from(value)),
|
|
2160
|
+
"$Q" + outlineConsoleValue(request, counter, value).toString(16))
|
|
2160
2161
|
: value instanceof Set
|
|
2161
|
-
?
|
|
2162
|
+
? ((value = Array.from(value)),
|
|
2163
|
+
"$W" + outlineConsoleValue(request, counter, value).toString(16))
|
|
2162
2164
|
: "function" === typeof FormData && value instanceof FormData
|
|
2163
2165
|
? serializeFormData(request, value)
|
|
2164
2166
|
: value instanceof ArrayBuffer
|
|
@@ -2215,11 +2217,11 @@
|
|
|
2215
2217
|
if ("symbol" === typeof value) {
|
|
2216
2218
|
counter = request.writtenSymbols.get(value);
|
|
2217
2219
|
if (void 0 !== counter) return serializeByValueID(counter);
|
|
2218
|
-
|
|
2220
|
+
counter = value.description;
|
|
2219
2221
|
request.pendingChunks++;
|
|
2220
|
-
|
|
2221
|
-
emitSymbolChunk(request,
|
|
2222
|
-
return serializeByValueID(
|
|
2222
|
+
value = request.nextChunkId++;
|
|
2223
|
+
emitSymbolChunk(request, value, counter);
|
|
2224
|
+
return serializeByValueID(value);
|
|
2223
2225
|
}
|
|
2224
2226
|
return "bigint" === typeof value
|
|
2225
2227
|
? "$n" + value.toString(10)
|
|
@@ -2166,7 +2166,7 @@
|
|
|
2166
2166
|
((parent = request.temporaryReferences.get(value)), void 0 !== parent)
|
|
2167
2167
|
)
|
|
2168
2168
|
return "$T" + parent;
|
|
2169
|
-
if (
|
|
2169
|
+
if (500 < counter.objectCount) return "$Y";
|
|
2170
2170
|
counter.objectCount++;
|
|
2171
2171
|
parent = request.writtenObjects.get(value);
|
|
2172
2172
|
if ("function" === typeof value.then) {
|
|
@@ -2179,15 +2179,15 @@
|
|
|
2179
2179
|
);
|
|
2180
2180
|
case "rejected":
|
|
2181
2181
|
return (
|
|
2182
|
-
(
|
|
2182
|
+
(counter = value.reason),
|
|
2183
2183
|
request.pendingChunks++,
|
|
2184
|
-
(
|
|
2185
|
-
"object" === typeof
|
|
2186
|
-
null !==
|
|
2187
|
-
|
|
2188
|
-
? emitPostponeChunk(request,
|
|
2189
|
-
: emitErrorChunk(request,
|
|
2190
|
-
"$@" +
|
|
2184
|
+
(value = request.nextChunkId++),
|
|
2185
|
+
"object" === typeof counter &&
|
|
2186
|
+
null !== counter &&
|
|
2187
|
+
counter.$$typeof === REACT_POSTPONE_TYPE
|
|
2188
|
+
? emitPostponeChunk(request, value, counter)
|
|
2189
|
+
: emitErrorChunk(request, value, "", counter),
|
|
2190
|
+
"$@" + value.toString(16)
|
|
2191
2191
|
);
|
|
2192
2192
|
}
|
|
2193
2193
|
return "$@";
|
|
@@ -2197,9 +2197,11 @@
|
|
|
2197
2197
|
: isArrayImpl(value)
|
|
2198
2198
|
? value
|
|
2199
2199
|
: value instanceof Map
|
|
2200
|
-
?
|
|
2200
|
+
? ((value = Array.from(value)),
|
|
2201
|
+
"$Q" + outlineConsoleValue(request, counter, value).toString(16))
|
|
2201
2202
|
: value instanceof Set
|
|
2202
|
-
?
|
|
2203
|
+
? ((value = Array.from(value)),
|
|
2204
|
+
"$W" + outlineConsoleValue(request, counter, value).toString(16))
|
|
2203
2205
|
: "function" === typeof FormData && value instanceof FormData
|
|
2204
2206
|
? serializeFormData(request, value)
|
|
2205
2207
|
: value instanceof ArrayBuffer
|
|
@@ -2256,11 +2258,11 @@
|
|
|
2256
2258
|
if ("symbol" === typeof value) {
|
|
2257
2259
|
counter = request.writtenSymbols.get(value);
|
|
2258
2260
|
if (void 0 !== counter) return serializeByValueID(counter);
|
|
2259
|
-
|
|
2261
|
+
counter = value.description;
|
|
2260
2262
|
request.pendingChunks++;
|
|
2261
|
-
|
|
2262
|
-
emitSymbolChunk(request,
|
|
2263
|
-
return serializeByValueID(
|
|
2263
|
+
value = request.nextChunkId++;
|
|
2264
|
+
emitSymbolChunk(request, value, counter);
|
|
2265
|
+
return serializeByValueID(value);
|
|
2264
2266
|
}
|
|
2265
2267
|
return "bigint" === typeof value
|
|
2266
2268
|
? "$n" + value.toString(10)
|
|
@@ -2163,7 +2163,7 @@
|
|
|
2163
2163
|
((parent = request.temporaryReferences.get(value)), void 0 !== parent)
|
|
2164
2164
|
)
|
|
2165
2165
|
return "$T" + parent;
|
|
2166
|
-
if (
|
|
2166
|
+
if (500 < counter.objectCount) return "$Y";
|
|
2167
2167
|
counter.objectCount++;
|
|
2168
2168
|
parent = request.writtenObjects.get(value);
|
|
2169
2169
|
if ("function" === typeof value.then) {
|
|
@@ -2176,15 +2176,15 @@
|
|
|
2176
2176
|
);
|
|
2177
2177
|
case "rejected":
|
|
2178
2178
|
return (
|
|
2179
|
-
(
|
|
2179
|
+
(counter = value.reason),
|
|
2180
2180
|
request.pendingChunks++,
|
|
2181
|
-
(
|
|
2182
|
-
"object" === typeof
|
|
2183
|
-
null !==
|
|
2184
|
-
|
|
2185
|
-
? emitPostponeChunk(request,
|
|
2186
|
-
: emitErrorChunk(request,
|
|
2187
|
-
"$@" +
|
|
2181
|
+
(value = request.nextChunkId++),
|
|
2182
|
+
"object" === typeof counter &&
|
|
2183
|
+
null !== counter &&
|
|
2184
|
+
counter.$$typeof === REACT_POSTPONE_TYPE
|
|
2185
|
+
? emitPostponeChunk(request, value, counter)
|
|
2186
|
+
: emitErrorChunk(request, value, "", counter),
|
|
2187
|
+
"$@" + value.toString(16)
|
|
2188
2188
|
);
|
|
2189
2189
|
}
|
|
2190
2190
|
return "$@";
|
|
@@ -2194,9 +2194,11 @@
|
|
|
2194
2194
|
: isArrayImpl(value)
|
|
2195
2195
|
? value
|
|
2196
2196
|
: value instanceof Map
|
|
2197
|
-
?
|
|
2197
|
+
? ((value = Array.from(value)),
|
|
2198
|
+
"$Q" + outlineConsoleValue(request, counter, value).toString(16))
|
|
2198
2199
|
: value instanceof Set
|
|
2199
|
-
?
|
|
2200
|
+
? ((value = Array.from(value)),
|
|
2201
|
+
"$W" + outlineConsoleValue(request, counter, value).toString(16))
|
|
2200
2202
|
: "function" === typeof FormData && value instanceof FormData
|
|
2201
2203
|
? serializeFormData(request, value)
|
|
2202
2204
|
: value instanceof ArrayBuffer
|
|
@@ -2253,11 +2255,11 @@
|
|
|
2253
2255
|
if ("symbol" === typeof value) {
|
|
2254
2256
|
counter = request.writtenSymbols.get(value);
|
|
2255
2257
|
if (void 0 !== counter) return serializeByValueID(counter);
|
|
2256
|
-
|
|
2258
|
+
counter = value.description;
|
|
2257
2259
|
request.pendingChunks++;
|
|
2258
|
-
|
|
2259
|
-
emitSymbolChunk(request,
|
|
2260
|
-
return serializeByValueID(
|
|
2260
|
+
value = request.nextChunkId++;
|
|
2261
|
+
emitSymbolChunk(request, value, counter);
|
|
2262
|
+
return serializeByValueID(value);
|
|
2261
2263
|
}
|
|
2262
2264
|
return "bigint" === typeof value
|
|
2263
2265
|
? "$n" + value.toString(10)
|
|
@@ -3904,12 +3906,12 @@
|
|
|
3904
3906
|
"React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it."
|
|
3905
3907
|
);
|
|
3906
3908
|
pendingFiles++;
|
|
3907
|
-
var
|
|
3909
|
+
var JSCompiler_object_inline_chunks_156 = [];
|
|
3908
3910
|
value.on("data", function (chunk) {
|
|
3909
|
-
|
|
3911
|
+
JSCompiler_object_inline_chunks_156.push(chunk);
|
|
3910
3912
|
});
|
|
3911
3913
|
value.on("end", function () {
|
|
3912
|
-
var blob = new Blob(
|
|
3914
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_156, {
|
|
3913
3915
|
type: mimeType
|
|
3914
3916
|
});
|
|
3915
3917
|
response._formData.append(name, blob, filename);
|
|
@@ -2163,7 +2163,7 @@
|
|
|
2163
2163
|
((parent = request.temporaryReferences.get(value)), void 0 !== parent)
|
|
2164
2164
|
)
|
|
2165
2165
|
return "$T" + parent;
|
|
2166
|
-
if (
|
|
2166
|
+
if (500 < counter.objectCount) return "$Y";
|
|
2167
2167
|
counter.objectCount++;
|
|
2168
2168
|
parent = request.writtenObjects.get(value);
|
|
2169
2169
|
if ("function" === typeof value.then) {
|
|
@@ -2176,15 +2176,15 @@
|
|
|
2176
2176
|
);
|
|
2177
2177
|
case "rejected":
|
|
2178
2178
|
return (
|
|
2179
|
-
(
|
|
2179
|
+
(counter = value.reason),
|
|
2180
2180
|
request.pendingChunks++,
|
|
2181
|
-
(
|
|
2182
|
-
"object" === typeof
|
|
2183
|
-
null !==
|
|
2184
|
-
|
|
2185
|
-
? emitPostponeChunk(request,
|
|
2186
|
-
: emitErrorChunk(request,
|
|
2187
|
-
"$@" +
|
|
2181
|
+
(value = request.nextChunkId++),
|
|
2182
|
+
"object" === typeof counter &&
|
|
2183
|
+
null !== counter &&
|
|
2184
|
+
counter.$$typeof === REACT_POSTPONE_TYPE
|
|
2185
|
+
? emitPostponeChunk(request, value, counter)
|
|
2186
|
+
: emitErrorChunk(request, value, "", counter),
|
|
2187
|
+
"$@" + value.toString(16)
|
|
2188
2188
|
);
|
|
2189
2189
|
}
|
|
2190
2190
|
return "$@";
|
|
@@ -2194,9 +2194,11 @@
|
|
|
2194
2194
|
: isArrayImpl(value)
|
|
2195
2195
|
? value
|
|
2196
2196
|
: value instanceof Map
|
|
2197
|
-
?
|
|
2197
|
+
? ((value = Array.from(value)),
|
|
2198
|
+
"$Q" + outlineConsoleValue(request, counter, value).toString(16))
|
|
2198
2199
|
: value instanceof Set
|
|
2199
|
-
?
|
|
2200
|
+
? ((value = Array.from(value)),
|
|
2201
|
+
"$W" + outlineConsoleValue(request, counter, value).toString(16))
|
|
2200
2202
|
: "function" === typeof FormData && value instanceof FormData
|
|
2201
2203
|
? serializeFormData(request, value)
|
|
2202
2204
|
: value instanceof ArrayBuffer
|
|
@@ -2253,11 +2255,11 @@
|
|
|
2253
2255
|
if ("symbol" === typeof value) {
|
|
2254
2256
|
counter = request.writtenSymbols.get(value);
|
|
2255
2257
|
if (void 0 !== counter) return serializeByValueID(counter);
|
|
2256
|
-
|
|
2258
|
+
counter = value.description;
|
|
2257
2259
|
request.pendingChunks++;
|
|
2258
|
-
|
|
2259
|
-
emitSymbolChunk(request,
|
|
2260
|
-
return serializeByValueID(
|
|
2260
|
+
value = request.nextChunkId++;
|
|
2261
|
+
emitSymbolChunk(request, value, counter);
|
|
2262
|
+
return serializeByValueID(value);
|
|
2261
2263
|
}
|
|
2262
2264
|
return "bigint" === typeof value
|
|
2263
2265
|
? "$n" + value.toString(10)
|
|
@@ -3869,12 +3871,12 @@
|
|
|
3869
3871
|
"React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it."
|
|
3870
3872
|
);
|
|
3871
3873
|
pendingFiles++;
|
|
3872
|
-
var
|
|
3874
|
+
var JSCompiler_object_inline_chunks_156 = [];
|
|
3873
3875
|
value.on("data", function (chunk) {
|
|
3874
|
-
|
|
3876
|
+
JSCompiler_object_inline_chunks_156.push(chunk);
|
|
3875
3877
|
});
|
|
3876
3878
|
value.on("end", function () {
|
|
3877
|
-
var blob = new Blob(
|
|
3879
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_156, {
|
|
3878
3880
|
type: mimeType
|
|
3879
3881
|
});
|
|
3880
3882
|
response._formData.append(name, blob, filename);
|
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": "0.0.0-experimental-
|
|
4
|
+
"version": "0.0.0-experimental-85acf2d195-20240711",
|
|
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": "0.0.0-experimental-
|
|
81
|
-
"react-dom": "0.0.0-experimental-
|
|
80
|
+
"react": "0.0.0-experimental-85acf2d195-20240711",
|
|
81
|
+
"react-dom": "0.0.0-experimental-85acf2d195-20240711",
|
|
82
82
|
"webpack": "^5.59.0"
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|