react-server-dom-webpack 19.1.0-canary-cbbe8666-20250213 → 19.1.0-canary-e670e72f-20250214

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.
@@ -525,39 +525,39 @@ function getThenableStateAfterSuspending() {
525
525
  return state;
526
526
  }
527
527
  var HooksDispatcher = {
528
- useMemo: function (nextCreate) {
529
- return nextCreate();
530
- },
528
+ readContext: unsupportedContext,
529
+ use: use,
531
530
  useCallback: function (callback) {
532
531
  return callback;
533
532
  },
534
- useDebugValue: function () {},
535
- useDeferredValue: unsupportedHook,
536
- useTransition: unsupportedHook,
537
- readContext: unsupportedContext,
538
533
  useContext: unsupportedContext,
534
+ useEffect: unsupportedHook,
535
+ useImperativeHandle: unsupportedHook,
536
+ useLayoutEffect: unsupportedHook,
537
+ useInsertionEffect: unsupportedHook,
538
+ useMemo: function (nextCreate) {
539
+ return nextCreate();
540
+ },
539
541
  useReducer: unsupportedHook,
540
542
  useRef: unsupportedHook,
541
543
  useState: unsupportedHook,
542
- useInsertionEffect: unsupportedHook,
543
- useLayoutEffect: unsupportedHook,
544
- useImperativeHandle: unsupportedHook,
545
- useEffect: unsupportedHook,
544
+ useDebugValue: function () {},
545
+ useDeferredValue: unsupportedHook,
546
+ useTransition: unsupportedHook,
547
+ useSyncExternalStore: unsupportedHook,
546
548
  useId: useId,
547
549
  useHostTransitionStatus: unsupportedHook,
548
- useOptimistic: unsupportedHook,
549
550
  useFormState: unsupportedHook,
550
551
  useActionState: unsupportedHook,
551
- useSyncExternalStore: unsupportedHook,
552
- useCacheRefresh: function () {
553
- return unsupportedRefresh;
554
- },
552
+ useOptimistic: unsupportedHook,
555
553
  useMemoCache: function (size) {
556
554
  for (var data = Array(size), i = 0; i < size; i++)
557
555
  data[i] = REACT_MEMO_CACHE_SENTINEL;
558
556
  return data;
559
557
  },
560
- use: use
558
+ useCacheRefresh: function () {
559
+ return unsupportedRefresh;
560
+ }
561
561
  };
562
562
  function unsupportedHook() {
563
563
  throw Error("This Hook is not supported in Server Components.");
@@ -2773,12 +2773,12 @@ exports.decodeReplyFromBusboy = function (busboyStream, webpackMap, options) {
2773
2773
  "React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it."
2774
2774
  );
2775
2775
  pendingFiles++;
2776
- var JSCompiler_object_inline_chunks_214 = [];
2776
+ var JSCompiler_object_inline_chunks_227 = [];
2777
2777
  value.on("data", function (chunk) {
2778
- JSCompiler_object_inline_chunks_214.push(chunk);
2778
+ JSCompiler_object_inline_chunks_227.push(chunk);
2779
2779
  });
2780
2780
  value.on("end", function () {
2781
- var blob = new Blob(JSCompiler_object_inline_chunks_214, {
2781
+ var blob = new Blob(JSCompiler_object_inline_chunks_227, {
2782
2782
  type: mimeType
2783
2783
  });
2784
2784
  response._formData.append(name, blob, filename);