@farm.js/core 0.2.0-beta.4 → 0.2.0

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 (218) hide show
  1. package/README.md +1 -3
  2. package/dist/{agent-mcp.d-BdFnjlAT.d.mts → agent-mcp.d-DhZf5-v0.d.mts} +1 -1
  3. package/dist/{agent-mcp.d-CAwDC9y4.d.ts → agent-mcp.d-xPua9Zdz.d.ts} +1 -1
  4. package/dist/agent-runtime.d.mts +1 -1
  5. package/dist/agent-runtime.d.ts +1 -1
  6. package/dist/{analyzer-K3S4YRAH.mjs → analyzer-LQ4LVDCW.mjs} +2 -2
  7. package/dist/analyzer-ZFC2L6NZ.cjs +17 -0
  8. package/dist/api/node.d.mts +3 -3
  9. package/dist/api/node.d.ts +3 -3
  10. package/dist/api/route-manager.cjs +3 -3
  11. package/dist/api/route-manager.d.mts +3 -3
  12. package/dist/api/route-manager.d.ts +3 -3
  13. package/dist/api/route-manager.mjs +2 -2
  14. package/dist/api/runtime.d.mts +2 -2
  15. package/dist/api/runtime.d.ts +2 -2
  16. package/dist/api.cjs +4 -4
  17. package/dist/api.d.mts +4 -4
  18. package/dist/api.d.ts +4 -4
  19. package/dist/api.mjs +3 -3
  20. package/dist/{app-manifest.d-COs1wBGz.d.mts → app-manifest.d-Bq9VWtpk.d.mts} +1 -1
  21. package/dist/{app-manifest.d-Dczk-fwt.d.ts → app-manifest.d-D6l1Wkn6.d.ts} +1 -1
  22. package/dist/app-markdown.d.mts +2 -2
  23. package/dist/app-markdown.d.ts +2 -2
  24. package/dist/{app.d-LepnxO-5.d.mts → app.d-Bn1bqBkf.d.mts} +4 -4
  25. package/dist/{app.d-DREl_yXh.d.ts → app.d-gnTrW72o.d.ts} +4 -4
  26. package/dist/{chunk-X2SMVPLH.mjs → chunk-2FBFJO2Z.mjs} +8 -5
  27. package/dist/{chunk-VQYGXWCS.cjs → chunk-2LHO4HTP.cjs} +2 -2
  28. package/dist/{chunk-QBCR2EHA.cjs → chunk-4ER5KYSC.cjs} +3 -3
  29. package/dist/{chunk-WLOIUPV2.mjs → chunk-54INSSWI.mjs} +25 -22
  30. package/dist/{chunk-Z3RM3VA2.mjs → chunk-5VXVRMXK.mjs} +11 -1
  31. package/dist/chunk-CYUTK4JP.cjs +52 -0
  32. package/dist/{chunk-AGEBFYHF.mjs → chunk-D7KBMJ7L.mjs} +1 -1
  33. package/dist/{chunk-FYVSAWJP.cjs → chunk-DNERKYN4.cjs} +11 -11
  34. package/dist/{chunk-2PSN2PUJ.cjs → chunk-EWPH5IOC.cjs} +19 -16
  35. package/dist/{chunk-5UMPMVNF.mjs → chunk-FFROR7QD.mjs} +1 -1
  36. package/dist/{chunk-HFOME6I2.mjs → chunk-GAD63TH7.mjs} +5 -5
  37. package/dist/{chunk-DFLCEMQ3.mjs → chunk-GK2RCRT2.mjs} +1 -1
  38. package/dist/{chunk-IU4YTFFQ.cjs → chunk-GUYGMTWA.cjs} +12 -9
  39. package/dist/{chunk-HV6CYSMF.mjs → chunk-HHZURH4U.mjs} +1 -17
  40. package/dist/{chunk-II4ENBE4.mjs → chunk-HYYOVRED.mjs} +1 -1
  41. package/dist/{chunk-VMIR4SUL.cjs → chunk-J6JAUJPC.cjs} +373 -370
  42. package/dist/{chunk-AGT633OM.cjs → chunk-JKNQMGZE.cjs} +11 -11
  43. package/dist/{chunk-ANKMAGFJ.mjs → chunk-KJW6KEOZ.mjs} +1 -1
  44. package/dist/{chunk-LOQVWATF.mjs → chunk-KKXGBQ2K.mjs} +2 -2
  45. package/dist/{chunk-TQCDN4DV.mjs → chunk-KQXYBJES.mjs} +14 -11
  46. package/dist/{chunk-HP7QYVST.cjs → chunk-LEZJZX4C.cjs} +1 -18
  47. package/dist/{chunk-E5AC7E25.cjs → chunk-LGL5QKUJ.cjs} +2 -2
  48. package/dist/{chunk-LWQ6IESX.mjs → chunk-MEIZIRMK.mjs} +1 -1
  49. package/dist/{chunk-T4NOMZTS.mjs → chunk-MLMDOIBY.mjs} +3 -3
  50. package/dist/{chunk-XJEOHDPN.cjs → chunk-MNBFSAWF.cjs} +1 -1
  51. package/dist/{chunk-NNHIV3O2.cjs → chunk-MUQP2APN.cjs} +2 -2
  52. package/dist/{chunk-VVIO7QGN.mjs → chunk-MX4G24YS.mjs} +29 -26
  53. package/dist/{chunk-C4DZAEVT.cjs → chunk-MZG5M4JS.cjs} +4 -4
  54. package/dist/{chunk-MBDDLYT5.cjs → chunk-O47IT4CS.cjs} +4 -4
  55. package/dist/{chunk-F5T55PYX.cjs → chunk-OAAVIFOJ.cjs} +26 -21
  56. package/dist/{chunk-GTHBWZUK.mjs → chunk-OZAVCLXY.mjs} +1 -1
  57. package/dist/{chunk-2UV765GT.cjs → chunk-PATIHHC7.cjs} +2 -2
  58. package/dist/{chunk-KBURN62Z.cjs → chunk-PFVNPOKN.cjs} +11 -1
  59. package/dist/chunk-PTG5BEMG.mjs +47 -0
  60. package/dist/{chunk-EBVKVDQA.mjs → chunk-PZ5ZJAAO.mjs} +1 -1
  61. package/dist/{chunk-D5OY5OKA.mjs → chunk-RDT2LJES.mjs} +23 -17
  62. package/dist/{chunk-APKULXZV.cjs → chunk-RMLXUVR5.cjs} +2 -2
  63. package/dist/{chunk-VGX75645.mjs → chunk-RP55BUJM.mjs} +8 -5
  64. package/dist/{chunk-P67RLOMO.mjs → chunk-SIHHYNX4.mjs} +1 -1
  65. package/dist/{chunk-KM7ZRKCH.cjs → chunk-T4VF6BYV.cjs} +10 -10
  66. package/dist/{chunk-IASZIYNM.cjs → chunk-VFZQXADS.cjs} +299 -296
  67. package/dist/{chunk-UBH2OARS.cjs → chunk-VWPGK6UV.cjs} +280 -274
  68. package/dist/{chunk-V5F6HN7E.mjs → chunk-WOPQQCP3.mjs} +1 -1
  69. package/dist/{chunk-DVXT7RLV.cjs → chunk-WXPY5FRF.cjs} +6 -6
  70. package/dist/{chunk-XPVS4HKU.cjs → chunk-Z7YIQ7AJ.cjs} +1 -1
  71. package/dist/{chunk-PSALMEHJ.cjs → chunk-ZCT6B5PQ.cjs} +23 -20
  72. package/dist/{chunk-2ORWY3SE.mjs → chunk-ZF7N222A.mjs} +2 -2
  73. package/dist/{chunk-MRDI6MTL.mjs → chunk-ZRTBDHO2.mjs} +15 -10
  74. package/dist/{chunk-5BZ7PR3T.cjs → chunk-ZTNU4XCC.cjs} +3 -3
  75. package/dist/{chunk-VS4ABIJJ.mjs → chunk-ZVEKOMZS.mjs} +1 -1
  76. package/dist/{cli-runtime.d-BGaFPum1.d.mts → cli-runtime.d-LwIb0swO.d.mts} +5 -5
  77. package/dist/{cli-runtime.d-Bvfxt4uo.d.ts → cli-runtime.d-Vvxf-Z8a.d.ts} +5 -5
  78. package/dist/{client-component.d-BA6kXI5L.d.mts → client-component.d-34DDMZcl.d.mts} +1 -1
  79. package/dist/{client-component.d-LSEmRhuI.d.ts → client-component.d-DT5OKBZu.d.ts} +1 -1
  80. package/dist/{client-plugins.d-CVUMc2ai.d.mts → client-plugins.d-D7k9t9Ge.d.mts} +17 -12
  81. package/dist/{client-plugins.d-CQ6AGHP0.d.ts → client-plugins.d-D9CnUvZ5.d.ts} +17 -12
  82. package/dist/client-plugins.d.mts +1 -1
  83. package/dist/client-plugins.d.ts +1 -1
  84. package/dist/client.d.mts +7 -7
  85. package/dist/client.d.ts +7 -7
  86. package/dist/config.d.mts +1 -1
  87. package/dist/config.d.ts +1 -1
  88. package/dist/desktop.d.mts +2 -2
  89. package/dist/desktop.d.ts +2 -2
  90. package/dist/{devtools-OBQY3XOY.cjs → devtools-IUU4SWQL.cjs} +12 -9
  91. package/dist/{devtools-RYTO2V7G.mjs → devtools-R77KAJA4.mjs} +8 -5
  92. package/dist/docs.cjs +7 -6
  93. package/dist/docs.d.mts +3 -3
  94. package/dist/docs.d.ts +3 -3
  95. package/dist/docs.mjs +6 -5
  96. package/dist/environment/vite.cjs +6 -5
  97. package/dist/environment/vite.d.mts +1 -0
  98. package/dist/environment/vite.d.ts +1 -0
  99. package/dist/environment/vite.mjs +5 -4
  100. package/dist/{handler.d-nkrNn_0M.d.ts → handler.d-DbZvbwNi.d.ts} +1 -1
  101. package/dist/{handler.d-DLKZDAYR.d.mts → handler.d-fxTjv3Nn.d.mts} +1 -1
  102. package/dist/{headers.d-C3k520Fc.d.mts → headers.d-OBHpGTF_.d.mts} +1 -1
  103. package/dist/{headers.d-DVBrYnqP.d.ts → headers.d-oeWybIk8.d.ts} +1 -1
  104. package/dist/index.cjs +28 -27
  105. package/dist/{index.d-e5WhoB07.d.ts → index.d-BM-dKdzH.d.ts} +1 -1
  106. package/dist/{index.d-5PDB032w.d.mts → index.d-CRrPQwlO.d.mts} +1 -1
  107. package/dist/index.d.mts +22 -22
  108. package/dist/index.d.ts +22 -22
  109. package/dist/index.mjs +23 -22
  110. package/dist/integrations/orm.d.mts +1 -1
  111. package/dist/integrations/orm.d.ts +1 -1
  112. package/dist/integrations.d.mts +1 -1
  113. package/dist/integrations.d.ts +1 -1
  114. package/dist/internal/app-markdown-runtime.d.mts +2 -2
  115. package/dist/internal/app-markdown-runtime.d.ts +2 -2
  116. package/dist/internal/build-runtime.cjs +23 -22
  117. package/dist/internal/build-runtime.d.mts +5 -5
  118. package/dist/internal/build-runtime.d.ts +5 -5
  119. package/dist/internal/build-runtime.mjs +22 -21
  120. package/dist/internal/cli-runtime.cjs +11 -10
  121. package/dist/internal/cli-runtime.d.mts +7 -7
  122. package/dist/internal/cli-runtime.d.ts +7 -7
  123. package/dist/internal/cli-runtime.mjs +10 -9
  124. package/dist/internal/client-error-overlay.cjs +4 -4
  125. package/dist/internal/client-error-overlay.mjs +1 -1
  126. package/dist/internal/client-runtime.d.mts +5 -5
  127. package/dist/internal/client-runtime.d.ts +5 -5
  128. package/dist/internal/compression-runtime.d.mts +1 -1
  129. package/dist/internal/compression-runtime.d.ts +1 -1
  130. package/dist/internal/config-runtime.cjs +7 -6
  131. package/dist/internal/config-runtime.d.mts +3 -3
  132. package/dist/internal/config-runtime.d.ts +3 -3
  133. package/dist/internal/config-runtime.mjs +6 -5
  134. package/dist/internal/infra-analytics-runtime.cjs +6 -6
  135. package/dist/internal/infra-analytics-runtime.mjs +4 -4
  136. package/dist/internal/native-server-fns.cjs +4 -4
  137. package/dist/internal/native-server-fns.mjs +3 -3
  138. package/dist/internal/product-telemetry-runtime.cjs +3 -3
  139. package/dist/internal/product-telemetry-runtime.mjs +2 -2
  140. package/dist/internal/production-runtime.cjs +4 -4
  141. package/dist/internal/production-runtime.d.mts +10 -10
  142. package/dist/internal/production-runtime.d.ts +10 -10
  143. package/dist/internal/production-runtime.mjs +3 -3
  144. package/dist/internal/spa-router.d.mts +3 -3
  145. package/dist/internal/spa-router.d.ts +3 -3
  146. package/dist/internal/start-manifest.d.mts +1 -1
  147. package/dist/internal/start-manifest.d.ts +1 -1
  148. package/dist/layers-6R55QDT5.cjs +26 -0
  149. package/dist/{layers-IMRXNZRB.mjs → layers-O6GUR6LT.mjs} +6 -1
  150. package/dist/{manager-GZUTAN5Q.mjs → manager-EFPBRS3U.mjs} +3 -3
  151. package/dist/{manager-3DFQDKJ6.cjs → manager-STAB5TVZ.cjs} +4 -4
  152. package/dist/markdown.d.mts +1 -1
  153. package/dist/markdown.d.ts +1 -1
  154. package/dist/middleware.d.mts +1 -1
  155. package/dist/middleware.d.ts +1 -1
  156. package/dist/{mount.d-COIrFH0i.d.mts → mount.d-B7RiwjiO.d.mts} +1 -1
  157. package/dist/{mount.d-Cbz8vsSZ.d.ts → mount.d-TnD-Mebk.d.ts} +1 -1
  158. package/dist/{navigation-delegate.d-yulG9Dp5.d.mts → navigation-delegate.d-Boz2511c.d.mts} +1 -1
  159. package/dist/{navigation-delegate.d-dlnYTX-Y.d.ts → navigation-delegate.d-VBCF0EeN.d.ts} +1 -1
  160. package/dist/navigation.d.mts +4 -4
  161. package/dist/navigation.d.ts +4 -4
  162. package/dist/plugin.cjs +18 -17
  163. package/dist/plugin.d.mts +5 -5
  164. package/dist/plugin.d.ts +5 -5
  165. package/dist/plugin.mjs +17 -16
  166. package/dist/{render-plan.d-Cz7bQmcf.d.ts → render-plan.d-BrumV_ZE.d.ts} +1 -1
  167. package/dist/{render-plan.d-BW56oxMP.d.mts → render-plan.d-BwnmyfNk.d.mts} +1 -1
  168. package/dist/renderer-client.d.mts +5 -5
  169. package/dist/renderer-client.d.ts +5 -5
  170. package/dist/renderer.cjs +4 -3
  171. package/dist/renderer.d.mts +1 -1
  172. package/dist/renderer.d.ts +1 -1
  173. package/dist/renderer.mjs +3 -2
  174. package/dist/{request.d-BwgX-7Wi.d.mts → request.d-Dd5nRTO5.d.mts} +1 -1
  175. package/dist/{request.d-BaFROByP.d.ts → request.d-NUi01-5e.d.ts} +1 -1
  176. package/dist/request.d.mts +2 -2
  177. package/dist/request.d.ts +2 -2
  178. package/dist/{route-rendering.d-BzeFPYGc.d.mts → route-rendering.d-BK0Pf7_k.d.mts} +1 -1
  179. package/dist/{route-rendering.d-D4kUuncg.d.ts → route-rendering.d-CJR5BPXV.d.ts} +1 -1
  180. package/dist/{router.d-B9qJdgjt.d.ts → router.d-C-JSFCPU.d.ts} +1 -1
  181. package/dist/{router.d-D-p8WElf.d.mts → router.d-CNUS3x1j.d.mts} +1 -1
  182. package/dist/routes.d.mts +1 -1
  183. package/dist/routes.d.ts +1 -1
  184. package/dist/{rsc-pipeline-Y6D6KBES.mjs → rsc-pipeline-DHISDFT7.mjs} +7 -6
  185. package/dist/{rsc-pipeline-YHVEHWTU.cjs → rsc-pipeline-UBWVU3NF.cjs} +8 -7
  186. package/dist/{runtime-62ZIEV6U.mjs → runtime-VUKMY44G.mjs} +11 -8
  187. package/dist/{runtime-LKEMFXHW.cjs → runtime-XKRQW3YT.cjs} +15 -12
  188. package/dist/{runtime.d-Du64AX3R.d.ts → runtime.d-B2T4bM5_.d.ts} +1 -1
  189. package/dist/{runtime.d-BUtDIrRJ.d.mts → runtime.d-CsOpO6yQ.d.mts} +1 -1
  190. package/dist/{server-components-status.d-CvFhb6-t.d.ts → server-components-status.d-Cc5rir0l.d.mts} +2 -2
  191. package/dist/{server-components-status.d-B0YP-m9A.d.mts → server-components-status.d-DOYt4E_Q.d.ts} +2 -2
  192. package/dist/server-plugins.d.mts +3 -3
  193. package/dist/server-plugins.d.ts +3 -3
  194. package/dist/server.cjs +56 -53
  195. package/dist/server.d.mts +12 -12
  196. package/dist/server.d.ts +12 -12
  197. package/dist/server.mjs +23 -20
  198. package/dist/{spa-router.d-D4ye2WFk.d.ts → spa-router.d-C7FcpLxU.d.ts} +2 -2
  199. package/dist/{spa-router.d-CkR14oGH.d.mts → spa-router.d-Cq5UFJvq.d.mts} +2 -2
  200. package/dist/{ssg.d-DFs97VTY.d.mts → ssg.d-BzNZemk7.d.mts} +2 -2
  201. package/dist/{ssg.d-BCJB_f7B.d.ts → ssg.d-DUhacIxj.d.ts} +2 -2
  202. package/dist/{store-core.d-0W2YScl8.d.ts → store-core.d-BX3yXrxA.d.ts} +2 -2
  203. package/dist/{store-core.d-Vk5UDKeC.d.mts → store-core.d-DbUAtSBK.d.mts} +2 -2
  204. package/dist/testing.cjs +2 -2
  205. package/dist/testing.d.mts +1 -1
  206. package/dist/testing.d.ts +1 -1
  207. package/dist/testing.mjs +2 -2
  208. package/dist/{utils.d-Ba3N28fk.d.ts → utils.d-BhJJEXzo.d.ts} +1 -1
  209. package/dist/{utils.d-Cloiko8d.d.mts → utils.d-NOMkLFpC.d.mts} +1 -1
  210. package/dist/version.cjs +2 -2
  211. package/dist/version.mjs +1 -1
  212. package/dist/vite.cjs +18 -17
  213. package/dist/vite.d.mts +6 -6
  214. package/dist/vite.d.ts +6 -6
  215. package/dist/vite.mjs +17 -16
  216. package/package.json +1 -1
  217. package/dist/analyzer-3AMJK27J.cjs +0 -17
  218. package/dist/layers-GP57TBE2.cjs +0 -21
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  hasPolyroutePlugin,
9
9
  isFarmAPIRouteFileName
10
- } from "./chunk-GTHBWZUK.mjs";
10
+ } from "./chunk-OZAVCLXY.mjs";
11
11
  import {
12
12
  _runWithFarmI18nRequest
13
13
  } from "./chunk-O7JEFGUV.mjs";
@@ -5,7 +5,7 @@ var _chunkB6JPBPBQcjs = require('./chunk-B6JPBPBQ.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunkHP7QYVSTcjs = require('./chunk-HP7QYVST.cjs');
8
+ var _chunkLEZJZX4Ccjs = require('./chunk-LEZJZX4C.cjs');
9
9
 
10
10
 
11
11
  var _chunkRBDAW6IZcjs = require('./chunk-RBDAW6IZ.cjs');
@@ -85,7 +85,7 @@ async function resolveFarmRendererRoutes(options) {
85
85
  );
86
86
  }
87
87
  const extensions = [
88
- ..._chunkHP7QYVSTcjs.resolveFarmComponentExtensions.call(void 0, renderer.componentExtensions),
88
+ ..._chunkLEZJZX4Ccjs.resolveFarmComponentExtensions.call(void 0, renderer.componentExtensions),
89
89
  ".md",
90
90
  ".mdx"
91
91
  ];
@@ -110,7 +110,7 @@ async function resolveFarmRendererRoutes(options) {
110
110
  try {
111
111
  rule = resolve2.call(rules, file);
112
112
  } catch (error) {
113
- throw _chunkHP7QYVSTcjs.createFarmRendererHookError.call(void 0,
113
+ throw _chunkLEZJZX4Ccjs.createFarmRendererHookError.call(void 0,
114
114
  `${where} threw while resolving ${modulePath}: ${error instanceof Error ? error.message : String(error)}`,
115
115
  error
116
116
  );
@@ -158,7 +158,7 @@ function readRouteRule(rule, where, extension, modulePath) {
158
158
  try {
159
159
  _chunk7ZDLE77Pcjs.parseRoutePath.call(void 0, routeFile);
160
160
  } catch (error) {
161
- throw _chunkHP7QYVSTcjs.createFarmRendererHookError.call(void 0,
161
+ throw _chunkLEZJZX4Ccjs.createFarmRendererHookError.call(void 0,
162
162
  `${where} returned \`pattern: ${JSON.stringify(pattern)}\`: ${error instanceof Error ? error.message : String(error)}`,
163
163
  error
164
164
  );
@@ -168,7 +168,7 @@ function readRouteRule(rule, where, extension, modulePath) {
168
168
  pattern,
169
169
  routeFile,
170
170
  modulePath,
171
- hydration: _chunkHP7QYVSTcjs.readFarmRendererHydration.call(void 0, value, where)
171
+ hydration: _chunkLEZJZX4Ccjs.readFarmRendererHydration.call(void 0, value, where)
172
172
  };
173
173
  }
174
174
  function readPatternSegments(pattern, where) {
@@ -321,7 +321,7 @@ var PLATFORM_FILE = /^(?:(page|layout)\.(native|ios|android)\.(?:tsx|ts|jsx|js)|
321
321
  async function scanRoutePatterns(options) {
322
322
  const { root, srcDir = "src" } = options;
323
323
  const sourceRoots = _nullishCoalesce(options.sourceRoots, () => ( [{ name: "project", root, srcDir, layer: false }]));
324
- const componentExtensions = _chunkHP7QYVSTcjs.resolveFarmComponentExtensions.call(void 0, options.componentExtensions).map(
324
+ const componentExtensions = _chunkLEZJZX4Ccjs.resolveFarmComponentExtensions.call(void 0, options.componentExtensions).map(
325
325
  (extension) => extension.slice(1)
326
326
  );
327
327
  const pages = /* @__PURE__ */ new Set();
@@ -6,7 +6,7 @@ var _chunkUGL4BDNBcjs = require('./chunk-UGL4BDNB.cjs');
6
6
  _chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
7
7
 
8
8
  // package.json
9
- var version = "0.2.0-beta.4";
9
+ var version = "0.2.0";
10
10
 
11
11
  // src/version.ts
12
12
  var FARM_VERSION = version;
@@ -7,14 +7,17 @@ var _chunkJ3RIMCBDcjs = require('./chunk-J3RIMCBD.cjs');
7
7
  var _chunkBNWADCG2cjs = require('./chunk-BNWADCG2.cjs');
8
8
 
9
9
 
10
- var _chunkKBURN62Zcjs = require('./chunk-KBURN62Z.cjs');
10
+ var _chunkPFVNPOKNcjs = require('./chunk-PFVNPOKN.cjs');
11
11
 
12
12
 
13
13
 
14
14
 
15
15
 
16
+ var _chunkLEZJZX4Ccjs = require('./chunk-LEZJZX4C.cjs');
16
17
 
17
- var _chunkHP7QYVSTcjs = require('./chunk-HP7QYVST.cjs');
18
+
19
+
20
+ var _chunkCYUTK4JPcjs = require('./chunk-CYUTK4JP.cjs');
18
21
 
19
22
 
20
23
  var _chunk32HGOX3Mcjs = require('./chunk-32HGOX3M.cjs');
@@ -28,7 +31,7 @@ var _chunkPYPHM7AScjs = require('./chunk-PYPHM7AS.cjs');
28
31
  var _chunk7ZDLE77Pcjs = require('./chunk-7ZDLE77P.cjs');
29
32
 
30
33
 
31
- var _chunkXPVS4HKUcjs = require('./chunk-XPVS4HKU.cjs');
34
+ var _chunkZ7YIQ7AJcjs = require('./chunk-Z7YIQ7AJ.cjs');
32
35
 
33
36
 
34
37
  var _chunkUGL4BDNBcjs = require('./chunk-UGL4BDNB.cjs');
@@ -977,7 +980,7 @@ function usePackageScanCacheFile(file) {
977
980
  const stored = /* @__PURE__ */ new Map();
978
981
  try {
979
982
  const value = JSON.parse(_fs2.default.readFileSync(file, "utf8"));
980
- if (_optionalChain([value, 'optionalAccess', _68 => _68.schema]) === PACKAGE_SCAN_CACHE_SCHEMA && value.farm === _chunkXPVS4HKUcjs.FARM_VERSION && value.scans && typeof value.scans === "object") {
983
+ if (_optionalChain([value, 'optionalAccess', _68 => _68.schema]) === PACKAGE_SCAN_CACHE_SCHEMA && value.farm === _chunkZ7YIQ7AJcjs.FARM_VERSION && value.scans && typeof value.scans === "object") {
981
984
  for (const [directory, scan] of Object.entries(value.scans)) {
982
985
  if (isStoredPackageScan(scan)) stored.set(directory, scan);
983
986
  }
@@ -1006,7 +1009,7 @@ function persistPackageScanCache() {
1006
1009
  _fs2.default.mkdirSync(_path2.default.dirname(cache2.file), { recursive: true });
1007
1010
  _fs2.default.writeFileSync(
1008
1011
  temporary,
1009
- JSON.stringify({ schema: PACKAGE_SCAN_CACHE_SCHEMA, farm: _chunkXPVS4HKUcjs.FARM_VERSION, scans })
1012
+ JSON.stringify({ schema: PACKAGE_SCAN_CACHE_SCHEMA, farm: _chunkZ7YIQ7AJcjs.FARM_VERSION, scans })
1010
1013
  );
1011
1014
  _fs2.default.renameSync(temporary, cache2.file);
1012
1015
  cache2.dirty = false;
@@ -2319,7 +2322,7 @@ var PackageClientBoundaryCache = class {
2319
2322
  }
2320
2323
  const contents = JSON.stringify({
2321
2324
  schema: SCHEMA_VERSION,
2322
- farm: _chunkXPVS4HKUcjs.FARM_VERSION,
2325
+ farm: _chunkZ7YIQ7AJcjs.FARM_VERSION,
2323
2326
  paths,
2324
2327
  entries
2325
2328
  });
@@ -2359,7 +2362,7 @@ function readStoredCache(file) {
2359
2362
  } catch (e38) {
2360
2363
  return null;
2361
2364
  }
2362
- if (!isRecord(value) || value.schema !== SCHEMA_VERSION || value.farm !== _chunkXPVS4HKUcjs.FARM_VERSION) {
2365
+ if (!isRecord(value) || value.schema !== SCHEMA_VERSION || value.farm !== _chunkZ7YIQ7AJcjs.FARM_VERSION) {
2363
2366
  return null;
2364
2367
  }
2365
2368
  const { paths, entries } = value;
@@ -2370,7 +2373,7 @@ function readStoredCache(file) {
2370
2373
  const usable = variants.filter((entry) => isStoredEntry(entry, paths.length));
2371
2374
  if (usable.length > 0) valid[key] = usable;
2372
2375
  }
2373
- return { schema: SCHEMA_VERSION, farm: _chunkXPVS4HKUcjs.FARM_VERSION, paths, entries: valid };
2376
+ return { schema: SCHEMA_VERSION, farm: _chunkZ7YIQ7AJcjs.FARM_VERSION, paths, entries: valid };
2374
2377
  }
2375
2378
  function isRecord(value) {
2376
2379
  return typeof value === "object" && value !== null && !Array.isArray(value);
@@ -2524,7 +2527,7 @@ function readOwnHydration(scope, content, file) {
2524
2527
  try {
2525
2528
  value = scope.renderer.hydration.resolve(content, file);
2526
2529
  } catch (error) {
2527
- throw _chunkHP7QYVSTcjs.createFarmRendererHookError.call(void 0,
2530
+ throw _chunkLEZJZX4Ccjs.createFarmRendererHookError.call(void 0,
2528
2531
  `${where} threw: ${error instanceof Error ? error.message : String(error)}`,
2529
2532
  error
2530
2533
  );
@@ -2535,7 +2538,7 @@ function readOwnHydration(scope, content, file) {
2535
2538
  `${where} returned ${JSON.stringify(value)}. Return \`{ hydrate?, strategy? }\`, or nothing to leave the file to Farm.`
2536
2539
  );
2537
2540
  }
2538
- return _chunkHP7QYVSTcjs.readFarmRendererHydration.call(void 0, value, where);
2541
+ return _chunkLEZJZX4Ccjs.readFarmRendererHydration.call(void 0, value, where);
2539
2542
  }
2540
2543
  function mayCompileFarmRendererSource(file) {
2541
2544
  if (scopes.size === 0) return false;
@@ -2558,7 +2561,7 @@ function compileFarmRendererSource(content, sourcePath) {
2558
2561
  try {
2559
2562
  value = compile.call(scope.renderer, content, file);
2560
2563
  } catch (error) {
2561
- throw _chunkHP7QYVSTcjs.createFarmRendererHookError.call(void 0,
2564
+ throw _chunkLEZJZX4Ccjs.createFarmRendererHookError.call(void 0,
2562
2565
  `${where} threw: ${error instanceof Error ? error.message : String(error)}`,
2563
2566
  error
2564
2567
  );
@@ -2677,7 +2680,7 @@ function resolveModuleSourcePath(modulePath, root) {
2677
2680
  return null;
2678
2681
  }
2679
2682
  function getFarmClientHydrationPlanOptions(renderer, hasUnsupportedIntegrationProvider) {
2680
- return { asyncOwnerIslands: _chunkHP7QYVSTcjs.isReactRenderer.call(void 0, renderer) && !hasUnsupportedIntegrationProvider };
2683
+ return { asyncOwnerIslands: _chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, renderer) && !hasUnsupportedIntegrationProvider };
2681
2684
  }
2682
2685
  function describeSuppressedAsyncHydration(subject, reason) {
2683
2686
  const remediation = reason ? "Fix the reason above, or render the interactive UI from a synchronous owner." : 'Move the interactive UI into an eligible "use client" boundary, or render it from a synchronous owner.';
@@ -4696,7 +4699,7 @@ function transformEnvironmentFunctions(options) {
4696
4699
  function farmEnvironmentFunctionsPlugin(options = {}) {
4697
4700
  let routesFiles = /* @__PURE__ */ new Set();
4698
4701
  const componentExtensions = new Set(
4699
- _chunkHP7QYVSTcjs.getFarmRendererComponentExtensions.call(void 0, options.renderer || void 0)
4702
+ _chunkLEZJZX4Ccjs.getFarmRendererComponentExtensions.call(void 0, options.renderer || void 0)
4700
4703
  );
4701
4704
  let farmApi;
4702
4705
  let isBuild = false;
@@ -4733,7 +4736,7 @@ function farmEnvironmentFunctionsPlugin(options = {}) {
4733
4736
  farmApi = _optionalChain([config, 'access', _280 => _280.plugins, 'access', _281 => _281.find, 'call', _282 => _282((plugin) => plugin.name === "farm"), 'optionalAccess', _283 => _283.api]);
4734
4737
  sources = void 0;
4735
4738
  routesFiles = new Set(
4736
- _chunkKBURN62Zcjs.getFarmSourceRoots.call(void 0, { ...options, root: _nullishCoalesce(options.root, () => ( config.root)) }).flatMap(
4739
+ _chunkPFVNPOKNcjs.getFarmSourceRoots.call(void 0, { ...options, root: _nullishCoalesce(options.root, () => ( config.root)) }).flatMap(
4737
4740
  (source) => _chunkPYPHM7AScjs.PROGRAMMATIC_ROUTE_FILE_NAMES.map(
4738
4741
  (name) => resolvedFile(_path2.default.resolve(source.root, source.srcDir, name))
4739
4742
  )
@@ -4756,7 +4759,7 @@ function farmEnvironmentFunctionsPlugin(options = {}) {
4756
4759
  if (environment === "client" && !isBuild && !_chunkPYPHM7AScjs.parseProgrammaticRouteModuleId.call(void 0, id) && routeSourceFiles().has(moduleFile(id)) && !isProgrammaticRouteActionProxy(code)) {
4757
4760
  this.error(routeSourceError(moduleFile(id)));
4758
4761
  }
4759
- if (environment === "server" && _chunkHP7QYVSTcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([options, 'access', _285 => _285.experimental, 'optionalAccess', _286 => _286.serverComponents])) === "islands" && isApplicationScript(id)) {
4762
+ if (environment === "server" && _chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, options)) === "islands" && isApplicationScript(id)) {
4760
4763
  const file = id.split("?", 1)[0];
4761
4764
  const root = _fs.realpathSync.call(void 0, _nullishCoalesce(options.root, () => ( projectRoot)));
4762
4765
  const clientCode = getFarmClientReachableModules(root, root).has(_path2.default.resolve(file)) || _fs.existsSync.call(void 0, file) && hasUseClientDirective(_fs.readFileSync.call(void 0, file, "utf8"));
@@ -4790,7 +4793,7 @@ function farmEnvironmentFunctionsPlugin(options = {}) {
4790
4793
  for (const id of this.getModuleIds()) {
4791
4794
  if (_chunkPYPHM7AScjs.parseProgrammaticRouteModuleId.call(void 0, id)) {
4792
4795
  const chain = findClientNodeBuiltinChain(id, (moduleId) => {
4793
- return _optionalChain([this, 'access', _287 => _287.getModuleInfo, 'call', _288 => _288(moduleId), 'optionalAccess', _289 => _289.importedIds]);
4796
+ return _optionalChain([this, 'access', _285 => _285.getModuleInfo, 'call', _286 => _286(moduleId), 'optionalAccess', _287 => _287.importedIds]);
4794
4797
  });
4795
4798
  if (chain) {
4796
4799
  this.error(
@@ -4808,8 +4811,8 @@ function farmEnvironmentFunctionsPlugin(options = {}) {
4808
4811
  }
4809
4812
  if (!forbidden.has(moduleFile(id))) continue;
4810
4813
  const info = this.getModuleInfo(id);
4811
- if (isProgrammaticRouteActionProxy(_optionalChain([info, 'optionalAccess', _290 => _290.code]))) continue;
4812
- this.error(routeSourceError(moduleFile(id), _optionalChain([info, 'optionalAccess', _291 => _291.importers, 'access', _292 => _292.map, 'call', _293 => _293(moduleFile)])));
4814
+ if (isProgrammaticRouteActionProxy(_optionalChain([info, 'optionalAccess', _288 => _288.code]))) continue;
4815
+ this.error(routeSourceError(moduleFile(id), _optionalChain([info, 'optionalAccess', _289 => _289.importers, 'access', _290 => _290.map, 'call', _291 => _291(moduleFile)])));
4813
4816
  }
4814
4817
  }
4815
4818
  };
@@ -4828,8 +4831,8 @@ function resolvedFile(filePath) {
4828
4831
  }
4829
4832
  }
4830
4833
  function resolveBuildEnvironment(context, ssr) {
4831
- if (_optionalChain([context, 'access', _294 => _294.environment, 'optionalAccess', _295 => _295.name]) === "client") return "client";
4832
- if (_optionalChain([context, 'access', _296 => _296.environment, 'optionalAccess', _297 => _297.name]) === "rsc" || _optionalChain([context, 'access', _298 => _298.environment, 'optionalAccess', _299 => _299.name]) === "ssr") {
4834
+ if (_optionalChain([context, 'access', _292 => _292.environment, 'optionalAccess', _293 => _293.name]) === "client") return "client";
4835
+ if (_optionalChain([context, 'access', _294 => _294.environment, 'optionalAccess', _295 => _295.name]) === "rsc" || _optionalChain([context, 'access', _296 => _296.environment, 'optionalAccess', _297 => _297.name]) === "ssr") {
4833
4836
  return "server";
4834
4837
  }
4835
4838
  return ssr ? "server" : "client";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-WABOJXAA.mjs";
5
5
  import {
6
6
  normalizeFarmProductionSiteOrigin
7
- } from "./chunk-DFLCEMQ3.mjs";
7
+ } from "./chunk-GK2RCRT2.mjs";
8
8
  import {
9
9
  resolveFarmAppManifestConfig
10
10
  } from "./chunk-SQ5O7I3L.mjs";
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-YT2ZMLXK.mjs";
30
30
  import {
31
31
  FARM_VERSION
32
- } from "./chunk-LWQ6IESX.mjs";
32
+ } from "./chunk-MEIZIRMK.mjs";
33
33
  import {
34
34
  applyFarmBasePath
35
35
  } from "./chunk-SF3JB56B.mjs";
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-CU5SYTJG.mjs";
19
19
  import {
20
20
  resolveFarmRendererServerComponentsIslands
21
- } from "./chunk-X2SMVPLH.mjs";
21
+ } from "./chunk-2FBFJO2Z.mjs";
22
22
  import {
23
23
  resolveFarmAgentCrawlers,
24
24
  resolveFarmAgentSitemap,
@@ -42,13 +42,17 @@ import {
42
42
  import {
43
43
  loadFarmConfigFile,
44
44
  resolveFarmLayers
45
- } from "./chunk-Z3RM3VA2.mjs";
45
+ } from "./chunk-5VXVRMXK.mjs";
46
46
  import {
47
47
  isFarmRendererDisabled,
48
48
  isReactRenderer,
49
- resolveFarmRenderer,
49
+ resolveFarmRenderer
50
+ } from "./chunk-HHZURH4U.mjs";
51
+ import {
52
+ normalizeFarmServerComponentsConfig,
53
+ readFarmServerComponentsConfig,
50
54
  resolveFarmServerComponentsMode
51
- } from "./chunk-HV6CYSMF.mjs";
55
+ } from "./chunk-PTG5BEMG.mjs";
52
56
  import {
53
57
  FARM_CRON_NAME_SEGMENT_PATTERN,
54
58
  normalizeCronExpression,
@@ -1050,7 +1054,7 @@ function validateConfigRouteSources(routes, field) {
1050
1054
  return routes;
1051
1055
  }
1052
1056
  async function resolveConfig(userConfig, mode) {
1053
- resolveFarmServerComponentsMode(userConfig.experimental?.serverComponents);
1057
+ userConfig = normalizeFarmServerComponentsConfig(userConfig, (message) => logger.warn(message));
1054
1058
  const projectRoot = userConfig.root || process.cwd();
1055
1059
  const layerResolution = await resolveFarmLayers(userConfig, {
1056
1060
  root: projectRoot,
@@ -1058,6 +1062,7 @@ async function resolveConfig(userConfig, mode) {
1058
1062
  });
1059
1063
  userConfig = layerResolution.config;
1060
1064
  const rendererServerComponentsIslands = resolveFarmRendererServerComponentsIslands(userConfig);
1065
+ const serverComponents = rendererServerComponentsIslands ? false : readFarmServerComponentsConfig(userConfig) ?? false;
1061
1066
  if (userConfig.typescript !== void 0) {
1062
1067
  logger.warn(
1063
1068
  'The top-level "typescript" option is not supported and has no effect. Configure TypeScript in `tsconfig.json` and run `tsc --noEmit` separately when builds must enforce project type errors.'
@@ -1178,16 +1183,16 @@ async function resolveConfig(userConfig, mode) {
1178
1183
  auth,
1179
1184
  mcp,
1180
1185
  suppressLintOnLink: userConfig.suppressLintOnLink ?? false,
1186
+ serverComponents,
1181
1187
  experimental: {
1182
- serverComponents: false,
1183
1188
  serverActions: false,
1184
1189
  // Islands mode hydrates client components as islands (RFC 0003); an app can still pick
1185
1190
  // isolatedClientHydration itself.
1186
- isolatedClientHydration: resolveFarmServerComponentsMode(userConfig.experimental?.serverComponents) === "islands" ? "enabled" : "off",
1191
+ isolatedClientHydration: resolveFarmServerComponentsMode(readFarmServerComponentsConfig(userConfig)) === "islands" ? "enabled" : "off",
1187
1192
  ppr: false,
1188
1193
  ...userConfig.experimental,
1189
- // Another renderer's islands run without Farm's server components engine, which renders React.
1190
- ...rendererServerComponentsIslands ? { serverComponents: false } : {}
1194
+ // The deprecated spelling mirrors `serverComponents` for code that still reads it.
1195
+ serverComponents
1191
1196
  },
1192
1197
  agent: resolveFarmAgentConfig(userConfig.agent, {
1193
1198
  docs: docs.enabled,
@@ -1244,7 +1249,7 @@ async function resolveConfig(userConfig, mode) {
1244
1249
  };
1245
1250
  assertPluginDependencies(resolved.plugins, resolved.integrations);
1246
1251
  if (nativeServerFnPlugin) {
1247
- nativeServerFnAppDirs = (await import("./layers-IMRXNZRB.mjs")).getFarmAppDirectories(resolved);
1252
+ nativeServerFnAppDirs = (await import("./layers-O6GUR6LT.mjs")).getFarmAppDirectories(resolved);
1248
1253
  }
1249
1254
  return resolved;
1250
1255
  }
@@ -7,7 +7,7 @@ var _chunkPRKFECGTcjs = require('./chunk-PRKFECGT.cjs');
7
7
 
8
8
 
9
9
 
10
- var _chunkXJEOHDPNcjs = require('./chunk-XJEOHDPN.cjs');
10
+ var _chunkMNBFSAWFcjs = require('./chunk-MNBFSAWF.cjs');
11
11
 
12
12
 
13
13
  var _chunkYCIFGYBYcjs = require('./chunk-YCIFGYBY.cjs');
@@ -142,7 +142,7 @@ var APIRouteManager = class _APIRouteManager {
142
142
  /**
143
143
  * Recursively find all route.ts files
144
144
  */
145
- findRouteFiles(dir, polyroute = _chunkXJEOHDPNcjs.hasPolyroutePlugin.call(void 0, _optionalChain([this, 'access', _ => _.viteServer, 'optionalAccess', _2 => _2.config, 'optionalAccess', _3 => _3.plugins]))) {
145
+ findRouteFiles(dir, polyroute = _chunkMNBFSAWFcjs.hasPolyroutePlugin.call(void 0, _optionalChain([this, 'access', _ => _.viteServer, 'optionalAccess', _2 => _2.config, 'optionalAccess', _3 => _3.plugins]))) {
146
146
  const files = [];
147
147
  if (!fs.existsSync(dir)) {
148
148
  return files;
@@ -152,7 +152,7 @@ var APIRouteManager = class _APIRouteManager {
152
152
  const fullPath = path.join(dir, entry.name);
153
153
  if (entry.isDirectory()) {
154
154
  files.push(...this.findRouteFiles(fullPath, polyroute));
155
- } else if (_chunkXJEOHDPNcjs.isFarmAPIRouteFileName.call(void 0, entry.name, polyroute)) {
155
+ } else if (_chunkMNBFSAWFcjs.isFarmAPIRouteFileName.call(void 0, entry.name, polyroute)) {
156
156
  files.push(fullPath);
157
157
  }
158
158
  }
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-D2VAANBS.mjs";
19
19
  import {
20
20
  FARM_VERSION
21
- } from "./chunk-LWQ6IESX.mjs";
21
+ } from "./chunk-MEIZIRMK.mjs";
22
22
 
23
23
  // src/mobile/analyzer.ts
24
24
  import { createHash } from "crypto";
@@ -1,15 +1,15 @@
1
- import './utils.d-Cloiko8d.mjs';
2
- import { F as FarmPlugin } from './client-plugins.d-CVUMc2ai.mjs';
1
+ import './utils.d-NOMkLFpC.mjs';
2
+ import { F as FarmPlugin } from './client-plugins.d-D7k9t9Ge.mjs';
3
3
  import { R as ResolvedFarmLayer } from './layers.d-CH0bC4QL.mjs';
4
4
  import { FarmRenderer } from './renderer.mjs';
5
- import './ssg.d-DFs97VTY.mjs';
5
+ import './ssg.d-BzNZemk7.mjs';
6
6
  import './deployment.mjs';
7
- import './handler.d-DLKZDAYR.mjs';
7
+ import './handler.d-fxTjv3Nn.mjs';
8
8
  import { R as ResolvedFarmI18nConfig } from './types.d-euATAbE4.mjs';
9
9
  import { F as FarmStorageUserConfig } from './types.d-C5hlNbHa.mjs';
10
10
  import { d as FarmSchemaField, F as FarmSchema, R as ResolvedSchemaField, m as FarmSqlDialect, n as FarmSqlStatement, C as CollectedSchemaModel, f as FarmSchemaMigrationStep, k as FarmSchemaReference, l as FarmSchemaTablesDeclaration, j as FarmSchemaOwnerConfig } from './schema.d-BM-uVGpx.mjs';
11
11
  import './routes.mjs';
12
- import './server-components-status.d-B0YP-m9A.mjs';
12
+ import './server-components-status.d-Cc5rir0l.mjs';
13
13
  import './storage.mjs';
14
14
 
15
15
  /**
@@ -1,15 +1,15 @@
1
- import './utils.d-Ba3N28fk.js';
2
- import { F as FarmPlugin } from './client-plugins.d-CQ6AGHP0.js';
1
+ import './utils.d-BhJJEXzo.js';
2
+ import { F as FarmPlugin } from './client-plugins.d-D9CnUvZ5.js';
3
3
  import { R as ResolvedFarmLayer } from './layers.d-CH0bC4QL.js';
4
4
  import { FarmRenderer } from './renderer.js';
5
- import './ssg.d-BCJB_f7B.js';
5
+ import './ssg.d-DUhacIxj.js';
6
6
  import './deployment.js';
7
- import './handler.d-nkrNn_0M.js';
7
+ import './handler.d-DbZvbwNi.js';
8
8
  import { R as ResolvedFarmI18nConfig } from './types.d-euATAbE4.js';
9
9
  import { F as FarmStorageUserConfig } from './types.d-C5hlNbHa.js';
10
10
  import { d as FarmSchemaField, F as FarmSchema, R as ResolvedSchemaField, m as FarmSqlDialect, n as FarmSqlStatement, C as CollectedSchemaModel, f as FarmSchemaMigrationStep, k as FarmSchemaReference, l as FarmSchemaTablesDeclaration, j as FarmSchemaOwnerConfig } from './schema.d-BM-uVGpx.js';
11
11
  import './routes.js';
12
- import './server-components-status.d-CvFhb6-t.js';
12
+ import './server-components-status.d-DOYt4E_Q.js';
13
13
  import './storage.js';
14
14
 
15
15
  /**
@@ -1,5 +1,5 @@
1
1
  import { F as FarmIslandStrategy } from './island.d-CfGru1MO.mjs';
2
- import { aR as FarmIsolatedClientHydrationMode } from './client-plugins.d-CVUMc2ai.mjs';
2
+ import { aR as FarmIsolatedClientHydrationMode } from './client-plugins.d-D7k9t9Ge.mjs';
3
3
 
4
4
  /**
5
5
  * The browser copy of a programmatic page or layout imports only the module that defines its
@@ -1,5 +1,5 @@
1
1
  import { F as FarmIslandStrategy } from './island.d-CfGru1MO.js';
2
- import { aR as FarmIsolatedClientHydrationMode } from './client-plugins.d-CQ6AGHP0.js';
2
+ import { aR as FarmIsolatedClientHydrationMode } from './client-plugins.d-D9CnUvZ5.js';
3
3
 
4
4
  /**
5
5
  * The browser copy of a programmatic page or layout imports only the module that defines its
@@ -66,9 +66,10 @@ declare function validateIntegrationRequestOrigin(request: Request, policy?: Int
66
66
  declare function describeIntegrationOriginRejection(reason: IntegrationOriginRejection): string;
67
67
 
68
68
  /**
69
- * `experimental.serverComponents`: which engine renders server components.
69
+ * `serverComponents`: which engine renders server components. `experimental.serverComponents` is
70
+ * its deprecated spelling.
70
71
  *
71
- * - `"islands"`: Farm's own engine (RFC 0003), on Farm's pipeline. Experimental. The default. On a
72
+ * - `"islands"`: Farm's own engine (RFC 0003), on Farm's pipeline. The default. On a
72
73
  * renderer besides React, that renderer's islands (`capabilities.islands`), without the engine.
73
74
  * - `"rsc"`: React's Flight pipeline (`@farm.js/plugin/rsc` on `@vitejs/plugin-rsc`).
74
75
  *
@@ -2745,18 +2746,22 @@ interface FarmConfig {
2745
2746
  * Use when you want to skip route-type errors on Link or don't use generated route types.
2746
2747
  */
2747
2748
  suppressLintOnLink?: boolean;
2749
+ /**
2750
+ * Server components: pages and layouts render on the server only, and `"use client"` marks
2751
+ * what runs in the browser.
2752
+ *
2753
+ * - `{ mode: "islands" }`, or `true`: each client component hydrates on its own, as an island.
2754
+ * React runs pages on Farm's own engine (RFC 0003). Another renderer needs
2755
+ * `capabilities.islands`, and its islands hydrate through its `withIsland`.
2756
+ * - `{ mode: "rsc" }`: React's Flight pipeline from `@farm.js/plugin/rsc`. React only.
2757
+ *
2758
+ * @default false
2759
+ */
2760
+ serverComponents?: FarmServerComponentsConfig;
2748
2761
  experimental?: {
2749
2762
  /**
2750
- * Server components: pages and layouts render on the server only, and `"use client"` marks
2751
- * what runs in the browser.
2752
- *
2753
- * - `{ mode: "islands" }`, or `true`: each client component hydrates on its own, as an island.
2754
- * React runs pages on Farm's own engine (RFC 0003). Another renderer needs
2755
- * `capabilities.islands`, and its islands hydrate through its `withIsland`.
2756
- * - `{ mode: "rsc" }`: React's Flight pipeline from `@farm.js/plugin/rsc`. React only.
2757
- *
2758
- * @experimental
2759
- * @default false
2763
+ * @deprecated Use the top-level `serverComponents`, which takes the same values. Setting both
2764
+ * to different engines is an error. https://farmjs.dev/docs/server-rendering/islands
2760
2765
  */
2761
2766
  serverComponents?: FarmServerComponentsConfig;
2762
2767
  serverActions?: boolean;
@@ -66,9 +66,10 @@ declare function validateIntegrationRequestOrigin(request: Request, policy?: Int
66
66
  declare function describeIntegrationOriginRejection(reason: IntegrationOriginRejection): string;
67
67
 
68
68
  /**
69
- * `experimental.serverComponents`: which engine renders server components.
69
+ * `serverComponents`: which engine renders server components. `experimental.serverComponents` is
70
+ * its deprecated spelling.
70
71
  *
71
- * - `"islands"`: Farm's own engine (RFC 0003), on Farm's pipeline. Experimental. The default. On a
72
+ * - `"islands"`: Farm's own engine (RFC 0003), on Farm's pipeline. The default. On a
72
73
  * renderer besides React, that renderer's islands (`capabilities.islands`), without the engine.
73
74
  * - `"rsc"`: React's Flight pipeline (`@farm.js/plugin/rsc` on `@vitejs/plugin-rsc`).
74
75
  *
@@ -2745,18 +2746,22 @@ interface FarmConfig {
2745
2746
  * Use when you want to skip route-type errors on Link or don't use generated route types.
2746
2747
  */
2747
2748
  suppressLintOnLink?: boolean;
2749
+ /**
2750
+ * Server components: pages and layouts render on the server only, and `"use client"` marks
2751
+ * what runs in the browser.
2752
+ *
2753
+ * - `{ mode: "islands" }`, or `true`: each client component hydrates on its own, as an island.
2754
+ * React runs pages on Farm's own engine (RFC 0003). Another renderer needs
2755
+ * `capabilities.islands`, and its islands hydrate through its `withIsland`.
2756
+ * - `{ mode: "rsc" }`: React's Flight pipeline from `@farm.js/plugin/rsc`. React only.
2757
+ *
2758
+ * @default false
2759
+ */
2760
+ serverComponents?: FarmServerComponentsConfig;
2748
2761
  experimental?: {
2749
2762
  /**
2750
- * Server components: pages and layouts render on the server only, and `"use client"` marks
2751
- * what runs in the browser.
2752
- *
2753
- * - `{ mode: "islands" }`, or `true`: each client component hydrates on its own, as an island.
2754
- * React runs pages on Farm's own engine (RFC 0003). Another renderer needs
2755
- * `capabilities.islands`, and its islands hydrate through its `withIsland`.
2756
- * - `{ mode: "rsc" }`: React's Flight pipeline from `@farm.js/plugin/rsc`. React only.
2757
- *
2758
- * @experimental
2759
- * @default false
2763
+ * @deprecated Use the top-level `serverComponents`, which takes the same values. Setting both
2764
+ * to different engines is an error. https://farmjs.dev/docs/server-rendering/islands
2760
2765
  */
2761
2766
  serverComponents?: FarmServerComponentsConfig;
2762
2767
  serverActions?: boolean;
@@ -1,5 +1,5 @@
1
1
  export { d as FarmClientHydrationCompleteEvent, e as FarmClientHydrationEvent, f as FarmClientHydrationMode, g as FarmClientHydrationSession, h as FarmClientLocation, i as FarmClientNavigationAction, j as FarmClientNavigationErrorEvent, k as FarmClientNavigationEvent, l as FarmClientNavigationLoadedEvent, m as FarmClientNavigationResolvedEvent, a as FarmClientNavigationSession, n as FarmClientPerformanceEvent, b as FarmClientPlugin, o as FarmClientPluginCloseEvent, p as FarmClientPluginEnforce, q as FarmClientPluginErrorEvent, r as FarmClientPluginErrorPhase, F as FarmClientPluginManager, s as FarmClientPluginManagerOptions, t as FarmClientPluginMetadata, u as FarmClientPluginRegistration, v as FarmClientPluginRouter, w as FarmClientPluginSetupEvent, x as FarmClientPluginStateEvent, c as createClientPluginManager } from './lifecycle.d-OtGWAvJT.mjs';
2
- export { F as FarmPlugin, I as FarmPluginContext, ao as FarmRequestPluginContext, ap as FarmRequestStore } from './client-plugins.d-CVUMc2ai.mjs';
2
+ export { F as FarmPlugin, I as FarmPluginContext, ao as FarmRequestPluginContext, ap as FarmRequestStore } from './client-plugins.d-D7k9t9Ge.mjs';
3
3
  import './route.d-ShmtqqVQ.mjs';
4
4
  import './endpoint.d-BXbBpKoh.mjs';
5
5
  import './cache.mjs';
@@ -1,5 +1,5 @@
1
1
  export { d as FarmClientHydrationCompleteEvent, e as FarmClientHydrationEvent, f as FarmClientHydrationMode, g as FarmClientHydrationSession, h as FarmClientLocation, i as FarmClientNavigationAction, j as FarmClientNavigationErrorEvent, k as FarmClientNavigationEvent, l as FarmClientNavigationLoadedEvent, m as FarmClientNavigationResolvedEvent, a as FarmClientNavigationSession, n as FarmClientPerformanceEvent, b as FarmClientPlugin, o as FarmClientPluginCloseEvent, p as FarmClientPluginEnforce, q as FarmClientPluginErrorEvent, r as FarmClientPluginErrorPhase, F as FarmClientPluginManager, s as FarmClientPluginManagerOptions, t as FarmClientPluginMetadata, u as FarmClientPluginRegistration, v as FarmClientPluginRouter, w as FarmClientPluginSetupEvent, x as FarmClientPluginStateEvent, c as createClientPluginManager } from './lifecycle.d-OtGWAvJT.js';
2
- export { F as FarmPlugin, I as FarmPluginContext, ao as FarmRequestPluginContext, ap as FarmRequestStore } from './client-plugins.d-CQ6AGHP0.js';
2
+ export { F as FarmPlugin, I as FarmPluginContext, ao as FarmRequestPluginContext, ap as FarmRequestStore } from './client-plugins.d-D9CnUvZ5.js';
3
3
  import './route.d-Cd4Fi6BA.js';
4
4
  import './endpoint.d-Dx_1k6Du.js';
5
5
  import './cache.js';
package/dist/client.d.mts CHANGED
@@ -6,12 +6,12 @@ export { RouteActionTarget, UseActionFormProps, UseActionReturn, UseServerFnOpti
6
6
  export { UseServerQueryOptions, UseServerQueryResult, useServerQuery } from './server-query-client.mjs';
7
7
  export { a as FarmClientCacheEntry, b as FarmClientCacheKey, F as FarmClientCacheStatus, g as getFarmClientDataCache, n as normalizeFarmClientCacheKey } from './client-cache.d-di_Nasxa.mjs';
8
8
  export { F as FarmIntegrationAPI, a as FarmIntegrationAPIBodyFormat, b as FarmIntegrationAPIMethod, c as FarmIntegrationAPIOperation, d as FarmIntegrationAPIResponseFormat, e as api, f as defineIntegrationAPI, g as defineIntegrationAPIOperation, h as endpoint } from './route.d-ShmtqqVQ.mjs';
9
- import { j as StoreState, l as StoreApi$1, k as StoreValueUpdater, S as StoreKeyListener, D as DefaultRouteHref, F as FarmLinkOptions } from './store-core.d-Vk5UDKeC.mjs';
10
- export { a as DefaultRoutePath, b as DefaultRoutePattern, E as ExternalHref, L as LinkDefaultRoute, c as LinkExternalUriSchemes, P as PrefetchBehavior, R as RouteHref, d as RouteOptionalParamValue, e as RouteParamValue, f as RouteParams, g as StoreKeysListener, h as StoreListener, i as StorePatch } from './store-core.d-Vk5UDKeC.mjs';
9
+ import { j as StoreState, l as StoreApi$1, k as StoreValueUpdater, S as StoreKeyListener, D as DefaultRouteHref, F as FarmLinkOptions } from './store-core.d-DbUAtSBK.mjs';
10
+ export { a as DefaultRoutePath, b as DefaultRoutePattern, E as ExternalHref, L as LinkDefaultRoute, c as LinkExternalUriSchemes, P as PrefetchBehavior, R as RouteHref, d as RouteOptionalParamValue, e as RouteParamValue, f as RouteParams, g as StoreKeysListener, h as StoreListener, i as StorePatch } from './store-core.d-DbUAtSBK.mjs';
11
11
  export { UseThemeResult, useTheme } from './theme/client.mjs';
12
- export { U as UseBlockerOptions, a as UseBlockerReturn, b as UseRouterOptions, u as useBlocker, c as useNavigation, d as usePageState, e as useRouter, f as useScrollRestoration } from './router.d-D-p8WElf.mjs';
13
- export { c as FarmNavigateOptions, f as FarmNavigationBlocker, F as FarmNavigationBlockerContext, h as FarmNavigationListener, j as FarmNavigationLocation, a as FarmNavigationState, b as FarmViewTransitionMode, S as SPARouter, k as getRouter, n as navigateTo, p as prefetch, l as pushState, r as readPageState, m as replaceState } from './spa-router.d-CkR14oGH.mjs';
14
- export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate.d-yulG9Dp5.mjs';
12
+ export { U as UseBlockerOptions, a as UseBlockerReturn, b as UseRouterOptions, u as useBlocker, c as useNavigation, d as usePageState, e as useRouter, f as useScrollRestoration } from './router.d-CNUS3x1j.mjs';
13
+ export { c as FarmNavigateOptions, f as FarmNavigationBlocker, F as FarmNavigationBlockerContext, h as FarmNavigationListener, j as FarmNavigationLocation, a as FarmNavigationState, b as FarmViewTransitionMode, S as SPARouter, k as getRouter, n as navigateTo, p as prefetch, l as pushState, r as readPageState, m as replaceState } from './spa-router.d-Cq5UFJvq.mjs';
14
+ export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate.d-Boz2511c.mjs';
15
15
  export { F as FarmChunkRecoveryOptions, i as installChunkErrorRecovery, a as isChunkLoadError } from './chunk-recovery.d-lnQFzcQP.mjs';
16
16
  export { d as FarmClientHydrationCompleteEvent, e as FarmClientHydrationEvent, f as FarmClientHydrationMode, g as FarmClientHydrationSession, h as FarmClientLocation, i as FarmClientNavigationAction, j as FarmClientNavigationErrorEvent, k as FarmClientNavigationEvent, l as FarmClientNavigationLoadedEvent, m as FarmClientNavigationResolvedEvent, a as FarmClientNavigationSession, n as FarmClientPerformanceEvent, b as FarmClientPlugin, o as FarmClientPluginCloseEvent, p as FarmClientPluginEnforce, q as FarmClientPluginErrorEvent, r as FarmClientPluginErrorPhase, F as FarmClientPluginManager, s as FarmClientPluginManagerOptions, t as FarmClientPluginMetadata, u as FarmClientPluginRegistration, v as FarmClientPluginRouter, w as FarmClientPluginSetupEvent, x as FarmClientPluginStateEvent, c as createClientPluginManager } from './lifecycle.d-OtGWAvJT.mjs';
17
17
  export { S as ServerQueryFetchOptions, f as fetchServerQuery, p as prefetchServerQuery } from './server-query-runtime.d-CCLGkQtE.mjs';
@@ -25,7 +25,7 @@ import './router.mjs';
25
25
  import './types.d-DQnyD3VD.mjs';
26
26
  import './types.d-euATAbE4.mjs';
27
27
  import './image-attributes.d-BMPDQO1q.mjs';
28
- import './client-plugins.d-CVUMc2ai.mjs';
28
+ import './client-plugins.d-D7k9t9Ge.mjs';
29
29
  import './renderer.mjs';
30
30
  import './deployment.mjs';
31
31
  import './island.d-CfGru1MO.mjs';
@@ -55,7 +55,7 @@ import 'rolldown';
55
55
  import './image-config.d-ByhQ0TT7.mjs';
56
56
  import './config.d-BKIhJtmr.mjs';
57
57
  import './font.mjs';
58
- import './render-plan.d-BW56oxMP.mjs';
58
+ import './render-plan.d-BwnmyfNk.mjs';
59
59
 
60
60
  type MutationStatus = "idle" | "pending" | "success" | "error";
61
61
  type AnyMutationTarget = (...args: any[]) => Promise<any>;
package/dist/client.d.ts CHANGED
@@ -6,12 +6,12 @@ export { RouteActionTarget, UseActionFormProps, UseActionReturn, UseServerFnOpti
6
6
  export { UseServerQueryOptions, UseServerQueryResult, useServerQuery } from './server-query-client.js';
7
7
  export { a as FarmClientCacheEntry, b as FarmClientCacheKey, F as FarmClientCacheStatus, g as getFarmClientDataCache, n as normalizeFarmClientCacheKey } from './client-cache.d-Deoqq-nM.js';
8
8
  export { F as FarmIntegrationAPI, a as FarmIntegrationAPIBodyFormat, b as FarmIntegrationAPIMethod, c as FarmIntegrationAPIOperation, d as FarmIntegrationAPIResponseFormat, e as api, f as defineIntegrationAPI, g as defineIntegrationAPIOperation, h as endpoint } from './route.d-Cd4Fi6BA.js';
9
- import { j as StoreState, l as StoreApi$1, k as StoreValueUpdater, S as StoreKeyListener, D as DefaultRouteHref, F as FarmLinkOptions } from './store-core.d-0W2YScl8.js';
10
- export { a as DefaultRoutePath, b as DefaultRoutePattern, E as ExternalHref, L as LinkDefaultRoute, c as LinkExternalUriSchemes, P as PrefetchBehavior, R as RouteHref, d as RouteOptionalParamValue, e as RouteParamValue, f as RouteParams, g as StoreKeysListener, h as StoreListener, i as StorePatch } from './store-core.d-0W2YScl8.js';
9
+ import { j as StoreState, l as StoreApi$1, k as StoreValueUpdater, S as StoreKeyListener, D as DefaultRouteHref, F as FarmLinkOptions } from './store-core.d-BX3yXrxA.js';
10
+ export { a as DefaultRoutePath, b as DefaultRoutePattern, E as ExternalHref, L as LinkDefaultRoute, c as LinkExternalUriSchemes, P as PrefetchBehavior, R as RouteHref, d as RouteOptionalParamValue, e as RouteParamValue, f as RouteParams, g as StoreKeysListener, h as StoreListener, i as StorePatch } from './store-core.d-BX3yXrxA.js';
11
11
  export { UseThemeResult, useTheme } from './theme/client.js';
12
- export { U as UseBlockerOptions, a as UseBlockerReturn, b as UseRouterOptions, u as useBlocker, c as useNavigation, d as usePageState, e as useRouter, f as useScrollRestoration } from './router.d-B9qJdgjt.js';
13
- export { c as FarmNavigateOptions, f as FarmNavigationBlocker, F as FarmNavigationBlockerContext, h as FarmNavigationListener, j as FarmNavigationLocation, a as FarmNavigationState, b as FarmViewTransitionMode, S as SPARouter, k as getRouter, n as navigateTo, p as prefetch, l as pushState, r as readPageState, m as replaceState } from './spa-router.d-D4ye2WFk.js';
14
- export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate.d-dlnYTX-Y.js';
12
+ export { U as UseBlockerOptions, a as UseBlockerReturn, b as UseRouterOptions, u as useBlocker, c as useNavigation, d as usePageState, e as useRouter, f as useScrollRestoration } from './router.d-C-JSFCPU.js';
13
+ export { c as FarmNavigateOptions, f as FarmNavigationBlocker, F as FarmNavigationBlockerContext, h as FarmNavigationListener, j as FarmNavigationLocation, a as FarmNavigationState, b as FarmViewTransitionMode, S as SPARouter, k as getRouter, n as navigateTo, p as prefetch, l as pushState, r as readPageState, m as replaceState } from './spa-router.d-C7FcpLxU.js';
14
+ export { F as FarmNavigationDelegate, a as FarmNavigationDelegateContext, d as delegateNavigation } from './navigation-delegate.d-VBCF0EeN.js';
15
15
  export { F as FarmChunkRecoveryOptions, i as installChunkErrorRecovery, a as isChunkLoadError } from './chunk-recovery.d-lnQFzcQP.js';
16
16
  export { d as FarmClientHydrationCompleteEvent, e as FarmClientHydrationEvent, f as FarmClientHydrationMode, g as FarmClientHydrationSession, h as FarmClientLocation, i as FarmClientNavigationAction, j as FarmClientNavigationErrorEvent, k as FarmClientNavigationEvent, l as FarmClientNavigationLoadedEvent, m as FarmClientNavigationResolvedEvent, a as FarmClientNavigationSession, n as FarmClientPerformanceEvent, b as FarmClientPlugin, o as FarmClientPluginCloseEvent, p as FarmClientPluginEnforce, q as FarmClientPluginErrorEvent, r as FarmClientPluginErrorPhase, F as FarmClientPluginManager, s as FarmClientPluginManagerOptions, t as FarmClientPluginMetadata, u as FarmClientPluginRegistration, v as FarmClientPluginRouter, w as FarmClientPluginSetupEvent, x as FarmClientPluginStateEvent, c as createClientPluginManager } from './lifecycle.d-OtGWAvJT.js';
17
17
  export { S as ServerQueryFetchOptions, f as fetchServerQuery, p as prefetchServerQuery } from './server-query-runtime.d-BlHd90D0.js';
@@ -25,7 +25,7 @@ import './router.js';
25
25
  import './types.d-DQnyD3VD.js';
26
26
  import './types.d-euATAbE4.js';
27
27
  import './image-attributes.d-BMPDQO1q.js';
28
- import './client-plugins.d-CQ6AGHP0.js';
28
+ import './client-plugins.d-D9CnUvZ5.js';
29
29
  import './renderer.js';
30
30
  import './deployment.js';
31
31
  import './island.d-CfGru1MO.js';
@@ -55,7 +55,7 @@ import 'rolldown';
55
55
  import './image-config.d-ByhQ0TT7.js';
56
56
  import './config.d-BKIhJtmr.js';
57
57
  import './font.js';
58
- import './render-plan.d-Cz7bQmcf.js';
58
+ import './render-plan.d-BrumV_ZE.js';
59
59
 
60
60
  type MutationStatus = "idle" | "pending" | "success" | "error";
61
61
  type AnyMutationTarget = (...args: any[]) => Promise<any>;