react-server-dom-webpack 19.0.0-rc-df783f9ea1-20240708 → 19.0.0-rc-c3cdbec0a7-20240708

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.
@@ -629,7 +629,8 @@
629
629
  ) {
630
630
  if (void 0 === temporaryReferences)
631
631
  throw Error(
632
- "Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported."
632
+ "Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported." +
633
+ describeObjectForErrorMessage(this, key)
633
634
  );
634
635
  return "$T";
635
636
  }
@@ -650,7 +650,8 @@
650
650
  ) {
651
651
  if (void 0 === temporaryReferences)
652
652
  throw Error(
653
- "Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported."
653
+ "Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported." +
654
+ describeObjectForErrorMessage(this, key)
654
655
  );
655
656
  return "$T";
656
657
  }
@@ -650,7 +650,8 @@
650
650
  ) {
651
651
  if (void 0 === temporaryReferences)
652
652
  throw Error(
653
- "Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported."
653
+ "Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported." +
654
+ describeObjectForErrorMessage(this, key)
654
655
  );
655
656
  return "$T";
656
657
  }
@@ -629,7 +629,8 @@
629
629
  ) {
630
630
  if (void 0 === temporaryReferences)
631
631
  throw Error(
632
- "Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported."
632
+ "Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported." +
633
+ describeObjectForErrorMessage(this, key)
633
634
  );
634
635
  return "$T";
635
636
  }
@@ -1465,7 +1465,8 @@
1465
1465
  (null === request || null !== getPrototypeOf(request))
1466
1466
  )
1467
1467
  throw Error(
1468
- "Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported."
1468
+ "Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported." +
1469
+ describeObjectForErrorMessage(parent, parentPropertyName)
1469
1470
  );
1470
1471
  if (
1471
1472
  "object" === typeof value.task &&
@@ -1429,9 +1429,9 @@ function renderModelDestructive(
1429
1429
  return serializeTypedArray(request, "V", value);
1430
1430
  if ("function" === typeof Blob && value instanceof Blob)
1431
1431
  return serializeBlob(request, value);
1432
- if ((parentPropertyName = getIteratorFn(value)))
1432
+ if ((elementReference = getIteratorFn(value)))
1433
1433
  return (
1434
- (parentPropertyName = parentPropertyName.call(value)),
1434
+ (parentPropertyName = elementReference.call(value)),
1435
1435
  parentPropertyName === value
1436
1436
  ? "$i" +
1437
1437
  outlineModel(request, Array.from(parentPropertyName)).toString(16)
@@ -1439,8 +1439,8 @@ function renderModelDestructive(
1439
1439
  );
1440
1440
  if ("function" === typeof ReadableStream && value instanceof ReadableStream)
1441
1441
  return serializeReadableStream(request, task, value);
1442
- parentPropertyName = value[ASYNC_ITERATOR];
1443
- if ("function" === typeof parentPropertyName)
1442
+ elementReference = value[ASYNC_ITERATOR];
1443
+ if ("function" === typeof elementReference)
1444
1444
  return (
1445
1445
  null !== task.keyPath
1446
1446
  ? ((request = [
@@ -1450,7 +1450,7 @@ function renderModelDestructive(
1450
1450
  { children: value }
1451
1451
  ]),
1452
1452
  (request = task.implicitSlot ? [request] : request))
1453
- : ((parentPropertyName = parentPropertyName.call(value)),
1453
+ : ((parentPropertyName = elementReference.call(value)),
1454
1454
  (request = serializeAsyncIterable(
1455
1455
  request,
1456
1456
  task,
@@ -1465,7 +1465,8 @@ function renderModelDestructive(
1465
1465
  (null === request || null !== getPrototypeOf(request))
1466
1466
  )
1467
1467
  throw Error(
1468
- "Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported."
1468
+ "Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported." +
1469
+ describeObjectForErrorMessage(parent, parentPropertyName)
1469
1470
  );
1470
1471
  return value;
1471
1472
  }
@@ -1471,7 +1471,8 @@
1471
1471
  (null === request || null !== getPrototypeOf(request))
1472
1472
  )
1473
1473
  throw Error(
1474
- "Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported."
1474
+ "Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported." +
1475
+ describeObjectForErrorMessage(parent, parentPropertyName)
1475
1476
  );
1476
1477
  if (
1477
1478
  "object" === typeof value.task &&
@@ -1434,9 +1434,9 @@ function renderModelDestructive(
1434
1434
  return serializeTypedArray(request, "V", value);
1435
1435
  if ("function" === typeof Blob && value instanceof Blob)
1436
1436
  return serializeBlob(request, value);
1437
- if ((parentPropertyName = getIteratorFn(value)))
1437
+ if ((elementReference = getIteratorFn(value)))
1438
1438
  return (
1439
- (parentPropertyName = parentPropertyName.call(value)),
1439
+ (parentPropertyName = elementReference.call(value)),
1440
1440
  parentPropertyName === value
1441
1441
  ? "$i" +
1442
1442
  outlineModel(request, Array.from(parentPropertyName)).toString(16)
@@ -1444,8 +1444,8 @@ function renderModelDestructive(
1444
1444
  );
1445
1445
  if ("function" === typeof ReadableStream && value instanceof ReadableStream)
1446
1446
  return serializeReadableStream(request, task, value);
1447
- parentPropertyName = value[ASYNC_ITERATOR];
1448
- if ("function" === typeof parentPropertyName)
1447
+ elementReference = value[ASYNC_ITERATOR];
1448
+ if ("function" === typeof elementReference)
1449
1449
  return (
1450
1450
  null !== task.keyPath
1451
1451
  ? ((request = [
@@ -1455,7 +1455,7 @@ function renderModelDestructive(
1455
1455
  { children: value }
1456
1456
  ]),
1457
1457
  (request = task.implicitSlot ? [request] : request))
1458
- : ((parentPropertyName = parentPropertyName.call(value)),
1458
+ : ((parentPropertyName = elementReference.call(value)),
1459
1459
  (request = serializeAsyncIterable(
1460
1460
  request,
1461
1461
  task,
@@ -1470,7 +1470,8 @@ function renderModelDestructive(
1470
1470
  (null === request || null !== getPrototypeOf(request))
1471
1471
  )
1472
1472
  throw Error(
1473
- "Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported."
1473
+ "Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported." +
1474
+ describeObjectForErrorMessage(parent, parentPropertyName)
1474
1475
  );
1475
1476
  return value;
1476
1477
  }
@@ -1495,7 +1495,8 @@
1495
1495
  (null === request || null !== getPrototypeOf(request))
1496
1496
  )
1497
1497
  throw Error(
1498
- "Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported."
1498
+ "Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported." +
1499
+ describeObjectForErrorMessage(parent, parentPropertyName)
1499
1500
  );
1500
1501
  if (
1501
1502
  "object" === typeof value.task &&
@@ -1447,9 +1447,9 @@ function renderModelDestructive(
1447
1447
  return serializeTypedArray(request, "V", value);
1448
1448
  if ("function" === typeof Blob && value instanceof Blob)
1449
1449
  return serializeBlob(request, value);
1450
- if ((parentPropertyName = getIteratorFn(value)))
1450
+ if ((elementReference = getIteratorFn(value)))
1451
1451
  return (
1452
- (parentPropertyName = parentPropertyName.call(value)),
1452
+ (parentPropertyName = elementReference.call(value)),
1453
1453
  parentPropertyName === value
1454
1454
  ? "$i" +
1455
1455
  outlineModel(request, Array.from(parentPropertyName)).toString(16)
@@ -1457,8 +1457,8 @@ function renderModelDestructive(
1457
1457
  );
1458
1458
  if ("function" === typeof ReadableStream && value instanceof ReadableStream)
1459
1459
  return serializeReadableStream(request, task, value);
1460
- parentPropertyName = value[ASYNC_ITERATOR];
1461
- if ("function" === typeof parentPropertyName)
1460
+ elementReference = value[ASYNC_ITERATOR];
1461
+ if ("function" === typeof elementReference)
1462
1462
  return (
1463
1463
  null !== task.keyPath
1464
1464
  ? ((request = [
@@ -1468,7 +1468,7 @@ function renderModelDestructive(
1468
1468
  { children: value }
1469
1469
  ]),
1470
1470
  (request = task.implicitSlot ? [request] : request))
1471
- : ((parentPropertyName = parentPropertyName.call(value)),
1471
+ : ((parentPropertyName = elementReference.call(value)),
1472
1472
  (request = serializeAsyncIterable(
1473
1473
  request,
1474
1474
  task,
@@ -1483,7 +1483,8 @@ function renderModelDestructive(
1483
1483
  (null === request || null !== getPrototypeOf(request))
1484
1484
  )
1485
1485
  throw Error(
1486
- "Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported."
1486
+ "Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported." +
1487
+ describeObjectForErrorMessage(parent, parentPropertyName)
1487
1488
  );
1488
1489
  return value;
1489
1490
  }
@@ -1495,7 +1495,8 @@
1495
1495
  (null === request || null !== getPrototypeOf(request))
1496
1496
  )
1497
1497
  throw Error(
1498
- "Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported."
1498
+ "Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported." +
1499
+ describeObjectForErrorMessage(parent, parentPropertyName)
1499
1500
  );
1500
1501
  if (
1501
1502
  "object" === typeof value.task &&
@@ -1447,9 +1447,9 @@ function renderModelDestructive(
1447
1447
  return serializeTypedArray(request, "V", value);
1448
1448
  if ("function" === typeof Blob && value instanceof Blob)
1449
1449
  return serializeBlob(request, value);
1450
- if ((parentPropertyName = getIteratorFn(value)))
1450
+ if ((elementReference = getIteratorFn(value)))
1451
1451
  return (
1452
- (parentPropertyName = parentPropertyName.call(value)),
1452
+ (parentPropertyName = elementReference.call(value)),
1453
1453
  parentPropertyName === value
1454
1454
  ? "$i" +
1455
1455
  outlineModel(request, Array.from(parentPropertyName)).toString(16)
@@ -1457,8 +1457,8 @@ function renderModelDestructive(
1457
1457
  );
1458
1458
  if ("function" === typeof ReadableStream && value instanceof ReadableStream)
1459
1459
  return serializeReadableStream(request, task, value);
1460
- parentPropertyName = value[ASYNC_ITERATOR];
1461
- if ("function" === typeof parentPropertyName)
1460
+ elementReference = value[ASYNC_ITERATOR];
1461
+ if ("function" === typeof elementReference)
1462
1462
  return (
1463
1463
  null !== task.keyPath
1464
1464
  ? ((request = [
@@ -1468,7 +1468,7 @@ function renderModelDestructive(
1468
1468
  { children: value }
1469
1469
  ]),
1470
1470
  (request = task.implicitSlot ? [request] : request))
1471
- : ((parentPropertyName = parentPropertyName.call(value)),
1471
+ : ((parentPropertyName = elementReference.call(value)),
1472
1472
  (request = serializeAsyncIterable(
1473
1473
  request,
1474
1474
  task,
@@ -1483,7 +1483,8 @@ function renderModelDestructive(
1483
1483
  (null === request || null !== getPrototypeOf(request))
1484
1484
  )
1485
1485
  throw Error(
1486
- "Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported."
1486
+ "Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported." +
1487
+ describeObjectForErrorMessage(parent, parentPropertyName)
1487
1488
  );
1488
1489
  return value;
1489
1490
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-server-dom-webpack",
3
3
  "description": "React Server Components bindings for DOM using Webpack. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.",
4
- "version": "19.0.0-rc-df783f9ea1-20240708",
4
+ "version": "19.0.0-rc-c3cdbec0a7-20240708",
5
5
  "keywords": [
6
6
  "react"
7
7
  ],
@@ -77,8 +77,8 @@
77
77
  "node": ">=0.10.0"
78
78
  },
79
79
  "peerDependencies": {
80
- "react": "19.0.0-rc-df783f9ea1-20240708",
81
- "react-dom": "19.0.0-rc-df783f9ea1-20240708",
80
+ "react": "19.0.0-rc-c3cdbec0a7-20240708",
81
+ "react-dom": "19.0.0-rc-c3cdbec0a7-20240708",
82
82
  "webpack": "^5.59.0"
83
83
  },
84
84
  "dependencies": {