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.
@@ -992,7 +992,7 @@ function missingCall() {
992
992
  'Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.'
993
993
  );
994
994
  }
995
- function createResponse(
995
+ function ResponseInstance(
996
996
  bundlerConfig,
997
997
  moduleLoading,
998
998
  callServer,
@@ -1001,24 +1001,18 @@ function createResponse(
1001
1001
  temporaryReferences
1002
1002
  ) {
1003
1003
  var chunks = new Map();
1004
- bundlerConfig = {
1005
- _bundlerConfig: bundlerConfig,
1006
- _moduleLoading: moduleLoading,
1007
- _callServer: void 0 !== callServer ? callServer : missingCall,
1008
- _encodeFormAction: encodeFormAction,
1009
- _nonce: nonce,
1010
- _chunks: chunks,
1011
- _stringDecoder: new util.TextDecoder(),
1012
- _fromJSON: null,
1013
- _rowState: 0,
1014
- _rowID: 0,
1015
- _rowTag: 0,
1016
- _rowLength: 0,
1017
- _buffer: [],
1018
- _tempRefs: temporaryReferences
1019
- };
1020
- bundlerConfig._fromJSON = createFromJSONCallback(bundlerConfig);
1021
- return bundlerConfig;
1004
+ this._bundlerConfig = bundlerConfig;
1005
+ this._moduleLoading = moduleLoading;
1006
+ this._callServer = void 0 !== callServer ? callServer : missingCall;
1007
+ this._encodeFormAction = encodeFormAction;
1008
+ this._nonce = nonce;
1009
+ this._chunks = chunks;
1010
+ this._stringDecoder = new util.TextDecoder();
1011
+ this._fromJSON = null;
1012
+ this._rowLength = this._rowTag = this._rowID = this._rowState = 0;
1013
+ this._buffer = [];
1014
+ this._tempRefs = temporaryReferences;
1015
+ this._fromJSON = createFromJSONCallback(this);
1022
1016
  }
1023
1017
  function resolveBuffer(response, id, buffer) {
1024
1018
  var chunks = response._chunks,
@@ -1446,7 +1440,7 @@ function noServerCall() {
1446
1440
  );
1447
1441
  }
1448
1442
  exports.createFromNodeStream = function (stream, ssrManifest, options) {
1449
- var response = createResponse(
1443
+ var response = new ResponseInstance(
1450
1444
  ssrManifest.moduleMap,
1451
1445
  ssrManifest.moduleLoading,
1452
1446
  noServerCall,