@vitejs/plugin-rsc 0.5.31 → 0.5.32

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.
@@ -1,5 +1,5 @@
1
1
  import { t as ClientReferenceMetadata } from "./rsc-C3UdJLOW.js";
2
- import { i as ResolvedAssetDeps } from "./plugin-DQCCjJl0.js";
2
+ import { i as ResolvedAssetDeps } from "./plugin-DqLpibhH.js";
3
3
  //#region src/rsc/client-reference.d.ts
4
4
  type OnClientReference = (metadata: ClientReferenceMetadata & {
5
5
  deps: ResolvedAssetDeps;
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { c as getPluginApi, o as RscPluginManager, r as PluginApi, s as RscPluginOptions, u as vitePluginRsc } from "./plugin-DQCCjJl0.js";
1
+ import { c as getPluginApi, o as RscPluginManager, r as PluginApi, s as RscPluginOptions, u as vitePluginRsc } from "./plugin-DqLpibhH.js";
2
2
  export { type PluginApi, type RscPluginManager, type RscPluginOptions, vitePluginRsc as default, getPluginApi };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { r as vitePluginRsc, t as getPluginApi } from "./plugin-DbK8rF7n.js";
1
+ import { r as vitePluginRsc, t as getPluginApi } from "./plugin-C27mwbgw.js";
2
2
  export { vitePluginRsc as default, getPluginApi };
@@ -1,4 +1,4 @@
1
- import { a as __commonJSMin } from "./plugin-DbK8rF7n.js";
1
+ import { a as __commonJSMin } from "./plugin-C27mwbgw.js";
2
2
  //#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
3
3
  var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4
4
  let p = process || {};
@@ -618,6 +618,10 @@ var RscPluginManager = class {
618
618
  clientReferenceMetaMap = {};
619
619
  clientReferenceGroups = {};
620
620
  serverReferences = new ServerReferencesManager(this);
621
+ /** @deprecated Use `serverReferences.metaMap` instead. */
622
+ get serverReferenceMetaMap() {
623
+ return Object.fromEntries(this.serverReferences.metaMap);
624
+ }
621
625
  serverResourcesMetaMap = {};
622
626
  environmentImportMetaMap = {};
623
627
  stabilize() {
@@ -710,7 +714,7 @@ function vitePluginRscMinimal(rscPluginOptions = {}, manager = new RscPluginMana
710
714
  function vitePluginRsc(rscPluginOptions = {}) {
711
715
  const manager = new RscPluginManager();
712
716
  const buildApp = async (builder) => {
713
- const colors = await import("./picocolors-BVMUFdce.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
717
+ const colors = await import("./picocolors-CKiBgsDn.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
714
718
  const logStep = (msg) => {
715
719
  builder.config.logger.info(colors.blue(msg));
716
720
  };
@@ -55,6 +55,8 @@ declare class RscPluginManager {
55
55
  clientReferenceMetaMap: Record<string, ClientReferenceMeta>;
56
56
  clientReferenceGroups: Record<string, ClientReferenceMeta[]>;
57
57
  serverReferences: ServerReferencesManager;
58
+ /** @deprecated Use `serverReferences.metaMap` instead. */
59
+ get serverReferenceMetaMap(): Record<string, ServerReferenceMeta>;
58
60
  serverResourcesMetaMap: Record<string, {
59
61
  key: string;
60
62
  }>;
package/dist/plugin.d.ts CHANGED
@@ -1,2 +1,2 @@
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-DQCCjJl0.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-DqLpibhH.js";
2
2
  export { AssetDeps, AssetsManifest, PluginApi, ResolvedAssetDeps, ResolvedAssetsManifest, type RscPluginManager, RscPluginOptions, vitePluginRsc as default, getPluginApi, transformRscCssExport, vitePluginRscMinimal };
package/dist/plugin.js CHANGED
@@ -1,2 +1,2 @@
1
- import { i as vitePluginRscMinimal, n as transformRscCssExport, r as vitePluginRsc, t as getPluginApi } from "./plugin-DbK8rF7n.js";
1
+ import { i as vitePluginRscMinimal, n as transformRscCssExport, r as vitePluginRsc, t as getPluginApi } from "./plugin-C27mwbgw.js";
2
2
  export { vitePluginRsc as default, getPluginApi, transformRscCssExport, vitePluginRscMinimal };
@@ -1,6 +1,6 @@
1
1
  import { a as createServerManifest, o as loadServerAction, r as createClientManifest, s as setRequireModule } from "../rsc-C3UdJLOW.js";
2
2
  import { a as registerClientReference, i as decodeReply, n as decodeAction, o as registerServerReference, r as decodeFormState, t as createTemporaryReferenceSet } from "../server-ZBjqNTqU.js";
3
- import { t as OnClientReference } from "../client-reference-DR15qkcN.js";
3
+ import { t as OnClientReference } from "../client-reference-Dy7j0iU8.js";
4
4
  //#region src/rsc/server.d.ts
5
5
  declare function renderToReadableStream<T>(data: T, options?: object, extraOptions?: {
6
6
  /**
@@ -1,5 +1,5 @@
1
1
  import { d as RenderToReadableStreamOptions, u as PrerenderResult } from "../index-C5IY2S-e.js";
2
- import { t as OnClientReference } from "../client-reference-DR15qkcN.js";
2
+ import { t as OnClientReference } from "../client-reference-Dy7j0iU8.js";
3
3
  //#region src/rsc/static.d.ts
4
4
  declare function prerender<T>(data: T, options?: RenderToReadableStreamOptions, extraOptions?: {
5
5
  /**
package/dist/ssr.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { s as EncodeFormActionCallback } from "./index-C5IY2S-e.js";
2
2
  import { createServerConsumerManifest, setRequireModule } from "./core/ssr.js";
3
- import { i as ResolvedAssetDeps } from "./plugin-DQCCjJl0.js";
3
+ import { i as ResolvedAssetDeps } from "./plugin-DqLpibhH.js";
4
4
  import { callServer, createFromReadableStream, createServerReference, createTemporaryReferenceSet, encodeReply, findSourceMapURL } from "./react/ssr.js";
5
5
  //#region src/ssr.d.ts
6
6
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitejs/plugin-rsc",
3
- "version": "0.5.31",
3
+ "version": "0.5.32",
4
4
  "description": "React Server Components (RSC) support for Vite.",
5
5
  "keywords": [
6
6
  "react",