@timber-js/app 0.2.0-alpha.3 → 0.2.0-alpha.4

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 (75) hide show
  1. package/dist/_chunks/{als-registry-k-AtAQ9R.js → als-registry-B7DbZ2hS.js} +1 -1
  2. package/dist/_chunks/{als-registry-k-AtAQ9R.js.map → als-registry-B7DbZ2hS.js.map} +1 -1
  3. package/dist/_chunks/debug-B4WUeqJ-.js +75 -0
  4. package/dist/_chunks/debug-B4WUeqJ-.js.map +1 -0
  5. package/dist/_chunks/{format-DNt20Kt8.js → format-CwdaB0_2.js} +3 -2
  6. package/dist/_chunks/format-CwdaB0_2.js.map +1 -0
  7. package/dist/_chunks/{interception-DGDIjDbR.js → interception-BOoWmLUA.js} +2 -2
  8. package/dist/_chunks/{interception-DGDIjDbR.js.map → interception-BOoWmLUA.js.map} +1 -1
  9. package/dist/_chunks/{metadata-routes-CQCnF4VK.js → metadata-routes-Cjmvi3rQ.js} +1 -1
  10. package/dist/_chunks/{metadata-routes-CQCnF4VK.js.map → metadata-routes-Cjmvi3rQ.js.map} +1 -1
  11. package/dist/_chunks/{request-context-CRj2Zh1E.js → request-context-CZJi4CuK.js} +5 -4
  12. package/dist/_chunks/request-context-CZJi4CuK.js.map +1 -0
  13. package/dist/_chunks/{ssr-data-DLnbYpj1.js → ssr-data-MjmprTmO.js} +1 -1
  14. package/dist/_chunks/{ssr-data-DLnbYpj1.js.map → ssr-data-MjmprTmO.js.map} +1 -1
  15. package/dist/_chunks/{tracing-DF0G3FB7.js → tracing-Cwn7697K.js} +2 -2
  16. package/dist/_chunks/{tracing-DF0G3FB7.js.map → tracing-Cwn7697K.js.map} +1 -1
  17. package/dist/_chunks/{use-cookie-dDbpCTx-.js → use-cookie-DX-l1_5E.js} +2 -2
  18. package/dist/_chunks/{use-cookie-dDbpCTx-.js.map → use-cookie-DX-l1_5E.js.map} +1 -1
  19. package/dist/_chunks/{use-query-states-DAhgj8Gx.js → use-query-states-D5KaffOK.js} +1 -1
  20. package/dist/_chunks/{use-query-states-DAhgj8Gx.js.map → use-query-states-D5KaffOK.js.map} +1 -1
  21. package/dist/cache/index.js +2 -2
  22. package/dist/client/error-boundary.js +1 -1
  23. package/dist/client/index.js +3 -3
  24. package/dist/cookies/index.js +4 -4
  25. package/dist/index.d.ts +38 -0
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/index.js +22 -6
  28. package/dist/index.js.map +1 -1
  29. package/dist/plugins/build-report.d.ts +11 -1
  30. package/dist/plugins/build-report.d.ts.map +1 -1
  31. package/dist/plugins/entries.d.ts.map +1 -1
  32. package/dist/plugins/server-bundle.d.ts.map +1 -1
  33. package/dist/routing/index.js +1 -1
  34. package/dist/search-params/index.js +1 -1
  35. package/dist/server/access-gate.d.ts.map +1 -1
  36. package/dist/server/action-client.d.ts.map +1 -1
  37. package/dist/server/debug.d.ts +51 -0
  38. package/dist/server/debug.d.ts.map +1 -0
  39. package/dist/server/deny-renderer.d.ts.map +1 -1
  40. package/dist/server/dev-warnings.d.ts.map +1 -1
  41. package/dist/server/index.js +14 -13
  42. package/dist/server/index.js.map +1 -1
  43. package/dist/server/logger.d.ts.map +1 -1
  44. package/dist/server/primitives.d.ts.map +1 -1
  45. package/dist/server/request-context.d.ts.map +1 -1
  46. package/dist/server/response-cache.d.ts +53 -0
  47. package/dist/server/response-cache.d.ts.map +1 -0
  48. package/dist/server/rsc-entry/index.d.ts.map +1 -1
  49. package/dist/server/rsc-entry/rsc-payload.d.ts.map +1 -1
  50. package/dist/server/rsc-entry/rsc-stream.d.ts.map +1 -1
  51. package/dist/server/rsc-entry/ssr-renderer.d.ts.map +1 -1
  52. package/dist/server/rsc-prop-warnings.d.ts.map +1 -1
  53. package/dist/shims/image.d.ts +15 -15
  54. package/package.json +1 -1
  55. package/src/client/stale-reload.ts +1 -1
  56. package/src/index.ts +40 -0
  57. package/src/plugins/build-report.ts +23 -3
  58. package/src/plugins/entries.ts +2 -0
  59. package/src/plugins/server-bundle.ts +4 -0
  60. package/src/server/access-gate.tsx +3 -2
  61. package/src/server/action-client.ts +3 -2
  62. package/src/server/debug.ts +99 -0
  63. package/src/server/deny-renderer.ts +3 -2
  64. package/src/server/dev-warnings.ts +2 -1
  65. package/src/server/logger.ts +4 -3
  66. package/src/server/primitives.ts +2 -1
  67. package/src/server/request-context.ts +3 -2
  68. package/src/server/response-cache.ts +277 -0
  69. package/src/server/rsc-entry/index.ts +36 -9
  70. package/src/server/rsc-entry/rsc-payload.ts +4 -1
  71. package/src/server/rsc-entry/rsc-stream.ts +2 -1
  72. package/src/server/rsc-entry/ssr-renderer.ts +6 -2
  73. package/src/server/rsc-prop-warnings.ts +3 -1
  74. package/dist/_chunks/format-DNt20Kt8.js.map +0 -1
  75. package/dist/_chunks/request-context-CRj2Zh1E.js.map +0 -1
@@ -39,7 +39,17 @@ interface RouteInfo {
39
39
  segments: SegmentNode[];
40
40
  entryFilePath: string | null;
41
41
  }
42
- /** Walk the route tree and collect all leaf routes (pages + API endpoints). */
42
+ /**
43
+ * Walk the route tree and collect all leaf routes (pages + API endpoints).
44
+ *
45
+ * Parallel slots (`@artists`, `@shows`, etc.) are intentionally skipped —
46
+ * they render alongside the parent page at the same URL and are not
47
+ * separately URL-addressable. Their JS is captured in shared/layout chunks.
48
+ *
49
+ * After collection, entries are deduplicated by URL path so that overlapping
50
+ * route groups (e.g. `(browse)` and `(marketing)` both producing `/`) only
51
+ * appear once. The entry with the largest route-specific size wins.
52
+ */
43
53
  export declare function collectRoutes(tree: RouteTree): RouteInfo[];
44
54
  /** Produce formatted report lines for the Vite logger. */
45
55
  export declare function buildRouteReport(entries: RouteEntry[], sharedSize: number): string[];
@@ -1 +1 @@
1
- {"version":3,"file":"build-report.d.ts","sourceRoot":"","sources":["../../src/plugins/build-report.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAU,MAAM,MAAM,CAAC;AAC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0HhD;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAAC,mBAAmB,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAwBxF;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,aAAa,GAAG,MAAM,CAwExD"}
1
+ {"version":3,"file":"entries.d.ts","sourceRoot":"","sources":["../../src/plugins/entries.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAInC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AA4HhD;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAAC,mBAAmB,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAwBxF;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,aAAa,GAAG,MAAM,CAwExD"}
@@ -1 +1 @@
1
- {"version":3,"file":"server-bundle.d.ts","sourceRoot":"","sources":["../../src/plugins/server-bundle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAEnC,wBAAgB,kBAAkB,IAAI,MAAM,EAAE,CAyH7C"}
1
+ {"version":3,"file":"server-bundle.d.ts","sourceRoot":"","sources":["../../src/plugins/server-bundle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAEnC,wBAAgB,kBAAkB,IAAI,MAAM,EAAE,CA6H7C"}
@@ -1,2 +1,2 @@
1
- import { a as DEFAULT_PAGE_EXTENSIONS, i as scanRoutes, n as generateRouteMap, o as INTERCEPTION_MARKERS, r as classifySegment, t as collectInterceptionRewrites } from "../_chunks/interception-DGDIjDbR.js";
1
+ import { a as DEFAULT_PAGE_EXTENSIONS, i as scanRoutes, n as generateRouteMap, o as INTERCEPTION_MARKERS, r as classifySegment, t as collectInterceptionRewrites } from "../_chunks/interception-BOoWmLUA.js";
2
2
  export { DEFAULT_PAGE_EXTENSIONS, INTERCEPTION_MARKERS, classifySegment, collectInterceptionRewrites, generateRouteMap, scanRoutes };
@@ -1,4 +1,4 @@
1
- import { i as registerSearchParams, n as useQueryStates, r as getSearchParams } from "../_chunks/use-query-states-DAhgj8Gx.js";
1
+ import { i as registerSearchParams, n as useQueryStates, r as getSearchParams } from "../_chunks/use-query-states-D5KaffOK.js";
2
2
  //#region src/search-params/create.ts
3
3
  /**
4
4
  * createSearchParams — factory for SearchParamsDefinition<T>.
@@ -1 +1 @@
1
- {"version":3,"file":"access-gate.d.ts","sourceRoot":"","sources":["../../src/server/access-gate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAK5F;;;;;;;;;;;;;GAaG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CAmBvF;AAoCD;;;;;;;;;GASG;AACH,wBAAsB,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,YAAY,CAAC,CAyCtF"}
1
+ {"version":3,"file":"access-gate.d.ts","sourceRoot":"","sources":["../../src/server/access-gate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAM5F;;;;;;;;;;;;;GAaG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CAmBvF;AAoCD;;;;;;;;;GASG;AACH,wBAAsB,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,YAAY,CAAC,CAyCtF"}
@@ -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AkB,CAAC,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAC7D,MAAM,GAAE,kBAAkB,CAAC,IAAI,CAAM,GACpC,aAAa,CAAC,IAAI,CAAC,CAiGrB;AAID;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,KAAK,EACrC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,EAC5B,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,KAAK,CAAC,GACzC,QAAQ,CAAC,KAAK,CAAC,CAIjB"}
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Runtime debug flag for timber.js.
3
+ *
4
+ * Provides `isDebug()` — a runtime check that returns true when timber's
5
+ * debug/warning logging should be active. This is true in two cases:
6
+ *
7
+ * 1. Development mode: `process.env.NODE_ENV !== 'production'`
8
+ * (statically replaced and tree-shaken in production builds — zero cost)
9
+ *
10
+ * 2. TIMBER_DEBUG flag: A runtime environment variable that survives
11
+ * production builds. When set to any truthy value ("1", "true", etc.),
12
+ * timber's own diagnostics are re-enabled without affecting React's mode.
13
+ *
14
+ * The TIMBER_DEBUG check uses a dynamic property access pattern that
15
+ * prevents the bundler from statically replacing or eliminating it.
16
+ *
17
+ * Usage:
18
+ * In Cloudflare Workers wrangler.toml:
19
+ * [vars]
20
+ * TIMBER_DEBUG = "1"
21
+ *
22
+ * In Node.js:
23
+ * TIMBER_DEBUG=1 node server.js
24
+ *
25
+ * In timber.config.ts:
26
+ * export default { debug: true }
27
+ *
28
+ * See design/18-build-system.md for build pipeline details.
29
+ */
30
+ /**
31
+ * Set the debug flag from timber.config.ts.
32
+ * Called during handler initialization.
33
+ */
34
+ export declare function setDebugFromConfig(debug: boolean): void;
35
+ /**
36
+ * Check if timber debug logging is active.
37
+ *
38
+ * Returns true if ANY of these conditions hold:
39
+ * - NODE_ENV is not 'production' (standard dev mode)
40
+ * - TIMBER_DEBUG environment variable is set to a truthy value at runtime
41
+ * - timber.config.ts has `debug: true`
42
+ *
43
+ * The TIMBER_DEBUG check is deliberately written as a dynamic property
44
+ * access so bundlers cannot statically replace it. The `_envKey` variable
45
+ * prevents the bundler from seeing `process.env.TIMBER_DEBUG` as a
46
+ * compile-time constant.
47
+ *
48
+ * This function is intentionally NOT inlineable — it reads runtime state.
49
+ */
50
+ export declare function isDebug(): boolean;
51
+ //# sourceMappingURL=debug.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../src/server/debug.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAUH;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAEvD;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,OAAO,IAAI,OAAO,CAYjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"deny-renderer.d.ts","sourceRoot":"","sources":["../../src/server/deny-renderer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAKH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAI7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAMjE,qDAAqD;AACrD,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC;IAC3C,OAAO,EAAE,mBAAmB,CAAC;CAC9B;AAED,iEAAiE;AACjE,MAAM,MAAM,mBAAmB,GAAG,MAAM;IACtC,QAAQ,EAAE,cAAc,CAAC;IACzB,QAAQ,EAAE,cAAc,CAAC;CAC1B,CAAC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E,MAAM,GACZ,IAAI,CASN;AAED;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CAQtF;AAID,mDAAmD;AACnD,eAAO,MAAM,2BAA2B,6BAAuB,CAAC;AAEhE,mDAAmD;AACnD,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAE/D;AAED,0EAA0E;AAC1E,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI,CAMpE;AAID;;;GAGG;AACH,wBAAgB,cAAc,IAAI,IAAI,CAErC;AAED;;;GAGG;AACH,wBAAgB,WAAW,IAAI,WAAW,CAAC,MAAM,CAAC,CAEjD"}
@@ -1,8 +1,9 @@
1
- import { a as warnDenyAfterFlush, c as warnRedirectInAccess, d as warnSlowSlotWithoutSuspense, f as warnStaticRequestApi, i as warnCacheRequestProps, l as warnRedirectInSlotAccess, n as WarningId, o as warnDenyInSuspense, p as warnSuspenseWrappingChildren, r as setViteServer, s as warnDynamicApiInStaticBuild, t as formatSize, u as warnRedirectInSuspense } from "../_chunks/format-DNt20Kt8.js";
2
- import { i as getMetadataRouteServePath, n as classifyMetadataRoute, r as getMetadataRouteAutoLink, t as METADATA_ROUTE_CONVENTIONS } from "../_chunks/metadata-routes-CQCnF4VK.js";
3
- import { a as timingAls, i as revalidationAls, n as formFlashAls, s as waitUntilAls, t as earlyHintsSenderAls } from "../_chunks/als-registry-k-AtAQ9R.js";
4
- import { a as markResponseFlushed, c as setCookieSecrets, i as headers, l as setMutableCookieContext, n as cookies, o as runWithRequestContext, r as getSetCookieHeaders, s as searchParams, t as applyRequestHeaderOverlay, u as setParsedSearchParams } from "../_chunks/request-context-CRj2Zh1E.js";
5
- import { a as replaceTraceId, c as spanId, i as getTraceStore, l as traceId, n as generateTraceId, o as runWithTraceId, r as getOtelTraceId, s as setSpanAttribute, t as addSpanEvent, u as withSpan } from "../_chunks/tracing-DF0G3FB7.js";
1
+ import { t as isDebug } from "../_chunks/debug-B4WUeqJ-.js";
2
+ import { a as warnDenyAfterFlush, c as warnRedirectInAccess, d as warnSlowSlotWithoutSuspense, f as warnStaticRequestApi, i as warnCacheRequestProps, l as warnRedirectInSlotAccess, n as WarningId, o as warnDenyInSuspense, p as warnSuspenseWrappingChildren, r as setViteServer, s as warnDynamicApiInStaticBuild, t as formatSize, u as warnRedirectInSuspense } from "../_chunks/format-CwdaB0_2.js";
3
+ import { i as getMetadataRouteServePath, n as classifyMetadataRoute, r as getMetadataRouteAutoLink, t as METADATA_ROUTE_CONVENTIONS } from "../_chunks/metadata-routes-Cjmvi3rQ.js";
4
+ import { a as timingAls, i as revalidationAls, n as formFlashAls, s as waitUntilAls, t as earlyHintsSenderAls } from "../_chunks/als-registry-B7DbZ2hS.js";
5
+ import { a as markResponseFlushed, c as setCookieSecrets, i as headers, l as setMutableCookieContext, n as cookies, o as runWithRequestContext, r as getSetCookieHeaders, s as searchParams, t as applyRequestHeaderOverlay, u as setParsedSearchParams } from "../_chunks/request-context-CZJi4CuK.js";
6
+ import { a as replaceTraceId, c as spanId, i as getTraceStore, l as traceId, n as generateTraceId, o as runWithTraceId, r as getOtelTraceId, s as setSpanAttribute, t as addSpanEvent, u as withSpan } from "../_chunks/tracing-Cwn7697K.js";
6
7
  import { readFile } from "node:fs/promises";
7
8
  //#region src/server/waituntil-bridge.ts
8
9
  /**
@@ -72,7 +73,7 @@ function findNonSerializable(value, path = "data") {
72
73
  * No-op in production.
73
74
  */
74
75
  function warnIfNotSerializable(data, callerName) {
75
- if (process.env.NODE_ENV === "production") return;
76
+ if (!isDebug()) return;
76
77
  if (data === void 0) return;
77
78
  const issue = findNonSerializable(data);
78
79
  if (issue) console.warn(`[timber] ${callerName}: ${issue}. Data passed to deny() or RenderError must be JSON-serializable because the post-flush path uses JSON.stringify, not React Flight.`);
@@ -603,17 +604,17 @@ function logMiddlewareShortCircuit(data) {
603
604
  /** Log unhandled error in middleware phase. Level: error. */
604
605
  function logMiddlewareError(data) {
605
606
  if (_logger) _logger.error("unhandled error in middleware phase", withTraceContext(data));
606
- else if (process.env.NODE_ENV !== "production") console.error("[timber] middleware error", data.error);
607
+ else if (isDebug()) console.error("[timber] middleware error", data.error);
607
608
  }
608
609
  /** Log unhandled render-phase error. Level: error. */
609
610
  function logRenderError(data) {
610
611
  if (_logger) _logger.error("unhandled render-phase error", withTraceContext(data));
611
- else if (process.env.NODE_ENV !== "production") console.error("[timber] render error:", formatSsrError(data.error));
612
+ else if (isDebug()) console.error("[timber] render error:", formatSsrError(data.error));
612
613
  }
613
614
  /** Log proxy.ts uncaught error. Level: error. */
614
615
  function logProxyError(data) {
615
616
  if (_logger) _logger.error("proxy.ts threw uncaught error", withTraceContext(data));
616
- else if (process.env.NODE_ENV !== "production") console.error("[timber] proxy error", data.error);
617
+ else if (isDebug()) console.error("[timber] proxy error", data.error);
617
618
  }
618
619
  /** Log waitUntil() adapter missing (once at startup). Level: warn. */
619
620
  function logWaitUntilUnsupported() {
@@ -1503,10 +1504,10 @@ async function SlotAccessGate(props) {
1503
1504
  } catch (error) {
1504
1505
  if (error instanceof DenySignal) return deniedFallback ?? defaultFallback ?? null;
1505
1506
  if (error instanceof RedirectSignal) {
1506
- if (process.env.NODE_ENV !== "production") console.error("[timber] redirect() is not allowed in slot access.ts. Slots use deny() for graceful degradation — denied.tsx → default.tsx → null. If you need to redirect, move the logic to the parent segment's access.ts.");
1507
+ if (isDebug()) console.error("[timber] redirect() is not allowed in slot access.ts. Slots use deny() for graceful degradation — denied.tsx → default.tsx → null. If you need to redirect, move the logic to the parent segment's access.ts.");
1507
1508
  return deniedFallback ?? defaultFallback ?? null;
1508
1509
  }
1509
- if (process.env.NODE_ENV !== "production") console.warn("[timber] Unhandled error in slot access.ts. Use deny() for access control, not unhandled throws.", error);
1510
+ if (isDebug()) console.warn("[timber] Unhandled error in slot access.ts. Use deny() for access control, not unhandled throws.", error);
1510
1511
  throw error;
1511
1512
  }
1512
1513
  return children;
@@ -2791,7 +2792,7 @@ function handleActionError(error) {
2791
2792
  } };
2792
2793
  return { serverError: {
2793
2794
  code: "INTERNAL_ERROR",
2794
- ...typeof process !== "undefined" && process.env.NODE_ENV !== "production" && error instanceof Error ? { data: { message: error.message } } : {}
2795
+ ...isDebug() && error instanceof Error ? { data: { message: error.message } } : {}
2795
2796
  } };
2796
2797
  }
2797
2798
  /**
@@ -2912,7 +2913,7 @@ function validated(schema, handler) {
2912
2913
  * In production, validation errors are only returned to the client.
2913
2914
  */
2914
2915
  function logValidationFailure(errors) {
2915
- if (!(typeof process !== "undefined" && process.env.NODE_ENV !== "production")) return;
2916
+ if (!isDebug()) return;
2916
2917
  const fields = Object.entries(errors).map(([field, messages]) => ` ${field}: ${messages.join(", ")}`).join("\n");
2917
2918
  console.warn(`[timber] action schema validation failed:\n${fields}`);
2918
2919
  }