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
@@ -33,49 +33,6 @@ function readFinalStringChunk(decoder, buffer) {
33
33
  return decoder.decode(buffer);
34
34
  }
35
35
 
36
- // This flips color using ANSI, then sets a color styling, then resets.
37
- var badgeFormat = '\x1b[0m\x1b[7m%c%s\x1b[0m%c '; // Same badge styling as DevTools.
38
-
39
- var badgeStyle = // We use a fixed background if light-dark is not supported, otherwise
40
- // we use a transparent background.
41
- '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';
42
- var resetStyle = '';
43
- var pad = ' ';
44
- function printToConsole(methodName, args, badgeName) {
45
- var offset = 0;
46
-
47
- switch (methodName) {
48
- case 'dir':
49
- case 'dirxml':
50
- case 'groupEnd':
51
- case 'table':
52
- {
53
- // These methods cannot be colorized because they don't take a formatting string.
54
- // eslint-disable-next-line react-internal/no-production-logging
55
- console[methodName].apply(console, args);
56
- return;
57
- }
58
-
59
- case 'assert':
60
- {
61
- // assert takes formatting options as the second argument.
62
- offset = 1;
63
- }
64
- }
65
-
66
- var newArgs = args.slice(0);
67
-
68
- if (typeof newArgs[offset] === 'string') {
69
- newArgs.splice(offset, 1, badgeFormat + newArgs[offset], badgeStyle, pad + badgeName + pad, resetStyle);
70
- } else {
71
- newArgs.splice(offset, 0, badgeFormat, badgeStyle, pad + badgeName + pad, resetStyle);
72
- } // eslint-disable-next-line react-internal/no-production-logging
73
-
74
-
75
- console[methodName].apply(console, newArgs);
76
- return;
77
- }
78
-
79
36
  // This is the parsed shape of the wire format which is why it is
80
37
  // condensed to only the essentialy information
81
38
  var ID = 0;
@@ -432,12 +389,14 @@ function printWarning(level, format, args) {
432
389
  // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
433
390
  // The Symbol used to tag the ReactElement-like types.
434
391
  var REACT_ELEMENT_TYPE = Symbol.for('react.element');
435
- var REACT_PROVIDER_TYPE = Symbol.for('react.provider'); // TODO: Delete with enableRenderableContext
392
+ var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
393
+ var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');
436
394
  var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
437
395
  var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
438
396
  var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
439
397
  var REACT_MEMO_TYPE = Symbol.for('react.memo');
440
398
  var REACT_LAZY_TYPE = Symbol.for('react.lazy');
399
+ var REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for('react.default_value');
441
400
  var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
442
401
  var FAUX_ITERATOR_SYMBOL = '@@iterator';
443
402
  function getIteratorFn(maybeIterable) {
@@ -549,10 +508,6 @@ function describeValueForErrorMessage(value) {
549
508
  return '[...]';
550
509
  }
551
510
 
552
- if (value !== null && value.$$typeof === CLIENT_REFERENCE_TAG) {
553
- return describeClientReference();
554
- }
555
-
556
511
  var name = objectName(value);
557
512
 
558
513
  if (name === 'Object') {
@@ -563,15 +518,7 @@ function describeValueForErrorMessage(value) {
563
518
  }
564
519
 
565
520
  case 'function':
566
- {
567
- if (value.$$typeof === CLIENT_REFERENCE_TAG) {
568
- return describeClientReference();
569
- }
570
-
571
- var _name = value.displayName || value.name;
572
-
573
- return _name ? 'function ' + _name : 'function';
574
- }
521
+ return 'function';
575
522
 
576
523
  default:
577
524
  // eslint-disable-next-line react-internal/safe-string-coercion
@@ -617,12 +564,6 @@ function describeElementType(type) {
617
564
  return '';
618
565
  }
619
566
 
620
- var CLIENT_REFERENCE_TAG = Symbol.for('react.client.reference');
621
-
622
- function describeClientReference(ref) {
623
- return 'client';
624
- }
625
-
626
567
  function describeObjectForErrorMessage(objectOrArray, expandedName) {
627
568
  var objKind = objectName(objectOrArray);
628
569
 
@@ -701,8 +642,6 @@ function describeObjectForErrorMessage(objectOrArray, expandedName) {
701
642
  } else {
702
643
  if (objectOrArray.$$typeof === REACT_ELEMENT_TYPE) {
703
644
  str = '<' + describeElementType(objectOrArray.type) + '/>';
704
- } else if (objectOrArray.$$typeof === CLIENT_REFERENCE_TAG) {
705
- return describeClientReference();
706
645
  } else if (jsxPropsParents.has(objectOrArray)) {
707
646
  // Print JSX
708
647
  var _type = jsxPropsParents.get(objectOrArray);
@@ -753,9 +692,9 @@ function describeObjectForErrorMessage(objectOrArray, expandedName) {
753
692
  str += ', ';
754
693
  }
755
694
 
756
- var _name2 = _names[_i3];
757
- str += describeKeyForErrorMessage(_name2) + ': ';
758
- var _value3 = _object[_name2];
695
+ var _name = _names[_i3];
696
+ str += describeKeyForErrorMessage(_name) + ': ';
697
+ var _value3 = _object[_name];
759
698
 
760
699
  var _substr3 = void 0;
761
700
 
@@ -765,7 +704,7 @@ function describeObjectForErrorMessage(objectOrArray, expandedName) {
765
704
  _substr3 = describeValueForErrorMessage(_value3);
766
705
  }
767
706
 
768
- if (_name2 === expandedName) {
707
+ if (_name === expandedName) {
769
708
  start = str.length;
770
709
  length = _substr3.length;
771
710
  str += _substr3;
@@ -990,7 +929,7 @@ function processReply(root, formFieldPrefix, resolve, reject) {
990
929
  error('React Element cannot be passed to Server Functions from the Client.%s', describeObjectForErrorMessage(parent, key));
991
930
  } else if (value.$$typeof === REACT_LAZY_TYPE) {
992
931
  error('React Lazy cannot be passed to Server Functions from the Client.%s', describeObjectForErrorMessage(parent, key));
993
- } else if (value.$$typeof === (REACT_PROVIDER_TYPE)) {
932
+ } else if (value.$$typeof === REACT_PROVIDER_TYPE) {
994
933
  error('React Context Providers cannot be passed to Server Functions from the Client.%s', describeObjectForErrorMessage(parent, key));
995
934
  } else if (objectName(value) !== 'Object') {
996
935
  error('Only plain objects can be passed to Server Functions from the Client. ' + '%s objects are not supported.%s', objectName(value), describeObjectForErrorMessage(parent, key));
@@ -1123,7 +1062,7 @@ function encodeFormData(reference) {
1123
1062
  return thenable;
1124
1063
  }
1125
1064
 
1126
- function defaultEncodeFormAction(identifierPrefix) {
1065
+ function encodeFormAction(identifierPrefix) {
1127
1066
  var reference = knownServerReferences.get(this);
1128
1067
 
1129
1068
  if (!reference) {
@@ -1173,22 +1112,6 @@ function defaultEncodeFormAction(identifierPrefix) {
1173
1112
  };
1174
1113
  }
1175
1114
 
1176
- function customEncodeFormAction(proxy, identifierPrefix, encodeFormAction) {
1177
- var reference = knownServerReferences.get(proxy);
1178
-
1179
- if (!reference) {
1180
- throw new Error('Tried to encode a Server Action from a different instance than the encoder is from. ' + 'This is a bug in React.');
1181
- }
1182
-
1183
- var boundPromise = reference.bound;
1184
-
1185
- if (boundPromise === null) {
1186
- boundPromise = Promise.resolve([]);
1187
- }
1188
-
1189
- return encodeFormAction(reference.id, boundPromise);
1190
- }
1191
-
1192
1115
  function isSignatureEqual(referenceId, numberOfBoundArgs) {
1193
1116
  var reference = knownServerReferences.get(this);
1194
1117
 
@@ -1250,17 +1173,14 @@ function isSignatureEqual(referenceId, numberOfBoundArgs) {
1250
1173
  }
1251
1174
  }
1252
1175
 
1253
- function registerServerReference(proxy, reference, encodeFormAction) {
1176
+ function registerServerReference(proxy, reference) {
1254
1177
  // Expose encoder for use by SSR, as well as a special bind that can be used to
1255
1178
  // keep server capabilities.
1256
1179
  {
1257
1180
  // Only expose this in builds that would actually use it. Not needed on the client.
1258
- var $$FORM_ACTION = encodeFormAction === undefined ? defaultEncodeFormAction : function (identifierPrefix) {
1259
- return customEncodeFormAction(this, identifierPrefix, encodeFormAction);
1260
- };
1261
1181
  Object.defineProperties(proxy, {
1262
1182
  $$FORM_ACTION: {
1263
- value: $$FORM_ACTION
1183
+ value: encodeFormAction
1264
1184
  },
1265
1185
  $$IS_SIGNATURE_EQUAL: {
1266
1186
  value: isSignatureEqual
@@ -1284,17 +1204,6 @@ function bind() {
1284
1204
  var reference = knownServerReferences.get(this);
1285
1205
 
1286
1206
  if (reference) {
1287
- {
1288
- var thisBind = arguments[0];
1289
-
1290
- if (thisBind != null) {
1291
- // This doesn't warn in browser environments since it's not instrumented outside
1292
- // usedWithSSR. This makes this an SSR only warning which we don't generally do.
1293
- // TODO: Consider a DEV only instrumentation in the browser.
1294
- error('Cannot bind "this" of a Server Action. Pass null or undefined as the first argument to .bind().');
1295
- }
1296
- }
1297
-
1298
1207
  var args = ArraySlice.call(arguments, 1);
1299
1208
  var boundPromise = null;
1300
1209
 
@@ -1304,26 +1213,9 @@ function bind() {
1304
1213
  });
1305
1214
  } else {
1306
1215
  boundPromise = Promise.resolve(args);
1307
- } // Expose encoder for use by SSR, as well as a special bind that can be used to
1308
- // keep server capabilities.
1309
-
1310
-
1311
- {
1312
- // Only expose this in builds that would actually use it. Not needed on the client.
1313
- Object.defineProperties(newFn, {
1314
- $$FORM_ACTION: {
1315
- value: this.$$FORM_ACTION
1316
- },
1317
- $$IS_SIGNATURE_EQUAL: {
1318
- value: isSignatureEqual
1319
- },
1320
- bind: {
1321
- value: bind
1322
- }
1323
- });
1324
1216
  }
1325
1217
 
1326
- knownServerReferences.set(newFn, {
1218
+ registerServerReference(newFn, {
1327
1219
  id: reference.id,
1328
1220
  bound: boundPromise
1329
1221
  });
@@ -1332,7 +1224,7 @@ function bind() {
1332
1224
  return newFn;
1333
1225
  }
1334
1226
 
1335
- function createServerReference$1(id, callServer, encodeFormAction) {
1227
+ function createServerReference$1(id, callServer) {
1336
1228
  var proxy = function () {
1337
1229
  // $FlowFixMe[method-unbinding]
1338
1230
  var args = Array.prototype.slice.call(arguments);
@@ -1342,10 +1234,61 @@ function createServerReference$1(id, callServer, encodeFormAction) {
1342
1234
  registerServerReference(proxy, {
1343
1235
  id: id,
1344
1236
  bound: null
1345
- }, encodeFormAction);
1237
+ });
1346
1238
  return proxy;
1347
1239
  }
1348
1240
 
1241
+ var ContextRegistry = ReactSharedInternals.ContextRegistry;
1242
+ function getOrCreateServerContext(globalName) {
1243
+ if (!ContextRegistry[globalName]) {
1244
+ var context = {
1245
+ $$typeof: REACT_SERVER_CONTEXT_TYPE,
1246
+ // As a workaround to support multiple concurrent renderers, we categorize
1247
+ // some renderers as primary and others as secondary. We only expect
1248
+ // there to be two concurrent renderers at most: React Native (primary) and
1249
+ // Fabric (secondary); React DOM (primary) and React ART (secondary).
1250
+ // Secondary renderers store their context values on separate fields.
1251
+ _currentValue: REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED,
1252
+ _currentValue2: REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED,
1253
+ _defaultValue: REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED,
1254
+ // Used to track how many concurrent renderers this context currently
1255
+ // supports within in a single renderer. Such as parallel server rendering.
1256
+ _threadCount: 0,
1257
+ // These are circular
1258
+ Provider: null,
1259
+ Consumer: null,
1260
+ _globalName: globalName
1261
+ };
1262
+ context.Provider = {
1263
+ $$typeof: REACT_PROVIDER_TYPE,
1264
+ _context: context
1265
+ };
1266
+
1267
+ {
1268
+ var hasWarnedAboutUsingConsumer;
1269
+ context._currentRenderer = null;
1270
+ context._currentRenderer2 = null;
1271
+ Object.defineProperties(context, {
1272
+ Consumer: {
1273
+ get: function () {
1274
+ if (!hasWarnedAboutUsingConsumer) {
1275
+ error('Consumer pattern is not supported by ReactServerContext');
1276
+
1277
+ hasWarnedAboutUsingConsumer = true;
1278
+ }
1279
+
1280
+ return null;
1281
+ }
1282
+ }
1283
+ });
1284
+ }
1285
+
1286
+ ContextRegistry[globalName] = context;
1287
+ }
1288
+
1289
+ return ContextRegistry[globalName];
1290
+ }
1291
+
1349
1292
  var ROW_ID = 0;
1350
1293
  var ROW_TAG = 1;
1351
1294
  var ROW_LENGTH = 2;
@@ -1364,10 +1307,6 @@ function Chunk(status, value, reason, response) {
1364
1307
  this.value = value;
1365
1308
  this.reason = reason;
1366
1309
  this._response = response;
1367
-
1368
- {
1369
- this._debugInfo = null;
1370
- }
1371
1310
  } // We subclass Promise.prototype so that we get other methods like .catch
1372
1311
 
1373
1312
 
@@ -1644,20 +1583,17 @@ function reportGlobalError(response, error) {
1644
1583
  }
1645
1584
 
1646
1585
  function createElement(type, key, props) {
1647
- var element;
1648
-
1649
- {
1650
- element = {
1651
- // This tag allows us to uniquely identify this as a React Element
1652
- $$typeof: REACT_ELEMENT_TYPE,
1653
- type: type,
1654
- key: key,
1655
- ref: null,
1656
- props: props,
1657
- // Record the component responsible for creating this element.
1658
- _owner: null
1659
- };
1660
- }
1586
+ var element = {
1587
+ // This tag allows us to uniquely identify this as a React Element
1588
+ $$typeof: REACT_ELEMENT_TYPE,
1589
+ // Built-in properties that belong on the element
1590
+ type: type,
1591
+ key: key,
1592
+ ref: null,
1593
+ props: props,
1594
+ // Record the component responsible for creating this element.
1595
+ _owner: null
1596
+ };
1661
1597
 
1662
1598
  {
1663
1599
  // We don't really need to add any of these but keeping them for good measure.
@@ -1670,12 +1606,17 @@ function createElement(type, key, props) {
1670
1606
  writable: true,
1671
1607
  value: true // This element has already been validated on the server.
1672
1608
 
1673
- }); // debugInfo contains Server Component debug information.
1674
-
1675
- Object.defineProperty(element, '_debugInfo', {
1609
+ });
1610
+ Object.defineProperty(element, '_self', {
1676
1611
  configurable: false,
1677
1612
  enumerable: false,
1678
- writable: true,
1613
+ writable: false,
1614
+ value: null
1615
+ });
1616
+ Object.defineProperty(element, '_source', {
1617
+ configurable: false,
1618
+ enumerable: false,
1619
+ writable: false,
1679
1620
  value: null
1680
1621
  });
1681
1622
  }
@@ -1689,13 +1630,6 @@ function createLazyChunkWrapper(chunk) {
1689
1630
  _payload: chunk,
1690
1631
  _init: readChunk
1691
1632
  };
1692
-
1693
- {
1694
- // Ensure we have a live array to track future debug info.
1695
- var chunkDebugInfo = chunk._debugInfo || (chunk._debugInfo = []);
1696
- lazyType._debugInfo = chunkDebugInfo;
1697
- }
1698
-
1699
1633
  return lazyType;
1700
1634
  }
1701
1635
 
@@ -1778,7 +1712,7 @@ function createServerReferenceProxy(response, metaData) {
1778
1712
  });
1779
1713
  };
1780
1714
 
1781
- registerServerReference(proxy, metaData, response._encodeFormAction);
1715
+ registerServerReference(proxy, metaData);
1782
1716
  return proxy;
1783
1717
  }
1784
1718
 
@@ -1831,11 +1765,6 @@ function parseModelString(response, parentObject, key, value) {
1831
1765
  case '@':
1832
1766
  {
1833
1767
  // Promise
1834
- if (value.length === 2) {
1835
- // Infinite promise that never resolves.
1836
- return new Promise(function () {});
1837
- }
1838
-
1839
1768
  var _id = parseInt(value.slice(2), 16);
1840
1769
 
1841
1770
  var _chunk = getChunk(response, _id);
@@ -1849,6 +1778,12 @@ function parseModelString(response, parentObject, key, value) {
1849
1778
  return Symbol.for(value.slice(2));
1850
1779
  }
1851
1780
 
1781
+ case 'P':
1782
+ {
1783
+ // Server Context Provider
1784
+ return getOrCreateServerContext(value.slice(2)).Provider;
1785
+ }
1786
+
1852
1787
  case 'F':
1853
1788
  {
1854
1789
  // Server Reference
@@ -1918,23 +1853,6 @@ function parseModelString(response, parentObject, key, value) {
1918
1853
  return BigInt(value.slice(2));
1919
1854
  }
1920
1855
 
1921
- case 'E':
1922
- {
1923
- {
1924
- // In DEV mode we allow indirect eval to produce functions for logging.
1925
- // This should not compile to eval() because then it has local scope access.
1926
- try {
1927
- // eslint-disable-next-line no-eval
1928
- return (0, eval)(value.slice(2));
1929
- } catch (x) {
1930
- // We currently use this to express functions so we fail parsing it,
1931
- // let's just return a blank function as a place holder.
1932
- return function () {};
1933
- }
1934
- } // Fallthrough
1935
-
1936
- }
1937
-
1938
1856
  default:
1939
1857
  {
1940
1858
  // We assume that anything else is a reference ID.
@@ -1955,29 +1873,7 @@ function parseModelString(response, parentObject, key, value) {
1955
1873
 
1956
1874
  switch (_chunk2.status) {
1957
1875
  case INITIALIZED:
1958
- var chunkValue = _chunk2.value;
1959
-
1960
- if (_chunk2._debugInfo) {
1961
- // If we have a direct reference to an object that was rendered by a synchronous
1962
- // server component, it might have some debug info about how it was rendered.
1963
- // We forward this to the underlying object. This might be a React Element or
1964
- // an Array fragment.
1965
- // If this was a string / number return value we lose the debug info. We choose
1966
- // that tradeoff to allow sync server components to return plain values and not
1967
- // use them as React Nodes necessarily. We could otherwise wrap them in a Lazy.
1968
- if (typeof chunkValue === 'object' && chunkValue !== null && (Array.isArray(chunkValue) || chunkValue.$$typeof === REACT_ELEMENT_TYPE) && !chunkValue._debugInfo) {
1969
- // We should maybe use a unique symbol for arrays but this is a React owned array.
1970
- // $FlowFixMe[prop-missing]: This should be added to elements.
1971
- Object.defineProperty(chunkValue, '_debugInfo', {
1972
- configurable: false,
1973
- enumerable: false,
1974
- writable: true,
1975
- value: _chunk2._debugInfo
1976
- });
1977
- }
1978
- }
1979
-
1980
- return chunkValue;
1876
+ return _chunk2.value;
1981
1877
 
1982
1878
  case PENDING:
1983
1879
  case BLOCKED:
@@ -2014,13 +1910,12 @@ function missingCall() {
2014
1910
  throw new Error('Trying to call a function from "use server" but the callServer option ' + 'was not implemented in your router runtime.');
2015
1911
  }
2016
1912
 
2017
- function createResponse(bundlerConfig, moduleLoading, callServer, encodeFormAction, nonce) {
1913
+ function createResponse(bundlerConfig, moduleLoading, callServer, nonce) {
2018
1914
  var chunks = new Map();
2019
1915
  var response = {
2020
1916
  _bundlerConfig: bundlerConfig,
2021
1917
  _moduleLoading: moduleLoading,
2022
1918
  _callServer: callServer !== undefined ? callServer : missingCall,
2023
- _encodeFormAction: encodeFormAction,
2024
1919
  _nonce: nonce,
2025
1920
  _chunks: chunks,
2026
1921
  _stringDecoder: createStringDecoder(),
@@ -2118,24 +2013,6 @@ function resolveHint(response, code, model) {
2118
2013
  dispatchHint(code, hintModel);
2119
2014
  }
2120
2015
 
2121
- function resolveDebugInfo(response, id, debugInfo) {
2122
-
2123
- var chunk = getChunk(response, id);
2124
- var chunkDebugInfo = chunk._debugInfo || (chunk._debugInfo = []);
2125
- chunkDebugInfo.push(debugInfo);
2126
- }
2127
-
2128
- function resolveConsoleEntry(response, value) {
2129
-
2130
- var payload = parseModel(response, value);
2131
- var methodName = payload[0]; // TODO: Restore the fake stack before logging.
2132
- // const stackTrace = payload[1];
2133
-
2134
- var env = payload[2];
2135
- var args = payload.slice(3);
2136
- printToConsole(methodName, args, env);
2137
- }
2138
-
2139
2016
  function processFullRow(response, id, tag, buffer, chunk) {
2140
2017
 
2141
2018
  var stringDecoder = response._stringDecoder;
@@ -2186,28 +2063,6 @@ function processFullRow(response, id, tag, buffer, chunk) {
2186
2063
  return;
2187
2064
  }
2188
2065
 
2189
- case 68
2190
- /* "D" */
2191
- :
2192
- {
2193
- {
2194
- var debugInfo = JSON.parse(row);
2195
- resolveDebugInfo(response, id, debugInfo);
2196
- return;
2197
- } // Fallthrough to share the error with Console entries.
2198
-
2199
- }
2200
-
2201
- case 87
2202
- /* "W" */
2203
- :
2204
- {
2205
- {
2206
- resolveConsoleEntry(response, row);
2207
- return;
2208
- }
2209
- }
2210
-
2211
2066
  case 80
2212
2067
  /* "P" */
2213
2068
  :
@@ -2393,7 +2248,7 @@ function createServerReference(id, callServer) {
2393
2248
  }
2394
2249
 
2395
2250
  function createResponseFromOptions(options) {
2396
- return createResponse(options.ssrManifest.moduleMap, options.ssrManifest.moduleLoading, noServerCall, options.encodeFormAction, typeof options.nonce === 'string' ? options.nonce : undefined);
2251
+ return createResponse(options.ssrManifest.moduleMap, options.ssrManifest.moduleLoading, noServerCall, typeof options.nonce === 'string' ? options.nonce : undefined);
2397
2252
  }
2398
2253
 
2399
2254
  function startReadingFromStream(response, stream) {