react-server-dom-webpack 19.0.8 → 19.0.9
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 +66 -47
- package/cjs/react-server-dom-webpack-client.browser.production.js +84 -62
- package/cjs/react-server-dom-webpack-client.edge.development.js +74 -47
- package/cjs/react-server-dom-webpack-client.edge.production.js +94 -64
- package/cjs/react-server-dom-webpack-client.node.development.js +74 -47
- package/cjs/react-server-dom-webpack-client.node.production.js +94 -64
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +74 -47
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.js +94 -64
- package/cjs/react-server-dom-webpack-server.browser.development.js +185 -94
- package/cjs/react-server-dom-webpack-server.browser.production.js +183 -89
- package/cjs/react-server-dom-webpack-server.edge.development.js +184 -93
- package/cjs/react-server-dom-webpack-server.edge.production.js +184 -90
- package/cjs/react-server-dom-webpack-server.node.development.js +241 -132
- package/cjs/react-server-dom-webpack-server.node.production.js +233 -125
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +241 -132
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +233 -125
- package/package.json +3 -3
|
@@ -14,6 +14,11 @@ require("crypto");
|
|
|
14
14
|
var async_hooks = require("async_hooks"),
|
|
15
15
|
ReactDOM = require("react-dom"),
|
|
16
16
|
React = require("react"),
|
|
17
|
+
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
18
|
+
supportsArrayBufferDetached = hasOwnProperty.call(
|
|
19
|
+
ArrayBuffer.prototype,
|
|
20
|
+
"detached"
|
|
21
|
+
),
|
|
17
22
|
scheduleMicrotask = queueMicrotask,
|
|
18
23
|
currentView = null,
|
|
19
24
|
writtenBytes = 0,
|
|
@@ -55,33 +60,37 @@ function writeChunkAndReturn(destination, chunk) {
|
|
|
55
60
|
(currentView = new Uint8Array(2048)),
|
|
56
61
|
(writtenBytes = 0));
|
|
57
62
|
}
|
|
63
|
+
} else if (0 === chunk.byteLength) {
|
|
64
|
+
if (supportsArrayBufferDetached && chunk.buffer.detached)
|
|
65
|
+
throw Error(
|
|
66
|
+
"Cannot transport a detached buffer. This usually happens when trying to transport multiple buffer-spanning views on the same underyling buffer. Either reuse the exact same view by identity or copy the underlying buffer manually via `view.slice()`."
|
|
67
|
+
);
|
|
58
68
|
} else
|
|
59
|
-
|
|
60
|
-
(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
(
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
(writtenBytes = 0))));
|
|
69
|
+
2048 < chunk.byteLength
|
|
70
|
+
? (0 < writtenBytes &&
|
|
71
|
+
(writeToDestination(
|
|
72
|
+
destination,
|
|
73
|
+
currentView.subarray(0, writtenBytes)
|
|
74
|
+
),
|
|
75
|
+
(currentView = new Uint8Array(2048)),
|
|
76
|
+
(writtenBytes = 0)),
|
|
77
|
+
writeToDestination(destination, chunk))
|
|
78
|
+
: ((target = currentView.length - writtenBytes),
|
|
79
|
+
target < chunk.byteLength &&
|
|
80
|
+
(0 === target
|
|
81
|
+
? writeToDestination(destination, currentView)
|
|
82
|
+
: (currentView.set(chunk.subarray(0, target), writtenBytes),
|
|
83
|
+
(writtenBytes += target),
|
|
84
|
+
writeToDestination(destination, currentView),
|
|
85
|
+
(chunk = chunk.subarray(target))),
|
|
86
|
+
(currentView = new Uint8Array(2048)),
|
|
87
|
+
(writtenBytes = 0)),
|
|
88
|
+
currentView.set(chunk, writtenBytes),
|
|
89
|
+
(writtenBytes += chunk.byteLength),
|
|
90
|
+
2048 === writtenBytes &&
|
|
91
|
+
(writeToDestination(destination, currentView),
|
|
92
|
+
(currentView = new Uint8Array(2048)),
|
|
93
|
+
(writtenBytes = 0)));
|
|
85
94
|
return destinationHasCapacity;
|
|
86
95
|
}
|
|
87
96
|
var textEncoder = new util.TextEncoder();
|
|
@@ -1696,13 +1705,30 @@ function emitModelChunk(request, id, json) {
|
|
|
1696
1705
|
}
|
|
1697
1706
|
function emitTypedArrayChunk(request, id, tag, typedArray) {
|
|
1698
1707
|
request.pendingChunks++;
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1708
|
+
a: {
|
|
1709
|
+
var view = new Uint8Array(
|
|
1710
|
+
typedArray.buffer,
|
|
1711
|
+
typedArray.byteOffset,
|
|
1712
|
+
typedArray.byteLength
|
|
1713
|
+
);
|
|
1714
|
+
if (2048 < typedArray.byteLength) {
|
|
1715
|
+
if (
|
|
1716
|
+
0 !== typedArray.byteOffset ||
|
|
1717
|
+
typedArray.byteLength !== typedArray.buffer.byteLength ||
|
|
1718
|
+
typedArray.buffer.resizable
|
|
1719
|
+
) {
|
|
1720
|
+
typedArray = view.slice();
|
|
1721
|
+
break a;
|
|
1722
|
+
}
|
|
1723
|
+
if (!supportsArrayBufferDetached) {
|
|
1724
|
+
typedArray = view.slice();
|
|
1725
|
+
break a;
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
typedArray = view;
|
|
1729
|
+
}
|
|
1730
|
+
view = typedArray.byteLength;
|
|
1731
|
+
id = id.toString(16) + ":" + tag + view.toString(16) + ",";
|
|
1706
1732
|
request.completedRegularChunks.push(id, typedArray);
|
|
1707
1733
|
}
|
|
1708
1734
|
function emitTextChunk(request, id, text) {
|
|
@@ -1974,7 +2000,6 @@ function abort(request, reason) {
|
|
|
1974
2000
|
logRecoverableError(request, error$27, null), fatalError(request, error$27);
|
|
1975
2001
|
}
|
|
1976
2002
|
}
|
|
1977
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1978
2003
|
function resolveServerReference(bundlerConfig, id) {
|
|
1979
2004
|
var idx = id.lastIndexOf("#");
|
|
1980
2005
|
bundlerConfig = id.slice(0, idx);
|
|
@@ -2015,6 +2040,38 @@ function requireModule(metadata) {
|
|
|
2015
2040
|
if (hasOwnProperty.call(moduleExports, metadata.name))
|
|
2016
2041
|
return moduleExports[metadata.name];
|
|
2017
2042
|
}
|
|
2043
|
+
function appendBackingEntry(backingStore, value, key) {
|
|
2044
|
+
var prefix = backingStore.prefix;
|
|
2045
|
+
if (key.startsWith(prefix)) {
|
|
2046
|
+
switch (key[prefix.length]) {
|
|
2047
|
+
case "_":
|
|
2048
|
+
prefix = backingStore.referencedEntries;
|
|
2049
|
+
null === prefix && (prefix = backingStore.referencedEntries = []);
|
|
2050
|
+
prefix.push([key, value]);
|
|
2051
|
+
return;
|
|
2052
|
+
case "S":
|
|
2053
|
+
"string" === typeof value &&
|
|
2054
|
+
((prefix = backingStore.streamChunks),
|
|
2055
|
+
null === prefix && (prefix = backingStore.streamChunks = new Map()),
|
|
2056
|
+
(backingStore = prefix.get(key)),
|
|
2057
|
+
void 0 === backingStore
|
|
2058
|
+
? prefix.set(key, [value])
|
|
2059
|
+
: backingStore.push(value));
|
|
2060
|
+
return;
|
|
2061
|
+
}
|
|
2062
|
+
"string" === typeof value
|
|
2063
|
+
? ((prefix = backingStore.stringChunks),
|
|
2064
|
+
null === prefix && (prefix = backingStore.stringChunks = new Map()),
|
|
2065
|
+
prefix.set(key, value))
|
|
2066
|
+
: ((prefix = backingStore.blobs),
|
|
2067
|
+
null === prefix && (prefix = backingStore.blobs = new Map()),
|
|
2068
|
+
prefix.set(key, value));
|
|
2069
|
+
}
|
|
2070
|
+
}
|
|
2071
|
+
function getBackingBlob(backingStore, key) {
|
|
2072
|
+
backingStore = backingStore.blobs;
|
|
2073
|
+
return null === backingStore ? void 0 : backingStore.get(key);
|
|
2074
|
+
}
|
|
2018
2075
|
var RESPONSE_SYMBOL = Symbol();
|
|
2019
2076
|
function ReactPromise(status, value, reason) {
|
|
2020
2077
|
this.status = status;
|
|
@@ -2384,13 +2441,16 @@ function reportGlobalError(response, error) {
|
|
|
2384
2441
|
function getChunk(response, id) {
|
|
2385
2442
|
var chunks = response._chunks,
|
|
2386
2443
|
chunk = chunks.get(id);
|
|
2387
|
-
chunk
|
|
2388
|
-
|
|
2389
|
-
|
|
2444
|
+
if (!chunk) {
|
|
2445
|
+
chunk = response._prefix;
|
|
2446
|
+
var stringChunks = response._formData.stringChunks;
|
|
2447
|
+
chunk = null === stringChunks ? void 0 : stringChunks.get(chunk + id);
|
|
2448
|
+
chunk =
|
|
2390
2449
|
"string" === typeof chunk
|
|
2391
2450
|
? createResolvedModelChunk(response, chunk, id)
|
|
2392
|
-
: new ReactPromise("pending", null, null)
|
|
2393
|
-
chunks.set(id, chunk)
|
|
2451
|
+
: new ReactPromise("pending", null, null);
|
|
2452
|
+
chunks.set(id, chunk);
|
|
2453
|
+
}
|
|
2394
2454
|
return chunk;
|
|
2395
2455
|
}
|
|
2396
2456
|
function fulfillReference(response, reference, value, arrayRoot) {
|
|
@@ -2621,7 +2681,7 @@ function parseTypedArray(
|
|
|
2621
2681
|
Error("Already initialized typed array.")
|
|
2622
2682
|
)
|
|
2623
2683
|
);
|
|
2624
|
-
reference = response._formData
|
|
2684
|
+
reference = getBackingBlob(response._formData, key).arrayBuffer();
|
|
2625
2685
|
if (initializingHandler) {
|
|
2626
2686
|
var handler = initializingHandler;
|
|
2627
2687
|
handler.deps++;
|
|
@@ -2665,13 +2725,15 @@ function resolveStream(response, id, stream, controller) {
|
|
|
2665
2725
|
var chunks = response._chunks;
|
|
2666
2726
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
2667
2727
|
chunks.set(id, stream);
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2728
|
+
chunks = response._prefix;
|
|
2729
|
+
response = response._formData.streamChunks;
|
|
2730
|
+
id = null === response ? void 0 : response.get(chunks + "S" + id);
|
|
2731
|
+
if (void 0 !== id)
|
|
2732
|
+
for (response = 0; response < id.length; response++)
|
|
2733
|
+
(chunks = id[response]),
|
|
2734
|
+
"C" === chunks[0]
|
|
2673
2735
|
? controller.close("C" === chunks ? '"$undefined"' : chunks.slice(1))
|
|
2674
|
-
: controller.enqueueModel(chunks)
|
|
2736
|
+
: controller.enqueueModel(chunks);
|
|
2675
2737
|
}
|
|
2676
2738
|
function parseReadableStream(response, reference, type) {
|
|
2677
2739
|
function enqueue(value) {
|
|
@@ -2837,7 +2899,14 @@ function parseAsyncIterable(response, reference, iterator) {
|
|
|
2837
2899
|
});
|
|
2838
2900
|
return iterator;
|
|
2839
2901
|
}
|
|
2840
|
-
function parseModelString(
|
|
2902
|
+
function parseModelString(
|
|
2903
|
+
response,
|
|
2904
|
+
obj,
|
|
2905
|
+
key$jscomp$0,
|
|
2906
|
+
value,
|
|
2907
|
+
reference,
|
|
2908
|
+
arrayRoot
|
|
2909
|
+
) {
|
|
2841
2910
|
if ("$" === value[0]) {
|
|
2842
2911
|
switch (value[1]) {
|
|
2843
2912
|
case "$":
|
|
@@ -2855,7 +2924,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2855
2924
|
response,
|
|
2856
2925
|
arrayRoot,
|
|
2857
2926
|
obj,
|
|
2858
|
-
key,
|
|
2927
|
+
key$jscomp$0,
|
|
2859
2928
|
null,
|
|
2860
2929
|
loadServerReference$1
|
|
2861
2930
|
)
|
|
@@ -2872,43 +2941,55 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2872
2941
|
case "Q":
|
|
2873
2942
|
return (
|
|
2874
2943
|
(arrayRoot = value.slice(2)),
|
|
2875
|
-
getOutlinedModel(
|
|
2944
|
+
getOutlinedModel(
|
|
2945
|
+
response,
|
|
2946
|
+
arrayRoot,
|
|
2947
|
+
obj,
|
|
2948
|
+
key$jscomp$0,
|
|
2949
|
+
null,
|
|
2950
|
+
createMap
|
|
2951
|
+
)
|
|
2876
2952
|
);
|
|
2877
2953
|
case "W":
|
|
2878
2954
|
return (
|
|
2879
2955
|
(arrayRoot = value.slice(2)),
|
|
2880
|
-
getOutlinedModel(
|
|
2956
|
+
getOutlinedModel(
|
|
2957
|
+
response,
|
|
2958
|
+
arrayRoot,
|
|
2959
|
+
obj,
|
|
2960
|
+
key$jscomp$0,
|
|
2961
|
+
null,
|
|
2962
|
+
createSet
|
|
2963
|
+
)
|
|
2881
2964
|
);
|
|
2882
2965
|
case "K":
|
|
2883
|
-
|
|
2884
|
-
obj = response._prefix + "_";
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
2898
|
-
i < reference.length;
|
|
2899
|
-
i++
|
|
2900
|
-
)
|
|
2901
|
-
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
2902
|
-
response.data.delete(value);
|
|
2903
|
-
response.keyPointer++;
|
|
2904
|
-
} else if (value.startsWith(obj)) break;
|
|
2905
|
-
else response.keyPointer++;
|
|
2966
|
+
obj = value.slice(2);
|
|
2967
|
+
obj = response._prefix + "_" + obj + "_";
|
|
2968
|
+
response = response._formData;
|
|
2969
|
+
key$jscomp$0 = new FormData();
|
|
2970
|
+
arrayRoot = response.referencedEntries;
|
|
2971
|
+
if (null !== arrayRoot) {
|
|
2972
|
+
for (value = response.keyPointer; value < arrayRoot.length; ) {
|
|
2973
|
+
reference = arrayRoot[value];
|
|
2974
|
+
var key = reference[0];
|
|
2975
|
+
if (!key.startsWith(obj)) break;
|
|
2976
|
+
key$jscomp$0.append(key.slice(obj.length), reference[1]);
|
|
2977
|
+
value++;
|
|
2978
|
+
}
|
|
2979
|
+
response.keyPointer = value;
|
|
2906
2980
|
}
|
|
2907
|
-
return
|
|
2981
|
+
return key$jscomp$0;
|
|
2908
2982
|
case "i":
|
|
2909
2983
|
return (
|
|
2910
2984
|
(arrayRoot = value.slice(2)),
|
|
2911
|
-
getOutlinedModel(
|
|
2985
|
+
getOutlinedModel(
|
|
2986
|
+
response,
|
|
2987
|
+
arrayRoot,
|
|
2988
|
+
obj,
|
|
2989
|
+
key$jscomp$0,
|
|
2990
|
+
null,
|
|
2991
|
+
extractIterator
|
|
2992
|
+
)
|
|
2912
2993
|
);
|
|
2913
2994
|
case "I":
|
|
2914
2995
|
return Infinity;
|
|
@@ -2939,7 +3020,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2939
3020
|
ArrayBuffer,
|
|
2940
3021
|
1,
|
|
2941
3022
|
obj,
|
|
2942
|
-
key,
|
|
3023
|
+
key$jscomp$0,
|
|
2943
3024
|
arrayRoot
|
|
2944
3025
|
);
|
|
2945
3026
|
case "O":
|
|
@@ -2949,7 +3030,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2949
3030
|
Int8Array,
|
|
2950
3031
|
1,
|
|
2951
3032
|
obj,
|
|
2952
|
-
key,
|
|
3033
|
+
key$jscomp$0,
|
|
2953
3034
|
arrayRoot
|
|
2954
3035
|
);
|
|
2955
3036
|
case "o":
|
|
@@ -2959,7 +3040,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2959
3040
|
Uint8Array,
|
|
2960
3041
|
1,
|
|
2961
3042
|
obj,
|
|
2962
|
-
key,
|
|
3043
|
+
key$jscomp$0,
|
|
2963
3044
|
arrayRoot
|
|
2964
3045
|
);
|
|
2965
3046
|
case "U":
|
|
@@ -2969,7 +3050,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2969
3050
|
Uint8ClampedArray,
|
|
2970
3051
|
1,
|
|
2971
3052
|
obj,
|
|
2972
|
-
key,
|
|
3053
|
+
key$jscomp$0,
|
|
2973
3054
|
arrayRoot
|
|
2974
3055
|
);
|
|
2975
3056
|
case "S":
|
|
@@ -2979,7 +3060,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2979
3060
|
Int16Array,
|
|
2980
3061
|
2,
|
|
2981
3062
|
obj,
|
|
2982
|
-
key,
|
|
3063
|
+
key$jscomp$0,
|
|
2983
3064
|
arrayRoot
|
|
2984
3065
|
);
|
|
2985
3066
|
case "s":
|
|
@@ -2989,7 +3070,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2989
3070
|
Uint16Array,
|
|
2990
3071
|
2,
|
|
2991
3072
|
obj,
|
|
2992
|
-
key,
|
|
3073
|
+
key$jscomp$0,
|
|
2993
3074
|
arrayRoot
|
|
2994
3075
|
);
|
|
2995
3076
|
case "L":
|
|
@@ -2999,7 +3080,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
2999
3080
|
Int32Array,
|
|
3000
3081
|
4,
|
|
3001
3082
|
obj,
|
|
3002
|
-
key,
|
|
3083
|
+
key$jscomp$0,
|
|
3003
3084
|
arrayRoot
|
|
3004
3085
|
);
|
|
3005
3086
|
case "l":
|
|
@@ -3009,7 +3090,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3009
3090
|
Uint32Array,
|
|
3010
3091
|
4,
|
|
3011
3092
|
obj,
|
|
3012
|
-
key,
|
|
3093
|
+
key$jscomp$0,
|
|
3013
3094
|
arrayRoot
|
|
3014
3095
|
);
|
|
3015
3096
|
case "G":
|
|
@@ -3019,7 +3100,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3019
3100
|
Float32Array,
|
|
3020
3101
|
4,
|
|
3021
3102
|
obj,
|
|
3022
|
-
key,
|
|
3103
|
+
key$jscomp$0,
|
|
3023
3104
|
arrayRoot
|
|
3024
3105
|
);
|
|
3025
3106
|
case "g":
|
|
@@ -3029,7 +3110,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3029
3110
|
Float64Array,
|
|
3030
3111
|
8,
|
|
3031
3112
|
obj,
|
|
3032
|
-
key,
|
|
3113
|
+
key$jscomp$0,
|
|
3033
3114
|
arrayRoot
|
|
3034
3115
|
);
|
|
3035
3116
|
case "M":
|
|
@@ -3039,7 +3120,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3039
3120
|
BigInt64Array,
|
|
3040
3121
|
8,
|
|
3041
3122
|
obj,
|
|
3042
|
-
key,
|
|
3123
|
+
key$jscomp$0,
|
|
3043
3124
|
arrayRoot
|
|
3044
3125
|
);
|
|
3045
3126
|
case "m":
|
|
@@ -3049,7 +3130,7 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3049
3130
|
BigUint64Array,
|
|
3050
3131
|
8,
|
|
3051
3132
|
obj,
|
|
3052
|
-
key,
|
|
3133
|
+
key$jscomp$0,
|
|
3053
3134
|
arrayRoot
|
|
3054
3135
|
);
|
|
3055
3136
|
case "V":
|
|
@@ -3059,13 +3140,13 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3059
3140
|
DataView,
|
|
3060
3141
|
1,
|
|
3061
3142
|
obj,
|
|
3062
|
-
key,
|
|
3143
|
+
key$jscomp$0,
|
|
3063
3144
|
arrayRoot
|
|
3064
3145
|
);
|
|
3065
3146
|
case "B":
|
|
3066
3147
|
return (
|
|
3067
3148
|
(obj = parseInt(value.slice(2), 16)),
|
|
3068
|
-
response._formData
|
|
3149
|
+
getBackingBlob(response._formData, response._prefix + obj)
|
|
3069
3150
|
);
|
|
3070
3151
|
}
|
|
3071
3152
|
switch (value[1]) {
|
|
@@ -3079,7 +3160,14 @@ function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
|
3079
3160
|
return parseAsyncIterable(response, value, !0);
|
|
3080
3161
|
}
|
|
3081
3162
|
value = value.slice(1);
|
|
3082
|
-
return getOutlinedModel(
|
|
3163
|
+
return getOutlinedModel(
|
|
3164
|
+
response,
|
|
3165
|
+
value,
|
|
3166
|
+
obj,
|
|
3167
|
+
key$jscomp$0,
|
|
3168
|
+
arrayRoot,
|
|
3169
|
+
createModel
|
|
3170
|
+
);
|
|
3083
3171
|
}
|
|
3084
3172
|
null !== arrayRoot && bumpArrayCount(arrayRoot, value.length, response);
|
|
3085
3173
|
return value;
|
|
@@ -3091,11 +3179,20 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3091
3179
|
: new FormData(),
|
|
3092
3180
|
arraySizeLimit =
|
|
3093
3181
|
4 < arguments.length && void 0 !== arguments[4] ? arguments[4] : 1e6,
|
|
3094
|
-
chunks = new Map()
|
|
3182
|
+
chunks = new Map(),
|
|
3183
|
+
backingStore = {
|
|
3184
|
+
prefix: formFieldPrefix,
|
|
3185
|
+
referencedEntries: null,
|
|
3186
|
+
keyPointer: 0,
|
|
3187
|
+
stringChunks: null,
|
|
3188
|
+
streamChunks: null,
|
|
3189
|
+
blobs: null
|
|
3190
|
+
};
|
|
3191
|
+
backingFormData.forEach(appendBackingEntry.bind(null, backingStore));
|
|
3095
3192
|
return {
|
|
3096
3193
|
_bundlerConfig: bundlerConfig,
|
|
3097
3194
|
_prefix: formFieldPrefix,
|
|
3098
|
-
_formData:
|
|
3195
|
+
_formData: backingStore,
|
|
3099
3196
|
_chunks: chunks,
|
|
3100
3197
|
_temporaryReferences: temporaryReferences,
|
|
3101
3198
|
_rootArrayContexts: new WeakMap(),
|
|
@@ -3103,19 +3200,26 @@ function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
|
3103
3200
|
};
|
|
3104
3201
|
}
|
|
3105
3202
|
function resolveField(response, key, value) {
|
|
3106
|
-
var
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3203
|
+
var prefix = response._prefix;
|
|
3204
|
+
if (key.startsWith(prefix)) {
|
|
3205
|
+
var chunks = response._chunks;
|
|
3206
|
+
if ("S" === key[prefix.length]) {
|
|
3207
|
+
if (
|
|
3208
|
+
key.length > prefix.length + 1 &&
|
|
3209
|
+
((prefix = +key.slice(prefix.length + 1)),
|
|
3210
|
+
(chunks = chunks.get(prefix)))
|
|
3211
|
+
) {
|
|
3212
|
+
resolveModelChunk(response, chunks, value, prefix);
|
|
3213
|
+
return;
|
|
3214
|
+
}
|
|
3215
|
+
} else if (
|
|
3216
|
+
((prefix = +key.slice(prefix.length)), (chunks = chunks.get(prefix)))
|
|
3217
|
+
) {
|
|
3218
|
+
resolveModelChunk(response, chunks, value, prefix);
|
|
3219
|
+
return;
|
|
3220
|
+
}
|
|
3221
|
+
}
|
|
3222
|
+
appendBackingEntry(response._formData, value, key);
|
|
3119
3223
|
}
|
|
3120
3224
|
function close(response) {
|
|
3121
3225
|
reportGlobalError(response, Error("Connection closed."));
|
|
@@ -3247,28 +3351,32 @@ exports.decodeReplyFromBusboy = function (busboyStream, webpackMap, options) {
|
|
|
3247
3351
|
if (!current.complete) return;
|
|
3248
3352
|
try {
|
|
3249
3353
|
var key = current.name,
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3354
|
+
JSCompiler_temp_const = response._formData;
|
|
3355
|
+
var handle = current.file;
|
|
3356
|
+
if ("function" === typeof File)
|
|
3357
|
+
var JSCompiler_inline_result = new File(
|
|
3358
|
+
handle.chunks,
|
|
3359
|
+
handle.filename,
|
|
3360
|
+
{ type: handle.mime }
|
|
3361
|
+
);
|
|
3362
|
+
else {
|
|
3363
|
+
var scratch = new FormData();
|
|
3364
|
+
scratch.append(
|
|
3365
|
+
"file",
|
|
3366
|
+
new Blob(handle.chunks, { type: handle.mime }),
|
|
3367
|
+
handle.filename
|
|
3368
|
+
);
|
|
3369
|
+
JSCompiler_inline_result = scratch.get("file");
|
|
3370
|
+
}
|
|
3371
|
+
appendBackingEntry(
|
|
3372
|
+
JSCompiler_temp_const,
|
|
3373
|
+
JSCompiler_inline_result,
|
|
3374
|
+
key
|
|
3375
|
+
);
|
|
3260
3376
|
var queuedFields = current.queuedFields;
|
|
3261
3377
|
if (null !== queuedFields)
|
|
3262
|
-
for (
|
|
3263
|
-
|
|
3264
|
-
key$jscomp$0 < queuedFields.length;
|
|
3265
|
-
key$jscomp$0 += 2
|
|
3266
|
-
)
|
|
3267
|
-
resolveField(
|
|
3268
|
-
response,
|
|
3269
|
-
queuedFields[key$jscomp$0],
|
|
3270
|
-
queuedFields[key$jscomp$0 + 1]
|
|
3271
|
-
);
|
|
3378
|
+
for (var i = 0; i < queuedFields.length; i += 2)
|
|
3379
|
+
resolveField(response, queuedFields[i], queuedFields[i + 1]);
|
|
3272
3380
|
} catch (error) {
|
|
3273
3381
|
busboyStream.destroy(error);
|
|
3274
3382
|
return;
|
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.
|
|
4
|
+
"version": "19.0.9",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react"
|
|
7
7
|
],
|
|
@@ -99,8 +99,8 @@
|
|
|
99
99
|
"node": ">=0.10.0"
|
|
100
100
|
},
|
|
101
101
|
"peerDependencies": {
|
|
102
|
-
"react": "^19.0.
|
|
103
|
-
"react-dom": "^19.0.
|
|
102
|
+
"react": "^19.0.9",
|
|
103
|
+
"react-dom": "^19.0.9",
|
|
104
104
|
"webpack": "^5.59.0"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|