react-server-dom-webpack 18.3.0-canary-14898b6a9-20240318 → 18.3.0-canary-4b84f1161-20240318

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.
Files changed (39) hide show
  1. package/cjs/react-server-dom-webpack-client.browser.development.js +91 -189
  2. package/cjs/react-server-dom-webpack-client.browser.production.js +60 -43
  3. package/cjs/react-server-dom-webpack-client.browser.production.min.js +24 -23
  4. package/cjs/react-server-dom-webpack-client.browser.production.min.js.map +1 -1
  5. package/cjs/react-server-dom-webpack-client.edge.development.js +96 -241
  6. package/cjs/react-server-dom-webpack-client.edge.production.js +65 -84
  7. package/cjs/react-server-dom-webpack-client.edge.production.min.js +29 -29
  8. package/cjs/react-server-dom-webpack-client.edge.production.min.js.map +1 -1
  9. package/cjs/react-server-dom-webpack-client.node.development.js +96 -241
  10. package/cjs/react-server-dom-webpack-client.node.production.js +65 -84
  11. package/cjs/react-server-dom-webpack-client.node.production.min.js +29 -28
  12. package/cjs/react-server-dom-webpack-client.node.production.min.js.map +1 -1
  13. package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +96 -241
  14. package/cjs/react-server-dom-webpack-client.node.unbundled.production.js +65 -84
  15. package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +30 -30
  16. package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js.map +1 -1
  17. package/cjs/react-server-dom-webpack-node-register.js.map +1 -1
  18. package/cjs/react-server-dom-webpack-plugin.js.map +1 -1
  19. package/cjs/react-server-dom-webpack-server.browser.development.js +406 -550
  20. package/cjs/react-server-dom-webpack-server.browser.production.js +351 -373
  21. package/cjs/react-server-dom-webpack-server.browser.production.min.js +68 -65
  22. package/cjs/react-server-dom-webpack-server.browser.production.min.js.map +1 -1
  23. package/cjs/react-server-dom-webpack-server.edge.development.js +406 -553
  24. package/cjs/react-server-dom-webpack-server.edge.production.js +350 -375
  25. package/cjs/react-server-dom-webpack-server.edge.production.min.js +69 -66
  26. package/cjs/react-server-dom-webpack-server.edge.production.min.js.map +1 -1
  27. package/cjs/react-server-dom-webpack-server.node.development.js +406 -550
  28. package/cjs/react-server-dom-webpack-server.node.production.js +350 -372
  29. package/cjs/react-server-dom-webpack-server.node.production.min.js +72 -70
  30. package/cjs/react-server-dom-webpack-server.node.production.min.js.map +1 -1
  31. package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +406 -550
  32. package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +350 -372
  33. package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +69 -67
  34. package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js.map +1 -1
  35. package/package.json +3 -3
  36. package/umd/react-server-dom-webpack-client.browser.development.js +91 -189
  37. package/umd/react-server-dom-webpack-client.browser.production.min.js +23 -22
  38. package/umd/react-server-dom-webpack-server.browser.development.js +406 -550
  39. package/umd/react-server-dom-webpack-server.browser.production.min.js +52 -52
@@ -34,49 +34,6 @@ function readFinalStringChunk(decoder, buffer) {
34
34
  return decoder.decode(buffer);
35
35
  }
36
36
 
37
- // This flips color using ANSI, then sets a color styling, then resets.
38
- var badgeFormat = '\x1b[0m\x1b[7m%c%s\x1b[0m%c '; // Same badge styling as DevTools.
39
-
40
- var badgeStyle = // We use a fixed background if light-dark is not supported, otherwise
41
- // we use a transparent background.
42
- 'background: #e6e6e6;' + 'background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));' + 'color: #000000;' + 'color: light-dark(#000000, #ffffff);' + 'border-radius: 2px';
43
- var resetStyle = '';
44
- var pad = ' ';
45
- function printToConsole(methodName, args, badgeName) {
46
- var offset = 0;
47
-
48
- switch (methodName) {
49
- case 'dir':
50
- case 'dirxml':
51
- case 'groupEnd':
52
- case 'table':
53
- {
54
- // These methods cannot be colorized because they don't take a formatting string.
55
- // eslint-disable-next-line react-internal/no-production-logging
56
- console[methodName].apply(console, args);
57
- return;
58
- }
59
-
60
- case 'assert':
61
- {
62
- // assert takes formatting options as the second argument.
63
- offset = 1;
64
- }
65
- }
66
-
67
- var newArgs = args.slice(0);
68
-
69
- if (typeof newArgs[offset] === 'string') {
70
- newArgs.splice(offset, 1, badgeFormat + newArgs[offset], badgeStyle, pad + badgeName + pad, resetStyle);
71
- } else {
72
- newArgs.splice(offset, 0, badgeFormat, badgeStyle, pad + badgeName + pad, resetStyle);
73
- } // eslint-disable-next-line react-internal/no-production-logging
74
-
75
-
76
- console[methodName].apply(console, newArgs);
77
- return;
78
- }
79
-
80
37
  // This is the parsed shape of the wire format which is why it is
81
38
  // condensed to only the essentialy information
82
39
  var ID = 0;
@@ -386,12 +343,14 @@ function printWarning(level, format, args) {
386
343
  // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
387
344
  // The Symbol used to tag the ReactElement-like types.
388
345
  var REACT_ELEMENT_TYPE = Symbol.for('react.element');
389
- var REACT_PROVIDER_TYPE = Symbol.for('react.provider'); // TODO: Delete with enableRenderableContext
346
+ var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
347
+ var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');
390
348
  var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
391
349
  var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
392
350
  var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
393
351
  var REACT_MEMO_TYPE = Symbol.for('react.memo');
394
352
  var REACT_LAZY_TYPE = Symbol.for('react.lazy');
353
+ var REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for('react.default_value');
395
354
  var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
396
355
  var FAUX_ITERATOR_SYMBOL = '@@iterator';
397
356
  function getIteratorFn(maybeIterable) {
@@ -503,10 +462,6 @@ function describeValueForErrorMessage(value) {
503
462
  return '[...]';
504
463
  }
505
464
 
506
- if (value !== null && value.$$typeof === CLIENT_REFERENCE_TAG) {
507
- return describeClientReference();
508
- }
509
-
510
465
  var name = objectName(value);
511
466
 
512
467
  if (name === 'Object') {
@@ -517,15 +472,7 @@ function describeValueForErrorMessage(value) {
517
472
  }
518
473
 
519
474
  case 'function':
520
- {
521
- if (value.$$typeof === CLIENT_REFERENCE_TAG) {
522
- return describeClientReference();
523
- }
524
-
525
- var _name = value.displayName || value.name;
526
-
527
- return _name ? 'function ' + _name : 'function';
528
- }
475
+ return 'function';
529
476
 
530
477
  default:
531
478
  // eslint-disable-next-line react-internal/safe-string-coercion
@@ -571,12 +518,6 @@ function describeElementType(type) {
571
518
  return '';
572
519
  }
573
520
 
574
- var CLIENT_REFERENCE_TAG = Symbol.for('react.client.reference');
575
-
576
- function describeClientReference(ref) {
577
- return 'client';
578
- }
579
-
580
521
  function describeObjectForErrorMessage(objectOrArray, expandedName) {
581
522
  var objKind = objectName(objectOrArray);
582
523
 
@@ -655,8 +596,6 @@ function describeObjectForErrorMessage(objectOrArray, expandedName) {
655
596
  } else {
656
597
  if (objectOrArray.$$typeof === REACT_ELEMENT_TYPE) {
657
598
  str = '<' + describeElementType(objectOrArray.type) + '/>';
658
- } else if (objectOrArray.$$typeof === CLIENT_REFERENCE_TAG) {
659
- return describeClientReference();
660
599
  } else if (jsxPropsParents.has(objectOrArray)) {
661
600
  // Print JSX
662
601
  var _type = jsxPropsParents.get(objectOrArray);
@@ -707,9 +646,9 @@ function describeObjectForErrorMessage(objectOrArray, expandedName) {
707
646
  str += ', ';
708
647
  }
709
648
 
710
- var _name2 = _names[_i3];
711
- str += describeKeyForErrorMessage(_name2) + ': ';
712
- var _value3 = _object[_name2];
649
+ var _name = _names[_i3];
650
+ str += describeKeyForErrorMessage(_name) + ': ';
651
+ var _value3 = _object[_name];
713
652
 
714
653
  var _substr3 = void 0;
715
654
 
@@ -719,7 +658,7 @@ function describeObjectForErrorMessage(objectOrArray, expandedName) {
719
658
  _substr3 = describeValueForErrorMessage(_value3);
720
659
  }
721
660
 
722
- if (_name2 === expandedName) {
661
+ if (_name === expandedName) {
723
662
  start = str.length;
724
663
  length = _substr3.length;
725
664
  str += _substr3;
@@ -944,7 +883,7 @@ function processReply(root, formFieldPrefix, resolve, reject) {
944
883
  error('React Element cannot be passed to Server Functions from the Client.%s', describeObjectForErrorMessage(parent, key));
945
884
  } else if (value.$$typeof === REACT_LAZY_TYPE) {
946
885
  error('React Lazy cannot be passed to Server Functions from the Client.%s', describeObjectForErrorMessage(parent, key));
947
- } else if (value.$$typeof === (REACT_PROVIDER_TYPE)) {
886
+ } else if (value.$$typeof === REACT_PROVIDER_TYPE) {
948
887
  error('React Context Providers cannot be passed to Server Functions from the Client.%s', describeObjectForErrorMessage(parent, key));
949
888
  } else if (objectName(value) !== 'Object') {
950
889
  error('Only plain objects can be passed to Server Functions from the Client. ' + '%s objects are not supported.%s', objectName(value), describeObjectForErrorMessage(parent, key));
@@ -1077,7 +1016,7 @@ function encodeFormData(reference) {
1077
1016
  return thenable;
1078
1017
  }
1079
1018
 
1080
- function defaultEncodeFormAction(identifierPrefix) {
1019
+ function encodeFormAction(identifierPrefix) {
1081
1020
  var reference = knownServerReferences.get(this);
1082
1021
 
1083
1022
  if (!reference) {
@@ -1127,22 +1066,6 @@ function defaultEncodeFormAction(identifierPrefix) {
1127
1066
  };
1128
1067
  }
1129
1068
 
1130
- function customEncodeFormAction(proxy, identifierPrefix, encodeFormAction) {
1131
- var reference = knownServerReferences.get(proxy);
1132
-
1133
- if (!reference) {
1134
- throw new Error('Tried to encode a Server Action from a different instance than the encoder is from. ' + 'This is a bug in React.');
1135
- }
1136
-
1137
- var boundPromise = reference.bound;
1138
-
1139
- if (boundPromise === null) {
1140
- boundPromise = Promise.resolve([]);
1141
- }
1142
-
1143
- return encodeFormAction(reference.id, boundPromise);
1144
- }
1145
-
1146
1069
  function isSignatureEqual(referenceId, numberOfBoundArgs) {
1147
1070
  var reference = knownServerReferences.get(this);
1148
1071
 
@@ -1204,17 +1127,14 @@ function isSignatureEqual(referenceId, numberOfBoundArgs) {
1204
1127
  }
1205
1128
  }
1206
1129
 
1207
- function registerServerReference(proxy, reference, encodeFormAction) {
1130
+ function registerServerReference(proxy, reference) {
1208
1131
  // Expose encoder for use by SSR, as well as a special bind that can be used to
1209
1132
  // keep server capabilities.
1210
1133
  {
1211
1134
  // Only expose this in builds that would actually use it. Not needed on the client.
1212
- var $$FORM_ACTION = encodeFormAction === undefined ? defaultEncodeFormAction : function (identifierPrefix) {
1213
- return customEncodeFormAction(this, identifierPrefix, encodeFormAction);
1214
- };
1215
1135
  Object.defineProperties(proxy, {
1216
1136
  $$FORM_ACTION: {
1217
- value: $$FORM_ACTION
1137
+ value: encodeFormAction
1218
1138
  },
1219
1139
  $$IS_SIGNATURE_EQUAL: {
1220
1140
  value: isSignatureEqual
@@ -1238,17 +1158,6 @@ function bind() {
1238
1158
  var reference = knownServerReferences.get(this);
1239
1159
 
1240
1160
  if (reference) {
1241
- {
1242
- var thisBind = arguments[0];
1243
-
1244
- if (thisBind != null) {
1245
- // This doesn't warn in browser environments since it's not instrumented outside
1246
- // usedWithSSR. This makes this an SSR only warning which we don't generally do.
1247
- // TODO: Consider a DEV only instrumentation in the browser.
1248
- error('Cannot bind "this" of a Server Action. Pass null or undefined as the first argument to .bind().');
1249
- }
1250
- }
1251
-
1252
1161
  var args = ArraySlice.call(arguments, 1);
1253
1162
  var boundPromise = null;
1254
1163
 
@@ -1258,26 +1167,9 @@ function bind() {
1258
1167
  });
1259
1168
  } else {
1260
1169
  boundPromise = Promise.resolve(args);
1261
- } // Expose encoder for use by SSR, as well as a special bind that can be used to
1262
- // keep server capabilities.
1263
-
1264
-
1265
- {
1266
- // Only expose this in builds that would actually use it. Not needed on the client.
1267
- Object.defineProperties(newFn, {
1268
- $$FORM_ACTION: {
1269
- value: this.$$FORM_ACTION
1270
- },
1271
- $$IS_SIGNATURE_EQUAL: {
1272
- value: isSignatureEqual
1273
- },
1274
- bind: {
1275
- value: bind
1276
- }
1277
- });
1278
1170
  }
1279
1171
 
1280
- knownServerReferences.set(newFn, {
1172
+ registerServerReference(newFn, {
1281
1173
  id: reference.id,
1282
1174
  bound: boundPromise
1283
1175
  });
@@ -1286,7 +1178,7 @@ function bind() {
1286
1178
  return newFn;
1287
1179
  }
1288
1180
 
1289
- function createServerReference$1(id, callServer, encodeFormAction) {
1181
+ function createServerReference$1(id, callServer) {
1290
1182
  var proxy = function () {
1291
1183
  // $FlowFixMe[method-unbinding]
1292
1184
  var args = Array.prototype.slice.call(arguments);
@@ -1296,10 +1188,61 @@ function createServerReference$1(id, callServer, encodeFormAction) {
1296
1188
  registerServerReference(proxy, {
1297
1189
  id: id,
1298
1190
  bound: null
1299
- }, encodeFormAction);
1191
+ });
1300
1192
  return proxy;
1301
1193
  }
1302
1194
 
1195
+ var ContextRegistry = ReactSharedInternals.ContextRegistry;
1196
+ function getOrCreateServerContext(globalName) {
1197
+ if (!ContextRegistry[globalName]) {
1198
+ var context = {
1199
+ $$typeof: REACT_SERVER_CONTEXT_TYPE,
1200
+ // As a workaround to support multiple concurrent renderers, we categorize
1201
+ // some renderers as primary and others as secondary. We only expect
1202
+ // there to be two concurrent renderers at most: React Native (primary) and
1203
+ // Fabric (secondary); React DOM (primary) and React ART (secondary).
1204
+ // Secondary renderers store their context values on separate fields.
1205
+ _currentValue: REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED,
1206
+ _currentValue2: REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED,
1207
+ _defaultValue: REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED,
1208
+ // Used to track how many concurrent renderers this context currently
1209
+ // supports within in a single renderer. Such as parallel server rendering.
1210
+ _threadCount: 0,
1211
+ // These are circular
1212
+ Provider: null,
1213
+ Consumer: null,
1214
+ _globalName: globalName
1215
+ };
1216
+ context.Provider = {
1217
+ $$typeof: REACT_PROVIDER_TYPE,
1218
+ _context: context
1219
+ };
1220
+
1221
+ {
1222
+ var hasWarnedAboutUsingConsumer;
1223
+ context._currentRenderer = null;
1224
+ context._currentRenderer2 = null;
1225
+ Object.defineProperties(context, {
1226
+ Consumer: {
1227
+ get: function () {
1228
+ if (!hasWarnedAboutUsingConsumer) {
1229
+ error('Consumer pattern is not supported by ReactServerContext');
1230
+
1231
+ hasWarnedAboutUsingConsumer = true;
1232
+ }
1233
+
1234
+ return null;
1235
+ }
1236
+ }
1237
+ });
1238
+ }
1239
+
1240
+ ContextRegistry[globalName] = context;
1241
+ }
1242
+
1243
+ return ContextRegistry[globalName];
1244
+ }
1245
+
1303
1246
  var ROW_ID = 0;
1304
1247
  var ROW_TAG = 1;
1305
1248
  var ROW_LENGTH = 2;
@@ -1318,10 +1261,6 @@ function Chunk(status, value, reason, response) {
1318
1261
  this.value = value;
1319
1262
  this.reason = reason;
1320
1263
  this._response = response;
1321
-
1322
- {
1323
- this._debugInfo = null;
1324
- }
1325
1264
  } // We subclass Promise.prototype so that we get other methods like .catch
1326
1265
 
1327
1266
 
@@ -1598,20 +1537,17 @@ function reportGlobalError(response, error) {
1598
1537
  }
1599
1538
 
1600
1539
  function createElement(type, key, props) {
1601
- var element;
1602
-
1603
- {
1604
- element = {
1605
- // This tag allows us to uniquely identify this as a React Element
1606
- $$typeof: REACT_ELEMENT_TYPE,
1607
- type: type,
1608
- key: key,
1609
- ref: null,
1610
- props: props,
1611
- // Record the component responsible for creating this element.
1612
- _owner: null
1613
- };
1614
- }
1540
+ var element = {
1541
+ // This tag allows us to uniquely identify this as a React Element
1542
+ $$typeof: REACT_ELEMENT_TYPE,
1543
+ // Built-in properties that belong on the element
1544
+ type: type,
1545
+ key: key,
1546
+ ref: null,
1547
+ props: props,
1548
+ // Record the component responsible for creating this element.
1549
+ _owner: null
1550
+ };
1615
1551
 
1616
1552
  {
1617
1553
  // We don't really need to add any of these but keeping them for good measure.
@@ -1624,12 +1560,17 @@ function createElement(type, key, props) {
1624
1560
  writable: true,
1625
1561
  value: true // This element has already been validated on the server.
1626
1562
 
1627
- }); // debugInfo contains Server Component debug information.
1628
-
1629
- Object.defineProperty(element, '_debugInfo', {
1563
+ });
1564
+ Object.defineProperty(element, '_self', {
1630
1565
  configurable: false,
1631
1566
  enumerable: false,
1632
- writable: true,
1567
+ writable: false,
1568
+ value: null
1569
+ });
1570
+ Object.defineProperty(element, '_source', {
1571
+ configurable: false,
1572
+ enumerable: false,
1573
+ writable: false,
1633
1574
  value: null
1634
1575
  });
1635
1576
  }
@@ -1643,13 +1584,6 @@ function createLazyChunkWrapper(chunk) {
1643
1584
  _payload: chunk,
1644
1585
  _init: readChunk
1645
1586
  };
1646
-
1647
- {
1648
- // Ensure we have a live array to track future debug info.
1649
- var chunkDebugInfo = chunk._debugInfo || (chunk._debugInfo = []);
1650
- lazyType._debugInfo = chunkDebugInfo;
1651
- }
1652
-
1653
1587
  return lazyType;
1654
1588
  }
1655
1589
 
@@ -1732,7 +1666,7 @@ function createServerReferenceProxy(response, metaData) {
1732
1666
  });
1733
1667
  };
1734
1668
 
1735
- registerServerReference(proxy, metaData, response._encodeFormAction);
1669
+ registerServerReference(proxy, metaData);
1736
1670
  return proxy;
1737
1671
  }
1738
1672
 
@@ -1785,11 +1719,6 @@ function parseModelString(response, parentObject, key, value) {
1785
1719
  case '@':
1786
1720
  {
1787
1721
  // Promise
1788
- if (value.length === 2) {
1789
- // Infinite promise that never resolves.
1790
- return new Promise(function () {});
1791
- }
1792
-
1793
1722
  var _id = parseInt(value.slice(2), 16);
1794
1723
 
1795
1724
  var _chunk = getChunk(response, _id);
@@ -1803,6 +1732,12 @@ function parseModelString(response, parentObject, key, value) {
1803
1732
  return Symbol.for(value.slice(2));
1804
1733
  }
1805
1734
 
1735
+ case 'P':
1736
+ {
1737
+ // Server Context Provider
1738
+ return getOrCreateServerContext(value.slice(2)).Provider;
1739
+ }
1740
+
1806
1741
  case 'F':
1807
1742
  {
1808
1743
  // Server Reference
@@ -1872,23 +1807,6 @@ function parseModelString(response, parentObject, key, value) {
1872
1807
  return BigInt(value.slice(2));
1873
1808
  }
1874
1809
 
1875
- case 'E':
1876
- {
1877
- {
1878
- // In DEV mode we allow indirect eval to produce functions for logging.
1879
- // This should not compile to eval() because then it has local scope access.
1880
- try {
1881
- // eslint-disable-next-line no-eval
1882
- return (0, eval)(value.slice(2));
1883
- } catch (x) {
1884
- // We currently use this to express functions so we fail parsing it,
1885
- // let's just return a blank function as a place holder.
1886
- return function () {};
1887
- }
1888
- } // Fallthrough
1889
-
1890
- }
1891
-
1892
1810
  default:
1893
1811
  {
1894
1812
  // We assume that anything else is a reference ID.
@@ -1909,29 +1827,7 @@ function parseModelString(response, parentObject, key, value) {
1909
1827
 
1910
1828
  switch (_chunk2.status) {
1911
1829
  case INITIALIZED:
1912
- var chunkValue = _chunk2.value;
1913
-
1914
- if (_chunk2._debugInfo) {
1915
- // If we have a direct reference to an object that was rendered by a synchronous
1916
- // server component, it might have some debug info about how it was rendered.
1917
- // We forward this to the underlying object. This might be a React Element or
1918
- // an Array fragment.
1919
- // If this was a string / number return value we lose the debug info. We choose
1920
- // that tradeoff to allow sync server components to return plain values and not
1921
- // use them as React Nodes necessarily. We could otherwise wrap them in a Lazy.
1922
- if (typeof chunkValue === 'object' && chunkValue !== null && (Array.isArray(chunkValue) || chunkValue.$$typeof === REACT_ELEMENT_TYPE) && !chunkValue._debugInfo) {
1923
- // We should maybe use a unique symbol for arrays but this is a React owned array.
1924
- // $FlowFixMe[prop-missing]: This should be added to elements.
1925
- Object.defineProperty(chunkValue, '_debugInfo', {
1926
- configurable: false,
1927
- enumerable: false,
1928
- writable: true,
1929
- value: _chunk2._debugInfo
1930
- });
1931
- }
1932
- }
1933
-
1934
- return chunkValue;
1830
+ return _chunk2.value;
1935
1831
 
1936
1832
  case PENDING:
1937
1833
  case BLOCKED:
@@ -1968,13 +1864,12 @@ function missingCall() {
1968
1864
  throw new Error('Trying to call a function from "use server" but the callServer option ' + 'was not implemented in your router runtime.');
1969
1865
  }
1970
1866
 
1971
- function createResponse(bundlerConfig, moduleLoading, callServer, encodeFormAction, nonce) {
1867
+ function createResponse(bundlerConfig, moduleLoading, callServer, nonce) {
1972
1868
  var chunks = new Map();
1973
1869
  var response = {
1974
1870
  _bundlerConfig: bundlerConfig,
1975
1871
  _moduleLoading: moduleLoading,
1976
1872
  _callServer: callServer !== undefined ? callServer : missingCall,
1977
- _encodeFormAction: encodeFormAction,
1978
1873
  _nonce: nonce,
1979
1874
  _chunks: chunks,
1980
1875
  _stringDecoder: createStringDecoder(),
@@ -2072,24 +1967,6 @@ function resolveHint(response, code, model) {
2072
1967
  dispatchHint(code, hintModel);
2073
1968
  }
2074
1969
 
2075
- function resolveDebugInfo(response, id, debugInfo) {
2076
-
2077
- var chunk = getChunk(response, id);
2078
- var chunkDebugInfo = chunk._debugInfo || (chunk._debugInfo = []);
2079
- chunkDebugInfo.push(debugInfo);
2080
- }
2081
-
2082
- function resolveConsoleEntry(response, value) {
2083
-
2084
- var payload = parseModel(response, value);
2085
- var methodName = payload[0]; // TODO: Restore the fake stack before logging.
2086
- // const stackTrace = payload[1];
2087
-
2088
- var env = payload[2];
2089
- var args = payload.slice(3);
2090
- printToConsole(methodName, args, env);
2091
- }
2092
-
2093
1970
  function processFullRow(response, id, tag, buffer, chunk) {
2094
1971
 
2095
1972
  var stringDecoder = response._stringDecoder;
@@ -2140,28 +2017,6 @@ function processFullRow(response, id, tag, buffer, chunk) {
2140
2017
  return;
2141
2018
  }
2142
2019
 
2143
- case 68
2144
- /* "D" */
2145
- :
2146
- {
2147
- {
2148
- var debugInfo = JSON.parse(row);
2149
- resolveDebugInfo(response, id, debugInfo);
2150
- return;
2151
- } // Fallthrough to share the error with Console entries.
2152
-
2153
- }
2154
-
2155
- case 87
2156
- /* "W" */
2157
- :
2158
- {
2159
- {
2160
- resolveConsoleEntry(response, row);
2161
- return;
2162
- }
2163
- }
2164
-
2165
2020
  case 80
2166
2021
  /* "P" */
2167
2022
  :
@@ -2347,7 +2202,7 @@ function createServerReference(id, callServer) {
2347
2202
  }
2348
2203
 
2349
2204
  function createFromNodeStream(stream, ssrManifest, options) {
2350
- var response = createResponse(ssrManifest.moduleMap, ssrManifest.moduleLoading, noServerCall, options ? options.encodeFormAction : undefined, options && typeof options.nonce === 'string' ? options.nonce : undefined);
2205
+ var response = createResponse(ssrManifest.moduleMap, ssrManifest.moduleLoading, noServerCall, options && typeof options.nonce === 'string' ? options.nonce : undefined);
2351
2206
  stream.on('data', function (chunk) {
2352
2207
  processBinaryChunk(response, chunk);
2353
2208
  });