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.
@@ -858,6 +858,28 @@ function missingCall() {
858
858
  'Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.'
859
859
  );
860
860
  }
861
+ function ResponseInstance(
862
+ bundlerConfig,
863
+ moduleLoading,
864
+ callServer,
865
+ encodeFormAction,
866
+ nonce,
867
+ temporaryReferences
868
+ ) {
869
+ var chunks = new Map();
870
+ this._bundlerConfig = bundlerConfig;
871
+ this._moduleLoading = moduleLoading;
872
+ this._callServer = void 0 !== callServer ? callServer : missingCall;
873
+ this._encodeFormAction = encodeFormAction;
874
+ this._nonce = nonce;
875
+ this._chunks = chunks;
876
+ this._stringDecoder = new TextDecoder();
877
+ this._fromJSON = null;
878
+ this._rowLength = this._rowTag = this._rowID = this._rowState = 0;
879
+ this._buffer = [];
880
+ this._tempRefs = temporaryReferences;
881
+ this._fromJSON = createFromJSONCallback(this);
882
+ }
861
883
  function resolveBuffer(response, id, buffer) {
862
884
  var chunks = response._chunks,
863
885
  chunk = chunks.get(id);
@@ -1274,30 +1296,16 @@ function createFromJSONCallback(response) {
1274
1296
  };
1275
1297
  }
1276
1298
  function createResponseFromOptions(options) {
1277
- var callServer = options && options.callServer ? options.callServer : void 0;
1278
- options =
1299
+ return new ResponseInstance(
1300
+ null,
1301
+ null,
1302
+ options && options.callServer ? options.callServer : void 0,
1303
+ void 0,
1304
+ void 0,
1279
1305
  options && options.temporaryReferences
1280
1306
  ? options.temporaryReferences
1281
- : void 0;
1282
- var chunks = new Map();
1283
- callServer = {
1284
- _bundlerConfig: null,
1285
- _moduleLoading: null,
1286
- _callServer: void 0 !== callServer ? callServer : missingCall,
1287
- _encodeFormAction: void 0,
1288
- _nonce: void 0,
1289
- _chunks: chunks,
1290
- _stringDecoder: new TextDecoder(),
1291
- _fromJSON: null,
1292
- _rowState: 0,
1293
- _rowID: 0,
1294
- _rowTag: 0,
1295
- _rowLength: 0,
1296
- _buffer: [],
1297
- _tempRefs: options
1298
- };
1299
- callServer._fromJSON = createFromJSONCallback(callServer);
1300
- return callServer;
1307
+ : void 0
1308
+ );
1301
1309
  }
1302
1310
  function startReadingFromStream(response, stream) {
1303
1311
  function progress(_ref) {