@timber-js/app 0.2.0-alpha.57 → 0.2.0-alpha.59

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 (188) hide show
  1. package/dist/_chunks/als-registry-Ba7URUIn.js.map +1 -1
  2. package/dist/_chunks/define-D5STJpIr.js +121 -0
  3. package/dist/_chunks/define-D5STJpIr.js.map +1 -0
  4. package/dist/_chunks/define-TK8C1M3x.js.map +1 -1
  5. package/dist/_chunks/{define-cookie-k9btcEfI.js → define-cookie-DtAavax4.js} +4 -4
  6. package/dist/_chunks/define-cookie-DtAavax4.js.map +1 -0
  7. package/dist/_chunks/{error-boundary-B9vT_YK_.js → error-boundary-DpZJBCqh.js} +1 -1
  8. package/dist/_chunks/{error-boundary-B9vT_YK_.js.map → error-boundary-DpZJBCqh.js.map} +1 -1
  9. package/dist/_chunks/interception-Cey5DCGr.js.map +1 -1
  10. package/dist/_chunks/{request-context-0h-6Voad.js → request-context-0wfZsnhh.js} +3 -1
  11. package/dist/_chunks/request-context-0wfZsnhh.js.map +1 -0
  12. package/dist/_chunks/{segment-context-Bmugn-ao.js → segment-context-CyaM1mrD.js} +1 -1
  13. package/dist/_chunks/{segment-context-Bmugn-ao.js.map → segment-context-CyaM1mrD.js.map} +1 -1
  14. package/dist/_chunks/{stale-reload-Db4wqE46.js → stale-reload-DKN3aXxR.js} +1 -1
  15. package/dist/_chunks/{stale-reload-Db4wqE46.js.map → stale-reload-DKN3aXxR.js.map} +1 -1
  16. package/dist/_chunks/{tracing-JI4cYUdz.js → tracing-VYETCQsg.js} +1 -1
  17. package/dist/_chunks/{tracing-JI4cYUdz.js.map → tracing-VYETCQsg.js.map} +1 -1
  18. package/dist/_chunks/use-query-states-wEXY2JQB.js.map +1 -1
  19. package/dist/_chunks/{wrappers-C9XPg7-U.js → wrappers-BaG1bnM3.js} +1 -1
  20. package/dist/_chunks/{wrappers-C9XPg7-U.js.map → wrappers-BaG1bnM3.js.map} +1 -1
  21. package/dist/cache/index.js +1 -1
  22. package/dist/cache/index.js.map +1 -1
  23. package/dist/client/error-boundary.js +1 -1
  24. package/dist/client/error-reconstituter.d.ts +54 -0
  25. package/dist/client/error-reconstituter.d.ts.map +1 -0
  26. package/dist/client/form.d.ts +2 -2
  27. package/dist/client/form.d.ts.map +1 -1
  28. package/dist/client/index.d.ts +1 -1
  29. package/dist/client/index.d.ts.map +1 -1
  30. package/dist/client/index.js +4 -4
  31. package/dist/client/index.js.map +1 -1
  32. package/dist/client/link.d.ts +1 -1
  33. package/dist/client/link.d.ts.map +1 -1
  34. package/dist/client/segment-outlet.d.ts +63 -0
  35. package/dist/client/segment-outlet.d.ts.map +1 -0
  36. package/dist/client/use-params.d.ts +1 -1
  37. package/dist/client/use-params.d.ts.map +1 -1
  38. package/dist/client/use-query-states.d.ts +1 -1
  39. package/dist/client/use-query-states.d.ts.map +1 -1
  40. package/dist/cookies/define-cookie.d.ts +3 -3
  41. package/dist/cookies/define-cookie.d.ts.map +1 -1
  42. package/dist/cookies/index.js +1 -1
  43. package/dist/index.d.ts +15 -0
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/index.js +173 -6
  46. package/dist/index.js.map +1 -1
  47. package/dist/params/define.d.ts +25 -1
  48. package/dist/params/define.d.ts.map +1 -1
  49. package/dist/params/index.d.ts +5 -5
  50. package/dist/params/index.d.ts.map +1 -1
  51. package/dist/params/index.js +2 -103
  52. package/dist/plugins/adapter-build.d.ts +1 -1
  53. package/dist/plugins/adapter-build.d.ts.map +1 -1
  54. package/dist/plugins/build-manifest.d.ts +2 -2
  55. package/dist/plugins/build-manifest.d.ts.map +1 -1
  56. package/dist/plugins/build-report.d.ts +3 -3
  57. package/dist/plugins/build-report.d.ts.map +1 -1
  58. package/dist/plugins/content.d.ts +1 -1
  59. package/dist/plugins/content.d.ts.map +1 -1
  60. package/dist/plugins/dev-browser-logs.d.ts +84 -0
  61. package/dist/plugins/dev-browser-logs.d.ts.map +1 -0
  62. package/dist/plugins/dev-logs.d.ts +1 -1
  63. package/dist/plugins/dev-logs.d.ts.map +1 -1
  64. package/dist/plugins/dev-server.d.ts +1 -1
  65. package/dist/plugins/dev-server.d.ts.map +1 -1
  66. package/dist/plugins/entries.d.ts +1 -1
  67. package/dist/plugins/entries.d.ts.map +1 -1
  68. package/dist/plugins/fonts.d.ts +2 -2
  69. package/dist/plugins/fonts.d.ts.map +1 -1
  70. package/dist/plugins/mdx.d.ts +1 -1
  71. package/dist/plugins/mdx.d.ts.map +1 -1
  72. package/dist/plugins/routing.d.ts +1 -1
  73. package/dist/plugins/routing.d.ts.map +1 -1
  74. package/dist/plugins/shims.d.ts +8 -5
  75. package/dist/plugins/shims.d.ts.map +1 -1
  76. package/dist/plugins/static-build.d.ts +1 -1
  77. package/dist/plugins/static-build.d.ts.map +1 -1
  78. package/dist/search-params/define.d.ts +1 -1
  79. package/dist/search-params/define.d.ts.map +1 -1
  80. package/dist/search-params/index.d.ts +1 -1
  81. package/dist/search-params/index.d.ts.map +1 -1
  82. package/dist/search-params/index.js +1 -1
  83. package/dist/server/actions.d.ts +1 -1
  84. package/dist/server/actions.d.ts.map +1 -1
  85. package/dist/server/als-registry.d.ts +7 -0
  86. package/dist/server/als-registry.d.ts.map +1 -1
  87. package/dist/server/deny-renderer.d.ts.map +1 -1
  88. package/dist/server/fallback-error.d.ts +3 -3
  89. package/dist/server/fallback-error.d.ts.map +1 -1
  90. package/dist/server/index.js +4 -4
  91. package/dist/server/index.js.map +1 -1
  92. package/dist/server/pipeline-interception.d.ts +1 -1
  93. package/dist/server/pipeline-interception.d.ts.map +1 -1
  94. package/dist/server/pipeline.d.ts +2 -2
  95. package/dist/server/pipeline.d.ts.map +1 -1
  96. package/dist/server/request-context.d.ts.map +1 -1
  97. package/dist/server/rsc-entry/api-handler.d.ts +2 -2
  98. package/dist/server/rsc-entry/api-handler.d.ts.map +1 -1
  99. package/dist/server/rsc-entry/error-renderer.d.ts +13 -13
  100. package/dist/server/rsc-entry/error-renderer.d.ts.map +1 -1
  101. package/dist/server/rsc-entry/helpers.d.ts +2 -2
  102. package/dist/server/rsc-entry/helpers.d.ts.map +1 -1
  103. package/dist/server/rsc-entry/index.d.ts +2 -2
  104. package/dist/server/rsc-entry/index.d.ts.map +1 -1
  105. package/dist/server/rsc-entry/rsc-payload.d.ts +3 -3
  106. package/dist/server/rsc-entry/rsc-payload.d.ts.map +1 -1
  107. package/dist/server/rsc-entry/rsc-stream.d.ts +1 -1
  108. package/dist/server/rsc-entry/rsc-stream.d.ts.map +1 -1
  109. package/dist/server/rsc-entry/ssr-bridge.d.ts +1 -1
  110. package/dist/server/rsc-entry/ssr-bridge.d.ts.map +1 -1
  111. package/dist/server/rsc-entry/ssr-renderer.d.ts +4 -4
  112. package/dist/server/rsc-entry/ssr-renderer.d.ts.map +1 -1
  113. package/dist/server/status-code-resolver.d.ts +1 -1
  114. package/dist/server/status-code-resolver.d.ts.map +1 -1
  115. package/dist/server/stream-utils.d.ts +36 -0
  116. package/dist/server/stream-utils.d.ts.map +1 -0
  117. package/dist/server/tree-builder.d.ts +1 -1
  118. package/dist/server/tree-builder.d.ts.map +1 -1
  119. package/dist/shims/font-google.d.ts +1 -1
  120. package/dist/shims/font-google.d.ts.map +1 -1
  121. package/package.json +1 -4
  122. package/src/cache/timber-cache.ts +1 -1
  123. package/src/client/browser-entry.ts +7 -8
  124. package/src/client/error-reconstituter.tsx +65 -0
  125. package/src/client/form.tsx +2 -2
  126. package/src/client/index.ts +2 -2
  127. package/src/client/link.tsx +2 -2
  128. package/src/client/segment-outlet.tsx +86 -0
  129. package/src/client/use-params.ts +1 -1
  130. package/src/client/use-query-states.ts +2 -2
  131. package/src/cookies/define-cookie.ts +9 -9
  132. package/src/index.ts +17 -0
  133. package/src/params/define.ts +61 -1
  134. package/src/params/index.ts +5 -5
  135. package/src/plugins/adapter-build.ts +2 -2
  136. package/src/plugins/build-manifest.ts +2 -2
  137. package/src/plugins/build-report.ts +3 -3
  138. package/src/plugins/cache-transform.ts +1 -1
  139. package/src/plugins/content.ts +1 -1
  140. package/src/plugins/dev-browser-logs.ts +274 -0
  141. package/src/plugins/dev-logs.ts +1 -1
  142. package/src/plugins/dev-server.ts +3 -3
  143. package/src/plugins/entries.ts +1 -1
  144. package/src/plugins/fonts.ts +9 -9
  145. package/src/plugins/mdx.ts +1 -1
  146. package/src/plugins/routing.ts +6 -6
  147. package/src/plugins/server-action-exports.ts +1 -1
  148. package/src/plugins/shims.ts +19 -39
  149. package/src/plugins/static-build.ts +2 -2
  150. package/src/routing/scanner.ts +1 -1
  151. package/src/routing/status-file-lint.ts +1 -1
  152. package/src/search-params/define.ts +2 -2
  153. package/src/search-params/index.ts +1 -1
  154. package/src/server/action-client.ts +1 -1
  155. package/src/server/action-handler.ts +1 -1
  156. package/src/server/actions.ts +1 -1
  157. package/src/server/als-registry.ts +7 -0
  158. package/src/server/deny-renderer.ts +3 -2
  159. package/src/server/error-boundary-wrapper.ts +1 -1
  160. package/src/server/fallback-error.ts +6 -6
  161. package/src/server/pipeline-interception.ts +1 -1
  162. package/src/server/pipeline.ts +2 -2
  163. package/src/server/primitives.ts +1 -1
  164. package/src/server/request-context.ts +7 -1
  165. package/src/server/route-element-builder.ts +1 -1
  166. package/src/server/rsc-entry/api-handler.ts +8 -8
  167. package/src/server/rsc-entry/error-renderer.ts +120 -185
  168. package/src/server/rsc-entry/helpers.ts +2 -2
  169. package/src/server/rsc-entry/index.ts +42 -38
  170. package/src/server/rsc-entry/rsc-payload.ts +6 -6
  171. package/src/server/rsc-entry/rsc-stream.ts +6 -6
  172. package/src/server/rsc-entry/ssr-bridge.ts +2 -2
  173. package/src/server/rsc-entry/ssr-renderer.ts +16 -12
  174. package/src/server/slot-resolver.ts +2 -2
  175. package/src/server/ssr-entry.ts +3 -3
  176. package/src/server/status-code-resolver.ts +1 -1
  177. package/src/server/stream-utils.ts +209 -0
  178. package/src/server/tree-builder.ts +1 -1
  179. package/src/shims/font-google.ts +1 -1
  180. package/dist/_chunks/define-cookie-k9btcEfI.js.map +0 -1
  181. package/dist/_chunks/request-context-0h-6Voad.js.map +0 -1
  182. package/dist/params/index.js.map +0 -1
  183. package/dist/server/rsc-entry/ssr-error-bridge.d.ts +0 -12
  184. package/dist/server/rsc-entry/ssr-error-bridge.d.ts.map +0 -1
  185. package/dist/server/ssr-error-entry.d.ts +0 -65
  186. package/dist/server/ssr-error-entry.d.ts.map +0 -1
  187. package/src/server/rsc-entry/ssr-error-bridge.ts +0 -20
  188. package/src/server/ssr-error-entry.ts +0 -237
@@ -21,7 +21,7 @@ export interface InterceptionMatchResult {
21
21
  *
22
22
  * Returns the source pathname to re-match if interception applies, or null.
23
23
  */
24
- export declare function findInterceptionMatch(targetPathname: string, sourceUrl: string, rewrites: import('#/routing/interception.js').InterceptionRewrite[]): InterceptionMatchResult | null;
24
+ export declare function findInterceptionMatch(targetPathname: string, sourceUrl: string, rewrites: import('../routing/interception.js').InterceptionRewrite[]): InterceptionMatchResult | null;
25
25
  /**
26
26
  * Check if a pathname matches a URL pattern with dynamic segments.
27
27
  *
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline-interception.d.ts","sourceRoot":"","sources":["../../src/server/pipeline-interception.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,iDAAiD;AACjD,MAAM,WAAW,uBAAuB;IACtC,yEAAyE;IACzE,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,cAAc,EAAE,MAAM,EACtB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,OAAO,2BAA2B,EAAE,mBAAmB,EAAE,GAClE,uBAAuB,GAAG,IAAI,CAYhC;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CA0BjF"}
1
+ {"version":3,"file":"pipeline-interception.d.ts","sourceRoot":"","sources":["../../src/server/pipeline-interception.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,iDAAiD;AACjD,MAAM,WAAW,uBAAuB;IACtC,yEAAyE;IACzE,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,cAAc,EAAE,MAAM,EACtB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,OAAO,4BAA4B,EAAE,mBAAmB,EAAE,GACnE,uBAAuB,GAAG,IAAI,CAYhC;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CA0BjF"}
@@ -12,7 +12,7 @@
12
12
  */
13
13
  import { type ProxyExport } from './proxy.js';
14
14
  import { type MiddlewareFn } from './middleware-runner.js';
15
- import type { SegmentNode } from '#/routing/types.js';
15
+ import type { SegmentNode } from '../routing/types.js';
16
16
  /** Result of matching a canonical pathname against the route tree. */
17
17
  export interface RouteMatch {
18
18
  /** The matched segment chain from root to leaf. */
@@ -61,7 +61,7 @@ export interface PipelineConfig {
61
61
  * Generated at build time from intercepting route directories.
62
62
  * See design/07-routing.md §"Intercepting Routes"
63
63
  */
64
- interceptionRewrites?: import('#/routing/interception.js').InterceptionRewrite[];
64
+ interceptionRewrites?: import('../routing/interception.js').InterceptionRewrite[];
65
65
  /**
66
66
  * Control Server-Timing header output.
67
67
  *
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../src/server/pipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAmC1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAItD,sEAAsE;AACtE,MAAM,WAAW,UAAU;IACzB,mDAAmD;IACnD,QAAQ,EAAE,WAAW,EAAE,CAAC;I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AKG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,EAAE,CAI9C;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAmBhE"}
@@ -5,7 +5,7 @@
5
5
  * pass, no AccessGate component). Then dispatches to the route handler.
6
6
  * See design/04-authorization.md §"Auth in API Routes".
7
7
  */
8
- import type { ManifestSegmentNode } from '#/server/route-matcher.js';
9
- import type { RouteMatch } from '#/server/pipeline.js';
8
+ import type { ManifestSegmentNode } from '../route-matcher.js';
9
+ import type { RouteMatch } from '../pipeline.js';
10
10
  export declare function handleApiRoute(req: Request, match: RouteMatch, segments: ManifestSegmentNode[], responseHeaders: Headers): Promise<Response>;
11
11
  //# sourceMappingURL=api-handler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api-handler.d.ts","sourceRoot":"","sources":["../../../src/server/rsc-entry/api-handler.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAMvD,wBAAsB,cAAc,CAClC,GAAG,EAAE,OAAO,EACZ,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,mBAAmB,EAAE,EAC/B,eAAe,EAAE,OAAO,GACvB,OAAO,CAAC,QAAQ,CAAC,CAyDnB"}
1
+ {"version":3,"file":"api-handler.d.ts","sourceRoot":"","sources":["../../../src/server/rsc-entry/api-handler.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAMjD,wBAAsB,cAAc,CAClC,GAAG,EAAE,OAAO,EACZ,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,mBAAmB,EAAE,EAC/B,eAAe,EAAE,OAAO,GACvB,OAAO,CAAC,QAAQ,CAAC,CAyDnB"}
@@ -1,20 +1,20 @@
1
1
  /**
2
2
  * RSC Error & No-Match Renderers — handles error pages and 404s.
3
3
  *
4
- * Error pages use two rendering paths depending on file format:
5
- * - TSX/JSX ('use client'): SSR-only render via Fizz (bypasses RSC Flight)
6
- * - MDX (server component): RSC SSR (plain props, no Error serialization issue)
4
+ * All error pages (TSX and MDX) render through the RSC → SSR pipeline:
5
+ * - TSX ('use client'): Error is converted to SerializableError, wrapped
6
+ * with ErrorReconstituter to reconstitute a real Error on the client.
7
+ * - MDX (server component): Receives plain props ({ status }), no wrapper needed.
7
8
  *
8
- * The SSR-only path exists because Error objects are not RSC-serializable.
9
- * React Flight throws "Only plain objects can be passed to Client Components"
10
- * when Error instances are passed as props to 'use client' components.
9
+ * This unified approach replaces the former SSR-only bypass for TSX error
10
+ * pages. See design/spike-TIM-565-unify-error-pages.md for the full analysis.
11
11
  *
12
12
  * Design docs: 10-error-handling.md §"Three-Tier Error Page Rendering"
13
13
  */
14
- import type { RouteMatch } from '#/server/pipeline.js';
15
- import type { ManifestSegmentNode } from '#/server/route-matcher.js';
16
- import type { ClientBootstrapConfig } from '#/server/html-injectors.js';
17
- import type { LayoutEntry } from '#/server/deny-renderer.js';
14
+ import type { RouteMatch } from '../pipeline.js';
15
+ import type { ManifestSegmentNode } from '../route-matcher.js';
16
+ import type { ClientBootstrapConfig } from '../html-injectors.js';
17
+ import type { LayoutEntry } from '../deny-renderer.js';
18
18
  /**
19
19
  * A manifest file reference with lazy import and path.
20
20
  * Mirrors the shape from ManifestSegmentNode but kept local to avoid
@@ -27,9 +27,9 @@ export interface GlobalErrorFile {
27
27
  /**
28
28
  * Render an error page for unhandled throws or RenderError outside Suspense.
29
29
  *
30
- * Uses two rendering paths:
31
- * - TSX/JSX: SSR-only (bypass RSC, render directly through Fizz)
32
- * - MDX: RSC SSR (server components need Flight, but props are plain)
30
+ * All error pages (TSX and MDX) go through RSC → SSR:
31
+ * - TSX: ErrorReconstituter wrapper converts SerializableError real Error
32
+ * - MDX: Plain props ({ status }), no wrapper needed
33
33
  */
34
34
  export declare function renderErrorPage(error: unknown, status: number, segments: ManifestSegmentNode[], layoutComponents: LayoutEntry[], req: Request, match: RouteMatch, responseHeaders: Headers, clientBootstrap: ClientBootstrapConfig, globalError?: GlobalErrorFile): Promise<Response>;
35
35
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"error-renderer.d.ts","sourceRoot":"","sources":["../../../src/server/rsc-entry/error-renderer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAKH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGxE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAO7D;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAuGD;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,mBAAmB,EAAE,EAC/B,gBAAgB,EAAE,WAAW,EAAE,EAC/B,GAAG,EAAE,OAAO,EACZ,KAAK,EAAE,UAAU,EACjB,eAAe,EAAE,OAAO,EACxB,eAAe,EAAE,qBAAqB,EACtC,WAAW,CAAC,EAAE,eAAe,GAC5B,OAAO,CAAC,QAAQ,CAAC,CAoDnB;AAyLD;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,OAAO,EACZ,WAAW,EAAE,mBAAmB,EAChC,eAAe,EAAE,OAAO,EACxB,eAAe,EAAE,qBAAqB,GACrC,OAAO,CAAC,QAAQ,CAAC,CA6BnB"}
1
+ {"version":3,"file":"error-renderer.d.ts","sourceRoot":"","sources":["../../../src/server/rsc-entry/error-renderer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAKH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAGlE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAUvD;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAkHD;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,mBAAmB,EAAE,EAC/B,gBAAgB,EAAE,WAAW,EAAE,EAC/B,GAAG,EAAE,OAAO,EACZ,KAAK,EAAE,UAAU,EACjB,eAAe,EAAE,OAAO,EACxB,eAAe,EAAE,qBAAqB,EACtC,WAAW,CAAC,EAAE,eAAe,GAC5B,OAAO,CAAC,QAAQ,CAAC,CAoCnB;AA0HD;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,OAAO,EACZ,WAAW,EAAE,mBAAmB,EAChC,eAAe,EAAE,OAAO,EACxB,eAAe,EAAE,qBAAqB,GACrC,OAAO,CAAC,QAAQ,CAAC,CA6BnB"}
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * Small, stateless functions used across the RSC entry modules.
5
5
  */
6
- import type { ManifestSegmentNode } from '#/server/route-matcher.js';
7
- import { RedirectSignal } from '#/server/primitives.js';
6
+ import type { ManifestSegmentNode } from '../route-matcher.js';
7
+ import { RedirectSignal } from '../primitives.js';
8
8
  /** RSC content type for client navigation payload requests. */
9
9
  export declare const RSC_CONTENT_TYPE = "text/x-component";
10
10
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/server/rsc-entry/helpers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,+DAA+D;AAC/D,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAEnD;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,IAAI;IAAE,QAAQ,EAAE,cAAc,CAAC;IAAC,QAAQ,EAAE,cAAc,CAAA;CAAE,CAQ/F;AAID;;;;;;GAMG;AACH,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,KAAK,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;CACzB;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,cAAc,CAAC;IACzB,QAAQ,EAAE,cAAc,CAAC;IACzB,yDAAyD;IACzD,gBAAgB,IAAI,MAAM,CAAC;IAC3B,yEAAyE;IACzE,aAAa,IAAI,mBAAmB,EAAE,CAAC;CACxC;AAED,wBAAgB,2BAA2B,IAAI,qBAAqB,CAkCnE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB,EAAE,CA8ClE;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,mBAAmB,EAAE,EAC/B,gBAAgB,EAAE,KAAK,CAAC;IACtB,SAAS,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC;IAC3C,OAAO,EAAE,mBAAmB,C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C,QAAQ,EAAE,cAAc,CAAC;IACzB,QAAQ,EAAE,cAAc,CAAC;IACzB,yDAAyD;IACzD,gBAAgB,IAAI,MAAM,CAAC;IAC3B,yEAAyE;IACzE,aAAa,IAAI,mBAAmB,EAAE,CAAC;CACxC;AAED,wBAAgB,2BAA2B,IAAI,qBAAqB,CAkCnE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB,EAAE,CA8ClE;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,mBAAmB,EAAE,EAC/B,gBAAgB,EAAE,KAAK,CAAC;IACtB,SAAS,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC;IAC3C,OAAO,EAAE,mBAAmB,CAAC;CAC9B,CAAC,GACD,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CA0B3C;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAGzD;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,cAAc,EACtB,eAAe,EAAE,OAAO,GACvB,QAAQ,CAOV;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAIpD;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAM9C;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAW1E"}
@@ -10,8 +10,8 @@ import { type DebugComponentEntry } from './helpers.js';
10
10
  * debug channel. This is only populated for render-phase errors.
11
11
  */
12
12
  export declare function setDevPipelineErrorHandler(handler: (error: Error, phase: string, debugComponents?: DebugComponentEntry[]) => void): void;
13
- export { runWithEarlyHintsSender } from '#/server/early-hints-sender.js';
14
- export { runWithWaitUntil } from '#/server/waituntil-bridge.js';
13
+ export { runWithEarlyHintsSender } from '../early-hints-sender.js';
14
+ export { runWithWaitUntil } from '../waituntil-bridge.js';
15
15
  declare const _default: (req: Request) => Promise<Response>;
16
16
  export default _default;
17
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/rsc-entry/index.ts"],"names":[],"mappings":"AA4DA,OAAO,EAKL,KAAK,mBAAmB,EACzB,MAAM,cAAc,CAAC;AAiCtB;;;;;;;;;GASG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,mBAAmB,EAAE,KAAK,IAAI,GACtF,IAAI,CAEN;AAqdD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAIzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;8BA7S3C,OAAO,KAAG,OAAO,CAAC,QAAQ,CAAC;AA+ShD,wBAAiE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/rsc-entry/index.ts"],"names":[],"mappings":"AA4DA,OAAO,EAKL,KAAK,mBAAmB,EACzB,MAAM,cAAc,CAAC;AAkCtB;;;;;;;;;GASG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,mBAAmB,EAAE,KAAK,IAAI,GACtF,IAAI,CAEN;AAwdD,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAInE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;8BAjTrC,OAAO,KAAG,OAAO,CAAC,QAAQ,CAAC;AAmThD,wBAAiE"}
@@ -8,9 +8,9 @@
8
8
  * Design docs: 19-client-navigation.md §"RSC Payload Handling",
9
9
  * 16-metadata.md §"Head Elements"
10
10
  */
11
- import type { RouteMatch } from '#/server/pipeline.js';
12
- import type { HeadElement, LayoutComponentEntry } from '#/server/route-element-builder.js';
13
- import type { ManifestSegmentNode } from '#/server/route-matcher.js';
11
+ import type { RouteMatch } from '../pipeline.js';
12
+ import type { HeadElement, LayoutComponentEntry } from '../route-element-builder.js';
13
+ import type { ManifestSegmentNode } from '../route-matcher.js';
14
14
  import type { RenderSignals } from './rsc-stream.js';
15
15
  /**
16
16
  * Build an RSC payload Response for a client-side navigation request.
@@ -1 +1 @@
1
- {"version":3,"file":"rsc-payload.d.ts","sourceRoot":"","sources":["../../../src/server/rsc-entry/rsc-payload.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC3F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAQrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD;;;;;;;;GAQG;AACH,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,OAAO,EACZ,SAAS,EAAE,cAAc,CAAC,UAAU,CAAC,EACrC,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,mBAAmB,EAAE,EAC/B,gBAAgB,EAAE,oBAAoB,EAAE,EACxC,YAAY,EAAE,WAAW,EAAE,EAC3B,KAAK,EAAE,UAAU,EACjB,eAAe,EAAE,OAAO,EACxB,eAAe,CAAC,EAAE,MAAM,EAAE,GACzB,OAAO,CAAC,QAAQ,CAAC,CAmKnB"}
1
+ {"version":3,"file":"rsc-payload.d.ts","sourceRoot":"","sources":["../../../src/server/rsc-entry/rsc-payload.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACrF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAQ/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD;;;;;;;;GAQG;AACH,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,OAAO,EACZ,SAAS,EAAE,cAAc,CAAC,UAAU,CAAC,EACrC,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,mBAAmB,EAAE,EAC/B,gBAAgB,EAAE,oBAAoB,EAAE,EACxC,YAAY,EAAE,WAAW,EAAE,EAC3B,KAAK,EAAE,UAAU,EACjB,eAAe,EAAE,OAAO,EACxB,eAAe,CAAC,EAAE,MAAM,EAAE,GACzB,OAAO,CAAC,QAAQ,CAAC,CAmKnB"}
@@ -9,7 +9,7 @@
9
9
  * Design docs: 02-rendering-pipeline.md §"Single-Pass Rendering",
10
10
  * 13-security.md §"Errors don't leak"
11
11
  */
12
- import { DenySignal, RedirectSignal } from '#/server/primitives.js';
12
+ import { DenySignal, RedirectSignal } from '../primitives.js';
13
13
  import { type DebugComponentEntry } from './helpers.js';
14
14
  /**
15
15
  * Mutable signal state captured during RSC rendering.
@@ -1 +1 @@
1
- {"version":3,"file":"rsc-stream.d.ts","sourceRoot":"","sources":["../../../src/server/rsc-entry/rsc-stream.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAOH,OAAO,EAAE,UAAU,EAAE,cAAc,EAAe,MAAM,wBAAwB,CAAC;AAGjF,OAAO,EAIL,KAAK,mBAAmB,EACzB,MAAM,cAAc,CAAC;AAItB;;;;;;;;;GASG;AACH,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IAC9B,cAAc,EAAE,cA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;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,KAAK,CAAC,YAAY,EAAE,GAAG,EAAE,OAAO,GAAG,eAAe,CAsJ1F"}
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * SSR Bridge — loads the SSR entry and passes the RSC stream for HTML rendering.
3
3
  */
4
- import type { NavContext } from '#/server/ssr-entry.js';
4
+ import type { NavContext } from '../ssr-entry.js';
5
5
  export declare function callSsr(rscStream: ReadableStream<Uint8Array>, navContext: NavContext): Promise<Response>;
6
6
  //# sourceMappingURL=ssr-bridge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ssr-bridge.d.ts","sourceRoot":"","sources":["../../../src/server/rsc-entry/ssr-bridge.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,wBAAsB,OAAO,CAC3B,SAAS,EAAE,cAAc,CAAC,UAAU,CAAC,EACrC,UAAU,EAAE,UAAU,GACrB,OAAO,CAAC,QAAQ,CAAC,CAMnB"}
1
+ {"version":3,"file":"ssr-bridge.d.ts","sourceRoot":"","sources":["../../../src/server/rsc-entry/ssr-bridge.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,wBAAsB,OAAO,CAC3B,SAAS,EAAE,cAAc,CAAC,UAAU,CAAC,EACrC,UAAU,EAAE,UAAU,GACrB,OAAO,CAAC,QAAQ,CAAC,CAMnB"}
@@ -11,10 +11,10 @@
11
11
  * Design docs: 02-rendering-pipeline.md §"RSC → SSR → Client Hydration",
12
12
  * 05-streaming.md §"deferSuspenseFor and the Hold Window"
13
13
  */
14
- import type { ClientBootstrapConfig } from '#/server/html-injectors.js';
15
- import type { RouteMatch } from '#/server/pipeline.js';
16
- import type { LayoutComponentEntry } from '#/server/route-element-builder.js';
17
- import type { ManifestSegmentNode } from '#/server/route-matcher.js';
14
+ import type { ClientBootstrapConfig } from '../html-injectors.js';
15
+ import type { RouteMatch } from '../pipeline.js';
16
+ import type { LayoutComponentEntry } from '../route-element-builder.js';
17
+ import type { ManifestSegmentNode } from '../route-matcher.js';
18
18
  import { type GlobalErrorFile } from './error-renderer.js';
19
19
  import type { RenderSignals } from './rsc-stream.js';
20
20
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ssr-renderer.d.ts","sourceRoot":"","sources":["../../../src/server/rsc-entry/ssr-renderer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAIxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAUrE,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAYrD;;;;;;;;GAQG;AACH,eAAO,MAAM,gCAAgC,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAiB,CAAC;AAEhF,UAAU,gBAAgB;IACxB,GAAG,EAAE,OAAO,CAAC;IACb,SAAS,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IACtC,OAAO,EAAE,aAAa,CAAC;IACvB,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC,gBAAgB,EAAE,oBAAoB,EAAE,CAAC;IACzC,KAAK,EAAE,UAAU,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,eAAe,EAAE,qBAAqB,CAAC;IACvC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,wDAAwD;IACxD,WAAW,CAAC,EAAE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AE,gBAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAqPjF"}
@@ -26,7 +26,7 @@
26
26
  * Then global-error.tsx (future)
27
27
  * Then framework default (returns null)
28
28
  */
29
- import type { SegmentNode, RouteFile } from '#/routing/types.js';
29
+ import type { SegmentNode, RouteFile } from '../routing/types.js';
30
30
  /** How the status-code file was matched. */
31
31
  export type StatusFileKind = 'exact' | 'category' | 'legacy' | 'error';
32
32
  /** Response format family for status-code resolution. */
@@ -1 +1 @@
1
- {"version":3,"file":"status-code-resolver.d.ts","sourceRoot":"","sources":["../../src/server/status-code-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAIjE,4CAA4C;AAC5C,MAAM,MAAM,cAAc,GACtB,OAAO,GACP,UAAU,GACV,QAAQ,GACR,OAAO,CAAC;AAEZ,yDAAyD;AACzD,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,MAAM,CAAC;AAEpD,kEAAkE;AAClE,MAAM,WAAW,oBAAoB;IACnC,8BAA8B;IAC9B,IAAI,EAAE,SAAS,CAAC;IAChB,8EAA8E;IAC9E,MAAM,EAAE,MAAM,CAAC;IACf,gCAAgC;IAChC,IAAI,EAAE,cAAc,CAAC;IACrB,8DAA8D;IAC9D,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,0CAA0C;AAC1C,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,SAAS,CAAC;AAElD,8CAA8C;AAC9C,MAAM,WAAW,oBAAoB;IACnC,0DAA0D;IAC1D,IAAI,EAAE,SAAS,CAAC;IAChB,kCAAkC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,gCAAgC;IAChC,IAAI,EAAE,cAAc,CAAC;CACtB;AAgBD;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,QAAQ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AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,WAAW,GAAG,oBAAoB,GAAG,IAAI,CAYpF"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Stream utilities for the RSC rendering pipeline.
3
+ *
4
+ * teeWithErrorPropagation — wraps native ReadableStream.tee() with:
5
+ * 1. Cross-branch error propagation (error on one branch cancels the other)
6
+ * 2. Buffer divergence monitoring (warns + cancels when threshold exceeded)
7
+ *
8
+ * This prevents two classes of bugs:
9
+ * - Silent stalls when one tee branch errors and the other hangs indefinitely
10
+ * - Unbounded memory growth when one consumer (SSR) is much slower than the other
11
+ *
12
+ * Design doc: 02-rendering-pipeline.md §"RSC → SSR → Client Hydration"
13
+ */
14
+ export interface TeeOptions {
15
+ /**
16
+ * Maximum byte divergence between the two branches before both are
17
+ * cancelled. When one branch has consumed this many more bytes than
18
+ * the other, the tee's internal buffer is at least this large.
19
+ *
20
+ * Default: 5MB.
21
+ */
22
+ maxBufferBytes?: number;
23
+ }
24
+ /**
25
+ * Tee a ReadableStream with error propagation and buffer monitoring.
26
+ *
27
+ * Delegates to the native `stream.tee()` for the actual forking, then wraps
28
+ * each branch in a ReadableStream that:
29
+ * - Tracks bytes consumed per branch
30
+ * - Cancels both branches if byte divergence exceeds `maxBufferBytes`
31
+ * - Cancels the other branch if either branch is cancelled or errors
32
+ *
33
+ * The returned streams are drop-in replacements for the native tee branches.
34
+ */
35
+ export declare function teeWithErrorPropagation(stream: ReadableStream<Uint8Array>, options?: TeeOptions): [ReadableStream<Uint8Array>, ReadableStream<Uint8Array>];
36
+ //# sourceMappingURL=stream-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stream-utils.d.ts","sourceRoot":"","sources":["../../src/server/stream-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAKH,MAAM,WAAW,UAAU;IACzB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,EAClC,OAAO,CAAC,EAAE,UAAU,GACnB,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC,CA+J1D"}
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * See design/02-rendering-pipeline.md §"Element Tree Construction"
11
11
  */
12
- import type { SegmentNode, RouteFile } from '#/routing/types.js';
12
+ import type { SegmentNode, RouteFile } from '../routing/types.js';
13
13
  /** A loaded module for a route file convention. */
14
14
  export interface LoadedModule {
15
15
  /** The default export (component, access function, etc.) */
@@ -1 +1 @@
1
- {"version":3,"file":"tree-builder.d.ts","sourceRoot":"","sources":["../../src/server/tree-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAIjE,mDAAmD;AACnD,MAAM,WAAW,YAAY;IAC3B,4DAA4D;IAC5D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mEAAmE;IACnE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,iDAAiD;AACjD,MAAM,MAAM,YAAY,GAAG,CAAC,IAAI,EAAE,SAAS,KAAK,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AAErF,gFAAgF;AAEhF,MAAM,MAAM,YAAY,GAAG,GAAG,CAAC;AAE/B,oFAAoF;AACpF,MAAM,MAAM,aAAa,GAAG,CAC1B,IAAI,EAAE,OAAO,EACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,EACrC,GAAG,QAAQ,EAAE,OAAO,EAAE,KACnB,YAAY,CAAC;AAElB;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;AAErD,0CAA0C;AAC1C,MAAM,WAAW,iBAAiB;IACh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CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,YAAY,CAAC;CACxB;AAID;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,oEAAoE;IACpE,IAAI,EAAE,YAAY,CAAC;IACnB,gFAAgF;IAChF,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,gBAAgB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,eAAe,CAAC,CAkF1F"}
@@ -16,7 +16,7 @@
16
16
  *
17
17
  * Design doc: 24-fonts.md, "Next.js Font Compatibility"
18
18
  */
19
- import type { GoogleFontConfig, FontResult } from '#/fonts/types.js';
19
+ import type { GoogleFontConfig, FontResult } from '../fonts/types.js';
20
20
  export type { GoogleFontConfig, FontResult };
21
21
  /**
22
22
  * Generic font loader — accepts any font name, returns a stub FontResult.
@@ -1 +1 @@
1
- {"version":3,"file":"font-google.d.ts","sourceRoot":"","sources":["../../src/shims/font-google.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAErE,YAAY,EAAE,gBAAgB,EAAE,UAAU,EAAE,CAAC;AAkB7C;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,gBAAgB,GAAG,UAAU,CAEjF;AAID,eAAO,MAAM,KAAK,GAAI,SAAS,gBAAgB,KAAG,UAA0C,CAAC;AAC7F,eAAO,MAAM,MAAM,GAAI,SAAS,gBAAgB,KAAG,UAA0C,CAAC;AAC9F,eAAO,MAAM,SAAS,GAAI,SAAS,gBAAgB,KAAG,UAA0C,CAAC;AACjG,eAAO,MAAM,IAAI,GAAI,SAAS,gBAAgB,KAAG,UAA0C,CAAC;AAC5F,eAAO,MAAM,UAAU,GAAI,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O,MAAM,KAAK,GAAI,SAAS,gBAAgB,KAAG,UAA0C,CAAC;AAC7F,eAAO,MAAM,UAAU,GAAI,SAAS,gBAAgB,KAAG,UAA0C,CAAC;AAClG,eAAO,MAAM,cAAc,GAAI,SAAS,gBAAgB,KAAG,UAC7B,CAAC;AAC/B,eAAO,MAAM,eAAe,GAAI,SAAS,gBAAgB,KAAG,UAC9B,CAAC;AAC/B,eAAO,MAAM,gBAAgB,GAAI,SAAS,gBAAgB,KAAG,UAC/B,CAAC;AAC/B,eAAO,MAAM,YAAY,GAAI,SAAS,gBAAgB,KAAG,UAA0C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timber-js/app",
3
- "version": "0.2.0-alpha.57",
3
+ "version": "0.2.0-alpha.59",
4
4
  "description": "Vite-native React framework built for Servers and Serverless Platforms — correct HTTP semantics, real status codes, pages that work without JavaScript",
5
5
  "keywords": [
6
6
  "cloudflare-workers",
@@ -30,9 +30,6 @@
30
30
  "LICENSE"
31
31
  ],
32
32
  "type": "module",
33
- "imports": {
34
- "#/*": "./src/*"
35
- },
36
33
  "exports": {
37
34
  ".": {
38
35
  "types": "./dist/index.d.ts",
@@ -1,7 +1,7 @@
1
1
  import type { CacheHandler, CacheOptions } from './index';
2
2
  import { stableStringify } from './stable-stringify';
3
3
  import { createSingleflight } from './singleflight';
4
- import { addSpanEventSync } from '#/server/tracing.js';
4
+ import { addSpanEventSync } from '../server/tracing.js';
5
5
  import { fnv1aHash } from './fast-hash.js';
6
6
 
7
7
  const defaultSingleflight = createSingleflight();
@@ -28,7 +28,7 @@ import {
28
28
  createFromFetch,
29
29
  setServerCallback,
30
30
  encodeReply,
31
- } from '#/rsc-runtime/browser.js';
31
+ } from '../rsc-runtime/browser.js';
32
32
  // Shared-state modules MUST be imported from @timber-js/app/client (the public
33
33
  // barrel) so they resolve to the same module instances as user code. In Vite dev,
34
34
  // user code imports @timber-js/app/client from dist/ via package.json exports.
@@ -233,9 +233,8 @@ function bootstrap(runtimeConfig: typeof config): void {
233
233
  type FlightSegment = [isBootstrap: 0] | [isData: 1, data: string];
234
234
 
235
235
  // __timber_f is initialized in <head> via flightInitScript() (see
236
- // flight-scripts.ts). If it doesn't exist, this is an SSR-only page
237
- // (e.g. TSX error pages rendered without Flight) — skip Flight
238
- // decoding entirely and fall through to the createRoot branch.
236
+ // flight-scripts.ts). If it doesn't exist, skip Flight decoding
237
+ // entirely and fall through to the createRoot branch.
239
238
  // Do NOT defensively create it here: that would cause
240
239
  // createFromReadableStream to be called on an empty stream, producing
241
240
  // a "Connection closed" error on hydration. See TIM-552.
@@ -433,10 +432,10 @@ function bootstrap(runtimeConfig: typeof config): void {
433
432
  },
434
433
  });
435
434
  } else {
436
- // No RSC payload available (plugin hasn't inlined it yet) create a
437
- // non-hydrated root so client navigation can still render RSC payloads.
438
- // The initial SSR HTML remains as-is; the first client navigation will
439
- // replace it with a React-managed tree.
435
+ // No RSC payload available create a non-hydrated root so client
436
+ // navigation can still render RSC payloads. The initial SSR HTML
437
+ // remains as-is; the first client navigation will replace it with
438
+ // a React-managed tree.
440
439
  initRouter();
441
440
  _reactRoot = createRoot(document);
442
441
  }
@@ -0,0 +1,65 @@
1
+ 'use client';
2
+
3
+ /**
4
+ * Reconstitutes a SerializableError into a real Error instance before
5
+ * passing to the user's error component.
6
+ *
7
+ * TSX error pages are 'use client' components that receive { error: Error, digest, reset }.
8
+ * Error objects are not RSC-serializable (React Flight throws "Only plain objects
9
+ * can be passed to Client Components"). This wrapper receives the error as a plain
10
+ * SerializableError object, reconstitutes a real Error instance, and passes it
11
+ * to the user's error component — ensuring error instanceof Error works correctly.
12
+ *
13
+ * See design/spike-TIM-565-unify-error-pages.md §"Edge Case B"
14
+ * See design/10-error-handling.md §"RSC → SSR for Error Pages via SerializableError"
15
+ */
16
+
17
+ import { createElement, type ReactNode, type ComponentType } from 'react';
18
+
19
+ /**
20
+ * Plain-object representation of an Error that can cross the RSC → client boundary.
21
+ * Stack is only included in dev mode (gated by isDevMode() on the server).
22
+ */
23
+ export interface SerializableError {
24
+ message: string;
25
+ name: string;
26
+ stack?: string;
27
+ }
28
+
29
+ /**
30
+ * Props for the ErrorReconstituter wrapper component.
31
+ * All props are RSC-serializable:
32
+ * - error: plain object (SerializableError)
33
+ * - digest: plain JSON or null
34
+ * - reset: undefined (only meaningful on client after boundary catch)
35
+ * - component: client module reference (RSC Flight serializes as opaque ref)
36
+ */
37
+ interface ErrorReconstituterProps {
38
+ error: SerializableError;
39
+ digest: { code: string; data: unknown } | null;
40
+ reset: undefined;
41
+ component: ComponentType<{
42
+ error: Error;
43
+ digest: { code: string; data: unknown } | null;
44
+ reset: (() => void) | undefined;
45
+ }>;
46
+ }
47
+
48
+ /**
49
+ * Reconstitute a SerializableError into a real Error instance and render
50
+ * the user's error component with the proper props.
51
+ */
52
+ export function ErrorReconstituter({
53
+ error: serialized,
54
+ digest,
55
+ reset,
56
+ component,
57
+ }: ErrorReconstituterProps): ReactNode {
58
+ // Reconstitute a real Error so instanceof checks work in user code
59
+ const error = Object.assign(new Error(serialized.message), {
60
+ name: serialized.name,
61
+ ...(serialized.stack != null ? { stack: serialized.stack } : {}),
62
+ });
63
+
64
+ return createElement(component, { error, digest, reset });
65
+ }
@@ -12,8 +12,8 @@
12
12
  */
13
13
 
14
14
  import { useActionState as reactUseActionState, useTransition } from 'react';
15
- import type { ActionResult, ValidationErrors } from '#/server/action-client';
16
- import type { FormFlashData } from '#/server/form-flash';
15
+ import type { ActionResult, ValidationErrors } from '../server/action-client';
16
+ import type { FormFlashData } from '../server/form-flash';
17
17
 
18
18
  // ─── Types ───────────────────────────────────────────────────────────────
19
19
 
@@ -5,7 +5,7 @@ export type { JsonSerializable, RenderErrorDigest } from './types';
5
5
 
6
6
  // Navigation
7
7
  export { Link, interpolateParams, resolveHref, validateLinkHref, buildLinkProps } from './link';
8
- export { mergePreservedSearchParams } from '#/shared/merge-search-params.js';
8
+ export { mergePreservedSearchParams } from '../shared/merge-search-params.js';
9
9
  export type { LinkProps, LinkPropsWithHref, LinkPropsWithParams } from './link';
10
10
  export type { OnNavigateHandler, OnNavigateEvent } from './link';
11
11
  export { createRouter } from './router';
@@ -61,7 +61,7 @@ export type { ClientCookieOptions, CookieSetter } from './use-cookie';
61
61
  // This runs at module load time in the client/SSR environment, wiring up
62
62
  // the useCookie hook without a top-level import in define-cookie.ts.
63
63
  import * as _useCookieMod from './use-cookie.js';
64
- import { _registerUseCookieModule } from '#/cookies/define-cookie.js';
64
+ import { _registerUseCookieModule } from '../cookies/define-cookie.js';
65
65
  _registerUseCookieModule(_useCookieMod);
66
66
 
67
67
  // SSR data (framework-internal, used by ssr-entry to provide request data to hooks)
@@ -26,11 +26,11 @@ import {
26
26
  type ReactNode,
27
27
  type MouseEvent as ReactMouseEvent,
28
28
  } from 'react';
29
- import type { SearchParamsDefinition } from '#/search-params/define.js';
29
+ import type { SearchParamsDefinition } from '../search-params/define.js';
30
30
  import { LinkStatusContext } from './use-link-status.js';
31
31
  import { getRouterOrNull } from './router-ref.js';
32
32
  import { getSsrData } from './ssr-data.js';
33
- import { mergePreservedSearchParams } from '#/shared/merge-search-params.js';
33
+ import { mergePreservedSearchParams } from '../shared/merge-search-params.js';
34
34
  import {
35
35
  setLinkForCurrentNavigation,
36
36
  unmountLinkForCurrentNavigation,