react-server-dom-webpack 19.1.0-canary-9463d51e-20241219 → 19.1.0-canary-de82912e-20241220

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.
@@ -2475,10 +2475,10 @@
2475
2475
  return hook.checkDCE ? !0 : !1;
2476
2476
  })({
2477
2477
  bundleType: 1,
2478
- version: "19.1.0-canary-9463d51e-20241219",
2478
+ version: "19.1.0-canary-de82912e-20241220",
2479
2479
  rendererPackageName: "react-server-dom-webpack",
2480
2480
  currentDispatcherRef: ReactSharedInternals,
2481
- reconcilerVersion: "19.1.0-canary-9463d51e-20241219",
2481
+ reconcilerVersion: "19.1.0-canary-de82912e-20241220",
2482
2482
  getCurrentComponentInfo: function () {
2483
2483
  return currentOwnerInDEV;
2484
2484
  }
@@ -12,6 +12,14 @@
12
12
  "production" !== process.env.NODE_ENV &&
13
13
  (function () {
14
14
  function voidHandler() {}
15
+ function getIteratorFn(maybeIterable) {
16
+ if (null === maybeIterable || "object" !== typeof maybeIterable)
17
+ return null;
18
+ maybeIterable =
19
+ (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
20
+ maybeIterable["@@iterator"];
21
+ return "function" === typeof maybeIterable ? maybeIterable : null;
22
+ }
15
23
  function _defineProperty(obj, key, value) {
16
24
  key in obj
17
25
  ? Object.defineProperty(obj, key, {
@@ -235,14 +243,6 @@
235
243
  temporaryReferences.set(reference, id);
236
244
  return reference;
237
245
  }
238
- function getIteratorFn(maybeIterable) {
239
- if (null === maybeIterable || "object" !== typeof maybeIterable)
240
- return null;
241
- maybeIterable =
242
- (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
243
- maybeIterable["@@iterator"];
244
- return "function" === typeof maybeIterable ? maybeIterable : null;
245
- }
246
246
  function noop$1() {}
247
247
  function trackUsedThenable(thenableState, thenable, index) {
248
248
  index = thenableState[index];
@@ -3193,6 +3193,19 @@
3193
3193
  }
3194
3194
  var ReactDOM = require("react-dom"),
3195
3195
  React = require("react"),
3196
+ REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
3197
+ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
3198
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
3199
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
3200
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
3201
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
3202
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
3203
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
3204
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
3205
+ REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel");
3206
+ Symbol.for("react.postpone");
3207
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
3208
+ ASYNC_ITERATOR = Symbol.asyncIterator,
3196
3209
  LocalPromise = Promise,
3197
3210
  scheduleMicrotask =
3198
3211
  "function" === typeof queueMicrotask
@@ -3448,19 +3461,6 @@
3448
3461
  );
3449
3462
  }
3450
3463
  },
3451
- REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
3452
- REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
3453
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
3454
- REACT_CONTEXT_TYPE = Symbol.for("react.context"),
3455
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
3456
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
3457
- REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
3458
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
3459
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
3460
- REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel");
3461
- Symbol.for("react.postpone");
3462
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
3463
- ASYNC_ITERATOR = Symbol.asyncIterator,
3464
3464
  SuspenseException = Error(
3465
3465
  "Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."
3466
3466
  ),
@@ -3719,6 +3719,44 @@
3719
3719
  close(body);
3720
3720
  return webpackMap;
3721
3721
  };
3722
+ exports.decodeReplyFromAsyncIterable = function (
3723
+ iterable,
3724
+ webpackMap,
3725
+ options
3726
+ ) {
3727
+ function progress(entry) {
3728
+ if (entry.done) close(response$jscomp$0);
3729
+ else {
3730
+ entry = entry.value;
3731
+ var name = entry[0];
3732
+ entry = entry[1];
3733
+ if ("string" === typeof entry) {
3734
+ var response = response$jscomp$0;
3735
+ response._formData.append(name, entry);
3736
+ var prefix = response._prefix;
3737
+ name.startsWith(prefix) &&
3738
+ ((response = response._chunks),
3739
+ (name = +name.slice(prefix.length)),
3740
+ (prefix = response.get(name)) &&
3741
+ resolveModelChunk(prefix, entry, name));
3742
+ } else response$jscomp$0._formData.append(name, entry);
3743
+ iterator.next().then(progress, error);
3744
+ }
3745
+ }
3746
+ function error(reason) {
3747
+ reportGlobalError(response$jscomp$0, reason);
3748
+ "function" === typeof iterator.throw &&
3749
+ iterator.throw(reason).then(error, error);
3750
+ }
3751
+ var iterator = iterable[ASYNC_ITERATOR](),
3752
+ response$jscomp$0 = createResponse(
3753
+ webpackMap,
3754
+ "",
3755
+ options ? options.temporaryReferences : void 0
3756
+ );
3757
+ iterator.next().then(progress, error);
3758
+ return getChunk(response$jscomp$0, 0);
3759
+ };
3722
3760
  exports.registerClientReference = function (
3723
3761
  proxyImplementation,
3724
3762
  id,
@@ -10,7 +10,27 @@
10
10
 
11
11
  "use strict";
12
12
  var ReactDOM = require("react-dom"),
13
- React = require("react");
13
+ React = require("react"),
14
+ REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
15
+ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
16
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
17
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
18
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
19
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
20
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
21
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
22
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
23
+ REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel");
24
+ Symbol.for("react.postpone");
25
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
26
+ function getIteratorFn(maybeIterable) {
27
+ if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
28
+ maybeIterable =
29
+ (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
30
+ maybeIterable["@@iterator"];
31
+ return "function" === typeof maybeIterable ? maybeIterable : null;
32
+ }
33
+ var ASYNC_ITERATOR = Symbol.asyncIterator;
14
34
  function handleErrorInNextTick(error) {
15
35
  setTimeout(function () {
16
36
  throw error;
@@ -421,29 +441,9 @@ function createTemporaryReference(temporaryReferences, id) {
421
441
  temporaryReferences.set(reference, id);
422
442
  return reference;
423
443
  }
424
- var REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
425
- REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
426
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
427
- REACT_CONTEXT_TYPE = Symbol.for("react.context"),
428
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
429
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
430
- REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
431
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
432
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
433
- REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel");
434
- Symbol.for("react.postpone");
435
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
436
- function getIteratorFn(maybeIterable) {
437
- if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
438
- maybeIterable =
439
- (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
440
- maybeIterable["@@iterator"];
441
- return "function" === typeof maybeIterable ? maybeIterable : null;
442
- }
443
- var ASYNC_ITERATOR = Symbol.asyncIterator,
444
- SuspenseException = Error(
445
- "Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."
446
- );
444
+ var SuspenseException = Error(
445
+ "Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."
446
+ );
447
447
  function noop$1() {}
448
448
  function trackUsedThenable(thenableState, thenable, index) {
449
449
  index = thenableState[index];
@@ -2695,6 +2695,43 @@ exports.decodeReply = function (body, webpackMap, options) {
2695
2695
  close(body);
2696
2696
  return webpackMap;
2697
2697
  };
2698
+ exports.decodeReplyFromAsyncIterable = function (
2699
+ iterable,
2700
+ webpackMap,
2701
+ options
2702
+ ) {
2703
+ function progress(entry) {
2704
+ if (entry.done) close(response);
2705
+ else {
2706
+ entry = entry.value;
2707
+ var name = entry[0];
2708
+ entry = entry[1];
2709
+ if ("string" === typeof entry) {
2710
+ response._formData.append(name, entry);
2711
+ var prefix = response._prefix;
2712
+ if (name.startsWith(prefix)) {
2713
+ var chunks = response._chunks;
2714
+ name = +name.slice(prefix.length);
2715
+ (chunks = chunks.get(name)) && resolveModelChunk(chunks, entry, name);
2716
+ }
2717
+ } else response._formData.append(name, entry);
2718
+ iterator.next().then(progress, error);
2719
+ }
2720
+ }
2721
+ function error(reason) {
2722
+ reportGlobalError(response, reason);
2723
+ "function" === typeof iterator.throw &&
2724
+ iterator.throw(reason).then(error, error);
2725
+ }
2726
+ var iterator = iterable[ASYNC_ITERATOR](),
2727
+ response = createResponse(
2728
+ webpackMap,
2729
+ "",
2730
+ options ? options.temporaryReferences : void 0
2731
+ );
2732
+ iterator.next().then(progress, error);
2733
+ return getChunk(response, 0);
2734
+ };
2698
2735
  exports.registerClientReference = function (
2699
2736
  proxyImplementation,
2700
2737
  id,
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.1.0-canary-9463d51e-20241219",
4
+ "version": "19.1.0-canary-de82912e-20241220",
5
5
  "keywords": [
6
6
  "react"
7
7
  ],
@@ -99,8 +99,8 @@
99
99
  "node": ">=0.10.0"
100
100
  },
101
101
  "peerDependencies": {
102
- "react": "19.1.0-canary-9463d51e-20241219",
103
- "react-dom": "19.1.0-canary-9463d51e-20241219",
102
+ "react": "19.1.0-canary-de82912e-20241220",
103
+ "react-dom": "19.1.0-canary-de82912e-20241220",
104
104
  "webpack": "^5.59.0"
105
105
  },
106
106
  "dependencies": {
package/server.edge.js CHANGED
@@ -9,6 +9,7 @@ if (process.env.NODE_ENV === 'production') {
9
9
 
10
10
  exports.renderToReadableStream = s.renderToReadableStream;
11
11
  exports.decodeReply = s.decodeReply;
12
+ exports.decodeReplyFromAsyncIterable = s.decodeReplyFromAsyncIterable;
12
13
  exports.decodeAction = s.decodeAction;
13
14
  exports.decodeFormState = s.decodeFormState;
14
15
  exports.registerServerReference = s.registerServerReference;