@teyik0/furin 0.8.0-alpha.0 → 0.9.0-alpha.1

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 (153) hide show
  1. package/README.md +37 -0
  2. package/dist/adapter/bun/app.d.ts +1 -0
  3. package/dist/adapter/bun.d.ts +3 -1
  4. package/dist/adapter/runtime-build.d.ts +8 -5
  5. package/dist/adapter/vercel.js +8 -8
  6. package/dist/build/client.d.ts +2 -2
  7. package/dist/build/discover-mounts-process.d.ts +1 -1
  8. package/dist/build/discover-pages-process.d.ts +1 -0
  9. package/dist/build/discover-pages.d.ts +11 -0
  10. package/dist/build/discovery-module.d.ts +3 -0
  11. package/dist/build/discovery-plugins.d.ts +34 -0
  12. package/dist/build/elysia-aot.d.ts +1 -1
  13. package/dist/build/entry-template.ts +6 -1
  14. package/dist/build/hydrate.d.ts +3 -2
  15. package/dist/build/index.js +7688 -8458
  16. package/dist/build/preload-manifest.d.ts +2 -2
  17. package/dist/build/route-metadata.d.ts +31 -0
  18. package/dist/build/route-types.d.ts +1 -1
  19. package/dist/build/shared.d.ts +2 -2
  20. package/dist/build/types.d.ts +11 -0
  21. package/dist/cli/dev-worker.d.ts +1 -0
  22. package/dist/cli/dev-worker.ts +129 -0
  23. package/dist/cli/dev.d.ts +1 -0
  24. package/dist/cli/index.js +7814 -8473
  25. package/dist/client/browser-events-runtime.d.ts +2 -2
  26. package/dist/client/browser-events.d.ts +2 -0
  27. package/dist/client/chunks/{client-brdfd773.js → client-rjhxgt64.js} +187 -4
  28. package/dist/client/dev-error-overlay.ts +18 -1
  29. package/dist/client/link.js +127 -170
  30. package/dist/client/query-store.d.ts +5 -0
  31. package/dist/client/router/navigation-controller.d.ts +2 -0
  32. package/dist/client/router/use-fetch-interception.d.ts +1 -1
  33. package/dist/client/router/use-sync-stream.d.ts +1 -1
  34. package/dist/client/{router/sync-catch-up.d.ts → sync-catch-up.d.ts} +5 -3
  35. package/dist/client/sync-client.d.ts +74 -0
  36. package/dist/client.d.ts +1 -0
  37. package/dist/client.js +533 -145
  38. package/dist/config.d.ts +6 -1
  39. package/dist/config.js +3 -1
  40. package/dist/define-route.d.ts +3 -3
  41. package/dist/furin.d.ts +2 -1
  42. package/dist/furin.js +1168 -393
  43. package/dist/plugin/index.js +5 -5
  44. package/dist/plugin/route-registry.d.ts +22 -2
  45. package/dist/rsc/build/index.d.ts +4 -3
  46. package/dist/server/dev/server-only-module.d.ts +5 -0
  47. package/dist/server/internal.js +241 -129
  48. package/dist/server/logging/ingest-plugin.d.ts +1 -2
  49. package/dist/server/production-server.js +36 -33
  50. package/dist/server/render/index.d.ts +0 -1
  51. package/dist/server/render/index.ts +0 -1
  52. package/dist/server/render/shell.d.ts +1 -13
  53. package/dist/server/render/shell.ts +1 -90
  54. package/dist/server/server-entry.d.ts +5 -0
  55. package/dist/server/server-entry.js +36 -0
  56. package/dist/server/static-export.js +241 -129
  57. package/dist/server/sync/adapter.d.ts +4 -3
  58. package/dist/server/sync/config.d.ts +7 -0
  59. package/dist/server/sync/connection.d.ts +13 -0
  60. package/dist/server/sync/drizzle/index.js +5 -4
  61. package/dist/server/sync/index.d.ts +3 -0
  62. package/dist/server/sync/index.js +1361 -243
  63. package/dist/server/sync/invalidate-sync.d.ts +6 -2
  64. package/dist/server/sync/local-client.d.ts +9 -0
  65. package/dist/server/sync/postgres/index.d.ts +1 -1
  66. package/dist/server/sync/postgres/index.js +2 -2
  67. package/dist/server/sync/prisma/index.js +2 -2
  68. package/dist/server/sync/redis/index.d.ts +1 -1
  69. package/dist/server/sync/redis/index.js +4 -3
  70. package/dist/server/sync/redis/scripts.d.ts +1 -1
  71. package/dist/server/sync/runtime.d.ts +3 -0
  72. package/dist/server/sync/sqlite/index.d.ts +1 -1
  73. package/dist/server/sync/sqlite/index.js +3 -2
  74. package/dist/shared/browser-events.d.ts +4 -0
  75. package/dist/shared/not-found.d.ts +1 -1
  76. package/dist/sync-client.d.ts +3 -0
  77. package/dist/sync-client.js +1600 -0
  78. package/package.json +14 -9
  79. package/src/adapter/README.md +7 -0
  80. package/src/adapter/build.ts +34 -33
  81. package/src/adapter/bun/app.ts +5 -0
  82. package/src/adapter/bun/server.ts +2 -2
  83. package/src/adapter/bun.ts +18 -2
  84. package/src/adapter/furin-app.d.ts +1 -0
  85. package/src/adapter/package.ts +1 -0
  86. package/src/adapter/runtime-build.ts +18 -12
  87. package/src/adapter/static.ts +17 -13
  88. package/src/build/client.ts +7 -5
  89. package/src/build/discover-mounts-process.ts +5 -1
  90. package/src/build/discover-pages-process.ts +151 -0
  91. package/src/build/discover-pages.ts +69 -0
  92. package/src/build/discovery-module.ts +70 -0
  93. package/src/build/discovery-plugins.ts +101 -0
  94. package/src/build/elysia-aot-worker.ts +9 -8
  95. package/src/build/elysia-aot.ts +110 -75
  96. package/src/build/entry-template.ts +6 -1
  97. package/src/build/hydrate.ts +11 -8
  98. package/src/build/index.ts +6 -50
  99. package/src/build/preload-manifest.ts +3 -3
  100. package/src/build/route-metadata.ts +90 -0
  101. package/src/build/route-types.ts +1 -1
  102. package/src/build/shared.ts +6 -8
  103. package/src/build/types.ts +9 -0
  104. package/src/cli/config.ts +4 -0
  105. package/src/cli/dev-worker.ts +129 -0
  106. package/src/cli/dev.ts +106 -0
  107. package/src/cli/index.ts +24 -1
  108. package/src/client/browser-events-runtime.ts +97 -23
  109. package/src/client/browser-events.ts +8 -0
  110. package/src/client/dev-error-overlay.ts +18 -1
  111. package/src/client/link.tsx +21 -22
  112. package/src/client/query-store.ts +54 -3
  113. package/src/client/router/context.ts +8 -7
  114. package/src/client/router/navigation-controller.ts +45 -12
  115. package/src/client/router/provider.tsx +11 -2
  116. package/src/client/router/use-fetch-interception.ts +1 -1
  117. package/src/client/router/use-sync-stream.ts +96 -44
  118. package/src/client/{router/sync-catch-up.ts → sync-catch-up.ts} +28 -12
  119. package/src/client/sync-client.ts +528 -0
  120. package/src/client/sync.ts +11 -4
  121. package/src/client.ts +10 -0
  122. package/src/config.ts +17 -10
  123. package/src/furin.ts +5 -0
  124. package/src/plugin/route-registry.ts +53 -7
  125. package/src/rsc/build/index.ts +6 -3
  126. package/src/server/browser-events/plugin.ts +79 -25
  127. package/src/server/dev/rewrite-module-specifiers.ts +2 -1
  128. package/src/server/dev/server-only-module.ts +23 -0
  129. package/src/server/dev/symbolicate.ts +4 -3
  130. package/src/server/dev-page-imports.ts +3 -1
  131. package/src/server/dev-page-plugin.ts +18 -1
  132. package/src/server/logging/ingest-plugin.ts +3 -9
  133. package/src/server/render/index.ts +0 -1
  134. package/src/server/render/shell.ts +1 -90
  135. package/src/server/server-entry.ts +39 -0
  136. package/src/server/sync/adapter.ts +7 -3
  137. package/src/server/sync/config.ts +12 -6
  138. package/src/server/sync/connection.ts +71 -0
  139. package/src/server/sync/index.ts +3 -0
  140. package/src/server/sync/invalidate-sync.ts +30 -5
  141. package/src/server/sync/local-client.ts +84 -0
  142. package/src/server/sync/plugin.ts +27 -20
  143. package/src/server/sync/postgres/index.ts +9 -2
  144. package/src/server/sync/redis/index.ts +5 -1
  145. package/src/server/sync/redis/scripts.ts +1 -1
  146. package/src/server/sync/runtime.ts +56 -18
  147. package/src/server/sync/sqlite/index.ts +6 -2
  148. package/src/server/sync/stream.ts +17 -5
  149. package/src/shared/browser-events.ts +1 -1
  150. package/src/shared/not-found.ts +1 -1
  151. package/src/sync-client.ts +14 -0
  152. package/dist/server/logger.d.ts +0 -10
  153. package/src/server/logger.ts +0 -34
package/README.md CHANGED
@@ -31,6 +31,43 @@ bun create furin@latest my-app --template full
31
31
 
32
32
  Full API reference, rendering modes, routing, and deployment guides at **[teyik0.github.io/furin](https://teyik0.github.io/furin/)**.
33
33
 
34
+ Live queries also support continuous subscriptions outside React with
35
+ `createSyncClient` from `@teyik0/furin/sync/client`. See the complete Bun example,
36
+ authentication contract and shutdown behavior in the
37
+ [sync guide](https://teyik0.github.io/furin/docs/sync#continuous-subscriptions-outside-react).
38
+ For a consumer in the same Bun process, `createLocalSyncClient({ app, sync })`
39
+ from `@teyik0/furin/sync` follows `treaty(app)` live queries without a listener or socket.
40
+
41
+ ## Web development listener
42
+
43
+ `furin dev --web` honors a source-owned Elysia `.listen(...)` and awaits its startup hooks. Export the app as default or as `app` if it does not listen during import; the CLI supplies `127.0.0.1:3000` for that form. An explicit `--port` takes priority over `PORT` and changes only the listener port, preserving other options. Release resources in `.onStop()`: hot replacement and cancellation await `app.stop(true)` before replacing/exiting the application. Source-owned listeners should sit outside `import.meta.main`; standalone signal handlers can stay guarded. Desktop-configured applications can use the [web owner bootstrap](https://github.com/teyik0/furin/blob/main/packages/electrobun/README.md#development-and-production) without launching a native host.
44
+
45
+ ## Importable Bun application
46
+
47
+ `furin build --target bun --output app` builds `.furin/build/bun/app.js` for a
48
+ host that imports the application into its own Bun process. The default export
49
+ is the composed Elysia application; importing it does not start a listener or
50
+ invoke the source entry's `startServer`. Existing named exports (`onShutdown`,
51
+ `port`, `idleTimeout`, and `startServer`) remain available to the host.
52
+
53
+ ```ts
54
+ const { default: app, onShutdown } = await import("./.furin/build/bun/app.js");
55
+ app.listen(0); // The host owns startup and shutdown.
56
+ // When shutting down: await onShutdown?.(); await app.stop();
57
+ ```
58
+
59
+ Export the Elysia app as default from `src/server.ts` and guard source startup
60
+ with `if (import.meta.main) { app.listen(port); }`. Arbitrary source import side
61
+ effects are not removed. Move the **whole** Bun output directory with its
62
+ `client/` and optional `public/` assets, not just `app.js`.
63
+
64
+ The equivalent configuration is `bun: { output: "app" }` in `furin.config.ts`.
65
+ The build API accepts `bun: { output: "app" }` alongside `target: "bun"`.
66
+ Its Bun target manifest sets `appPath` to the importable artifact and
67
+ `serverPath` to `null`. Without `output`, or with `output: "server"`, the normal
68
+ listening `server.js` output remains unchanged. Explicit output is Bun-only;
69
+ `output: "app"` cannot be combined with binary `compile` modes.
70
+
34
71
  ## Replayable mutations
35
72
 
36
73
  Install `furinSync(sync)` on an Elysia API plugin to make mutations idempotent and replayable by default, and pass the same explicit runtime to `furin({ sync })`. Send an `Idempotency-Key` on every mutation handled by `furinSync()`; routes using `idempotent: false` or `furinInvalidate()` without `furinSync()` do not require one. Use `idempotent: false` for payments, uploads, streams, and other non-replayable effects: their invalidations still apply and broadcast. SQLite `:memory:` is available for development and tests but rejected in production. Use file-backed SQLite for one host, or PostgreSQL/Redis for multi-host replicas. Adapters ship as isolated `@teyik0/furin/sync/*` subpaths.
@@ -0,0 +1 @@
1
+ export { default, idleTimeout, onShutdown, onStartup, port, startServer } from "furin:app";
@@ -1,7 +1,9 @@
1
1
  import type { FurinAdapter } from "./types.ts";
2
2
  export type BunCompileMode = "server" | "embed";
3
+ /** `server` emits a listening `server.js`, `app` an importable, inert `app.js`. */
4
+ export type BunOutput = "app" | "server";
3
5
  /**
4
6
  * Bun server bundle, optionally compiled into an executable. Requests reach
5
7
  * `Bun.serve()`, Furin serves assets and caches public pages itself.
6
8
  */
7
- export declare function bun(compile: BunCompileMode | undefined): FurinAdapter;
9
+ export declare function bun(compile: BunCompileMode | undefined, bunOutput: BunOutput | undefined): FurinAdapter;
@@ -1,6 +1,8 @@
1
1
  import type { EntryAppContext } from "../build/entry-template.ts";
2
+ import { type BuildRoot, type BuildRouteInput } from "../build/route-metadata.ts";
2
3
  import type { BuildAppOptions } from "../build/types.ts";
3
- import type { ResolvedRoute, RootLayout } from "../server/router/types.ts";
4
+ import type { RouteRegistrySnapshot } from "../plugin/route-registry.ts";
5
+ import type { RootLayout } from "../server/router/types.ts";
4
6
  /**
5
7
  * Typed runtime modules are bundled from the TypeScript sources the package
6
8
  * always ships, also when this module runs from `dist/`.
@@ -11,8 +13,8 @@ export declare function frameworkSourceModule(path: string): string;
11
13
  * output: client chunks, route shape, route/root/error/not-found source
12
14
  * contents, their application dependencies and the framework's own render pipeline sources.
13
15
  */
14
- export declare function createBuildFingerprint(entryChunk: string, cssChunks: string[], routes: ResolvedRoute[], root: RootLayout, serverEntry: string | null, routeSources: string[], projectRoot: string): Promise<string>;
15
- export declare function buildCompileMetadata(root: RootLayout, routes: ResolvedRoute[]): {
16
+ export declare function createBuildFingerprint(entryChunk: string, cssChunks: string[], routes: BuildRouteInput[], root: BuildRoot | RootLayout, serverEntry: string | null, routeSources: string[], projectRoot: string): Promise<string>;
17
+ export declare function buildCompileMetadata(root: BuildRoot | RootLayout, routes: BuildRouteInput[]): {
16
18
  rootConventions: {
17
19
  errorPath: string | undefined;
18
20
  notFoundPath: string | undefined;
@@ -32,8 +34,9 @@ export declare function buildCompileMetadata(root: RootLayout, routes: ResolvedR
32
34
  export interface RuntimeTargetApp {
33
35
  pagesDir: string;
34
36
  prefix: string;
35
- root: RootLayout;
36
- routes: ResolvedRoute[];
37
+ root: BuildRoot | RootLayout;
38
+ routeRegistry?: RouteRegistrySnapshot;
39
+ routes: BuildRouteInput[];
37
40
  }
38
41
  /** Avoid loading React's resumable renderer in applications without PPR routes. */
39
42
  export declare function pprRuntimePlugin(apps: RuntimeTargetApp[]): Bun.BunPlugin;
@@ -49,6 +49,14 @@ function compareRouteSpecificity(a, b) {
49
49
  }
50
50
  return 0;
51
51
  }
52
+
53
+ // src/shared/prefix.ts
54
+ function physicalPath(prefix, path) {
55
+ if (prefix === "") {
56
+ return path;
57
+ }
58
+ return path === "/" ? prefix : `${prefix}${path}`;
59
+ }
52
60
  // src/server/router/patterns.ts
53
61
  var REGEX_META_CHARS_RE = /[.*+?^${}()|[\]\\]/g;
54
62
  function escapeRegExp(value) {
@@ -94,14 +102,6 @@ function toPosixPath(path) {
94
102
  return path.replace(/\\/g, "/");
95
103
  }
96
104
 
97
- // src/shared/prefix.ts
98
- function physicalPath(prefix, path) {
99
- if (prefix === "") {
100
- return path;
101
- }
102
- return path === "/" ? prefix : `${prefix}${path}`;
103
- }
104
-
105
105
  // src/adapter/runtime-build.ts
106
106
  import { existsSync as existsSync2, realpathSync, writeFileSync as writeFileSync2 } from "fs";
107
107
  import { dirname, isAbsolute, join, relative, resolve } from "path";
@@ -1,4 +1,4 @@
1
- import type { ResolvedRoute } from "../server/router/types.ts";
1
+ import type { BuildRouteInput } from "./route-metadata.ts";
2
2
  import { type ClientPreloadManifest } from "./preload-manifest.ts";
3
3
  import type { BuildClientOptions } from "./types";
4
4
  export interface BuildClientResult {
@@ -25,4 +25,4 @@ export interface BuildClientResult {
25
25
  * it as an SSR template, injects the pre-rendered React HTML into
26
26
  * <!--ssr-outlet-->, and sends the complete page.
27
27
  */
28
- export declare function buildClient(routes: ResolvedRoute[], { outDir, rootLayout, plugins, preloadRouteChunks, publicPath, basePath, clientLogging, clientDirName, metafilePath, optimizeImports, reactCompiler, pagesDir, }: BuildClientOptions): Promise<BuildClientResult>;
28
+ export declare function buildClient(routes: BuildRouteInput[], { outDir, rootLayout, plugins, preloadRouteChunks, publicPath, basePath, clientLogging, clientDirName, metafilePath, optimizeImports, reactCompiler, pagesDir, routeRegistry, }: BuildClientOptions): Promise<BuildClientResult>;
@@ -1 +1 @@
1
- export {};
1
+ import "elysia/plugin/aot/unplugin";
@@ -0,0 +1 @@
1
+ import "elysia/plugin/aot/unplugin";
@@ -0,0 +1,11 @@
1
+ import type { FurinPlugin } from "../config.ts";
2
+ import type { RouteRegistrySnapshot } from "../plugin/route-registry.ts";
3
+ import type { RouteInstanceSpec } from "../plugin/route-tree.ts";
4
+ import type { BuildRoot, BuildRoute } from "./route-metadata.ts";
5
+ export interface DiscoveredApp extends RouteInstanceSpec {
6
+ root: BuildRoot;
7
+ routeRegistry: RouteRegistrySnapshot;
8
+ routes: BuildRoute[];
9
+ }
10
+ /** Await process exit, not just its result: native import-time handles must be closed before AOT. */
11
+ export declare function discoverPages(apps: RouteInstanceSpec[], rootDir: string, plugins: FurinPlugin[]): Promise<DiscoveredApp[]>;
@@ -0,0 +1,3 @@
1
+ /** Stub route behavior while preserving module initialization and public metadata. */
2
+ export declare function discoveryModule(code: string, path: string, loader: "js" | "jsx" | "ts" | "tsx"): string;
3
+ export declare function discoveryModuleFilter(pagesDirs: readonly string[]): RegExp;
@@ -0,0 +1,34 @@
1
+ import type { FurinPlugin } from "../config.ts";
2
+ export type DiscoveryHook = {
3
+ id: number;
4
+ } & ({
5
+ method: "module";
6
+ specifier: string;
7
+ } | {
8
+ method: "onLoad" | "onResolve";
9
+ filter: {
10
+ source: string;
11
+ flags: string;
12
+ };
13
+ namespace?: string;
14
+ });
15
+ export interface DiscoveryPluginRequest {
16
+ args: Omit<Bun.OnLoadArgs, "defer"> | Bun.OnResolveArgs | undefined;
17
+ hook: number;
18
+ id: number;
19
+ syncPath?: string;
20
+ }
21
+ export type DiscoveryPluginResponse = {
22
+ id: number;
23
+ ok: true;
24
+ value: Bun.OnLoadResult | Bun.OnResolveResult | null;
25
+ } | {
26
+ id: number;
27
+ ok: false;
28
+ error: string;
29
+ };
30
+ /** Keep plugin closures in the caller; only module source crosses IPC. */
31
+ export declare function discoveryPlugins(plugins: readonly FurinPlugin[]): Promise<{
32
+ hooks: DiscoveryHook[];
33
+ respond(request: DiscoveryPluginRequest): Promise<DiscoveryPluginResponse>;
34
+ }>;
@@ -11,5 +11,5 @@ export interface AotBuildApps {
11
11
  apps: RouteInstanceSpec[];
12
12
  rootDir: string;
13
13
  }
14
- /** Elysia AOT evaluation has its own module cache, independent of prerender loaders. */
14
+ /** AOT imports own native resources in a separate process, exited before prerender. */
15
15
  export declare function elysiaAot(entry: string, expected: AotBuildApps): Bun.BunPlugin;
@@ -18,6 +18,7 @@ const _ext = _pkgSrcDir.endsWith("/src") ? ".ts" : ".js";
18
18
  const INTERNAL_MODULE_PATH = `${_pkgSrcDir}/server/internal${_ext}`;
19
19
  const RUNTIME_ENV_MODULE_PATH = `${_pkgSrcDir}/server/runtime-env${_ext}`;
20
20
  const STATIC_EXPORT_MODULE_PATH = `${_pkgSrcDir}/server/static-export${_ext}`;
21
+ const SERVER_ENTRY_MODULE_PATH = `${_pkgSrcDir}/server/server-entry${_ext}`;
21
22
  /** Sidecar holding the SSG documents the production bundle rendered at build time. */
22
23
  export const PRERENDER_SNAPSHOT_FILE = "furin-prerender.json";
23
24
 
@@ -229,6 +230,9 @@ export function buildEntrySource(options: EntryTemplateOptions): string {
229
230
  const lines = [
230
231
  headerComment,
231
232
  `import { __setCompileContext } from ${JSON.stringify(internalSpecifier)};`,
233
+ ...(serverEntry && mode === "app"
234
+ ? [`import { loadServerEntry } from ${JSON.stringify(SERVER_ENTRY_MODULE_PATH)};`]
235
+ : []),
232
236
  ...(productionMode
233
237
  ? [`import { __setDevMode } from ${JSON.stringify(RUNTIME_ENV_MODULE_PATH)};`]
234
238
  : []),
@@ -268,11 +272,12 @@ export function buildEntrySource(options: EntryTemplateOptions): string {
268
272
  ]
269
273
  : serverEntry && mode === "app"
270
274
  ? [
271
- `const __serverModule = await import(${JSON.stringify(serverEntry.replace(/\\/g, "/"))});`,
275
+ `const __serverModule = await loadServerEntry(() => import(${JSON.stringify(serverEntry.replace(/\\/g, "/"))}));`,
272
276
  "export const app = __serverModule.default;",
273
277
  "export const port = __serverModule.port;",
274
278
  "export const idleTimeout = __serverModule.idleTimeout;",
275
279
  "export const startServer = __serverModule.startServer;",
280
+ "export const onStartup = __serverModule.onStartup;",
276
281
  "export const onShutdown = __serverModule.onShutdown;",
277
282
  "export default __serverModule.default;",
278
283
  `export { collectPrerenders as __furinPrerender } from ${JSON.stringify(INTERNAL_MODULE_PATH)};`,
@@ -1,4 +1,5 @@
1
1
  import type { ResolvedRoute } from "../server/router/types.ts";
2
+ import { type BuildRouteInput } from "./route-metadata.ts";
2
3
  import type { ClientBoundary } from "../rsc/build/discover.ts";
3
4
  import type { BuildClientOptions } from "./types";
4
5
  export declare function generateClientReferenceEntry(boundaries: readonly ClientBoundary[]): string;
@@ -16,13 +17,13 @@ export declare function generateClientReferenceEntry(boundaries: readonly Client
16
17
  * before matching routes, and passes `basePath` to `RouterProvider` so SPA
17
18
  * navigation uses the correct physical URLs.
18
19
  */
19
- export declare function generateHydrateEntry(routes: ResolvedRoute[], rootLayout: string, basePath: string, clientLogging: boolean): string;
20
+ export declare function generateHydrateEntry(routes: BuildRouteInput[], rootLayout: string, basePath: string, clientLogging: boolean): string;
20
21
  /**
21
22
  * Production variant of {@link generateHydrateEntry}. Without HMR the hot
22
23
  * component keys only have to be distinct, so they are hashed instead of
23
24
  * shipping absolute build paths to browsers.
24
25
  */
25
- export declare function generateProductionHydrateEntry(routes: ResolvedRoute[], rootLayout: string, basePath: string, clientLogging: boolean): string;
26
+ export declare function generateProductionHydrateEntry(routes: BuildRouteInput[], rootLayout: string, basePath: string, clientLogging: boolean): string;
26
27
  /** Forgets a stopped dev app, so the next write no longer declares its routes. */
27
28
  export declare function releaseDevRouteTypes(projectRoot: string, prefix: string): void;
28
29
  /**