@vitejs/plugin-rsc 0.5.16 → 0.5.17

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 (54) hide show
  1. package/dist/browser.d.ts +2 -2
  2. package/dist/{cjs-DH9Oa3zy.js → cjs-gAnoDF_x.js} +2 -2
  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-V6VFxi_0.d.ts → plugin-K7i9F4Fd.d.ts} +6 -12
  16. package/dist/{plugin-DBWiu_Dx.js → plugin-cXbi5HUa.js} +41 -41
  17. package/dist/plugin.d.ts +2 -2
  18. package/dist/plugin.js +4 -4
  19. package/dist/plugins/cjs.js +1 -1
  20. package/dist/react/browser.d.ts +2 -2
  21. package/dist/react/rsc.js +1 -1
  22. package/dist/{rsc-BCFg12vs.js → rsc-Bhp6O2qz.js} +3 -3
  23. package/dist/rsc.d.ts +2 -2
  24. package/dist/rsc.js +2 -2
  25. package/dist/ssr.d.ts +2 -3
  26. package/dist/ssr.js +1 -1
  27. package/dist/transforms/index.d.ts +1 -1
  28. package/dist/transforms/index.js +1 -1
  29. package/dist/{transforms-D4jDIHgD.js → transforms-B2EJTNXG.js} +2 -2
  30. package/dist/utils/encryption-runtime.js +3 -3
  31. package/dist/utils/rpc.js +1 -1
  32. package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.browser.development.js +129 -110
  33. package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.browser.production.js +67 -55
  34. package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.edge.development.js +127 -108
  35. package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.edge.production.js +67 -55
  36. package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.development.js +127 -108
  37. package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.production.js +67 -55
  38. package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.browser.development.js +625 -351
  39. package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.browser.production.js +598 -314
  40. package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.edge.development.js +628 -352
  41. package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.edge.production.js +601 -315
  42. package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.node.development.js +634 -356
  43. package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.node.production.js +607 -319
  44. package/dist/vendor/react-server-dom/package.json +3 -3
  45. package/package.json +8 -8
  46. package/dist/index-DJ0AhQ9B.d.ts +0 -90
  47. /package/dist/{browser-BmyjVnfA.d.ts → browser-s-WcB8A7.d.ts} +0 -0
  48. /package/dist/{chunk-BFhhoFQb.js → chunk-Dj_d7TT4.js} +0 -0
  49. /package/dist/{encryption-utils-BPYvebX4.js → encryption-utils-DdqSKS_O.js} +0 -0
  50. /package/dist/{index-DqoQPvhP.d.ts → index-now_lP2V.d.ts} +0 -0
  51. /package/dist/{plugin-B1AJWrMi.js → plugin-9NQn9bDA.js} +0 -0
  52. /package/dist/{rpc-DbBe389F.js → rpc-EIuXyQpO.js} +0 -0
  53. /package/dist/{shared-Chot7h9j.js → shared-CGK4coF3.js} +0 -0
  54. /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
  /**
@@ -1,11 +1,11 @@
1
- import { n as __toESM } from "./chunk-BFhhoFQb.js";
2
- import { t as createDebug } from "./dist-DZUJDIM2.js";
3
- import { t as vitePluginRscCore } from "./plugin-B1AJWrMi.js";
4
- import { t as cjsModuleRunnerPlugin } from "./cjs-DH9Oa3zy.js";
5
- import { i as toCssVirtual, n as parseIdQuery, r as parseReferenceValidationVirtual, t as parseCssVirtual } from "./shared-Chot7h9j.js";
6
- import { a as hasDirective, n as transformDirectiveProxyExport, o as transformWrapExport, s as findDirectives, t as transformServerActionServer } from "./transforms-D4jDIHgD.js";
7
- import { o as generateEncryptionKey, s as toBase64 } from "./encryption-utils-BPYvebX4.js";
8
- import { n as createRpcServer } from "./rpc-DbBe389F.js";
1
+ import { n as __toESM } from "./chunk-Dj_d7TT4.js";
2
+ import { t as createDebug } from "./dist-yW9-EeG1.js";
3
+ import { t as vitePluginRscCore } from "./plugin-9NQn9bDA.js";
4
+ import { t as cjsModuleRunnerPlugin } from "./cjs-gAnoDF_x.js";
5
+ import { i as toCssVirtual, n as parseIdQuery, r as parseReferenceValidationVirtual, t as parseCssVirtual } from "./shared-CGK4coF3.js";
6
+ import { a as hasDirective, n as transformDirectiveProxyExport, o as transformWrapExport, s as findDirectives, t as transformServerActionServer } from "./transforms-B2EJTNXG.js";
7
+ import { o as generateEncryptionKey, s as toBase64 } from "./encryption-utils-DdqSKS_O.js";
8
+ import { n as createRpcServer } from "./rpc-EIuXyQpO.js";
9
9
  import { createRequire } from "node:module";
10
10
  import assert from "node:assert";
11
11
  import fs from "node:fs";
@@ -29,19 +29,19 @@ const FS_PREFIX = `/@fs/`;
29
29
  function wrapId(id) {
30
30
  return id.startsWith(VALID_ID_PREFIX) ? id : VALID_ID_PREFIX + id.replace("\0", NULL_BYTE_PLACEHOLDER);
31
31
  }
32
- function withTrailingSlash(path$1) {
33
- if (path$1[path$1.length - 1] !== "/") return `${path$1}/`;
34
- return path$1;
32
+ function withTrailingSlash(path) {
33
+ if (path[path.length - 1] !== "/") return `${path}/`;
34
+ return path;
35
35
  }
36
36
  const postfixRE = /[?#].*$/;
37
37
  function cleanUrl(url) {
38
38
  return url.replace(postfixRE, "");
39
39
  }
40
- function splitFileAndPostfix(path$1) {
41
- const file = cleanUrl(path$1);
40
+ function splitFileAndPostfix(path) {
41
+ const file = cleanUrl(path);
42
42
  return {
43
43
  file,
44
- postfix: path$1.slice(file.length)
44
+ postfix: path.slice(file.length)
45
45
  };
46
46
  }
47
47
  const windowsSlashRE = /\\/g;
@@ -275,9 +275,9 @@ function vitePluginImportEnvironment(manager) {
275
275
  const environmentName = options.environment;
276
276
  let resolvedId;
277
277
  if (this.environment.mode === "dev") {
278
- const targetEnv$1 = server.environments[environmentName];
279
- assert(targetEnv$1, `[vite-rsc] unknown environment '${environmentName}'`);
280
- const resolved = await targetEnv$1.pluginContainer.resolveId(specifier, id);
278
+ const targetEnv = server.environments[environmentName];
279
+ assert(targetEnv, `[vite-rsc] unknown environment '${environmentName}'`);
280
+ const resolved = await targetEnv.pluginContainer.resolveId(specifier, id);
281
281
  assert(resolved, `[vite-rsc] failed to resolve '${specifier}' in environment '${environmentName}'`);
282
282
  resolvedId = resolved.id;
283
283
  } else {
@@ -445,11 +445,11 @@ function validateImportPlugin() {
445
445
  }
446
446
  function getImportChainDev(environment, id) {
447
447
  const chain = [];
448
- const recurse = (id$1) => {
449
- if (chain.includes(id$1)) return;
450
- const info = environment.moduleGraph.getModuleById(id$1);
448
+ const recurse = (id) => {
449
+ if (chain.includes(id)) return;
450
+ const info = environment.moduleGraph.getModuleById(id);
451
451
  if (!info) return;
452
- chain.push(id$1);
452
+ chain.push(id);
453
453
  const next = [...info.importers][0];
454
454
  if (next && next.id) recurse(next.id);
455
455
  };
@@ -458,11 +458,11 @@ function getImportChainDev(environment, id) {
458
458
  }
459
459
  function getImportChainBuild(ctx, id) {
460
460
  const chain = [];
461
- const recurse = (id$1) => {
462
- if (chain.includes(id$1)) return;
463
- const info = ctx.getModuleInfo(id$1);
461
+ const recurse = (id) => {
462
+ if (chain.includes(id)) return;
463
+ const info = ctx.getModuleInfo(id);
464
464
  if (!info) return;
465
- chain.push(id$1);
465
+ chain.push(id);
466
466
  const next = info.importers[0];
467
467
  if (next) recurse(next);
468
468
  };
@@ -474,7 +474,7 @@ function validateImportChain(chain, environmentName, root) {
474
474
  const id = chain[0];
475
475
  const source = id.slice(id.lastIndexOf("/") + 1);
476
476
  let result = `'${source}' cannot be imported in ${source === "server-only" ? "client" : "server"} build ('${environmentName}' environment):\n`;
477
- result += chain.slice(1, 6).map((id$1, i) => " ".repeat(i + 1) + `imported by ${path.relative(root, id$1).replaceAll("\0", "")}\n`).join("");
477
+ result += chain.slice(1, 6).map((id, i) => " ".repeat(i + 1) + `imported by ${path.relative(root, id).replaceAll("\0", "")}\n`).join("");
478
478
  if (chain.length > 6) result += " ".repeat(7) + "...\n";
479
479
  const error = new Error(result);
480
480
  if (chain[1]) Object.assign(error, { id: chain[1] });
@@ -583,7 +583,7 @@ function vitePluginRscMinimal(rscPluginOptions = {}, manager = new RscPluginMana
583
583
  function vitePluginRsc(rscPluginOptions = {}) {
584
584
  const manager = new RscPluginManager();
585
585
  const buildApp = async (builder) => {
586
- const colors = await import("./picocolors-kt7Y18A3.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
586
+ const colors = await import("./picocolors-BRyoHAlU.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
587
587
  const logStep = (msg) => {
588
588
  builder.config.logger.info(colors.blue(msg));
589
589
  };
@@ -723,10 +723,10 @@ function vitePluginRsc(rscPluginOptions = {}) {
723
723
  } },
724
724
  configureServer(server) {
725
725
  globalThis.__VITE_ENVIRONMENT_RUNNER_IMPORT__ = async function(environmentName, id) {
726
- const environment$1 = server.environments[environmentName];
727
- if (!environment$1) throw new Error(`[vite-rsc] unknown environment '${environmentName}'`);
728
- if (!vite.isRunnableDevEnvironment(environment$1)) throw new Error(`[vite-rsc] environment '${environmentName}' is not runnable`);
729
- return environment$1.runner.import(id);
726
+ const environment = server.environments[environmentName];
727
+ if (!environment) throw new Error(`[vite-rsc] unknown environment '${environmentName}'`);
728
+ if (!vite.isRunnableDevEnvironment(environment)) throw new Error(`[vite-rsc] environment '${environmentName}' is not runnable`);
729
+ return environment.runner.import(id);
730
730
  };
731
731
  const oldSend = server.environments.client.hot.send;
732
732
  server.environments.client.hot.send = async function(...args) {
@@ -1220,10 +1220,10 @@ function vitePluginUseClient(useClientPluginOptions, manager) {
1220
1220
  map: null
1221
1221
  };
1222
1222
  if (manager.isScanBuild) {
1223
- let code$1 = ``;
1224
- for (const meta of Object.values(manager.clientReferenceMetaMap)) code$1 += `import ${JSON.stringify(withResolvedIdProxy(meta.importId))};\n`;
1223
+ let code = ``;
1224
+ for (const meta of Object.values(manager.clientReferenceMetaMap)) code += `import ${JSON.stringify(withResolvedIdProxy(meta.importId))};\n`;
1225
1225
  return {
1226
- code: code$1,
1226
+ code,
1227
1227
  map: null
1228
1228
  };
1229
1229
  }
@@ -1262,7 +1262,7 @@ function vitePluginUseClient(useClientPluginOptions, manager) {
1262
1262
  assert(metas, `unknown client reference group: ${name}`);
1263
1263
  let code = ``;
1264
1264
  for (const meta of metas) {
1265
- const exports = meta.renderedExports.map((name$1) => `${name$1}: import_${meta.referenceKey}.${name$1},\n`).sort().join("");
1265
+ const exports = meta.renderedExports.map((name) => `${name}: import_${meta.referenceKey}.${name},\n`).sort().join("");
1266
1266
  code += `
1267
1267
  import * as import_${meta.referenceKey} from ${JSON.stringify(withResolvedIdProxy(meta.importId))};
1268
1268
  export const export_${meta.referenceKey} = {${exports}};
@@ -1465,8 +1465,8 @@ function vitePluginUseServer(useServerPluginOptions, manager) {
1465
1465
  const importSource = resolvePackage(`${PKG_NAME}/react/rsc`);
1466
1466
  output.prepend(`import * as $$ReactServer from "${importSource}";\n`);
1467
1467
  if (enableEncryption) {
1468
- const importSource$1 = resolvePackage(`${PKG_NAME}/utils/encryption-runtime`);
1469
- output.prepend(`import * as __vite_rsc_encryption_runtime from ${JSON.stringify(importSource$1)};\n`);
1468
+ const importSource = resolvePackage(`${PKG_NAME}/utils/encryption-runtime`);
1469
+ output.prepend(`import * as __vite_rsc_encryption_runtime from ${JSON.stringify(importSource)};\n`);
1470
1470
  }
1471
1471
  return {
1472
1472
  code: output.toString(),
@@ -1531,13 +1531,13 @@ var RuntimeAsset = class {
1531
1531
  };
1532
1532
  function serializeValueWithRuntime(value) {
1533
1533
  const replacements = [];
1534
- let result = JSON.stringify(value, (_key, value$1) => {
1535
- if (value$1 instanceof RuntimeAsset) {
1534
+ let result = JSON.stringify(value, (_key, value) => {
1535
+ if (value instanceof RuntimeAsset) {
1536
1536
  const placeholder = `__runtime_placeholder_${replacements.length}__`;
1537
- replacements.push([placeholder, value$1.runtime]);
1537
+ replacements.push([placeholder, value.runtime]);
1538
1538
  return placeholder;
1539
1539
  }
1540
- return value$1;
1540
+ return value;
1541
1541
  }, 2);
1542
1542
  for (const [placeholder, runtime] of replacements) result = result.replace(`"${placeholder}"`, runtime);
1543
1543
  return result;
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-gAnoDF_x.js";
2
+ import { i as vitePluginRscMinimal, n as transformRscCssExport, r as vitePluginRsc, t as getPluginApi } from "./plugin-cXbi5HUa.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-gAnoDF_x.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 };