@reckona/mreact-router 0.0.208 → 0.0.209

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 (58) hide show
  1. package/README.md +2 -2
  2. package/dist/adapters/cloudflare.d.ts +3 -3
  3. package/dist/adapters/cloudflare.d.ts.map +1 -1
  4. package/dist/adapters/cloudflare.js +11 -4
  5. package/dist/adapters/cloudflare.js.map +1 -1
  6. package/dist/boundaries.d.ts +37 -1
  7. package/dist/boundaries.d.ts.map +1 -1
  8. package/dist/boundaries.js +125 -4
  9. package/dist/boundaries.js.map +1 -1
  10. package/dist/build.d.ts +6 -0
  11. package/dist/build.d.ts.map +1 -1
  12. package/dist/build.js +265 -24
  13. package/dist/build.js.map +1 -1
  14. package/dist/bundle-pipeline.d.ts +1 -0
  15. package/dist/bundle-pipeline.d.ts.map +1 -1
  16. package/dist/bundle-pipeline.js +4 -1
  17. package/dist/bundle-pipeline.js.map +1 -1
  18. package/dist/client.d.ts +1 -0
  19. package/dist/client.d.ts.map +1 -1
  20. package/dist/client.js +14 -4
  21. package/dist/client.js.map +1 -1
  22. package/dist/config.d.ts +7 -0
  23. package/dist/config.d.ts.map +1 -1
  24. package/dist/config.js +17 -0
  25. package/dist/config.js.map +1 -1
  26. package/dist/index.d.ts +5 -5
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +1 -1
  29. package/dist/index.js.map +1 -1
  30. package/dist/render.d.ts.map +1 -1
  31. package/dist/render.js +23 -23
  32. package/dist/render.js.map +1 -1
  33. package/dist/request-header-tracking.d.ts +19 -0
  34. package/dist/request-header-tracking.d.ts.map +1 -1
  35. package/dist/request-header-tracking.js +48 -0
  36. package/dist/request-header-tracking.js.map +1 -1
  37. package/dist/tailwind-source.d.ts.map +1 -1
  38. package/dist/tailwind-source.js +147 -1
  39. package/dist/tailwind-source.js.map +1 -1
  40. package/dist/types.d.ts +14 -2
  41. package/dist/types.d.ts.map +1 -1
  42. package/dist/types.js.map +1 -1
  43. package/dist/vite.d.ts +1 -0
  44. package/dist/vite.d.ts.map +1 -1
  45. package/dist/vite.js.map +1 -1
  46. package/package.json +11 -11
  47. package/src/adapters/cloudflare.ts +14 -5
  48. package/src/boundaries.ts +224 -4
  49. package/src/build.ts +379 -24
  50. package/src/bundle-pipeline.ts +9 -4
  51. package/src/client.ts +18 -5
  52. package/src/config.ts +32 -0
  53. package/src/index.ts +10 -0
  54. package/src/render.ts +30 -16
  55. package/src/request-header-tracking.ts +61 -0
  56. package/src/tailwind-source.ts +164 -1
  57. package/src/types.ts +15 -2
  58. package/src/vite.ts +1 -0
package/dist/config.d.ts CHANGED
@@ -24,6 +24,11 @@ export type AppRouterClientSourceMapOption = boolean | AppRouterClientSourceMapM
24
24
  export interface AppRouterProductionOptions {
25
25
  dropClientConsole?: boolean | readonly AppRouterClientConsoleMethod[] | undefined;
26
26
  }
27
+ /** Opt-in compile-time constraints for route and component execution modes. */
28
+ export interface AppRouterExecutionContracts {
29
+ noCompatComponents?: readonly string[] | undefined;
30
+ serverOnlyRoutes?: readonly string[] | undefined;
31
+ }
27
32
  export interface AppRouterProjectOptions {
28
33
  assetBaseUrl?: string | undefined;
29
34
  buildConcurrency?: number | undefined;
@@ -31,6 +36,7 @@ export interface AppRouterProjectOptions {
31
36
  clientSourceMaps?: AppRouterClientSourceMapOption | undefined;
32
37
  /** Project-local server module exporting a named `dehydrateOptions` policy. */
33
38
  dehydratePolicyModule?: string | undefined;
39
+ executionContracts?: AppRouterExecutionContracts | undefined;
34
40
  /**
35
41
  * Legacy route root. When provided without routesDir/projectRoot, this keeps
36
42
  * the historical "appDir is the whole app boundary" behavior.
@@ -55,6 +61,7 @@ export interface ResolvedAppRouterProject {
55
61
  clientSourceMaps: AppRouterClientSourceMapMode;
56
62
  clientConsolePureFunctions?: readonly string[] | undefined;
57
63
  dehydratePolicyModule?: string | undefined;
64
+ executionContracts?: AppRouterExecutionContracts | undefined;
58
65
  projectRoot: string;
59
66
  publicAssetBa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S,CAAC;CAChC;AAED,MAAM,WAAW,wBAAwB;IACvC,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,YAAY,EAAE,SAAS,oBAAoB,EAAE,CAAC;IAC9C,gBAAgB,EAAE,4BAA4B,CAAC;IAC/C,0BAA0B,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IAC3D,qBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,kBAAkB,CAAC,EAAE,2BAA2B,GAAG,SAAS,CAAC;IAC7D,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,uBAAuB,GAC/B,wBAAwB,CAiF1B;AAiDD,wBAAgB,iCAAiC,CAC/C,KAAK,EAAE,0BAA0B,CAAC,mBAAmB,CAAC,GACrD,SAAS,MAAM,EAAE,GAAG,SAAS,CAmB/B;AAED,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,8BAA8B,GAAG,SAAS,GAChD,4BAA4B,CAgB9B;AAED,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,SAAS,oBAAoB,EAAE,GAAG,SAAS,GACnD,SAAS,oBAAoB,EAAE,CAoBjC"}
package/dist/config.js CHANGED
@@ -24,6 +24,9 @@ export function resolveAppRouterProjectOptions(options) {
24
24
  : {
25
25
  dehydratePolicyModule: resolvePolicyModule(appDir, options.dehydratePolicyModule, allowedSourceDirs),
26
26
  }),
27
+ ...(options.executionContracts === undefined
28
+ ? {}
29
+ : { executionContracts: normalizeExecutionContracts(options.executionContracts) }),
27
30
  projectRoot: appDir,
28
31
  ...(options.publicAssetBaseUrl === undefined
29
32
  ? {}
@@ -50,6 +53,9 @@ export function resolveAppRouterProjectOptions(options) {
50
53
  : {
51
54
  dehydratePolicyModule: resolvePolicyModule(projectRoot, options.dehydratePolicyModule, allowedSourceDirs),
52
55
  }),
56
+ ...(options.executionContracts === undefined
57
+ ? {}
58
+ : { executionContracts: normalizeExecutionContracts(options.executionContracts) }),
53
59
  projectRoot,
54
60
  ...(options.publicAssetBaseUrl === undefined
55
61
  ? {}
@@ -58,6 +64,17 @@ export function resolveAppRouterProjectOptions(options) {
58
64
  routesDir,
59
65
  };
60
66
  }
67
+ function normalizeExecutionContracts(contracts) {
68
+ const noCompatComponents = uniquePatterns(contracts.noCompatComponents);
69
+ const serverOnlyRoutes = uniquePatterns(contracts.serverOnlyRoutes);
70
+ return {
71
+ ...(noCompatComponents.length === 0 ? {} : { noCompatComponents }),
72
+ ...(serverOnlyRoutes.length === 0 ? {} : { serverOnlyRoutes }),
73
+ };
74
+ }
75
+ function uniquePatterns(patterns) {
76
+ return [...new Set((patterns ?? []).filter((pattern) => pattern.length > 0))].sort((left, right) => left.localeCompare(right));
77
+ }
61
78
  function resolvePolicyModule(projectRoot, modulePath, allowedSourceDirs) {
62
79
  const resolvedModule = resolveProjectPath(projectRoot, modulePath, "dehydratePolicyModule");
63
80
  if (!allowedSourceDirs.some((directory) => isInsideDirectory(directory, resolvedModule))) {
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAO7E,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,UAAU,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,YAAY,CAAC;IAChD,cAAc,EAAE,CAAC,MAAM,CAAC;CAIzB,CAAC;AA2DF,MAAM,UAAU,8BAA8B,CAC5C,OAAgC;IAEhC,MAAM,0BAA0B,G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AAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAChE,CAAC;AAED,SAAS,iBAAiB,CAAC,IAAY,EAAE,IAAY;IACnD,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAE1C,OAAO,YAAY,KAAK,EAAE,IAAI,CAAC,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC;AAC9F,CAAC","sourcesContent":["import { basename, dirname, isAbsolute, relative, resolve } from \"node:path\";\n\n/**\n * Selects the deployment runtime artifacts emitted by an app-router build.\n */\nexport type AppRouterBuildTarget = \"node\" | \"cloudflare\" | \"aws-lambda\";\n\nexport const appRouterBuildTargetMetadata = {\n allTargets: [\"node\", \"cloudflare\", \"aws-lambda\"],\n defaultTargets: [\"node\"],\n} as const satisfies {\n allTargets: readonly AppRouterBuildTarget[];\n defaultTargets: readonly AppRouterBuildTarget[];\n};\n/**\n * Names a browser console method that can be stripped from client bundles.\n */\nexport type AppRouterClientConsoleMethod = \"debug\" | \"error\" | \"info\" | \"log\" | \"trace\" | \"warn\";\n/**\n * Controls how client bundle source maps are generated.\n */\nexport type AppRouterClientSourceMapMode = \"none\" | \"hidden\" | \"linked\";\n/**\n * Configures client source map output with a boolean shortcut or explicit mode.\n */\nexport type AppRouterClientSourceMapOption = boolean | AppRouterClientSourceMapMode;\n\n/**\n * Configures production-only app-router build behavior.\n */\nexport interface AppRouterProductionOptions {\n dropClientConsole?: boolean | readonly AppRouterClientConsoleMethod[] | undefined;\n}\n\nexport interface AppRouterProjectOptions {\n assetBaseUrl?: string | undefined;\n buildConcurrency?: number | undefined;\n buildTargets?: readonly AppRouterBuildTarget[] | undefined;\n clientSourceMaps?: AppRouterClientSourceMapOption | undefined;\n /** Project-local server module exporting a named `dehydrateOptions` policy. */\n dehydratePolicyModule?: string | undefined;\n /**\n * Legacy route root. When provided without routesDir/projectRoot, this keeps\n * the historical \"appDir is the whole app boundary\" behavior.\n *\n * @deprecated Use projectRoot + routesDir instead. The legacy appDir shortcut\n * is kept for direct tests and older programmatic callers and is planned for\n * removal after 0.1.0.\n */\n appDir?: string | undefined;\n allowedSourceDirs?: readonly string[] | undefined;\n projectRoot?: string | undefined;\n production?: AppRouterProductionOptions | undefined;\n publicDir?: string | undefined;\n publicAssetBaseUrl?: string | undefined;\n routesDir?: string | undefined;\n}\n\nexport interface ResolvedAppRouterProject {\n allowedSourceDirs: readonly string[];\n assetBaseUrl?: string | undefined;\n buildConcurrency?: number | undefined;\n buildTargets: readonly AppRouterBuildTarget[];\n clientSourceMaps: AppRouterClientSourceMapMode;\n clientConsolePureFunctions?: readonly string[] | undefined;\n dehydratePolicyModule?: string | undefined;\n projectRoot: string;\n publicAssetBaseUrl?: string | undefined;\n publicDir: string;\n routesDir: string;\n}\n\nexport function resolveAppRouterProjectOptions(\n options: AppRouterProjectOptions,\n): ResolvedAppRouterProject {\n const clientConsolePureFunctions = resolveClientConsolePureFunctions(\n options.production?.dropClientConsole,\n );\n\n if (\n options.appDir !== undefined &&\n options.projectRoot === undefined &&\n options.routesDir === undefined\n ) {\n const appDir = resolve(options.appDir);\n const allowedSourceDirs = (options.allowedSourceDirs ?? [appDir]).map((directory) =>\n resolveProjectPath(appDir, directory, \"allowedSourceDirs\"),\n );\n\n return {\n allowedSourceDirs,\n ...(options.assetBaseUrl === undefined ? {} : { assetBaseUrl: options.assetBaseUrl }),\n ...(options.buildConcurrency === undefined\n ? {}\n : { buildConcurrency: options.buildConcurrency }),\n buildTargets: resolveBuildTargets(options.buildTargets),\n clientSourceMaps: resolveClientSourceMapMode(options.clientSourceMaps),\n ...(clientConsolePureFunctions === undefined ? {} : { clientConsolePureFunctions }),\n ...(options.dehydratePolicyModule === undefined\n ? {}\n : {\n dehydratePolicyModule: resolvePolicyModule(\n appDir,\n options.dehydratePolicyModule,\n allowedSourceDirs,\n ),\n }),\n projectRoot: appDir,\n ...(options.publicAssetBaseUrl === undefined\n ? {}\n : { publicAssetBaseUrl: options.publicAssetBaseUrl }),\n publicDir: resolveProjectPath(appDir, options.publicDir ?? \"public\", \"publicDir\"),\n routesDir: appDir,\n };\n }\n\n const projectRoot = resolve(options.projectRoot ?? process.cwd());\n const routesDir = resolveProjectPath(projectRoot, options.routesDir ?? \"src/app\", \"routesDir\");\n const defaultAllowedSourceDirs =\n options.routesDir === undefined ? [\"src\"] : [defaultAllowedSourceDir(projectRoot, routesDir)];\n const allowedSourceDirs = (options.allowedSourceDirs ?? defaultAllowedSourceDirs).map(\n (directory) => resolveProjectPath(projectRoot, directory, \"allowedSourceDirs\"),\n );\n\n return {\n allowedSourceDirs,\n ...(options.assetBaseUrl === undefined ? {} : { assetBaseUrl: options.assetBaseUrl }),\n ...(options.buildConcurrency === undefined\n ? {}\n : { buildConcurrency: options.buildConcurrency }),\n buildTargets: resolveBuildTargets(options.buildTargets),\n clientSourceMaps: resolveClientSourceMapMode(options.clientSourceMaps),\n ...(clientConsolePureFunctions === undefined ? {} : { clientConsolePureFunctions }),\n ...(options.dehydratePolicyModule === undefined\n ? {}\n : {\n dehydratePolicyModule: resolvePolicyModule(\n projectRoot,\n options.dehydratePolicyModule,\n allowedSourceDirs,\n ),\n }),\n projectRoot,\n ...(options.publicAssetBaseUrl === undefined\n ? {}\n : { publicAssetBaseUrl: options.publicAssetBaseUrl }),\n publicDir: resolveProjectPath(projectRoot, options.publicDir ?? \"public\", \"publicDir\"),\n routesDir,\n };\n}\n\nfunction resolvePolicyModule(\n projectRoot: string,\n modulePath: string,\n allowedSourceDirs: readonly string[],\n): string {\n const resolvedModule = resolveProjectPath(projectRoot, modulePath, \"dehydratePolicyModule\");\n if (!allowedSourceDirs.some((directory) => isInsideDirectory(directory, resolvedModule))) {\n throw new Error(\n `mreactRouter dehydratePolicyModule must resolve inside allowedSourceDirs: ${resolvedModule}`,\n );\n }\n return resolvedModule;\n}\n\nfunction defaultAllowedSourceDir(projectRoot: string, routesDir: string): string {\n const sourceRoot = dirname(routesDir);\n return basename(routesDir) === \"app\" && sourceRoot !== projectRoot ? sourceRoot : routesDir;\n}\n\nconst defaultDroppedClientConsoleMethods = [\"debug\", \"info\", \"log\"] as const;\nconst supportedClientConsoleMethods = new Set<AppRouterClientConsoleMethod>([\n \"debug\",\n \"error\",\n \"info\",\n \"log\",\n \"trace\",\n \"warn\",\n]);\n\nexport function resolveClientConsolePureFunctions(\n value: AppRouterProductionOptions[\"dropClientConsole\"],\n): readonly string[] | undefined {\n if (value === undefined || value === false) {\n return undefined;\n }\n\n const methods = value === true ? defaultDroppedClientConsoleMethods : value;\n const uniqueMethods = [...new Set(methods)];\n\n for (const method of uniqueMethods) {\n if (!supportedClientConsoleMethods.has(method)) {\n throw new Error(\n `Unsupported mreactRouter production.dropClientConsole method ${JSON.stringify(method)}. Expected \"debug\", \"error\", \"info\", \"log\", \"trace\", or \"warn\".`,\n );\n }\n }\n\n return uniqueMethods.length === 0\n ? undefined\n : uniqueMethods.map((method) => `console.${method}`);\n}\n\nexport function resolveClientSourceMapMode(\n value: AppRouterClientSourceMapOption | undefined,\n): AppRouterClientSourceMapMode {\n if (value === undefined || value === false || value === \"none\") {\n return \"none\";\n }\n\n if (value === true || value === \"linked\") {\n return \"linked\";\n }\n\n if (value === \"hidden\") {\n return \"hidden\";\n }\n\n throw new Error(\n `Unsupported mreactRouter clientSourceMaps value ${JSON.stringify(value)}. Expected false, true, \"none\", \"hidden\", or \"linked\".`,\n );\n}\n\nexport function resolveBuildTargets(\n targets: readonly AppRouterBuildTarget[] | undefined,\n): readonly AppRouterBuildTarget[] {\n if (targets === undefined) {\n return appRouterBuildTargetMetadata.defaultTargets;\n }\n\n const uniqueTargets = [...new Set(targets)];\n\n if (uniqueTargets.length === 0) {\n throw new Error(\"mreactRouter buildTargets must include at least one target.\");\n }\n\n for (const target of uniqueTargets) {\n if (!appRouterBuildTargetMetadata.allTargets.some((supported) => supported === target)) {\n throw new Error(\n `Unsupported mreactRouter build target ${JSON.stringify(target)}. Expected \"node\", \"cloudflare\", or \"aws-lambda\".`,\n );\n }\n }\n\n return uniqueTargets;\n}\n\nfunction resolveProjectPath(root: string, path: string, optionName: string): string {\n const resolvedPath = resolvePath(root, path);\n\n if (!isInsideDirectory(root, resolvedPath)) {\n throw new Error(\n `mreactRouter ${optionName} must resolve inside projectRoot. projectRoot: ${root}; ${optionName}: ${resolvedPath}`,\n );\n }\n\n return resolvedPath;\n}\n\nfunction resolvePath(root: string, path: string): string {\n return isAbsolute(path) ? resolve(path) : resolve(root, path);\n}\n\nfunction isInsideDirectory(root: string, path: string): boolean {\n const relativePath = relative(root, path);\n\n return relativePath === \"\" || (!relativePath.startsWith(\"..\") && !isAbsolute(relativePath));\n}\n"]}
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAO7E,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,UAAU,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,YAAY,CAAC;IAChD,cAAc,EAAE,CAAC,MAAM,CAAC;CAIzB,CAAC;AAmEF,MAAM,UAAU,8BAA8B,CAC5C,OAAgC;IAEhC,MAAM,0BAA0B,GAAG,iCAAiC,CAClE,OAAO,CAAC,UAAU,EAAE,iBAAiB,CACtC,CAAC;IAEF,IACE,OAAO,CAAC,MAAM,KAAK,SAAS;QAC5B,OAAO,CAAC,WAAW,KAAK,SAAS;QACjC,OAAO,CAAC,SAAS,KAAK,SAAS,EAC/B,CAAC;QACD,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,iBAAiB,GAAG,CAAC,OAAO,CAAC,iBAAiB,IAAI,CAAC,MAAM,CAAC,CAA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CAAC,6DAA6D,CAAC,CAAC;IACjF,CAAC;IAED,KAAK,MAAM,MAAM,IAAI,aAAa,EAAE,CAAC;QACnC,IAAI,CAAC,4BAA4B,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,KAAK,MAAM,CAAC,EAAE,CAAC;YACvF,MAAM,IAAI,KAAK,CACb,yCAAyC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,mDAAmD,CACnH,CAAC;QACJ,CAAC;IACH,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC;AAED,SAAS,kBAAkB,CAAC,IAAY,EAAE,IAAY,EAAE,UAAkB;IACxE,MAAM,YAAY,GAAG,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAE7C,IAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,YAAY,CAAC,EAAE,CAAC;QAC3C,MAAM,IAAI,KAAK,CACb,gBAAgB,UAAU,kDAAkD,IAAI,KAAK,UAAU,KAAK,YAAY,EAAE,CACnH,CAAC;IACJ,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,WAAW,CAAC,IAAY,EAAE,IAAY;IAC7C,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAChE,CAAC;AAED,SAAS,iBAAiB,CAAC,IAAY,EAAE,IAAY;IACnD,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAE1C,OAAO,YAAY,KAAK,EAAE,IAAI,CAAC,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC;AAC9F,CAAC","sourcesContent":["import { basename, dirname, isAbsolute, relative, resolve } from \"node:path\";\n\n/**\n * Selects the deployment runtime artifacts emitted by an app-router build.\n */\nexport type AppRouterBuildTarget = \"node\" | \"cloudflare\" | \"aws-lambda\";\n\nexport const appRouterBuildTargetMetadata = {\n allTargets: [\"node\", \"cloudflare\", \"aws-lambda\"],\n defaultTargets: [\"node\"],\n} as const satisfies {\n allTargets: readonly AppRouterBuildTarget[];\n defaultTargets: readonly AppRouterBuildTarget[];\n};\n/**\n * Names a browser console method that can be stripped from client bundles.\n */\nexport type AppRouterClientConsoleMethod = \"debug\" | \"error\" | \"info\" | \"log\" | \"trace\" | \"warn\";\n/**\n * Controls how client bundle source maps are generated.\n */\nexport type AppRouterClientSourceMapMode = \"none\" | \"hidden\" | \"linked\";\n/**\n * Configures client source map output with a boolean shortcut or explicit mode.\n */\nexport type AppRouterClientSourceMapOption = boolean | AppRouterClientSourceMapMode;\n\n/**\n * Configures production-only app-router build behavior.\n */\nexport interface AppRouterProductionOptions {\n dropClientConsole?: boolean | readonly AppRouterClientConsoleMethod[] | undefined;\n}\n\n/** Opt-in compile-time constraints for route and component execution modes. */\nexport interface AppRouterExecutionContracts {\n noCompatComponents?: readonly string[] | undefined;\n serverOnlyRoutes?: readonly string[] | undefined;\n}\n\nexport interface AppRouterProjectOptions {\n assetBaseUrl?: string | undefined;\n buildConcurrency?: number | undefined;\n buildTargets?: readonly AppRouterBuildTarget[] | undefined;\n clientSourceMaps?: AppRouterClientSourceMapOption | undefined;\n /** Project-local server module exporting a named `dehydrateOptions` policy. */\n dehydratePolicyModule?: string | undefined;\n executionContracts?: AppRouterExecutionContracts | undefined;\n /**\n * Legacy route root. When provided without routesDir/projectRoot, this keeps\n * the historical \"appDir is the whole app boundary\" behavior.\n *\n * @deprecated Use projectRoot + routesDir instead. The legacy appDir shortcut\n * is kept for direct tests and older programmatic callers and is planned for\n * removal after 0.1.0.\n */\n appDir?: string | undefined;\n allowedSourceDirs?: readonly string[] | undefined;\n projectRoot?: string | undefined;\n production?: AppRouterProductionOptions | undefined;\n publicDir?: string | undefined;\n publicAssetBaseUrl?: string | undefined;\n routesDir?: string | undefined;\n}\n\nexport interface ResolvedAppRouterProject {\n allowedSourceDirs: readonly string[];\n assetBaseUrl?: string | undefined;\n buildConcurrency?: number | undefined;\n buildTargets: readonly AppRouterBuildTarget[];\n clientSourceMaps: AppRouterClientSourceMapMode;\n clientConsolePureFunctions?: readonly string[] | undefined;\n dehydratePolicyModule?: string | undefined;\n executionContracts?: AppRouterExecutionContracts | undefined;\n projectRoot: string;\n publicAssetBaseUrl?: string | undefined;\n publicDir: string;\n routesDir: string;\n}\n\nexport function resolveAppRouterProjectOptions(\n options: AppRouterProjectOptions,\n): ResolvedAppRouterProject {\n const clientConsolePureFunctions = resolveClientConsolePureFunctions(\n options.production?.dropClientConsole,\n );\n\n if (\n options.appDir !== undefined &&\n options.projectRoot === undefined &&\n options.routesDir === undefined\n ) {\n const appDir = resolve(options.appDir);\n const allowedSourceDirs = (options.allowedSourceDirs ?? [appDir]).map((directory) =>\n resolveProjectPath(appDir, directory, \"allowedSourceDirs\"),\n );\n\n return {\n allowedSourceDirs,\n ...(options.assetBaseUrl === undefined ? {} : { assetBaseUrl: options.assetBaseUrl }),\n ...(options.buildConcurrency === undefined\n ? {}\n : { buildConcurrency: options.buildConcurrency }),\n buildTargets: resolveBuildTargets(options.buildTargets),\n clientSourceMaps: resolveClientSourceMapMode(options.clientSourceMaps),\n ...(clientConsolePureFunctions === undefined ? {} : { clientConsolePureFunctions }),\n ...(options.dehydratePolicyModule === undefined\n ? {}\n : {\n dehydratePolicyModule: resolvePolicyModule(\n appDir,\n options.dehydratePolicyModule,\n allowedSourceDirs,\n ),\n }),\n ...(options.executionContracts === undefined\n ? {}\n : { executionContracts: normalizeExecutionContracts(options.executionContracts) }),\n projectRoot: appDir,\n ...(options.publicAssetBaseUrl === undefined\n ? {}\n : { publicAssetBaseUrl: options.publicAssetBaseUrl }),\n publicDir: resolveProjectPath(appDir, options.publicDir ?? \"public\", \"publicDir\"),\n routesDir: appDir,\n };\n }\n\n const projectRoot = resolve(options.projectRoot ?? process.cwd());\n const routesDir = resolveProjectPath(projectRoot, options.routesDir ?? \"src/app\", \"routesDir\");\n const defaultAllowedSourceDirs =\n options.routesDir === undefined ? [\"src\"] : [defaultAllowedSourceDir(projectRoot, routesDir)];\n const allowedSourceDirs = (options.allowedSourceDirs ?? defaultAllowedSourceDirs).map(\n (directory) => resolveProjectPath(projectRoot, directory, \"allowedSourceDirs\"),\n );\n\n return {\n allowedSourceDirs,\n ...(options.assetBaseUrl === undefined ? {} : { assetBaseUrl: options.assetBaseUrl }),\n ...(options.buildConcurrency === undefined\n ? {}\n : { buildConcurrency: options.buildConcurrency }),\n buildTargets: resolveBuildTargets(options.buildTargets),\n clientSourceMaps: resolveClientSourceMapMode(options.clientSourceMaps),\n ...(clientConsolePureFunctions === undefined ? {} : { clientConsolePureFunctions }),\n ...(options.dehydratePolicyModule === undefined\n ? {}\n : {\n dehydratePolicyModule: resolvePolicyModule(\n projectRoot,\n options.dehydratePolicyModule,\n allowedSourceDirs,\n ),\n }),\n ...(options.executionContracts === undefined\n ? {}\n : { executionContracts: normalizeExecutionContracts(options.executionContracts) }),\n projectRoot,\n ...(options.publicAssetBaseUrl === undefined\n ? {}\n : { publicAssetBaseUrl: options.publicAssetBaseUrl }),\n publicDir: resolveProjectPath(projectRoot, options.publicDir ?? \"public\", \"publicDir\"),\n routesDir,\n };\n}\n\nfunction normalizeExecutionContracts(\n contracts: AppRouterExecutionContracts,\n): AppRouterExecutionContracts {\n const noCompatComponents = uniquePatterns(contracts.noCompatComponents);\n const serverOnlyRoutes = uniquePatterns(contracts.serverOnlyRoutes);\n\n return {\n ...(noCompatComponents.length === 0 ? {} : { noCompatComponents }),\n ...(serverOnlyRoutes.length === 0 ? {} : { serverOnlyRoutes }),\n };\n}\n\nfunction uniquePatterns(patterns: readonly string[] | undefined): string[] {\n return [...new Set((patterns ?? []).filter((pattern) => pattern.length > 0))].sort(\n (left, right) => left.localeCompare(right),\n );\n}\n\nfunction resolvePolicyModule(\n projectRoot: string,\n modulePath: string,\n allowedSourceDirs: readonly string[],\n): string {\n const resolvedModule = resolveProjectPath(projectRoot, modulePath, \"dehydratePolicyModule\");\n if (!allowedSourceDirs.some((directory) => isInsideDirectory(directory, resolvedModule))) {\n throw new Error(\n `mreactRouter dehydratePolicyModule must resolve inside allowedSourceDirs: ${resolvedModule}`,\n );\n }\n return resolvedModule;\n}\n\nfunction defaultAllowedSourceDir(projectRoot: string, routesDir: string): string {\n const sourceRoot = dirname(routesDir);\n return basename(routesDir) === \"app\" && sourceRoot !== projectRoot ? sourceRoot : routesDir;\n}\n\nconst defaultDroppedClientConsoleMethods = [\"debug\", \"info\", \"log\"] as const;\nconst supportedClientConsoleMethods = new Set<AppRouterClientConsoleMethod>([\n \"debug\",\n \"error\",\n \"info\",\n \"log\",\n \"trace\",\n \"warn\",\n]);\n\nexport function resolveClientConsolePureFunctions(\n value: AppRouterProductionOptions[\"dropClientConsole\"],\n): readonly string[] | undefined {\n if (value === undefined || value === false) {\n return undefined;\n }\n\n const methods = value === true ? defaultDroppedClientConsoleMethods : value;\n const uniqueMethods = [...new Set(methods)];\n\n for (const method of uniqueMethods) {\n if (!supportedClientConsoleMethods.has(method)) {\n throw new Error(\n `Unsupported mreactRouter production.dropClientConsole method ${JSON.stringify(method)}. Expected \"debug\", \"error\", \"info\", \"log\", \"trace\", or \"warn\".`,\n );\n }\n }\n\n return uniqueMethods.length === 0\n ? undefined\n : uniqueMethods.map((method) => `console.${method}`);\n}\n\nexport function resolveClientSourceMapMode(\n value: AppRouterClientSourceMapOption | undefined,\n): AppRouterClientSourceMapMode {\n if (value === undefined || value === false || value === \"none\") {\n return \"none\";\n }\n\n if (value === true || value === \"linked\") {\n return \"linked\";\n }\n\n if (value === \"hidden\") {\n return \"hidden\";\n }\n\n throw new Error(\n `Unsupported mreactRouter clientSourceMaps value ${JSON.stringify(value)}. Expected false, true, \"none\", \"hidden\", or \"linked\".`,\n );\n}\n\nexport function resolveBuildTargets(\n targets: readonly AppRouterBuildTarget[] | undefined,\n): readonly AppRouterBuildTarget[] {\n if (targets === undefined) {\n return appRouterBuildTargetMetadata.defaultTargets;\n }\n\n const uniqueTargets = [...new Set(targets)];\n\n if (uniqueTargets.length === 0) {\n throw new Error(\"mreactRouter buildTargets must include at least one target.\");\n }\n\n for (const target of uniqueTargets) {\n if (!appRouterBuildTargetMetadata.allTargets.some((supported) => supported === target)) {\n throw new Error(\n `Unsupported mreactRouter build target ${JSON.stringify(target)}. Expected \"node\", \"cloudflare\", or \"aws-lambda\".`,\n );\n }\n }\n\n return uniqueTargets;\n}\n\nfunction resolveProjectPath(root: string, path: string, optionName: string): string {\n const resolvedPath = resolvePath(root, path);\n\n if (!isInsideDirectory(root, resolvedPath)) {\n throw new Error(\n `mreactRouter ${optionName} must resolve inside projectRoot. projectRoot: ${root}; ${optionName}: ${resolvedPath}`,\n );\n }\n\n return resolvedPath;\n}\n\nfunction resolvePath(root: string, path: string): string {\n return isAbsolute(path) ? resolve(path) : resolve(root, path);\n}\n\nfunction isInsideDirectory(root: string, path: string): boolean {\n const relativePath = relative(root, path);\n\n return relativePath === \"\" || (!relativePath.startsWith(\"..\") && !isAbsolute(relativePath));\n}\n"]}
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { buildApp, packageAwsLambdaArtifact, packageCloudflarePagesArtifact } from "./build.js";
2
2
  export { assetHref, assetPreloadLinks } from "./assets.js";
3
- export { analyzeAppBoundaries, createBoundaryReport, formatBoundaryReport, formatBoundaryReportJson, } from "./boundaries.js";
4
- export type { AnalyzeAppBoundariesOptions, BoundaryReport, BoundaryReportComponent, BoundaryReportRoute, BoundaryReportSummary, CreateBoundaryReportInput, CreateBoundaryReportRouteInput, } from "./boundaries.js";
3
+ export { analyzeAppBoundaries, createBoundaryReport, formatBoundaryReport, formatBoundaryReportJson, validateBoundaryExecutionContracts, } from "./boundaries.js";
4
+ export type { AnalyzeAppBoundariesOptions, BoundaryExecutionMode, BoundaryReportByteCost, BoundaryReport, BoundaryReportComponent, BoundaryReportCost, BoundaryReportDecision, BoundaryReportRoute, BoundaryReportSummary, BoundarySourcePosition, BoundarySourceRange, CreateBoundaryReportInput, CreateBoundaryReportRouteInput, } from "./boundaries.js";
5
5
  export { cacheControl, createMemoryRouteCache, revalidatePath } from "./cache.js";
6
6
  export { deleteCookie, parseCookieHeader, serializeCookie, setCookie } from "./cookies.js";
7
7
  export { defineMessages, detectLocale } from "./i18n.js";
@@ -52,12 +52,12 @@ export declare function getSession<TData>(request: Request, store: SessionStoreI
52
52
  * @deprecated Import session helpers from `@reckona/mreact-auth` instead.
53
53
  */
54
54
  export declare function rotateSession<TData>(request: Request, response: Response, store: SessionStoreInternal<TData>, options?: SessionCookieOptionsInternal): Promise<SessionRecordInternal<TData> | undefined>;
55
- export type { AwsLambdaArtifactManifest, AwsLambdaGeneratedHandlerPreloadMode, BuildAppPhase, BuildAppPhaseTiming, BuildAppOptions, BuildAppProgressEvent, BuildAppResult, BuiltImportPolicyArtifact, BuiltPrerenderedRoute, BuiltRouteSourceAnalysisSummary, BuiltServerModuleArtifact, BuiltServerModuleOutput, CloudflarePagesArtifactManifest, PackageAwsLambdaArtifactOptions, PackageCloudflarePagesArtifactOptions, } from "./build.js";
55
+ export type { AwsLambdaArtifactManifest, AwsLambdaGeneratedHandlerPreloadMode, BoundaryCostOptions, BuildAppPhase, BuildAppPhaseTiming, BuildAppOptions, BuildAppProgressEvent, BuildAppResult, BuiltImportPolicyArtifact, BuiltPrerenderedRoute, BuiltRouteSourceAnalysisSummary, BuiltServerModuleArtifact, BuiltServerModuleOutput, CloudflarePagesArtifactManifest, PackageAwsLambdaArtifactOptions, PackageCloudflarePagesArtifactOptions, } from "./build.js";
56
56
  export type { AppRouterProjectOptions } from "./config.js";
57
57
  export type { ServerActionContext } from "./actions.js";
58
58
  export type { AppRouteHref, AppRouteLinkHref, AppRouteLinkHrefSuffix, AppRouteLinkPathname, AppRouteLinkSegment, AppRouteLinkSegments, DynamicHrefOptions, RouteParamsFor, RouteSearchParams, RouteSearchValue, SegmentRouteParam, StaticHrefOptions, ExtractRouteParams, HasRouteParams, Simplify, } from "./typed-routes.js";
59
- export type { InferLoaderData, InferLoaderParams, LayoutProps, LoaderContext, GenerateMetadataContext, ManifestContext, ManifestDescriptor, MetadataImage, MetadataScalar, MetadataThemeColor, MetadataViewport, MReactNode, PageProps, PageComponent, RobotsContext, RobotsManifest, RobotsRule, RouteHeadDescriptor, RouteHandlerContext, RouteLoader, RouteMetadata, RouteParams, RouteSecurityHeaders, RouteStrictTransportSecurity, SitemapContext, SitemapEntry, } from "./types.js";
60
- export type { AppRouterBuildTarget, AppRouterClientConsoleMethod, AppRouterClientSourceMapMode, AppRouterClientSourceMapOption, AppRouterProductionOptions, } from "./config.js";
59
+ export type { InferLoaderData, InferLoaderParams, LayoutProps, LoaderContext, GenerateMetadataContext, ManifestContext, ManifestDescriptor, MetadataImage, MetadataScalar, MetadataThemeColor, MetadataViewport, MReactNode, PageProps, PageComponent, RobotsContext, RobotsManifest, RobotsRule, RouteHeadDescriptor, RouteHandlerContext, RouteLocation, RouteLoader, RouteMetadata, RouteParams, RouteSecurityHeaders, RouteStrictTransportSecurity, SitemapContext, SitemapEntry, } from "./types.js";
60
+ export type { AppRouterBuildTarget, AppRouterClientConsoleMethod, AppRouterClientSourceMapMode, AppRouterClientSourceMapOption, AppRouterExecutionContracts, AppRouterProductionOptions, } from "./config.js";
61
61
  export type { AssetHelperOptions, AssetLinkDescriptor, AssetManifest, AssetManifestEntry, } from "./assets.js";
62
62
  export type { AppRouterCache, AppRouterCacheEntry, CacheControlOptions, MemoryRouteCacheOptions, RouteCachePolicy, } from "./cache.js";
63
63
  export type { CookieOptions } from "./cookies.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,wBAAwB,EAAE,8BAA8B,EAAE,MAAM,YAAY,CAAC;AAChG,OAAO,EAAE,S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ifact, packageCloudflarePagesArtifact } from "./build.js";
2
2
  export { assetHref, assetPreloadLinks } from "./assets.js";
3
- export { analyzeAppBoundaries, createBoundaryReport, formatBoundaryReport, formatBoundaryReportJson, } from "./boundaries.js";
3
+ export { analyzeAppBoundaries, createBoundaryReport, formatBoundaryReport, formatBoundaryReportJson, validateBoundaryExecutionContracts, } from "./boundaries.js";
4
4
  export { cacheControl, createMemoryRouteCache, revalidatePath } from "./cache.js";
5
5
  export { deleteCookie, parseCookieHeader, serializeCookie, setCookie } from "./cookies.js";
6
6
  export { defineMessages, detectLocale } from "./i18n.js";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,wBAAwB,EAAE,8BAA8B,EAAE,MAAM,YAAY,CAAC;AAChG,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,iBAAiB,CAAC;AAUzB,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC3F,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAOtD,OAAO,EAAE,kBAAkB,EAA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OAAgB,EAChB,KAAkC,EAClC,OAAO,GAAiC,EAAE;IAE1C,OAAO,kBAAkB,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AACrD,CAAC;AACD;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,OAAgB,EAChB,QAAkB,EAClB,KAAkC,EAClC,OAAO,GAAiC,EAAE;IAE1C,OAAO,qBAAqB,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AAClE,CAAC;AA8HD,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,WAAW,CAAC;AAwBnB,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAQ/C,OAAO,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAkBxE,OAAO,EAAE,8BAA8B,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AACpG,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAUxF,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC","sourcesContent":["export { buildApp, packageAwsLambdaArtifact, packageCloudflarePagesArtifact } from \"./build.js\";\nexport { assetHref, assetPreloadLinks } from \"./assets.js\";\nexport {\n analyzeAppBoundaries,\n createBoundaryReport,\n formatBoundaryReport,\n formatBoundaryReportJson,\n} from \"./boundaries.js\";\nexport type {\n AnalyzeAppBoundariesOptions,\n BoundaryReport,\n BoundaryReportComponent,\n BoundaryReportRoute,\n BoundaryReportSummary,\n CreateBoundaryReportInput,\n CreateBoundaryReportRouteInput,\n} from \"./boundaries.js\";\nexport { cacheControl, createMemoryRouteCache, revalidatePath } from \"./cache.js\";\nexport { deleteCookie, parseCookieHeader, serializeCookie, setCookie } from \"./cookies.js\";\nexport { defineMessages, detectLocale } from \"./i18n.js\";\nexport { defer, isDeferredLoaderData } from \"./deferred.js\";\nexport type { DeferredLoaderData } from \"./deferred.js\";\nexport { definePage } from \"./types.js\";\nexport { Link, linkProps } from \"./link.js\";\nexport type { LinkSerializableAttribute, LinkSinkChild, LinkSinkProps } from \"./link.js\";\nexport { href } from \"./typed-routes.js\";\nexport { parseMultipartStream } from \"./multipart.js\";\nexport type {\n MultipartFixedLengthStream,\n MultipartStreamFieldOptions,\n MultipartStreamParseOptions,\n MultipartStreamPart,\n} from \"./multipart.js\";\nexport { getNavigationState, subscribeNavigationState } from \"./navigation-state.js\";\nexport { getRouterRuntimeCacheStats } from \"./runtime-cache.js\";\nexport { validateHttpUpgradeOrigin } from \"./upgrade.js\";\nexport type {\n HttpUpgradeContext,\n HttpUpgradeDisposition,\n HttpUpgradeHandler,\n HttpUpgradeOriginFailureReason,\n HttpUpgradeOriginPolicy,\n HttpUpgradeOriginValidation,\n ManagedHttpUpgradeHandler,\n ValidateHttpUpgradeOriginOptions,\n} from \"./upgrade.js\";\nexport {\n cookies,\n headers,\n html,\n isNotFoundError,\n isRedirectError,\n json,\n next,\n notFound,\n parseForm,\n redirect,\n redirect303,\n redirectExternal,\n rewrite,\n textError,\n throwNotFound,\n} from \"./navigation.js\";\nexport type { MiddlewareNext, ParseSchema, RedirectOptions, RequestCookies } from \"./navigation.js\";\nexport { createMemoryPrerenderStore } from \"./prerender-store.js\";\nexport { getServerRuntimeState } from \"./runtime-state.js\";\nimport {\n createMemorySessionStore as createMemorySessionStoreInternal,\n createSession as createSessionInternal,\n destroySession as destroySessionInternal,\n getSession as getSessionInternal,\n rotateSession as rotateSessionInternal,\n} from \"./session.js\";\nimport type {\n MemorySessionStoreOptions as MemorySessionStoreOptionsInternal,\n SessionCookieOptions as SessionCookieOptionsInternal,\n SessionRecord as SessionRecordInternal,\n SessionStore as SessionStoreInternal,\n} from \"./session.js\";\n\n/**\n * Creates a deprecated process-local session store alias.\n *\n * @deprecated Import session helpers from `@reckona/mreact-auth` instead.\n */\nexport function createMemorySessionStore<TData = unknown>(\n options: MemorySessionStoreOptionsInternal = {},\n): SessionStoreInternal<TData> {\n return createMemorySessionStoreInternal<TData>(options);\n}\n/**\n * Creates a deprecated session record and cookie alias.\n *\n * @deprecated Import session helpers from `@reckona/mreact-auth` instead.\n */\nexport async function createSession<TData>(\n response: Response,\n store: SessionStoreInternal<TData>,\n data: TData,\n options: SessionCookieOptionsInternal = {},\n): Promise<SessionRecordInternal<TData>> {\n return createSessionInternal(response, store, data, options);\n}\n/**\n * Destroys a session through a deprecated router session alias.\n *\n * @deprecated Import session helpers from `@reckona/mreact-auth` instead.\n */\nexport async function destroySession<TData>(\n request: Request,\n response: Response,\n store: SessionStoreInternal<TData>,\n options: SessionCookieOptionsInternal = {},\n): Promise<void> {\n return destroySessionInternal(request, response, store, options);\n}\n/**\n * Reads a session through a deprecated router session alias.\n *\n * @deprecated Import session helpers from `@reckona/mreact-auth` instead.\n */\nexport async function getSession<TData>(\n request: Request,\n store: SessionStoreInternal<TData>,\n options: SessionCookieOptionsInternal = {},\n): Promise<SessionRecordInternal<TData> | undefined> {\n return getSessionInternal(request, store, options);\n}\n/**\n * Rotates a session through a deprecated router session alias.\n *\n * @deprecated Import session helpers from `@reckona/mreact-auth` instead.\n */\nexport async function rotateSession<TData>(\n request: Request,\n response: Response,\n store: SessionStoreInternal<TData>,\n options: SessionCookieOptionsInternal = {},\n): Promise<SessionRecordInternal<TData> | undefined> {\n return rotateSessionInternal(request, response, store, options);\n}\nexport type {\n AwsLambdaArtifactManifest,\n AwsLambdaGeneratedHandlerPreloadMode,\n BuildAppPhase,\n BuildAppPhaseTiming,\n BuildAppOptions,\n BuildAppProgressEvent,\n BuildAppResult,\n BuiltImportPolicyArtifact,\n BuiltPrerenderedRoute,\n BuiltRouteSourceAnalysisSummary,\n BuiltServerModuleArtifact,\n BuiltServerModuleOutput,\n CloudflarePagesArtifactManifest,\n PackageAwsLambdaArtifactOptions,\n PackageCloudflarePagesArtifactOptions,\n} from \"./build.js\";\nexport type { AppRouterProjectOptions } from \"./config.js\";\nexport type { ServerActionContext } from \"./actions.js\";\nexport type {\n AppRouteHref,\n AppRouteLinkHref,\n AppRouteLinkHrefSuffix,\n AppRouteLinkPathname,\n AppRouteLinkSegment,\n AppRouteLinkSegments,\n DynamicHrefOptions,\n RouteParamsFor,\n RouteSearchParams,\n RouteSearchValue,\n SegmentRouteParam,\n StaticHrefOptions,\n ExtractRouteParams,\n HasRouteParams,\n Simplify,\n} from \"./typed-routes.js\";\nexport type {\n InferLoaderData,\n InferLoaderParams,\n LayoutProps,\n LoaderContext,\n GenerateMetadataContext,\n ManifestContext,\n ManifestDescriptor,\n MetadataImage,\n MetadataScalar,\n MetadataThemeColor,\n MetadataViewport,\n MReactNode,\n PageProps,\n PageComponent,\n RobotsContext,\n RobotsManifest,\n RobotsRule,\n RouteHeadDescriptor,\n RouteHandlerContext,\n RouteLoader,\n RouteMetadata,\n RouteParams,\n RouteSecurityHeaders,\n RouteStrictTransportSecurity,\n SitemapContext,\n SitemapEntry,\n} from \"./types.js\";\nexport type {\n AppRouterBuildTarget,\n AppRouterClientConsoleMethod,\n AppRouterClientSourceMapMode,\n AppRouterClientSourceMapOption,\n AppRouterProductionOptions,\n} from \"./config.js\";\nexport type {\n AssetHelperOptions,\n AssetLinkDescriptor,\n AssetManifest,\n AssetManifestEntry,\n} from \"./assets.js\";\nexport type {\n AppRouterCache,\n AppRouterCacheEntry,\n CacheControlOptions,\n MemoryRouteCacheOptions,\n RouteCachePolicy,\n} from \"./cache.js\";\nexport type { CookieOptions } from \"./cookies.js\";\nexport type { AppRouterImportPolicy } from \"./import-policy.js\";\n/** Re-exports link types used by the router root entrypoint. */\nexport type {\n AppRouteDeclarations,\n ConcreteLinkHrefGuard,\n LinkChild,\n LinkHref,\n LinkOptions,\n LinkPrefetch,\n LinkProps,\n RegisteredAppRoutePath,\n LinkScroll,\n LinkTransition,\n TrustedLinkHtml,\n} from \"./link.js\";\n/** Re-exports client navigation state types used by the router root entrypoint. */\nexport type {\n AppRouterNavigationState,\n AppRouterNavigationStateListener,\n AppRouterNavigationType,\n} from \"./navigation-state.js\";\nexport type { RouterRuntimeCacheStat } from \"./runtime-cache.js\";\n/** Configures the deprecated router memory session store alias. */\nexport type { MemorySessionStoreOptions } from \"./session.js\";\nexport type {\n AppRouterCspInlineNonceWarningLogEvent,\n AppRouterLogError,\n AppRouterLogEvent,\n AppRouterLogger,\n AppRouterLogLevel,\n AppRouterRuntime,\n AppRouterRequestEndLogEvent,\n AppRouterRequestErrorLogEvent,\n AppRouterRenderTimingLogEvent,\n AppRouterRequestStartLogEvent,\n AppRouterRequestTimingLogEvent,\n AppRouterUpgradeErrorLogEvent,\n AppRouterUpgradeRejectedLogEvent,\n} from \"./logger.js\";\nexport type { DetectedLocale, LocaleRoutingOptions, MessageTree } from \"./i18n.js\";\nexport {\n createFormCsrfToken,\n formCsrfCookie,\n formCsrfFieldName,\n validateFormCsrf,\n} from \"./csrf.js\";\nexport type {\n AppRouterAllowedServerAction,\n AppRouterServerActionOptions,\n PreparedFormActionReference,\n} from \"./actions.js\";\n/**\n * Configures the deprecated router session cookie alias.\n *\n * @deprecated Import session helpers and types from `@reckona/mreact-auth` instead.\n */\nexport type { SessionCookieOptions } from \"./session.js\";\n/**\n * Stores session data through the deprecated router session record alias.\n *\n * @deprecated Import session helpers and types from `@reckona/mreact-auth` instead.\n */\nexport type { SessionRecord } from \"./session.js\";\n/**\n * Defines session persistence through the deprecated router session store alias.\n *\n * @deprecated Import session helpers and types from `@reckona/mreact-auth` instead.\n */\nexport type { SessionStore } from \"./session.js\";\nexport { startDevServer } from \"./dev-server.js\";\nexport type { StartDevServerOptions } from \"./dev-server.js\";\nexport { renderAppRequest } from \"./render.js\";\nexport type {\n AppRouterRenderPreload,\n AppRouterResponseHook,\n AppRouterResponseHookContext,\n AppRouterServerRenderArtifactLoader,\n RenderAppRequestOptions,\n} from \"./render.js\";\nexport { parseTraceContext, traceContextFromRequest } from \"./trace.js\";\nexport type {\n RouterInstrumentation,\n RouterMiddlewareEndInstrumentationEvent,\n RouterMiddlewareInstrumentationEvent,\n RouterRequestEndInstrumentationEvent,\n RouterRequestInstrumentationEvent,\n RouterRouteEndInstrumentationEvent,\n RouterRouteInstrumentationEvent,\n RouterTraceContext,\n} from \"./trace.js\";\nexport type {\n FileSystemPrerenderStoreOptions,\n KeyValuePrerenderStoreAdapter,\n KeyValuePrerenderStoreOptions,\n MemoryPrerenderStoreEntry,\n MemoryPrerenderStoreOptions,\n} from \"./prerender-store.js\";\nexport { createFileSystemPrerenderStore, createKeyValuePrerenderStore } from \"./prerender-store.js\";\nexport { preloadBuiltAppRuntime, renderBuiltAppRequest, startServer } from \"./serve.js\";\nexport type {\n BuiltAppRuntimePreloadMode,\n AppRouterPrerenderStore,\n BuiltAppRuntimePreloadStrategy,\n RenderBuiltAppRequestOptions,\n RequestHostPolicy,\n ResponseSinkStrategy,\n StartServerOptions,\n} from \"./serve.js\";\nexport { matchRoute, scanAppRoutes } from \"./routes.js\";\nexport type {\n CachedClientRouteSource,\n ClientRouteComponent,\n ClientRouteComponentClassification,\n ClientRouteComponentOrigin,\n ClientRouteInferenceCache,\n ClientRouteInferenceDiagnostic,\n} from \"./client.js\";\nexport type { RouteMatcher, ScanAppRoutesOptions } from \"./routes.js\";\nexport type { AppFileConvention } from \"./file-conventions.js\";\nexport type {\n AppAssetRoute,\n AppMetadataRoute,\n AppRoute,\n MatchedRoute,\n PageRoute,\n RouteSegment,\n ServerRoute,\n} from \"./routes.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,wBAAwB,EAAE,8BAA8B,EAAE,MAAM,YAAY,CAAC;AAChG,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EACL,oBAAoB,EACpB,oB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8B,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AACpG,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAUxF,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC","sourcesContent":["export { buildApp, packageAwsLambdaArtifact, packageCloudflarePagesArtifact } from \"./build.js\";\nexport { assetHref, assetPreloadLinks } from \"./assets.js\";\nexport {\n analyzeAppBoundaries,\n createBoundaryReport,\n formatBoundaryReport,\n formatBoundaryReportJson,\n validateBoundaryExecutionContracts,\n} from \"./boundaries.js\";\nexport type {\n AnalyzeAppBoundariesOptions,\n BoundaryExecutionMode,\n BoundaryReportByteCost,\n BoundaryReport,\n BoundaryReportComponent,\n BoundaryReportCost,\n BoundaryReportDecision,\n BoundaryReportRoute,\n BoundaryReportSummary,\n BoundarySourcePosition,\n BoundarySourceRange,\n CreateBoundaryReportInput,\n CreateBoundaryReportRouteInput,\n} from \"./boundaries.js\";\nexport { cacheControl, createMemoryRouteCache, revalidatePath } from \"./cache.js\";\nexport { deleteCookie, parseCookieHeader, serializeCookie, setCookie } from \"./cookies.js\";\nexport { defineMessages, detectLocale } from \"./i18n.js\";\nexport { defer, isDeferredLoaderData } from \"./deferred.js\";\nexport type { DeferredLoaderData } from \"./deferred.js\";\nexport { definePage } from \"./types.js\";\nexport { Link, linkProps } from \"./link.js\";\nexport type { LinkSerializableAttribute, LinkSinkChild, LinkSinkProps } from \"./link.js\";\nexport { href } from \"./typed-routes.js\";\nexport { parseMultipartStream } from \"./multipart.js\";\nexport type {\n MultipartFixedLengthStream,\n MultipartStreamFieldOptions,\n MultipartStreamParseOptions,\n MultipartStreamPart,\n} from \"./multipart.js\";\nexport { getNavigationState, subscribeNavigationState } from \"./navigation-state.js\";\nexport { getRouterRuntimeCacheStats } from \"./runtime-cache.js\";\nexport { validateHttpUpgradeOrigin } from \"./upgrade.js\";\nexport type {\n HttpUpgradeContext,\n HttpUpgradeDisposition,\n HttpUpgradeHandler,\n HttpUpgradeOriginFailureReason,\n HttpUpgradeOriginPolicy,\n HttpUpgradeOriginValidation,\n ManagedHttpUpgradeHandler,\n ValidateHttpUpgradeOriginOptions,\n} from \"./upgrade.js\";\nexport {\n cookies,\n headers,\n html,\n isNotFoundError,\n isRedirectError,\n json,\n next,\n notFound,\n parseForm,\n redirect,\n redirect303,\n redirectExternal,\n rewrite,\n textError,\n throwNotFound,\n} from \"./navigation.js\";\nexport type { MiddlewareNext, ParseSchema, RedirectOptions, RequestCookies } from \"./navigation.js\";\nexport { createMemoryPrerenderStore } from \"./prerender-store.js\";\nexport { getServerRuntimeState } from \"./runtime-state.js\";\nimport {\n createMemorySessionStore as createMemorySessionStoreInternal,\n createSession as createSessionInternal,\n destroySession as destroySessionInternal,\n getSession as getSessionInternal,\n rotateSession as rotateSessionInternal,\n} from \"./session.js\";\nimport type {\n MemorySessionStoreOptions as MemorySessionStoreOptionsInternal,\n SessionCookieOptions as SessionCookieOptionsInternal,\n SessionRecord as SessionRecordInternal,\n SessionStore as SessionStoreInternal,\n} from \"./session.js\";\n\n/**\n * Creates a deprecated process-local session store alias.\n *\n * @deprecated Import session helpers from `@reckona/mreact-auth` instead.\n */\nexport function createMemorySessionStore<TData = unknown>(\n options: MemorySessionStoreOptionsInternal = {},\n): SessionStoreInternal<TData> {\n return createMemorySessionStoreInternal<TData>(options);\n}\n/**\n * Creates a deprecated session record and cookie alias.\n *\n * @deprecated Import session helpers from `@reckona/mreact-auth` instead.\n */\nexport async function createSession<TData>(\n response: Response,\n store: SessionStoreInternal<TData>,\n data: TData,\n options: SessionCookieOptionsInternal = {},\n): Promise<SessionRecordInternal<TData>> {\n return createSessionInternal(response, store, data, options);\n}\n/**\n * Destroys a session through a deprecated router session alias.\n *\n * @deprecated Import session helpers from `@reckona/mreact-auth` instead.\n */\nexport async function destroySession<TData>(\n request: Request,\n response: Response,\n store: SessionStoreInternal<TData>,\n options: SessionCookieOptionsInternal = {},\n): Promise<void> {\n return destroySessionInternal(request, response, store, options);\n}\n/**\n * Reads a session through a deprecated router session alias.\n *\n * @deprecated Import session helpers from `@reckona/mreact-auth` instead.\n */\nexport async function getSession<TData>(\n request: Request,\n store: SessionStoreInternal<TData>,\n options: SessionCookieOptionsInternal = {},\n): Promise<SessionRecordInternal<TData> | undefined> {\n return getSessionInternal(request, store, options);\n}\n/**\n * Rotates a session through a deprecated router session alias.\n *\n * @deprecated Import session helpers from `@reckona/mreact-auth` instead.\n */\nexport async function rotateSession<TData>(\n request: Request,\n response: Response,\n store: SessionStoreInternal<TData>,\n options: SessionCookieOptionsInternal = {},\n): Promise<SessionRecordInternal<TData> | undefined> {\n return rotateSessionInternal(request, response, store, options);\n}\nexport type {\n AwsLambdaArtifactManifest,\n AwsLambdaGeneratedHandlerPreloadMode,\n BoundaryCostOptions,\n BuildAppPhase,\n BuildAppPhaseTiming,\n BuildAppOptions,\n BuildAppProgressEvent,\n BuildAppResult,\n BuiltImportPolicyArtifact,\n BuiltPrerenderedRoute,\n BuiltRouteSourceAnalysisSummary,\n BuiltServerModuleArtifact,\n BuiltServerModuleOutput,\n CloudflarePagesArtifactManifest,\n PackageAwsLambdaArtifactOptions,\n PackageCloudflarePagesArtifactOptions,\n} from \"./build.js\";\nexport type { AppRouterProjectOptions } from \"./config.js\";\nexport type { ServerActionContext } from \"./actions.js\";\nexport type {\n AppRouteHref,\n AppRouteLinkHref,\n AppRouteLinkHrefSuffix,\n AppRouteLinkPathname,\n AppRouteLinkSegment,\n AppRouteLinkSegments,\n DynamicHrefOptions,\n RouteParamsFor,\n RouteSearchParams,\n RouteSearchValue,\n SegmentRouteParam,\n StaticHrefOptions,\n ExtractRouteParams,\n HasRouteParams,\n Simplify,\n} from \"./typed-routes.js\";\nexport type {\n InferLoaderData,\n InferLoaderParams,\n LayoutProps,\n LoaderContext,\n GenerateMetadataContext,\n ManifestContext,\n ManifestDescriptor,\n MetadataImage,\n MetadataScalar,\n MetadataThemeColor,\n MetadataViewport,\n MReactNode,\n PageProps,\n PageComponent,\n RobotsContext,\n RobotsManifest,\n RobotsRule,\n RouteHeadDescriptor,\n RouteHandlerContext,\n RouteLocation,\n RouteLoader,\n RouteMetadata,\n RouteParams,\n RouteSecurityHeaders,\n RouteStrictTransportSecurity,\n SitemapContext,\n SitemapEntry,\n} from \"./types.js\";\nexport type {\n AppRouterBuildTarget,\n AppRouterClientConsoleMethod,\n AppRouterClientSourceMapMode,\n AppRouterClientSourceMapOption,\n AppRouterExecutionContracts,\n AppRouterProductionOptions,\n} from \"./config.js\";\nexport type {\n AssetHelperOptions,\n AssetLinkDescriptor,\n AssetManifest,\n AssetManifestEntry,\n} from \"./assets.js\";\nexport type {\n AppRouterCache,\n AppRouterCacheEntry,\n CacheControlOptions,\n MemoryRouteCacheOptions,\n RouteCachePolicy,\n} from \"./cache.js\";\nexport type { CookieOptions } from \"./cookies.js\";\nexport type { AppRouterImportPolicy } from \"./import-policy.js\";\n/** Re-exports link types used by the router root entrypoint. */\nexport type {\n AppRouteDeclarations,\n ConcreteLinkHrefGuard,\n LinkChild,\n LinkHref,\n LinkOptions,\n LinkPrefetch,\n LinkProps,\n RegisteredAppRoutePath,\n LinkScroll,\n LinkTransition,\n TrustedLinkHtml,\n} from \"./link.js\";\n/** Re-exports client navigation state types used by the router root entrypoint. */\nexport type {\n AppRouterNavigationState,\n AppRouterNavigationStateListener,\n AppRouterNavigationType,\n} from \"./navigation-state.js\";\nexport type { RouterRuntimeCacheStat } from \"./runtime-cache.js\";\n/** Configures the deprecated router memory session store alias. */\nexport type { MemorySessionStoreOptions } from \"./session.js\";\nexport type {\n AppRouterCspInlineNonceWarningLogEvent,\n AppRouterLogError,\n AppRouterLogEvent,\n AppRouterLogger,\n AppRouterLogLevel,\n AppRouterRuntime,\n AppRouterRequestEndLogEvent,\n AppRouterRequestErrorLogEvent,\n AppRouterRenderTimingLogEvent,\n AppRouterRequestStartLogEvent,\n AppRouterRequestTimingLogEvent,\n AppRouterUpgradeErrorLogEvent,\n AppRouterUpgradeRejectedLogEvent,\n} from \"./logger.js\";\nexport type { DetectedLocale, LocaleRoutingOptions, MessageTree } from \"./i18n.js\";\nexport {\n createFormCsrfToken,\n formCsrfCookie,\n formCsrfFieldName,\n validateFormCsrf,\n} from \"./csrf.js\";\nexport type {\n AppRouterAllowedServerAction,\n AppRouterServerActionOptions,\n PreparedFormActionReference,\n} from \"./actions.js\";\n/**\n * Configures the deprecated router session cookie alias.\n *\n * @deprecated Import session helpers and types from `@reckona/mreact-auth` instead.\n */\nexport type { SessionCookieOptions } from \"./session.js\";\n/**\n * Stores session data through the deprecated router session record alias.\n *\n * @deprecated Import session helpers and types from `@reckona/mreact-auth` instead.\n */\nexport type { SessionRecord } from \"./session.js\";\n/**\n * Defines session persistence through the deprecated router session store alias.\n *\n * @deprecated Import session helpers and types from `@reckona/mreact-auth` instead.\n */\nexport type { SessionStore } from \"./session.js\";\nexport { startDevServer } from \"./dev-server.js\";\nexport type { StartDevServerOptions } from \"./dev-server.js\";\nexport { renderAppRequest } from \"./render.js\";\nexport type {\n AppRouterRenderPreload,\n AppRouterResponseHook,\n AppRouterResponseHookContext,\n AppRouterServerRenderArtifactLoader,\n RenderAppRequestOptions,\n} from \"./render.js\";\nexport { parseTraceContext, traceContextFromRequest } from \"./trace.js\";\nexport type {\n RouterInstrumentation,\n RouterMiddlewareEndInstrumentationEvent,\n RouterMiddlewareInstrumentationEvent,\n RouterRequestEndInstrumentationEvent,\n RouterRequestInstrumentationEvent,\n RouterRouteEndInstrumentationEvent,\n RouterRouteInstrumentationEvent,\n RouterTraceContext,\n} from \"./trace.js\";\nexport type {\n FileSystemPrerenderStoreOptions,\n KeyValuePrerenderStoreAdapter,\n KeyValuePrerenderStoreOptions,\n MemoryPrerenderStoreEntry,\n MemoryPrerenderStoreOptions,\n} from \"./prerender-store.js\";\nexport { createFileSystemPrerenderStore, createKeyValuePrerenderStore } from \"./prerender-store.js\";\nexport { preloadBuiltAppRuntime, renderBuiltAppRequest, startServer } from \"./serve.js\";\nexport type {\n BuiltAppRuntimePreloadMode,\n AppRouterPrerenderStore,\n BuiltAppRuntimePreloadStrategy,\n RenderBuiltAppRequestOptions,\n RequestHostPolicy,\n ResponseSinkStrategy,\n StartServerOptions,\n} from \"./serve.js\";\nexport { matchRoute, scanAppRoutes } from \"./routes.js\";\nexport type {\n CachedClientRouteSource,\n ClientRouteComponent,\n ClientRouteComponentClassification,\n ClientRouteComponentOrigin,\n ClientRouteInferenceCache,\n ClientRouteInferenceDiagnostic,\n} from \"./client.js\";\nexport type { RouteMatcher, ScanAppRoutesOptions } from \"./routes.js\";\nexport type { AppFileConvention } from \"./file-conventions.js\";\nexport type {\n AppAssetRoute,\n AppMetadataRoute,\n AppRoute,\n MatchedRoute,\n PageRoute,\n RouteSegment,\n ServerRoute,\n} from \"./routes.js\";\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../src/render.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAEV,gBAAgB,EAChB,eAAe,EAChB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAOL,KAAK,gBAAgB,EACrB,KAAK,WAAW,EACjB,MAAM,uBAAuB,CAAC;AAS/B,OAAO,EAIL,KAAK,yBAAyB,EAE/B,MAAM,6BAA6B,CAAC;AAUrC,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAExE,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAIjC,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,KAAK,cAAc,EAOpB,MAAM,YAAY,CAAC;AAkBpB,OAAO,EAAqC,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEnG,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACrD,OAAO,KAAK,EAAmC,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAa7F,OAAO,E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AAC,QAAQ,CAAC,GAAG,SAAS,CAAC;IAC1C,2BAA2B,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;IACjD,wBAAwB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9C,WAAW,CAAC,EAAE,SAAS,YAAY,EAAE,GAAG,SAAS,CAAC;CACnD,GAAG,MAAM,GAAG,SAAS,CAOrB;AAED,eAAO,MAAM,yCAAyC,sCAAgC,CAAC;AAqMvF,UAAU,YAAY;IACpB,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC;CAC1B;AAED,iBAAS,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,EAAE,CAmDnD;AAED,eAAO,MAAM,yBAAyB,sBAAgB,CAAC"}
package/dist/render.js CHANGED
@@ -15,7 +15,7 @@ import { appFileConventionContentType } from "./file-conventions.js";
15
15
  import { dispatchServerActionRequest, prepareRouteServerActionPlaceholders, prepareRouteServerActions, } from "./actions.js";
16
16
  import { serverActionCookie } from "./csrf.js";
17
17
  import { activeRouteCacheContext, withRouteCacheContext, cachedRouteResponse, cacheRouteResponse, routeCacheKey, routeCachePolicyFromSource, } from "./cache.js";
18
- import { trackRequestHeaderReads, withTrackedRequest, } from "./request-header-tracking.js";
18
+ import { trackRequestHeaderReads, routeLocationFromRequest, routeLocationForHydration, routeLocationFromUrl, withTrackedRouteLocation, withTrackedRequest, } from "./request-header-tracking.js";
19
19
  import { configuredHstsHeader, hasInvalidConfiguredHsts } from "./security-headers.js";
20
20
  import { resolveRouterCacheLimit } from "./cache-config.js";
21
21
  import { protectNonceBearingResponse } from "./prerender-entry.js";
@@ -638,7 +638,7 @@ async function renderAppRequestInternal(options) {
638
638
  clientRoute,
639
639
  props: {
640
640
  params: matched.params,
641
- request: { url: url.pathname },
641
+ request: routeLocationForHydration(url),
642
642
  },
643
643
  routePath: matched.route.path,
644
644
  script: clientScript,
@@ -696,11 +696,11 @@ async function renderAppRequestInternal(options) {
696
696
  headers: { "content-type": "text/plain; charset=utf-8" },
697
697
  });
698
698
  }
699
- const renderedPage = await runWithQueryClient(queryClient, () => runServerModuleWithSlots(stringOutput.code, withTrackedRequest({
699
+ const renderedPage = await runWithQueryClient(queryClient, () => runServerModuleWithSlots(stringOutput.code, withTrackedRouteLocation({
700
700
  data,
701
701
  params: matched.params,
702
702
  queryClient,
703
- }, appRequest, trackedRequest), matched.route.file, options.serverModules, options.serverModuleCacheVersion, options.define, options.vitePlugins, undefined, options.importPolicy, options.devServerModuleCacheVersion));
703
+ }, appRequest, trackedRequest, routeLocationFromUrl(url)), matched.route.file, options.serverModules, options.serverModuleCacheVersion, options.define, options.vitePlugins, undefined, options.importPolicy, options.devServerModuleCacheVersion));
704
704
  const pageHtml = renderedPage.html;
705
705
  const pageHtmlForLayout = clientRoute
706
706
  ? withHydrationMarkers({
@@ -711,7 +711,7 @@ async function renderAppRequestInternal(options) {
711
711
  script: clientScript,
712
712
  props: {
713
713
  params: matched.params,
714
- request: { url: url.pathname },
714
+ request: routeLocationForHydration(url),
715
715
  data,
716
716
  },
717
717
  })
@@ -720,11 +720,11 @@ async function renderAppRequestInternal(options) {
720
720
  appDir: options.appDir,
721
721
  pageFile: matched.route.file,
722
722
  html: pageHtmlForLayout,
723
- props: withTrackedRequest({
723
+ props: withTrackedRouteLocation({
724
724
  data,
725
725
  params: matched.params,
726
726
  queryClient,
727
- }, appRequest, trackedRequest),
727
+ }, appRequest, trackedRequest, routeLocationFromUrl(url)),
728
728
  slots: renderedPage.slots,
729
729
  serverModules: options.serverModules,
730
730
  serverModuleCacheVersion: options.serverModuleCacheVersion,
@@ -834,7 +834,7 @@ async function renderAppRequestInternal(options) {
834
834
  params: matched.params,
835
835
  queryClient,
836
836
  request: appRequest,
837
- requestUrl: url.pathname,
837
+ requestUrl: url.href,
838
838
  trackedRequest,
839
839
  routePath: matched.route.path,
840
840
  routeScripts: options.clientScripts,
@@ -860,11 +860,11 @@ async function renderAppRequestInternal(options) {
860
860
  return response;
861
861
  }
862
862
  const data = streamData;
863
- const props = withTrackedRequest({
863
+ const props = withTrackedRouteLocation({
864
864
  data,
865
865
  params: matched.params,
866
866
  queryClient,
867
- }, appRequest, trackedRequest);
867
+ }, appRequest, trackedRequest, routeLocationFromUrl(url));
868
868
  phaseStartedAt = renderTimingPhaseStartedAt(timing);
869
869
  const stream = runServerStreamModule(output.code, {
870
870
  appDir: options.appDir,
@@ -873,7 +873,7 @@ async function renderAppRequestInternal(options) {
873
873
  markerRequest: options.request,
874
874
  prerenderVariantCapture: options.prerenderVariantCapture,
875
875
  props,
876
- requestUrl: url.pathname,
876
+ requestUrl: url.href,
877
877
  routePath: matched.route.path,
878
878
  routeScripts: options.clientScripts,
879
879
  serverModules: options.serverModules,
@@ -933,11 +933,11 @@ async function renderAppRequestInternal(options) {
933
933
  });
934
934
  }
935
935
  phaseStartedAt = renderTimingPhaseStartedAt(timing);
936
- const renderedPage = await runWithQueryClient(queryClient, () => runServerModuleWithSlots(output.code, withTrackedRequest({
936
+ const renderedPage = await runWithQueryClient(queryClient, () => runServerModuleWithSlots(output.code, withTrackedRouteLocation({
937
937
  data,
938
938
  params: matched.params,
939
939
  queryClient,
940
- }, appRequest, trackedRequest), matched.route.file, options.serverModules, options.serverModuleCacheVersion, options.define, options.vitePlugins, timing, options.importPolicy, options.devServerModuleCacheVersion));
940
+ }, appRequest, trackedRequest, routeLocationFromUrl(url)), matched.route.file, options.serverModules, options.serverModuleCacheVersion, options.define, options.vitePlugins, timing, options.importPolicy, options.devServerModuleCacheVersion));
941
941
  finishRenderTimingPhase(timing, phaseStartedAt, "pageRenderMs");
942
942
  const pageHtml = renderedPage.html;
943
943
  // Wrap the page (not the full document) with the hydration marker so
@@ -954,7 +954,7 @@ async function renderAppRequestInternal(options) {
954
954
  script: clientScript,
955
955
  props: {
956
956
  params: matched.params,
957
- request: { url: url.pathname },
957
+ request: routeLocationForHydration(url),
958
958
  data,
959
959
  },
960
960
  })
@@ -964,11 +964,11 @@ async function renderAppRequestInternal(options) {
964
964
  appDir: options.appDir,
965
965
  pageFile: matched.route.file,
966
966
  html: pageHtmlForLayout,
967
- props: withTrackedRequest({
967
+ props: withTrackedRouteLocation({
968
968
  data,
969
969
  params: matched.params,
970
970
  queryClient,
971
- }, appRequest, trackedRequest),
971
+ }, appRequest, trackedRequest, routeLocationFromUrl(url)),
972
972
  slots: renderedPage.slots,
973
973
  serverModules: options.serverModules,
974
974
  serverModuleCacheVersion: options.serverModuleCacheVersion,
@@ -1432,7 +1432,7 @@ function errorBoundaryProps(error, request, routePath) {
1432
1432
  error: normalizeErrorForProps(error),
1433
1433
  params: {},
1434
1434
  queryClient: createQueryClient(),
1435
- request,
1435
+ request: routeLocationFromRequest(request),
1436
1436
  requestId: requestIdForErrorContext(request),
1437
1437
  routeId: routeIdForPath(routePath ?? new URL(request.url).pathname),
1438
1438
  traceId: traceContextFromRequest(request)?.traceId,
@@ -2193,7 +2193,7 @@ function runServerStreamModule(code, options) {
2193
2193
  script: options.script,
2194
2194
  props: {
2195
2195
  params: options.props.params,
2196
- request: { url: options.requestUrl },
2196
+ request: routeLocationForHydration(new URL(options.requestUrl, options.markerRequest.url)),
2197
2197
  data: options.props.data,
2198
2198
  },
2199
2199
  })
@@ -2311,11 +2311,11 @@ function localServerSourceImportCandidates(base) {
2311
2311
  return candidates;
2312
2312
  }
2313
2313
  async function runServerStreamModuleWithLoading(code, options) {
2314
- const loadingProps = withTrackedRequest({
2314
+ const loadingProps = withTrackedRouteLocation({
2315
2315
  data: undefined,
2316
2316
  params: options.params,
2317
2317
  queryClient: options.queryClient,
2318
- }, options.request, options.trackedRequest);
2318
+ }, options.request, options.trackedRequest, routeLocationFromUrl(new URL(options.requestUrl)));
2319
2319
  const layoutShells = await layoutShellsForPage(options.appDir, options.pageFile, loadingProps, {}, options.serverModules, options.serverModuleCacheVersion, options.serverSourceFiles, options.clientRouteInferenceCache, options.define, options.vitePlugins, options.importPolicy);
2320
2320
  const loadingHtml = await renderServerFileToHtml(options.loadingFile, loadingProps, options.serverModules, options.serverModuleCacheVersion, options.serverSourceFiles, options.define, options.vitePlugins);
2321
2321
  const marker = options.clientRoute
@@ -2326,7 +2326,7 @@ async function runServerStreamModuleWithLoading(code, options) {
2326
2326
  script: options.script,
2327
2327
  props: {
2328
2328
  params: options.params,
2329
- request: { url: options.requestUrl },
2329
+ request: routeLocationForHydration(new URL(options.requestUrl)),
2330
2330
  },
2331
2331
  })
2332
2332
  : serverOnlyRouteMarkerParts(options.routePath, options.markerRequest, options.prerenderVariantCapture === true);
@@ -2349,11 +2349,11 @@ async function runServerStreamModuleWithLoading(code, options) {
2349
2349
  }
2350
2350
  sink.append(marker?.prefix ?? "");
2351
2351
  renderOutOfOrderBoundary(sink, "mreact-route", options.data, async (boundarySink, data) => {
2352
- await appendServerStreamModule(code, boundarySink, withTrackedRequest({
2352
+ await appendServerStreamModule(code, boundarySink, withTrackedRouteLocation({
2353
2353
  data,
2354
2354
  params: options.params,
2355
2355
  queryClient: options.queryClient,
2356
- }, options.request, options.trackedRequest), options.pageFile, options.serverModules, options.serverModuleCacheVersion, options.define, options.vitePlugins, options.importPolicy);
2356
+ }, options.request, options.trackedRequest, routeLocationFromUrl(new URL(options.requestUrl))), options.pageFile, options.serverModules, options.serverModuleCacheVersion, options.define, options.vitePlugins, options.importPolicy);
2357
2357
  }, {
2358
2358
  async catch(boundarySink, error) {
2359
2359
  try {