react-server-dom-webpack 19.0.0-rc-6230622a1a-20240610 → 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.
@@ -1013,7 +1013,7 @@ function missingCall() {
1013
1013
  'Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.'
1014
1014
  );
1015
1015
  }
1016
- function createResponse(
1016
+ function ResponseInstance(
1017
1017
  bundlerConfig,
1018
1018
  moduleLoading,
1019
1019
  callServer,
@@ -1022,24 +1022,18 @@ function createResponse(
1022
1022
  temporaryReferences
1023
1023
  ) {
1024
1024
  var chunks = new Map();
1025
- bundlerConfig = {
1026
- _bundlerConfig: bundlerConfig,
1027
- _moduleLoading: moduleLoading,
1028
- _callServer: void 0 !== callServer ? callServer : missingCall,
1029
- _encodeFormAction: encodeFormAction,
1030
- _nonce: nonce,
1031
- _chunks: chunks,
1032
- _stringDecoder: new util.TextDecoder(),
1033
- _fromJSON: null,
1034
- _rowState: 0,
1035
- _rowID: 0,
1036
- _rowTag: 0,
1037
- _rowLength: 0,
1038
- _buffer: [],
1039
- _tempRefs: temporaryReferences
1040
- };
1041
- bundlerConfig._fromJSON = createFromJSONCallback(bundlerConfig);
1042
- return bundlerConfig;
1025
+ this._bundlerConfig = bundlerConfig;
1026
+ this._moduleLoading = moduleLoading;
1027
+ this._callServer = void 0 !== callServer ? callServer : missingCall;
1028
+ this._encodeFormAction = encodeFormAction;
1029
+ this._nonce = nonce;
1030
+ this._chunks = chunks;
1031
+ this._stringDecoder = new util.TextDecoder();
1032
+ this._fromJSON = null;
1033
+ this._rowLength = this._rowTag = this._rowID = this._rowState = 0;
1034
+ this._buffer = [];
1035
+ this._tempRefs = temporaryReferences;
1036
+ this._fromJSON = createFromJSONCallback(this);
1043
1037
  }
1044
1038
  function resolveBuffer(response, id, buffer) {
1045
1039
  var chunks = response._chunks,
@@ -1467,7 +1461,7 @@ function noServerCall() {
1467
1461
  );
1468
1462
  }
1469
1463
  exports.createFromNodeStream = function (stream, ssrManifest, options) {
1470
- var response = createResponse(
1464
+ var response = new ResponseInstance(
1471
1465
  ssrManifest.moduleMap,
1472
1466
  ssrManifest.moduleLoading,
1473
1467
  noServerCall,