react-server-dom-webpack 19.0.0-rc-34d0c5e357-20240607 → 19.0.0-rc-a26e3f403e-20240611

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.
@@ -1012,6 +1012,28 @@ function missingCall() {
1012
1012
  'Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.'
1013
1013
  );
1014
1014
  }
1015
+ function ResponseInstance(
1016
+ bundlerConfig,
1017
+ moduleLoading,
1018
+ callServer,
1019
+ encodeFormAction,
1020
+ nonce,
1021
+ temporaryReferences
1022
+ ) {
1023
+ var chunks = new Map();
1024
+ this._bundlerConfig = bundlerConfig;
1025
+ this._moduleLoading = moduleLoading;
1026
+ this._callServer = void 0 !== callServer ? callServer : missingCall;
1027
+ this._encodeFormAction = encodeFormAction;
1028
+ this._nonce = nonce;
1029
+ this._chunks = chunks;
1030
+ this._stringDecoder = new TextDecoder();
1031
+ this._fromJSON = null;
1032
+ this._rowLength = this._rowTag = this._rowID = this._rowState = 0;
1033
+ this._buffer = [];
1034
+ this._tempRefs = temporaryReferences;
1035
+ this._fromJSON = createFromJSONCallback(this);
1036
+ }
1015
1037
  function resolveBuffer(response, id, buffer) {
1016
1038
  var chunks = response._chunks,
1017
1039
  chunk = chunks.get(id);
@@ -1438,33 +1460,16 @@ function noServerCall() {
1438
1460
  );
1439
1461
  }
1440
1462
  function createResponseFromOptions(options) {
1441
- var bundlerConfig = options.ssrManifest.moduleMap,
1442
- moduleLoading = options.ssrManifest.moduleLoading,
1443
- encodeFormAction = options.encodeFormAction,
1444
- nonce = "string" === typeof options.nonce ? options.nonce : void 0;
1445
- options =
1463
+ return new ResponseInstance(
1464
+ options.ssrManifest.moduleMap,
1465
+ options.ssrManifest.moduleLoading,
1466
+ noServerCall,
1467
+ options.encodeFormAction,
1468
+ "string" === typeof options.nonce ? options.nonce : void 0,
1446
1469
  options && options.temporaryReferences
1447
1470
  ? options.temporaryReferences
1448
- : void 0;
1449
- var chunks = new Map();
1450
- bundlerConfig = {
1451
- _bundlerConfig: bundlerConfig,
1452
- _moduleLoading: moduleLoading,
1453
- _callServer: void 0 !== noServerCall ? noServerCall : missingCall,
1454
- _encodeFormAction: encodeFormAction,
1455
- _nonce: nonce,
1456
- _chunks: chunks,
1457
- _stringDecoder: new TextDecoder(),
1458
- _fromJSON: null,
1459
- _rowState: 0,
1460
- _rowID: 0,
1461
- _rowTag: 0,
1462
- _rowLength: 0,
1463
- _buffer: [],
1464
- _tempRefs: options
1465
- };
1466
- bundlerConfig._fromJSON = createFromJSONCallback(bundlerConfig);
1467
- return bundlerConfig;
1471
+ : void 0
1472
+ );
1468
1473
  }
1469
1474
  function startReadingFromStream(response, stream) {
1470
1475
  function progress(_ref) {