@vitejs/plugin-rsc 0.5.16 → 0.5.18

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 (55) hide show
  1. package/dist/browser.d.ts +2 -2
  2. package/dist/{cjs-DH9Oa3zy.js → cjs-D2v1gYgq.js} +33 -24
  3. package/dist/core/browser.d.ts +1 -1
  4. package/dist/core/browser.js +2 -2
  5. package/dist/core/plugin.js +1 -1
  6. package/dist/core/rsc.d.ts +1 -1
  7. package/dist/core/rsc.js +1 -1
  8. package/dist/core/ssr.d.ts +1 -1
  9. package/dist/core/ssr.js +2 -2
  10. package/dist/{dist-DZUJDIM2.js → dist-yW9-EeG1.js} +1 -1
  11. package/dist/index-CLmWsR1c.d.ts +584 -0
  12. package/dist/index.d.ts +2 -2
  13. package/dist/index.js +4 -4
  14. package/dist/{picocolors-kt7Y18A3.js → picocolors-BRyoHAlU.js} +1 -1
  15. package/dist/plugin-BGmSmdwL.js +27 -0
  16. package/dist/{plugin-DBWiu_Dx.js → plugin-Cp12dr0Z.js} +408 -329
  17. package/dist/{plugin-V6VFxi_0.d.ts → plugin-K7i9F4Fd.d.ts} +6 -12
  18. package/dist/plugin.d.ts +2 -2
  19. package/dist/plugin.js +4 -4
  20. package/dist/plugins/cjs.js +1 -1
  21. package/dist/react/browser.d.ts +2 -2
  22. package/dist/react/rsc.js +1 -1
  23. package/dist/{rsc-BCFg12vs.js → rsc-Bhp6O2qz.js} +3 -3
  24. package/dist/rsc.d.ts +2 -2
  25. package/dist/rsc.js +2 -2
  26. package/dist/ssr.d.ts +2 -3
  27. package/dist/ssr.js +1 -1
  28. package/dist/transforms/index.d.ts +1 -1
  29. package/dist/transforms/index.js +1 -1
  30. package/dist/{transforms-D4jDIHgD.js → transforms-B2EJTNXG.js} +2 -2
  31. package/dist/utils/encryption-runtime.js +3 -3
  32. package/dist/utils/rpc.js +1 -1
  33. package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.browser.development.js +129 -110
  34. package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.browser.production.js +67 -55
  35. package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.edge.development.js +127 -108
  36. package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.edge.production.js +67 -55
  37. package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.development.js +127 -108
  38. package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.production.js +67 -55
  39. package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.browser.development.js +625 -351
  40. package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.browser.production.js +598 -314
  41. package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.edge.development.js +628 -352
  42. package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.edge.production.js +601 -315
  43. package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.node.development.js +634 -356
  44. package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.node.production.js +607 -319
  45. package/dist/vendor/react-server-dom/package.json +3 -3
  46. package/package.json +10 -8
  47. package/dist/index-DJ0AhQ9B.d.ts +0 -90
  48. package/dist/plugin-B1AJWrMi.js +0 -24
  49. /package/dist/{browser-BmyjVnfA.d.ts → browser-s-WcB8A7.d.ts} +0 -0
  50. /package/dist/{chunk-BFhhoFQb.js → chunk-Dj_d7TT4.js} +0 -0
  51. /package/dist/{encryption-utils-BPYvebX4.js → encryption-utils-DdqSKS_O.js} +0 -0
  52. /package/dist/{index-DqoQPvhP.d.ts → index-now_lP2V.d.ts} +0 -0
  53. /package/dist/{rpc-DbBe389F.js → rpc-EIuXyQpO.js} +0 -0
  54. /package/dist/{shared-Chot7h9j.js → shared-CGK4coF3.js} +0 -0
  55. /package/dist/{shared-DEpnONZf.js → shared-rtJPs0Yj.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { s as TransformWrapExportFilter } from "./index-DJ0AhQ9B.js";
1
+ import { s as TransformWrapExportFilter } from "./index-CLmWsR1c.js";
2
2
  import MagicString from "magic-string";
3
3
  import { Plugin, ResolvedConfig, Rollup, ViteDevServer, parseAstAsync } from "vite";
4
4
 
@@ -50,13 +50,11 @@ type RscPluginOptions = {
50
50
  /**
51
51
  * shorthand for configuring `environments.(name).build.rollupOptions.input.index`
52
52
  */
53
- entries?: Partial<Record<"client" | "ssr" | "rsc", string>>;
54
- /** @default { enviornmentName: "rsc", entryName: "index" } */
53
+ entries?: Partial<Record<"client" | "ssr" | "rsc", string>>; /** @default { enviornmentName: "rsc", entryName: "index" } */
55
54
  serverHandler?: {
56
55
  environmentName: string;
57
56
  entryName: string;
58
- } | false;
59
- /** @default false */
57
+ } | false; /** @default false */
60
58
  loadModuleDevProxy?: boolean;
61
59
  rscCssTransform?: false | {
62
60
  filter?: (id: string) => boolean;
@@ -79,8 +77,7 @@ type RscPluginOptions = {
79
77
  * for example, to obtain a key through environment variable during runtime.
80
78
  * cf. https://nextjs.org/docs/app/guides/data-security#overwriting-encryption-keys-advanced
81
79
  */
82
- defineEncryptionKey?: string;
83
- /** Escape hatch for Waku's `allowServer` */
80
+ defineEncryptionKey?: string; /** Escape hatch for Waku's `allowServer` */
84
81
  keepUseCientProxy?: boolean;
85
82
  /**
86
83
  * Enable build-time validation of 'client-only' and 'server-only' imports
@@ -118,11 +115,8 @@ type RscPluginOptions = {
118
115
  * By default, client chunks are grouped by `meta.serverChunk`.
119
116
  */
120
117
  clientChunks?: (meta: {
121
- /** client reference module id */
122
- id: string;
123
- /** normalized client reference module id */
124
- normalizedId: string;
125
- /** server chunk which includes a corresponding client reference proxy module */
118
+ /** client reference module id */id: string; /** normalized client reference module id */
119
+ normalizedId: string; /** server chunk which includes a corresponding client reference proxy module */
126
120
  serverChunk: string;
127
121
  }) => string | undefined;
128
122
  /**
package/dist/plugin.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { a as ResolvedAssetsManifest, c as getPluginApi, d as vitePluginRscMinimal, i as ResolvedAssetDeps, l as transformRscCssExport, n as AssetsManifest, o as RscPluginManager, r as PluginApi, s as RscPluginOptions, t as AssetDeps, u as vitePluginRsc } from "./plugin-V6VFxi_0.js";
2
- import "./index-DJ0AhQ9B.js";
1
+ import { a as ResolvedAssetsManifest, c as getPluginApi, d as vitePluginRscMinimal, i as ResolvedAssetDeps, l as transformRscCssExport, n as AssetsManifest, o as RscPluginManager, r as PluginApi, s as RscPluginOptions, t as AssetDeps, u as vitePluginRsc } from "./plugin-K7i9F4Fd.js";
2
+ import "./index-CLmWsR1c.js";
3
3
  export { AssetDeps, AssetsManifest, PluginApi, ResolvedAssetDeps, ResolvedAssetsManifest, RscPluginManager, RscPluginOptions, vitePluginRsc as default, getPluginApi, transformRscCssExport, vitePluginRscMinimal };
package/dist/plugin.js CHANGED
@@ -1,6 +1,6 @@
1
- import "./cjs-DH9Oa3zy.js";
2
- import { i as vitePluginRscMinimal, n as transformRscCssExport, r as vitePluginRsc, t as getPluginApi } from "./plugin-DBWiu_Dx.js";
3
- import "./transforms-D4jDIHgD.js";
4
- import "./rpc-DbBe389F.js";
1
+ import "./cjs-D2v1gYgq.js";
2
+ import { i as vitePluginRscMinimal, n as transformRscCssExport, r as vitePluginRsc, t as getPluginApi } from "./plugin-Cp12dr0Z.js";
3
+ import "./transforms-B2EJTNXG.js";
4
+ import "./rpc-EIuXyQpO.js";
5
5
 
6
6
  export { vitePluginRsc as default, getPluginApi, transformRscCssExport, vitePluginRscMinimal };
@@ -1,3 +1,3 @@
1
- import { t as cjsModuleRunnerPlugin } from "../cjs-DH9Oa3zy.js";
1
+ import { t as cjsModuleRunnerPlugin } from "../cjs-D2v1gYgq.js";
2
2
 
3
3
  export { cjsModuleRunnerPlugin };
@@ -1,5 +1,5 @@
1
- import { n as CallServerCallback } from "../index-DqoQPvhP.js";
2
- import { t as setRequireModule } from "../browser-BmyjVnfA.js";
1
+ import { n as CallServerCallback } from "../index-now_lP2V.js";
2
+ import { t as setRequireModule } from "../browser-s-WcB8A7.js";
3
3
 
4
4
  //#region src/react/browser.d.ts
5
5
  declare function createFromReadableStream<T>(stream: ReadableStream<Uint8Array>, options?: object): Promise<T>;
package/dist/react/rsc.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as setRequireModule, i as loadServerAction, n as createServerDecodeClientManifest, r as createServerManifest, t as createClientManifest } from "../rsc-BCFg12vs.js";
1
+ import { a as setRequireModule, i as loadServerAction, n as createServerDecodeClientManifest, r as createServerManifest, t as createClientManifest } from "../rsc-Bhp6O2qz.js";
2
2
  import * as ReactClient from "@vitejs/plugin-rsc/vendor/react-server-dom/client.edge";
3
3
  import * as ReactServer from "@vitejs/plugin-rsc/vendor/react-server-dom/server.edge";
4
4
 
@@ -1,5 +1,5 @@
1
- import { i as tinyassert, n as memoize } from "./dist-DZUJDIM2.js";
2
- import { a as setInternalRequire, i as removeReferenceCacheTag, n as SERVER_REFERENCE_PREFIX, r as createReferenceCacheTag, t as SERVER_DECODE_CLIENT_PREFIX } from "./shared-DEpnONZf.js";
1
+ import { i as tinyassert, n as memoize } from "./dist-yW9-EeG1.js";
2
+ import { a as setInternalRequire, i as removeReferenceCacheTag, n as SERVER_REFERENCE_PREFIX, r as createReferenceCacheTag, t as SERVER_DECODE_CLIENT_PREFIX } from "./shared-rtJPs0Yj.js";
3
3
  import * as ReactServer from "@vitejs/plugin-rsc/vendor/react-server-dom/server.edge";
4
4
 
5
5
  //#region src/core/rsc.ts
@@ -52,7 +52,7 @@ function createServerManifest() {
52
52
  }
53
53
  function createServerDecodeClientManifest() {
54
54
  return new Proxy({}, { get(_target, id) {
55
- return new Proxy({}, { get(_target$1, name) {
55
+ return new Proxy({}, { get(_target, name) {
56
56
  return {
57
57
  id: SERVER_REFERENCE_PREFIX + SERVER_DECODE_CLIENT_PREFIX + id,
58
58
  name,
package/dist/rsc.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createClientManifest, createServerManifest, loadServerAction, setRequireModule } from "./core/rsc.js";
2
- import { i as ResolvedAssetDeps } from "./plugin-V6VFxi_0.js";
3
- import "./index-DJ0AhQ9B.js";
2
+ import { i as ResolvedAssetDeps } from "./plugin-K7i9F4Fd.js";
3
+ import "./index-CLmWsR1c.js";
4
4
  import { createClientTemporaryReferenceSet, createFromReadableStream, createTemporaryReferenceSet, decodeAction, decodeFormState, decodeReply, encodeReply, registerClientReference, registerServerReference } from "./react/rsc.js";
5
5
  import { decryptActionBoundArgs, encryptActionBoundArgs } from "./utils/encryption-runtime.js";
6
6
 
package/dist/rsc.js CHANGED
@@ -1,5 +1,5 @@
1
- import { a as toReferenceValidationVirtual } from "./shared-Chot7h9j.js";
2
- import { a as setRequireModule, i as loadServerAction, r as createServerManifest, t as createClientManifest } from "./rsc-BCFg12vs.js";
1
+ import { a as toReferenceValidationVirtual } from "./shared-CGK4coF3.js";
2
+ import { a as setRequireModule, i as loadServerAction, r as createServerManifest, t as createClientManifest } from "./rsc-Bhp6O2qz.js";
3
3
  import { createClientTemporaryReferenceSet, createFromReadableStream, createTemporaryReferenceSet, decodeAction, decodeFormState, decodeReply, encodeReply, registerClientReference, registerServerReference, renderToReadableStream as renderToReadableStream$1 } from "./react/rsc.js";
4
4
  import { decryptActionBoundArgs, encryptActionBoundArgs } from "./utils/encryption-runtime.js";
5
5
  import assetsManifest from "virtual:vite-rsc/assets-manifest";
package/dist/ssr.d.ts CHANGED
@@ -1,10 +1,9 @@
1
1
  import { createServerConsumerManifest, setRequireModule } from "./core/ssr.js";
2
- import { i as ResolvedAssetDeps } from "./plugin-V6VFxi_0.js";
3
- import "./index-DJ0AhQ9B.js";
2
+ import { i as ResolvedAssetDeps } from "./plugin-K7i9F4Fd.js";
3
+ import "./index-CLmWsR1c.js";
4
4
  import { callServer, createFromReadableStream, createServerReference, findSourceMapURL } from "./react/ssr.js";
5
5
 
6
6
  //#region src/ssr.d.ts
7
-
8
7
  /**
9
8
  * Callback type for client reference dependency notifications.
10
9
  * Called during SSR when a client component's dependencies are loaded.
package/dist/ssr.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as toReferenceValidationVirtual, i as toCssVirtual } from "./shared-Chot7h9j.js";
1
+ import { a as toReferenceValidationVirtual, i as toCssVirtual } from "./shared-CGK4coF3.js";
2
2
  import { createServerConsumerManifest, setRequireModule } from "./core/ssr.js";
3
3
  import { callServer, createFromReadableStream, createServerReference, findSourceMapURL } from "./react/ssr.js";
4
4
  import * as clientReferences from "virtual:vite-rsc/client-references";
@@ -1,2 +1,2 @@
1
- import { a as transformDirectiveProxyExport, c as TransformWrapExportOptions, d as transformHoistInlineDirective, i as TransformProxyExportOptions, l as transformWrapExport, n as getExportNames, o as transformProxyExport, r as hasDirective, s as TransformWrapExportFilter, t as transformServerActionServer, u as findDirectives } from "../index-DJ0AhQ9B.js";
1
+ import { a as transformDirectiveProxyExport, c as TransformWrapExportOptions, d as transformHoistInlineDirective, i as TransformProxyExportOptions, l as transformWrapExport, n as getExportNames, o as transformProxyExport, r as hasDirective, s as TransformWrapExportFilter, t as transformServerActionServer, u as findDirectives } from "../index-CLmWsR1c.js";
2
2
  export { TransformProxyExportOptions, TransformWrapExportFilter, TransformWrapExportOptions, findDirectives, getExportNames, hasDirective, transformDirectiveProxyExport, transformHoistInlineDirective, transformProxyExport, transformServerActionServer, transformWrapExport };
@@ -1,3 +1,3 @@
1
- import { a as hasDirective, c as transformHoistInlineDirective, i as getExportNames, n as transformDirectiveProxyExport, o as transformWrapExport, r as transformProxyExport, s as findDirectives, t as transformServerActionServer } from "../transforms-D4jDIHgD.js";
1
+ import { a as hasDirective, c as transformHoistInlineDirective, i as getExportNames, n as transformDirectiveProxyExport, o as transformWrapExport, r as transformProxyExport, s as findDirectives, t as transformServerActionServer } from "../transforms-B2EJTNXG.js";
2
2
 
3
3
  export { findDirectives, getExportNames, hasDirective, transformDirectiveProxyExport, transformHoistInlineDirective, transformProxyExport, transformServerActionServer, transformWrapExport };
@@ -1,4 +1,4 @@
1
- import { i as tinyassert } from "./dist-DZUJDIM2.js";
1
+ import { i as tinyassert } from "./dist-yW9-EeG1.js";
2
2
  import MagicString from "magic-string";
3
3
  import { walk } from "estree-walker";
4
4
  import { analyze, extract_names } from "periscopic";
@@ -58,7 +58,7 @@ function transformHoistInlineDirective(input, ast, { runtime, rejectNonAsyncFunc
58
58
  names
59
59
  };
60
60
  }
61
- const exactRegex = (s) => /* @__PURE__ */ new RegExp("^" + s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&") + "$");
61
+ const exactRegex = (s) => new RegExp("^" + s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&") + "$");
62
62
  function matchDirective(body, directive) {
63
63
  for (const stmt of body) if (stmt.type === "ExpressionStatement" && stmt.expression.type === "Literal" && typeof stmt.expression.value === "string") {
64
64
  const match = stmt.expression.value.match(directive);
@@ -1,6 +1,6 @@
1
- import { r as once } from "../dist-DZUJDIM2.js";
2
- import { a as fromBase64, i as encryptBuffer, n as concatArrayStream, r as decryptBuffer, t as arrayToStream } from "../encryption-utils-BPYvebX4.js";
3
- import "../rsc-BCFg12vs.js";
1
+ import { r as once } from "../dist-yW9-EeG1.js";
2
+ import { a as fromBase64, i as encryptBuffer, n as concatArrayStream, r as decryptBuffer, t as arrayToStream } from "../encryption-utils-DdqSKS_O.js";
3
+ import "../rsc-Bhp6O2qz.js";
4
4
  import { createFromReadableStream, renderToReadableStream } from "../react/rsc.js";
5
5
  import encryptionKeySource from "virtual:vite-rsc/encryption-key";
6
6
 
package/dist/utils/rpc.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as createRpcServer, t as createRpcClient } from "../rpc-DbBe389F.js";
1
+ import { n as createRpcServer, t as createRpcClient } from "../rpc-EIuXyQpO.js";
2
2
 
3
3
  export { createRpcClient, createRpcServer };
@@ -424,6 +424,11 @@
424
424
  return "$" + (iterable ? "x" : "X") + streamId.toString(16);
425
425
  }
426
426
  function resolveToJSON(key, value) {
427
+ "__proto__" === key &&
428
+ console.error(
429
+ "Expected not to serialize an object with own property `__proto__`. When parsed this property will be omitted.%s",
430
+ describeObjectForErrorMessage(this, key)
431
+ );
427
432
  var originalValue = this[key];
428
433
  "object" !== typeof originalValue ||
429
434
  originalValue === value ||
@@ -668,17 +673,20 @@
668
673
  if ("undefined" === typeof value) return "$undefined";
669
674
  if ("function" === typeof value) {
670
675
  parentReference = knownServerReferences.get(value);
671
- if (void 0 !== parentReference)
672
- return (
673
- (key = JSON.stringify(
674
- { id: parentReference.id, bound: parentReference.bound },
675
- resolveToJSON
676
- )),
677
- null === formData && (formData = new FormData()),
678
- (parentReference = nextPartId++),
679
- formData.set(formFieldPrefix + parentReference, key),
680
- "$h" + parentReference.toString(16)
676
+ if (void 0 !== parentReference) {
677
+ key = writtenObjects.get(value);
678
+ if (void 0 !== key) return key;
679
+ key = JSON.stringify(
680
+ { id: parentReference.id, bound: parentReference.bound },
681
+ resolveToJSON
681
682
  );
683
+ null === formData && (formData = new FormData());
684
+ parentReference = nextPartId++;
685
+ formData.set(formFieldPrefix + parentReference, key);
686
+ key = "$h" + parentReference.toString(16);
687
+ writtenObjects.set(value, key);
688
+ return key;
689
+ }
682
690
  if (
683
691
  void 0 !== temporaryReferences &&
684
692
  -1 === key.indexOf(":") &&
@@ -1960,7 +1968,14 @@
1960
1968
  }
1961
1969
  }
1962
1970
  }
1963
- value = value[path[i]];
1971
+ var name = path[i];
1972
+ if (
1973
+ "object" === typeof value &&
1974
+ null !== value &&
1975
+ hasOwnProperty.call(value, name)
1976
+ )
1977
+ value = value[name];
1978
+ else throw Error("Invalid reference.");
1964
1979
  }
1965
1980
  for (
1966
1981
  ;
@@ -1988,7 +2003,7 @@
1988
2003
  }
1989
2004
  }
1990
2005
  var mappedValue = map(response, value, parentObject, key);
1991
- parentObject[key] = mappedValue;
2006
+ "__proto__" !== key && (parentObject[key] = mappedValue);
1992
2007
  "" === key && null === handler.value && (handler.value = mappedValue);
1993
2008
  if (
1994
2009
  parentObject[0] === REACT_ELEMENT_TYPE &&
@@ -2152,7 +2167,7 @@
2152
2167
  metaData.id,
2153
2168
  metaData.bound
2154
2169
  );
2155
- parentObject[key] = resolvedValue;
2170
+ "__proto__" !== key && (parentObject[key] = resolvedValue);
2156
2171
  "" === key &&
2157
2172
  null === handler.value &&
2158
2173
  (handler.value = resolvedValue);
@@ -2405,20 +2420,21 @@
2405
2420
  Object.setPrototypeOf(parentObject, model.prototype);
2406
2421
  }
2407
2422
  function defineLazyGetter(response, chunk, parentObject, key) {
2408
- Object.defineProperty(parentObject, key, {
2409
- get: function () {
2410
- "resolved_model" === chunk.status && initializeModelChunk(chunk);
2411
- switch (chunk.status) {
2412
- case "fulfilled":
2413
- return chunk.value;
2414
- case "rejected":
2415
- throw chunk.reason;
2416
- }
2417
- return "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
2418
- },
2419
- enumerable: !0,
2420
- configurable: !1
2421
- });
2423
+ "__proto__" !== key &&
2424
+ Object.defineProperty(parentObject, key, {
2425
+ get: function () {
2426
+ "resolved_model" === chunk.status && initializeModelChunk(chunk);
2427
+ switch (chunk.status) {
2428
+ case "fulfilled":
2429
+ return chunk.value;
2430
+ case "rejected":
2431
+ throw chunk.reason;
2432
+ }
2433
+ return "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
2434
+ },
2435
+ enumerable: !0,
2436
+ configurable: !1
2437
+ });
2422
2438
  return null;
2423
2439
  }
2424
2440
  function extractIterator(response, model) {
@@ -2622,13 +2638,14 @@
2622
2638
  ? ref.value
2623
2639
  : defineLazyGetter(response, ref, parentObject, key);
2624
2640
  }
2625
- Object.defineProperty(parentObject, key, {
2626
- get: function () {
2627
- return "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
2628
- },
2629
- enumerable: !0,
2630
- configurable: !1
2631
- });
2641
+ "__proto__" !== key &&
2642
+ Object.defineProperty(parentObject, key, {
2643
+ get: function () {
2644
+ return "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
2645
+ },
2646
+ enumerable: !0,
2647
+ configurable: !1
2648
+ });
2632
2649
  return null;
2633
2650
  default:
2634
2651
  return (
@@ -4410,83 +4427,85 @@
4410
4427
  }
4411
4428
  function createFromJSONCallback(response) {
4412
4429
  return function (key, value) {
4413
- if ("string" === typeof value)
4414
- return parseModelString(response, this, key, value);
4415
- if ("object" === typeof value && null !== value) {
4416
- if (value[0] === REACT_ELEMENT_TYPE)
4417
- b: {
4418
- var owner = value[4],
4419
- stack = value[5];
4420
- key = value[6];
4421
- value = {
4422
- $$typeof: REACT_ELEMENT_TYPE,
4423
- type: value[1],
4424
- key: value[2],
4425
- props: value[3],
4426
- _owner: void 0 === owner ? null : owner
4427
- };
4428
- Object.defineProperty(value, "ref", {
4429
- enumerable: !1,
4430
- get: nullRefGetter
4431
- });
4432
- value._store = {};
4433
- Object.defineProperty(value._store, "validated", {
4434
- configurable: !1,
4435
- enumerable: !1,
4436
- writable: !0,
4437
- value: key
4438
- });
4439
- Object.defineProperty(value, "_debugInfo", {
4440
- configurable: !1,
4441
- enumerable: !1,
4442
- writable: !0,
4443
- value: null
4444
- });
4445
- Object.defineProperty(value, "_debugStack", {
4446
- configurable: !1,
4447
- enumerable: !1,
4448
- writable: !0,
4449
- value: void 0 === stack ? null : stack
4450
- });
4451
- Object.defineProperty(value, "_debugTask", {
4452
- configurable: !1,
4453
- enumerable: !1,
4454
- writable: !0,
4455
- value: null
4456
- });
4457
- if (null !== initializingHandler) {
4458
- owner = initializingHandler;
4459
- initializingHandler = owner.parent;
4460
- if (owner.errored) {
4461
- stack = new ReactPromise("rejected", null, owner.reason);
4462
- initializeElement(response, value, null);
4463
- owner = {
4464
- name: getComponentNameFromType(value.type) || "",
4465
- owner: value._owner
4466
- };
4467
- owner.debugStack = value._debugStack;
4468
- supportsCreateTask && (owner.debugTask = value._debugTask);
4469
- stack._debugInfo = [owner];
4470
- key = createLazyChunkWrapper(stack, key);
4471
- break b;
4472
- }
4473
- if (0 < owner.deps) {
4474
- stack = new ReactPromise("blocked", null, null);
4475
- owner.value = value;
4476
- owner.chunk = stack;
4477
- key = createLazyChunkWrapper(stack, key);
4478
- value = initializeElement.bind(null, response, value, key);
4479
- stack.then(value, value);
4480
- break b;
4430
+ if ("__proto__" !== key) {
4431
+ if ("string" === typeof value)
4432
+ return parseModelString(response, this, key, value);
4433
+ if ("object" === typeof value && null !== value) {
4434
+ if (value[0] === REACT_ELEMENT_TYPE)
4435
+ b: {
4436
+ var owner = value[4],
4437
+ stack = value[5];
4438
+ key = value[6];
4439
+ value = {
4440
+ $$typeof: REACT_ELEMENT_TYPE,
4441
+ type: value[1],
4442
+ key: value[2],
4443
+ props: value[3],
4444
+ _owner: void 0 === owner ? null : owner
4445
+ };
4446
+ Object.defineProperty(value, "ref", {
4447
+ enumerable: !1,
4448
+ get: nullRefGetter
4449
+ });
4450
+ value._store = {};
4451
+ Object.defineProperty(value._store, "validated", {
4452
+ configurable: !1,
4453
+ enumerable: !1,
4454
+ writable: !0,
4455
+ value: key
4456
+ });
4457
+ Object.defineProperty(value, "_debugInfo", {
4458
+ configurable: !1,
4459
+ enumerable: !1,
4460
+ writable: !0,
4461
+ value: null
4462
+ });
4463
+ Object.defineProperty(value, "_debugStack", {
4464
+ configurable: !1,
4465
+ enumerable: !1,
4466
+ writable: !0,
4467
+ value: void 0 === stack ? null : stack
4468
+ });
4469
+ Object.defineProperty(value, "_debugTask", {
4470
+ configurable: !1,
4471
+ enumerable: !1,
4472
+ writable: !0,
4473
+ value: null
4474
+ });
4475
+ if (null !== initializingHandler) {
4476
+ owner = initializingHandler;
4477
+ initializingHandler = owner.parent;
4478
+ if (owner.errored) {
4479
+ stack = new ReactPromise("rejected", null, owner.reason);
4480
+ initializeElement(response, value, null);
4481
+ owner = {
4482
+ name: getComponentNameFromType(value.type) || "",
4483
+ owner: value._owner
4484
+ };
4485
+ owner.debugStack = value._debugStack;
4486
+ supportsCreateTask && (owner.debugTask = value._debugTask);
4487
+ stack._debugInfo = [owner];
4488
+ key = createLazyChunkWrapper(stack, key);
4489
+ break b;
4490
+ }
4491
+ if (0 < owner.deps) {
4492
+ stack = new ReactPromise("blocked", null, null);
4493
+ owner.value = value;
4494
+ owner.chunk = stack;
4495
+ key = createLazyChunkWrapper(stack, key);
4496
+ value = initializeElement.bind(null, response, value, key);
4497
+ stack.then(value, value);
4498
+ break b;
4499
+ }
4481
4500
  }
4501
+ initializeElement(response, value, null);
4502
+ key = value;
4482
4503
  }
4483
- initializeElement(response, value, null);
4484
- key = value;
4485
- }
4486
- else key = value;
4487
- return key;
4504
+ else key = value;
4505
+ return key;
4506
+ }
4507
+ return value;
4488
4508
  }
4489
- return value;
4490
4509
  };
4491
4510
  }
4492
4511
  function close(weakResponse) {
@@ -4882,10 +4901,10 @@
4882
4901
  return hook.checkDCE ? !0 : !1;
4883
4902
  })({
4884
4903
  bundleType: 1,
4885
- version: "19.2.3",
4904
+ version: "19.2.4",
4886
4905
  rendererPackageName: "react-server-dom-webpack",
4887
4906
  currentDispatcherRef: ReactSharedInternals,
4888
- reconcilerVersion: "19.2.3",
4907
+ reconcilerVersion: "19.2.4",
4889
4908
  getCurrentComponentInfo: function () {
4890
4909
  return currentOwnerInDEV;
4891
4910
  }