@farm.js/core 0.1.86 → 0.2.0-beta.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 (272) hide show
  1. package/dist/{agent-mcp.d-7uKdOttc.d.ts → agent-mcp.d-BdM0pIrD.d.ts} +1 -1
  2. package/dist/{agent-mcp.d-LChlR2au.d.mts → agent-mcp.d-CMGqpUbk.d.mts} +1 -1
  3. package/dist/agent-runtime.d.mts +1 -1
  4. package/dist/agent-runtime.d.ts +1 -1
  5. package/dist/analyzer-B2TRJT3B.cjs +17 -0
  6. package/dist/{analyzer-I5S5YKHM.mjs → analyzer-PWHYGER6.mjs} +2 -2
  7. package/dist/api/node.d.mts +3 -3
  8. package/dist/api/node.d.ts +3 -3
  9. package/dist/api/route-manager.cjs +4 -4
  10. package/dist/api/route-manager.d.mts +3 -3
  11. package/dist/api/route-manager.d.ts +3 -3
  12. package/dist/api/route-manager.mjs +3 -3
  13. package/dist/api/runtime.d.mts +2 -2
  14. package/dist/api/runtime.d.ts +2 -2
  15. package/dist/api.cjs +5 -5
  16. package/dist/api.d.mts +4 -4
  17. package/dist/api.d.ts +4 -4
  18. package/dist/api.mjs +4 -4
  19. package/dist/{app-manifest.d-QMdmqqCr.d.mts → app-manifest.d-BeDB2OVm.d.mts} +1 -1
  20. package/dist/{app-manifest.d-CRp21oAz.d.ts → app-manifest.d-COhjPgHn.d.ts} +1 -1
  21. package/dist/app-markdown.d.mts +2 -2
  22. package/dist/app-markdown.d.ts +2 -2
  23. package/dist/{app.d-Bvpc2eJq.d.mts → app.d-AVZXCfcO.d.mts} +5 -4
  24. package/dist/{app.d-DEKpJEp4.d.ts → app.d-b3A4cca5.d.ts} +5 -4
  25. package/dist/{chunk-B7L24VPX.cjs → chunk-22KXTL3I.cjs} +6 -4
  26. package/dist/chunk-2HTNASSB.cjs +134 -0
  27. package/dist/{chunk-FULX5RYX.cjs → chunk-2OR5WAD5.cjs} +19 -13
  28. package/dist/{chunk-5P65LXGU.cjs → chunk-3MY6TNNE.cjs} +15 -14
  29. package/dist/{chunk-A4WWKG2B.cjs → chunk-5ZWXTIGE.cjs} +2 -2
  30. package/dist/{chunk-2NKNP4AH.cjs → chunk-6266WH6X.cjs} +1 -1
  31. package/dist/chunk-65LZRVCZ.mjs +18 -0
  32. package/dist/{chunk-L2IULWKV.cjs → chunk-7LBNWL3L.cjs} +3 -3
  33. package/dist/{chunk-KHIEGVG7.mjs → chunk-BGEA4K7C.mjs} +10 -4
  34. package/dist/{chunk-CVKTYG4L.mjs → chunk-BJHXFEAF.mjs} +2 -2
  35. package/dist/chunk-BQHIJOZM.cjs +13 -0
  36. package/dist/{chunk-IAERD73G.cjs → chunk-CFLRUCN7.cjs} +384 -339
  37. package/dist/{chunk-NXOZRI3B.cjs → chunk-CNGGEHXY.cjs} +2 -2
  38. package/dist/{chunk-3RVLJTFZ.mjs → chunk-D7LXBLUW.mjs} +1 -1
  39. package/dist/{chunk-B5QRNCIE.mjs → chunk-DATICPTO.mjs} +1 -1
  40. package/dist/{chunk-XMVZXZ32.cjs → chunk-ERV422FO.cjs} +2 -2
  41. package/dist/{chunk-BAD6T5NU.cjs → chunk-FEWCWBOF.cjs} +4 -4
  42. package/dist/{chunk-FLMALEY2.mjs → chunk-GGD57DJA.mjs} +3 -25
  43. package/dist/{chunk-HQ2VAJLW.mjs → chunk-GV5D5EM6.mjs} +1 -1
  44. package/dist/{chunk-6MZSTPD2.mjs → chunk-H47EH24T.mjs} +1 -1
  45. package/dist/{chunk-OBVBII5K.cjs → chunk-HU4R2PPW.cjs} +2 -2
  46. package/dist/{chunk-7H2TXT2K.mjs → chunk-HX5HLFBZ.mjs} +7 -0
  47. package/dist/{chunk-N3VMHPIY.mjs → chunk-HZY63K5C.mjs} +2 -2
  48. package/dist/{chunk-25JGHAGH.cjs → chunk-I2RBHZF7.cjs} +15 -8
  49. package/dist/{chunk-FDU4Q4QP.cjs → chunk-IRPXOTEN.cjs} +10 -4
  50. package/dist/{chunk-NAHDG6UX.mjs → chunk-JDO3X7RB.mjs} +6 -5
  51. package/dist/{chunk-TQJ35BBW.cjs → chunk-JGUMFTZT.cjs} +4 -4
  52. package/dist/chunk-JIGWHFA5.mjs +32 -0
  53. package/dist/{chunk-YBXIVQCE.cjs → chunk-JP5TWUK2.cjs} +4 -4
  54. package/dist/chunk-K6RMOB25.mjs +134 -0
  55. package/dist/{chunk-UGD53SNO.cjs → chunk-KQ6TYQU7.cjs} +16 -12
  56. package/dist/{chunk-6QYPP5KC.mjs → chunk-L6ZL35ZJ.mjs} +7 -5
  57. package/dist/{chunk-7UTRNV6R.mjs → chunk-LUGQUU4S.mjs} +1 -1
  58. package/dist/{chunk-QYWP5KDY.mjs → chunk-M4CNAZMS.mjs} +74 -29
  59. package/dist/{chunk-3TKGMIPX.mjs → chunk-MM4U2NNI.mjs} +91 -12
  60. package/dist/{chunk-CFKAYV7B.mjs → chunk-MRULVIH3.mjs} +1 -1
  61. package/dist/{chunk-UAQQUQWE.mjs → chunk-MZPPT5NA.mjs} +1 -1
  62. package/dist/{chunk-2UYYXSUS.mjs → chunk-N5NRXLCX.mjs} +4 -2
  63. package/dist/chunk-NDMPGFKL.cjs +47 -0
  64. package/dist/{chunk-YHM4PXJY.mjs → chunk-O5YM6GU3.mjs} +1 -1
  65. package/dist/{chunk-QYDGIXQ5.cjs → chunk-PA3VZNWU.cjs} +9 -9
  66. package/dist/{chunk-2PJVEL56.cjs → chunk-PCAEJNQF.cjs} +5 -27
  67. package/dist/{chunk-P253SZJF.cjs → chunk-PQ6DBVJ2.cjs} +360 -281
  68. package/dist/chunk-PTAGDZ7I.mjs +13 -0
  69. package/dist/{chunk-3AV4DCXY.mjs → chunk-PWTBXYJY.mjs} +12 -6
  70. package/dist/{chunk-PO5MZIWK.mjs → chunk-QBXS4TNG.mjs} +6 -2
  71. package/dist/chunk-QZUCVJZJ.cjs +18 -0
  72. package/dist/{chunk-45ANSCTO.mjs → chunk-SCOKBXHS.mjs} +98 -56
  73. package/dist/{chunk-BLZCAFGJ.cjs → chunk-SG5RFGV6.cjs} +2 -2
  74. package/dist/{chunk-U54REWMJ.cjs → chunk-SUACCCZG.cjs} +18 -16
  75. package/dist/chunk-TCGPBSVY.mjs +47 -0
  76. package/dist/{chunk-CN2JOTRO.cjs → chunk-THGSPDFD.cjs} +7 -7
  77. package/dist/{chunk-FWLXYNWA.cjs → chunk-TQFIZRON.cjs} +387 -345
  78. package/dist/{chunk-VGHDPEPQ.cjs → chunk-UA77C2ZA.cjs} +2 -2
  79. package/dist/{chunk-Q3YWQEUS.cjs → chunk-VMGQOP7X.cjs} +2 -2
  80. package/dist/{chunk-4SJ22WTT.mjs → chunk-W3ZBLFLU.mjs} +1 -1
  81. package/dist/{chunk-SB74WCKC.mjs → chunk-WOTAU3BN.mjs} +4 -4
  82. package/dist/{chunk-JB4BHRFK.cjs → chunk-WP77JDKI.cjs} +16 -16
  83. package/dist/{chunk-YMAE32O7.mjs → chunk-WPB6HJC7.mjs} +1 -1
  84. package/dist/{chunk-VPGEYX5Y.mjs → chunk-WX752VMN.mjs} +2 -2
  85. package/dist/{chunk-VTEAUQMT.mjs → chunk-X2SMVPLH.mjs} +19 -3
  86. package/dist/{chunk-DJ3PVHTW.cjs → chunk-XGPRM7OK.cjs} +3 -3
  87. package/dist/{chunk-GWPANDW3.mjs → chunk-XJJQAFZX.mjs} +1 -1
  88. package/dist/{chunk-UDWBTABT.cjs → chunk-XRYLMTYF.cjs} +3 -3
  89. package/dist/{chunk-PAENAKTC.mjs → chunk-YCHIR3X6.mjs} +1 -1
  90. package/dist/chunk-YIGUFJMR.cjs +32 -0
  91. package/dist/{chunk-CPSFDQKJ.cjs → chunk-Z43CIBUR.cjs} +20 -4
  92. package/dist/{chunk-RA5OUXOJ.mjs → chunk-ZOD6EYWE.mjs} +2 -2
  93. package/dist/{cli-runtime.d-DaElKjaL.d.ts → cli-runtime.d-jqZ7YCsm.d.ts} +5 -5
  94. package/dist/{cli-runtime.d-C7aMfoTq.d.mts → cli-runtime.d-qL44rqYO.d.mts} +5 -5
  95. package/dist/{client-component.d-miqIXyQv.d.mts → client-component.d-B2L2LyAr.d.mts} +1 -1
  96. package/dist/{client-component.d-CZG02pIh.d.ts → client-component.d-BDD5aiUb.d.ts} +1 -1
  97. package/dist/{client-plugins.d-BVXjyIkY.d.ts → client-plugins.d-Crct3m_r.d.ts} +14 -5
  98. package/dist/{client-plugins.d-BwKwuO_0.d.mts → client-plugins.d-Dzc3vOw_.d.mts} +14 -5
  99. package/dist/client-plugins.d.mts +1 -1
  100. package/dist/client-plugins.d.ts +1 -1
  101. package/dist/client.cjs +8 -6
  102. package/dist/client.d.mts +8 -7
  103. package/dist/client.d.ts +8 -7
  104. package/dist/client.mjs +7 -5
  105. package/dist/config.d.mts +1 -1
  106. package/dist/config.d.ts +1 -1
  107. package/dist/desktop.d.mts +2 -2
  108. package/dist/desktop.d.ts +2 -2
  109. package/dist/{devtools-DGC2247E.mjs → devtools-2CRVXV7E.mjs} +4 -2
  110. package/dist/{devtools-A3L7WNTB.cjs → devtools-RL4AU5KD.cjs} +5 -3
  111. package/dist/docs.cjs +6 -4
  112. package/dist/docs.d.mts +3 -3
  113. package/dist/docs.d.ts +3 -3
  114. package/dist/docs.mjs +5 -3
  115. package/dist/environment/vite.cjs +4 -4
  116. package/dist/environment/vite.mjs +3 -3
  117. package/dist/font.cjs +4 -2
  118. package/dist/font.d.mts +13 -1
  119. package/dist/font.d.ts +13 -1
  120. package/dist/font.mjs +3 -1
  121. package/dist/{handler.d-BKTWzzNA.d.mts → handler.d-B1S1ZBqS.d.mts} +1 -1
  122. package/dist/{handler.d-Dzpyg3-N.d.ts → handler.d-ZweCBJD4.d.ts} +1 -1
  123. package/dist/{headers.d-PZyXcDAH.d.ts → headers.d-BgBdQN8x.d.ts} +1 -1
  124. package/dist/{headers.d-5opjyhXw.d.mts → headers.d-C-yGl_f6.d.mts} +1 -1
  125. package/dist/i18n/client.cjs +11 -10
  126. package/dist/i18n/client.mjs +3 -2
  127. package/dist/image-attributes.d-BMPDQO1q.d.mts +55 -0
  128. package/dist/image-attributes.d-BMPDQO1q.d.ts +55 -0
  129. package/dist/image.cjs +5 -127
  130. package/dist/image.d.mts +3 -13
  131. package/dist/image.d.ts +3 -13
  132. package/dist/image.mjs +5 -127
  133. package/dist/index.cjs +40 -36
  134. package/dist/{index.d-C0Mie66f.d.mts → index.d-13h3oDu7.d.mts} +1 -1
  135. package/dist/{index.d-DV2q-0mE.d.ts → index.d-CtoniAXT.d.ts} +1 -1
  136. package/dist/index.d.mts +24 -23
  137. package/dist/index.d.ts +24 -23
  138. package/dist/index.mjs +35 -31
  139. package/dist/integrations/orm.d.mts +1 -1
  140. package/dist/integrations/orm.d.ts +1 -1
  141. package/dist/integrations.d.mts +1 -1
  142. package/dist/integrations.d.ts +1 -1
  143. package/dist/internal/app-markdown-runtime.d.mts +2 -2
  144. package/dist/internal/app-markdown-runtime.d.ts +2 -2
  145. package/dist/internal/build-runtime.cjs +22 -22
  146. package/dist/internal/build-runtime.d.mts +4 -4
  147. package/dist/internal/build-runtime.d.ts +4 -4
  148. package/dist/internal/build-runtime.mjs +21 -21
  149. package/dist/internal/cli-runtime.cjs +8 -6
  150. package/dist/internal/cli-runtime.d.mts +7 -7
  151. package/dist/internal/cli-runtime.d.ts +7 -7
  152. package/dist/internal/cli-runtime.mjs +7 -5
  153. package/dist/internal/client-error-overlay.cjs +4 -4
  154. package/dist/internal/client-error-overlay.mjs +1 -1
  155. package/dist/internal/client-runtime.cjs +77 -52
  156. package/dist/internal/client-runtime.d.mts +9 -7
  157. package/dist/internal/client-runtime.d.ts +9 -7
  158. package/dist/internal/client-runtime.mjs +64 -39
  159. package/dist/internal/compression-runtime.d.mts +1 -1
  160. package/dist/internal/compression-runtime.d.ts +1 -1
  161. package/dist/internal/config-runtime.cjs +6 -4
  162. package/dist/internal/config-runtime.d.mts +3 -3
  163. package/dist/internal/config-runtime.d.ts +3 -3
  164. package/dist/internal/config-runtime.mjs +5 -3
  165. package/dist/internal/infra-analytics-runtime.cjs +6 -6
  166. package/dist/internal/infra-analytics-runtime.mjs +4 -4
  167. package/dist/internal/islands-boot.cjs +51 -18
  168. package/dist/internal/islands-boot.d.mts +3 -1
  169. package/dist/internal/islands-boot.d.ts +3 -1
  170. package/dist/internal/islands-boot.mjs +34 -1
  171. package/dist/internal/native-server-fns.cjs +4 -4
  172. package/dist/internal/native-server-fns.mjs +3 -3
  173. package/dist/internal/product-telemetry-runtime.cjs +3 -3
  174. package/dist/internal/product-telemetry-runtime.mjs +2 -2
  175. package/dist/internal/production-runtime.cjs +6 -6
  176. package/dist/internal/production-runtime.d.mts +10 -10
  177. package/dist/internal/production-runtime.d.ts +10 -10
  178. package/dist/internal/production-runtime.mjs +5 -5
  179. package/dist/internal/renderer-islands.cjs +35 -8
  180. package/dist/internal/renderer-islands.d.mts +9 -1
  181. package/dist/internal/renderer-islands.d.ts +9 -1
  182. package/dist/internal/renderer-islands.mjs +35 -8
  183. package/dist/internal/spa-router.cjs +4 -3
  184. package/dist/internal/spa-router.d.mts +3 -3
  185. package/dist/internal/spa-router.d.ts +3 -3
  186. package/dist/internal/spa-router.mjs +3 -2
  187. package/dist/internal/start-manifest.d.mts +1 -1
  188. package/dist/internal/start-manifest.d.ts +1 -1
  189. package/dist/{island-runtime.d-BA7EPo1v.d.ts → island-runtime.d-D2Mh5eTU.d.ts} +5 -1
  190. package/dist/{island-runtime.d-BBS_YUSX.d.mts → island-runtime.d-lrpEJlgg.d.mts} +5 -1
  191. package/dist/{manager-PX4QN4HK.cjs → manager-D4DZRBRS.cjs} +4 -4
  192. package/dist/{manager-OMTC5FOJ.mjs → manager-PKPQGBAE.mjs} +3 -3
  193. package/dist/markdown.d.mts +1 -1
  194. package/dist/markdown.d.ts +1 -1
  195. package/dist/middleware.cjs +4 -4
  196. package/dist/middleware.d.mts +1 -1
  197. package/dist/middleware.d.ts +1 -1
  198. package/dist/middleware.mjs +3 -3
  199. package/dist/{mount.d-gWul1GA1.d.ts → mount.d-DyKlRR6z.d.ts} +1 -1
  200. package/dist/{mount.d-CZ_qL1iS.d.mts → mount.d-_6Un9wdK.d.mts} +1 -1
  201. package/dist/{navigation-delegate.d-BBTzhJLj.d.mts → navigation-delegate.d-B9GjWbov.d.mts} +1 -1
  202. package/dist/{navigation-delegate.d-BZsYEAet.d.ts → navigation-delegate.d-BbW1_pf_.d.ts} +1 -1
  203. package/dist/navigation.cjs +6 -5
  204. package/dist/navigation.d.mts +4 -4
  205. package/dist/navigation.d.ts +4 -4
  206. package/dist/navigation.mjs +5 -4
  207. package/dist/{plugin-QOTAPTVV.mjs → plugin-EVKQZBNW.mjs} +1 -1
  208. package/dist/{plugin-3PT7I26P.cjs → plugin-MWO3G2XM.cjs} +2 -2
  209. package/dist/plugin.cjs +19 -19
  210. package/dist/plugin.d.mts +5 -5
  211. package/dist/plugin.d.ts +5 -5
  212. package/dist/plugin.mjs +18 -18
  213. package/dist/query/client.cjs +8 -7
  214. package/dist/query/client.mjs +3 -2
  215. package/dist/{render-plan.d-AaJsYPX-.d.ts → render-plan.d-D0FV9lDT.d.ts} +1 -1
  216. package/dist/{render-plan.d-bnWxS12w.d.mts → render-plan.d-DaM1NPnm.d.mts} +1 -1
  217. package/dist/renderer-client.cjs +19 -13
  218. package/dist/renderer-client.d.mts +6 -5
  219. package/dist/renderer-client.d.ts +6 -5
  220. package/dist/renderer-client.mjs +10 -4
  221. package/dist/renderer.cjs +3 -3
  222. package/dist/renderer.mjs +2 -2
  223. package/dist/{request.d-CAeitOG1.d.ts → request.d-CrXC7voZ.d.ts} +1 -1
  224. package/dist/{request.d-C2HOn3Hi.d.mts → request.d-DVSLilGx.d.mts} +1 -1
  225. package/dist/request.d.mts +2 -2
  226. package/dist/request.d.ts +2 -2
  227. package/dist/{route-rendering.d-CYA-ulnX.d.mts → route-rendering.d-CWi3UYtR.d.mts} +1 -1
  228. package/dist/{route-rendering.d-A1dIkUK5.d.ts → route-rendering.d-OfbM_rj8.d.ts} +1 -1
  229. package/dist/{router.d-A_Yt6jYz.d.ts → router.d-Bm9FNSu3.d.ts} +1 -1
  230. package/dist/{router.d-8lxnzlkr.d.mts → router.d-YKVirmj4.d.mts} +1 -1
  231. package/dist/routes.d.mts +1 -1
  232. package/dist/routes.d.ts +1 -1
  233. package/dist/{rsc-pipeline-SNGPAXGW.cjs → rsc-pipeline-3DYC5ZXW.cjs} +6 -4
  234. package/dist/{rsc-pipeline-BROS3NEB.mjs → rsc-pipeline-LRB4ZG6I.mjs} +5 -3
  235. package/dist/{runtime-SLJLW37A.mjs → runtime-3WJNNAAR.mjs} +5 -3
  236. package/dist/{runtime-7T5TRAWL.cjs → runtime-CRFF32H6.cjs} +7 -5
  237. package/dist/{runtime.d-C_rZ9_DD.d.mts → runtime.d-BVj6apd0.d.mts} +1 -1
  238. package/dist/{runtime.d-BPyvWrgQ.d.ts → runtime.d-D7QYVJGO.d.ts} +1 -1
  239. package/dist/{server-components-status.d-BpxiEMQE.d.mts → server-components-status.d-BDVcxi0z.d.mts} +1 -1
  240. package/dist/{server-components-status.d-C2UEKJn7.d.ts → server-components-status.d-CfKDpmCH.d.ts} +1 -1
  241. package/dist/server-plugins.d.mts +3 -3
  242. package/dist/server-plugins.d.ts +3 -3
  243. package/dist/server.cjs +54 -40
  244. package/dist/server.d.mts +11 -11
  245. package/dist/server.d.ts +11 -11
  246. package/dist/server.mjs +34 -20
  247. package/dist/{spa-router.d-BD-6WX1R.d.mts → spa-router.d-DGmropfK.d.mts} +5 -3
  248. package/dist/{spa-router.d-Cw5i_15e.d.ts → spa-router.d-nE1jHNGt.d.ts} +5 -3
  249. package/dist/{ssg.d-CCE9aob5.d.mts → ssg.d-DS-gXUbf.d.mts} +2 -2
  250. package/dist/{ssg.d-Bifiq0EL.d.ts → ssg.d-jXlUAKzg.d.ts} +2 -2
  251. package/dist/{store-core.d-5tVn5vi1.d.ts → store-core.d-B5cwOd8g.d.ts} +3 -2
  252. package/dist/{store-core.d-BN2MxSG9.d.mts → store-core.d-C-gATBwd.d.mts} +3 -2
  253. package/dist/testing.cjs +3 -3
  254. package/dist/testing.d.mts +1 -1
  255. package/dist/testing.d.ts +1 -1
  256. package/dist/testing.mjs +3 -3
  257. package/dist/{utils.d-BUjpSNIO.d.ts → utils.d-BODwBtkz.d.ts} +1 -1
  258. package/dist/{utils.d-wGPLeVbq.d.mts → utils.d-Cmj-fzds.d.mts} +1 -1
  259. package/dist/version.cjs +2 -2
  260. package/dist/version.mjs +1 -1
  261. package/dist/vite.cjs +24 -22
  262. package/dist/vite.d.mts +21 -7
  263. package/dist/vite.d.ts +21 -7
  264. package/dist/vite.mjs +23 -21
  265. package/package.json +3 -3
  266. package/dist/analyzer-OEMQSLYT.cjs +0 -17
  267. package/dist/chunk-7EPYN7GW.cjs +0 -30
  268. package/dist/chunk-HZOMT5DY.mjs +0 -30
  269. package/dist/chunk-SBDWCDS6.cjs +0 -8
  270. package/dist/chunk-YX6AFPXC.mjs +0 -8
  271. package/dist/{chunk-4B6YJ5DS.cjs → chunk-4ZVKDHS6.cjs} +3 -3
  272. package/dist/{chunk-4EEAPBNV.mjs → chunk-PEQJ4UUT.mjs} +3 -3
@@ -28,7 +28,7 @@ var _chunkJRGR5Z4Kcjs = require('./chunk-JRGR5Z4K.cjs');
28
28
  var _chunkSNP33A33cjs = require('./chunk-SNP33A33.cjs');
29
29
 
30
30
 
31
- var _chunk25JGHAGHcjs = require('./chunk-25JGHAGH.cjs');
31
+ var _chunkI2RBHZF7cjs = require('./chunk-I2RBHZF7.cjs');
32
32
 
33
33
 
34
34
  var _chunk7U4XF76Rcjs = require('./chunk-7U4XF76R.cjs');
@@ -314,7 +314,7 @@ var MiddlewareManager = class {
314
314
  try {
315
315
  let module;
316
316
  if (this.viteServer) {
317
- module = await _chunk25JGHAGHcjs.loadFarmDevModule.call(void 0, this.viteServer, filePath);
317
+ module = await _chunkI2RBHZF7cjs.loadFarmDevModule.call(void 0, this.viteServer, filePath);
318
318
  } else {
319
319
  module = await import(
320
320
  /* @vite-ignore */
@@ -18,14 +18,14 @@ var _chunkCCAUIBIScjs = require('./chunk-CCAUIBIS.cjs');
18
18
  var _chunkWMRGIQTAcjs = require('./chunk-WMRGIQTA.cjs');
19
19
 
20
20
 
21
- var _chunk2NKNP4AHcjs = require('./chunk-2NKNP4AH.cjs');
21
+ var _chunk6266WH6Xcjs = require('./chunk-6266WH6X.cjs');
22
22
 
23
23
  // src/mobile/analyzer.ts
24
24
  var _crypto = require('crypto');
25
25
  var _fs = require('fs');
26
26
  var _promises = require('fs/promises');
27
27
  var _path = require('path'); var path = _interopRequireWildcard(_path);
28
- var ANALYZER_VERSION = `8:${_chunk2NKNP4AHcjs.FARM_VERSION}`;
28
+ var ANALYZER_VERSION = `8:${_chunk6266WH6Xcjs.FARM_VERSION}`;
29
29
  var INTRINSIC_KINDS = {};
30
30
  for (const tag of "div section main article header footer nav aside figure hr li".split(" ")) {
31
31
  INTRINSIC_KINDS[tag] = "View";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-YNPVG2GG.mjs";
5
5
  import {
6
6
  APITypeGenerator
7
- } from "./chunk-HQ2VAJLW.mjs";
7
+ } from "./chunk-GV5D5EM6.mjs";
8
8
  import {
9
9
  getOptionalCatchAllParameterNames,
10
10
  materializeSSGRoutePath,
@@ -2,9 +2,6 @@ import {
2
2
  formatFarmHydrateExportError,
3
3
  readFarmHydrateExport
4
4
  } from "./chunk-D2VAANBS.mjs";
5
- import {
6
- isFarmIslandStrategy
7
- } from "./chunk-S32PDOLO.mjs";
8
5
  import {
9
6
  getFarmProjectSourceDir
10
7
  } from "./chunk-RJBUI5AN.mjs";
@@ -18,6 +15,9 @@ import {
18
15
  readFarmRendererHydration,
19
16
  resolveFarmServerComponentsMode
20
17
  } from "./chunk-HV6CYSMF.mjs";
18
+ import {
19
+ isFarmIslandStrategy
20
+ } from "./chunk-S32PDOLO.mjs";
21
21
  import {
22
22
  PROGRAMMATIC_ROUTE_FILE_NAMES,
23
23
  getProgrammaticRouteDefinitionSource,
@@ -28,7 +28,7 @@ import {
28
28
  } from "./chunk-U6GMCDRS.mjs";
29
29
  import {
30
30
  FARM_VERSION
31
- } from "./chunk-GWPANDW3.mjs";
31
+ } from "./chunk-XJJQAFZX.mjs";
32
32
 
33
33
  // src/environment-vite.ts
34
34
  import { existsSync, readFileSync, realpathSync } from "fs";
@@ -7,14 +7,14 @@ var _chunkO4JYMU5Ncjs = require('./chunk-O4JYMU5N.cjs');
7
7
 
8
8
 
9
9
 
10
- var _chunkUGD53SNOcjs = require('./chunk-UGD53SNO.cjs');
10
+ var _chunkKQ6TYQU7cjs = require('./chunk-KQ6TYQU7.cjs');
11
11
 
12
12
 
13
13
 
14
14
  var _chunkJIBEFLQ7cjs = require('./chunk-JIBEFLQ7.cjs');
15
15
 
16
16
 
17
- var _chunk2PJVEL56cjs = require('./chunk-2PJVEL56.cjs');
17
+ var _chunkPCAEJNQFcjs = require('./chunk-PCAEJNQF.cjs');
18
18
 
19
19
 
20
20
  var _chunkGYJT2U7Jcjs = require('./chunk-GYJT2U7J.cjs');
@@ -52,7 +52,7 @@ function shouldBlockUnload(options) {
52
52
  function navigateViaRouter(href, basePath, replace, options = {}) {
53
53
  if (typeof window === "undefined") return;
54
54
  const url = _chunkD22BUQKWcjs.applyFarmBasePath.call(void 0, href, basePath);
55
- const spaRouter = _chunkUGD53SNOcjs.getInstalledFarmSPARouter.call(void 0, );
55
+ const spaRouter = _chunkKQ6TYQU7cjs.getInstalledFarmSPARouter.call(void 0, );
56
56
  if (spaRouter) {
57
57
  void spaRouter.navigate(url, {
58
58
  replace,
@@ -72,7 +72,7 @@ function writeHistory(url, replace) {
72
72
  } else {
73
73
  window.history.pushState(null, "", url);
74
74
  }
75
- _chunkUGD53SNOcjs.notifyHistoryChange.call(void 0, "url-search");
75
+ _chunkKQ6TYQU7cjs.notifyHistoryChange.call(void 0, "url-search");
76
76
  }
77
77
  async function writeHistoryUnlessDelegated(url, replace) {
78
78
  const target = new URL(url, window.location.href);
@@ -105,7 +105,7 @@ function useRouter(options = {}) {
105
105
  setState(readRouterState(basePath, routeMatcher));
106
106
  };
107
107
  handlePopState();
108
- const unsubscribe = _chunkUGD53SNOcjs.subscribeHistoryChange.call(void 0, handlePopState);
108
+ const unsubscribe = _chunkKQ6TYQU7cjs.subscribeHistoryChange.call(void 0, handlePopState);
109
109
  return unsubscribe;
110
110
  }, [basePath, routeMatcher]);
111
111
  const push = (href, navigateOptions) => {
@@ -116,11 +116,11 @@ function useRouter(options = {}) {
116
116
  };
117
117
  const pushState = (pageState, href) => {
118
118
  if (typeof window === "undefined") return;
119
- _chunkUGD53SNOcjs.getRouter.call(void 0, ).pushState(pageState, resolveClientHref(href, basePath));
119
+ _chunkKQ6TYQU7cjs.getRouter.call(void 0, ).pushState(pageState, resolveClientHref(href, basePath));
120
120
  };
121
121
  const replaceState = (pageState, href) => {
122
122
  if (typeof window === "undefined") return;
123
- _chunkUGD53SNOcjs.getRouter.call(void 0, ).replaceState(pageState, resolveClientHref(href, basePath));
123
+ _chunkKQ6TYQU7cjs.getRouter.call(void 0, ).replaceState(pageState, resolveClientHref(href, basePath));
124
124
  };
125
125
  const back = () => {
126
126
  if (typeof window !== "undefined") {
@@ -143,24 +143,24 @@ function useRouter(options = {}) {
143
143
  };
144
144
  }
145
145
  function usePageState() {
146
- const [state, setState] = _react.useState.call(void 0, () => _chunkUGD53SNOcjs.readPageState.call(void 0, ));
146
+ const [state, setState] = _react.useState.call(void 0, () => _chunkKQ6TYQU7cjs.readPageState.call(void 0, ));
147
147
  _react.useEffect.call(void 0, () => {
148
148
  if (typeof window === "undefined") return;
149
149
  const handlePopState = () => {
150
- setState(_chunkUGD53SNOcjs.readPageState.call(void 0, ));
150
+ setState(_chunkKQ6TYQU7cjs.readPageState.call(void 0, ));
151
151
  };
152
152
  handlePopState();
153
- return _chunkUGD53SNOcjs.subscribeHistoryChange.call(void 0, handlePopState);
153
+ return _chunkKQ6TYQU7cjs.subscribeHistoryChange.call(void 0, handlePopState);
154
154
  }, []);
155
155
  return state;
156
156
  }
157
157
  function useNavigation() {
158
158
  const [state, setState] = _react.useState.call(void 0,
159
- () => _chunkUGD53SNOcjs.getRouter.call(void 0, ).getNavigationState()
159
+ () => _chunkKQ6TYQU7cjs.getRouter.call(void 0, ).getNavigationState()
160
160
  );
161
161
  _react.useEffect.call(void 0, () => {
162
162
  if (typeof window === "undefined") return;
163
- return _chunkUGD53SNOcjs.getRouter.call(void 0, ).subscribeNavigation(setState);
163
+ return _chunkKQ6TYQU7cjs.getRouter.call(void 0, ).subscribeNavigation(setState);
164
164
  }, []);
165
165
  return state;
166
166
  }
@@ -172,7 +172,7 @@ function useBlocker(options) {
172
172
  if (typeof window === "undefined" || !active) {
173
173
  return;
174
174
  }
175
- return _chunkUGD53SNOcjs.getRouter.call(void 0, ).addBlocker(
175
+ return _chunkKQ6TYQU7cjs.getRouter.call(void 0, ).addBlocker(
176
176
  async (context) => {
177
177
  const current = optionsRef.current;
178
178
  const when = typeof current.when === "function" ? current.when(context) : current.when;
@@ -195,7 +195,7 @@ function useScrollRestoration(key) {
195
195
  _react.useEffect.call(void 0, () => {
196
196
  const element = ref.current;
197
197
  if (!element) return;
198
- return _chunkUGD53SNOcjs.getRouter.call(void 0, ).registerScrollElement(key, element);
198
+ return _chunkKQ6TYQU7cjs.getRouter.call(void 0, ).registerScrollElement(key, element);
199
199
  }, [key]);
200
200
  return ref;
201
201
  }
@@ -210,13 +210,13 @@ function readRouterState(basePath, routeMatcher) {
210
210
  };
211
211
  }
212
212
  const pathname = normalizeClientPathname(url.pathname, basePath);
213
- const i18n = _chunk2PJVEL56cjs.getFarmI18nClientState.call(void 0, );
213
+ const i18n = _chunkPCAEJNQFcjs.getFarmI18nClientState.call(void 0, );
214
214
  const routePathname = i18n ? _chunkGYJT2U7Jcjs.stripFarmLocaleFromPathname.call(void 0, pathname, { ...i18n, basePath: "/" }) : pathname;
215
215
  return {
216
216
  pathname,
217
217
  searchParams: url.searchParams,
218
218
  params: _optionalChain([routeMatcher, 'optionalAccess', _5 => _5.match, 'call', _6 => _6(routePathname), 'optionalAccess', _7 => _7.params]) || {},
219
- pageState: typeof window === "undefined" ? null : _chunkUGD53SNOcjs.readPageState.call(void 0, )
219
+ pageState: typeof window === "undefined" ? null : _chunkKQ6TYQU7cjs.readPageState.call(void 0, )
220
220
  };
221
221
  }
222
222
  function readCurrentUrl() {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  readAliases,
3
3
  resolveFile
4
- } from "./chunk-UAQQUQWE.mjs";
4
+ } from "./chunk-MZPPT5NA.mjs";
5
5
  import {
6
6
  transformFarmServerFns
7
7
  } from "./chunk-GNZIAJGB.mjs";
@@ -7,14 +7,14 @@ import {
7
7
  notifyHistoryChange,
8
8
  readPageState,
9
9
  subscribeHistoryChange
10
- } from "./chunk-PO5MZIWK.mjs";
10
+ } from "./chunk-QBXS4TNG.mjs";
11
11
  import {
12
12
  hasFarmNavigationDelegates,
13
13
  runFarmNavigationDelegates
14
14
  } from "./chunk-RSEAX5MW.mjs";
15
15
  import {
16
16
  getFarmI18nClientState
17
- } from "./chunk-FLMALEY2.mjs";
17
+ } from "./chunk-GGD57DJA.mjs";
18
18
  import {
19
19
  stripFarmLocaleFromPathname
20
20
  } from "./chunk-4QBFYEDC.mjs";
@@ -1,12 +1,13 @@
1
- import {
2
- isFarmIslandStrategy
3
- } from "./chunk-S32PDOLO.mjs";
4
1
  import {
5
2
  getFarmRendererCapabilities,
3
+ isFarmRendererDisabled,
6
4
  isReactRenderer,
7
5
  resolveFarmRenderer,
8
6
  resolveFarmServerComponentsMode
9
7
  } from "./chunk-HV6CYSMF.mjs";
8
+ import {
9
+ isFarmIslandStrategy
10
+ } from "./chunk-S32PDOLO.mjs";
10
11
  import {
11
12
  _peekCurrentRequest
12
13
  } from "./chunk-VIXTAVEA.mjs";
@@ -87,6 +88,20 @@ function resolveFarmIsland(props, reference) {
87
88
  return void 0;
88
89
  }
89
90
  }
91
+ function resolveFarmRendererServerComponentsIslands(config) {
92
+ if (resolveFarmServerComponentsMode(config.experimental?.serverComponents) !== "islands") {
93
+ return false;
94
+ }
95
+ if (config.renderer === void 0 || isFarmRendererDisabled(config.renderer)) return false;
96
+ const renderer = resolveFarmRenderer(config.renderer);
97
+ if (isReactRenderer(renderer)) return false;
98
+ if (!getFarmRendererCapabilities(renderer).islands) {
99
+ throw new Error(
100
+ `[Farm.js] \`experimental.serverComponents: { mode: "islands" }\` needs a renderer that supports islands, and \`${renderer.name}\` doesn't declare \`capabilities.islands\`. Remove \`experimental.serverComponents\` to hydrate each route whole, or add islands to the renderer: https://farmjs.dev/docs/renderers/custom#islands`
101
+ );
102
+ }
103
+ return true;
104
+ }
90
105
  function usesFarmRendererIslands(config) {
91
106
  const renderer = resolveFarmRenderer(config.renderer);
92
107
  return !isReactRenderer(renderer) && getFarmRendererCapabilities(renderer).islands && config.experimental?.isolatedClientHydration === "enabled" && resolveFarmServerComponentsMode(config.experimental?.serverComponents) === void 0;
@@ -94,5 +109,6 @@ function usesFarmRendererIslands(config) {
94
109
 
95
110
  export {
96
111
  resolveFarmIsland,
112
+ resolveFarmRendererServerComponentsIslands,
97
113
  usesFarmRendererIslands
98
114
  };
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkVGHDPEPQcjs = require('./chunk-VGHDPEPQ.cjs');
4
+ var _chunkUA77C2ZAcjs = require('./chunk-UA77C2ZA.cjs');
5
5
 
6
6
 
7
7
  var _chunk5DX3O6TTcjs = require('./chunk-5DX3O6TT.cjs');
@@ -142,7 +142,7 @@ function getCountedRateLimitKeys(ctx) {
142
142
  return counted;
143
143
  }
144
144
  function requireRateLimitClientAddress(ctx) {
145
- const address = _chunkVGHDPEPQcjs.getFarmMiddlewareClientAddress.call(void 0, ctx.request);
145
+ const address = _chunkUA77C2ZAcjs.getFarmMiddlewareClientAddress.call(void 0, ctx.request);
146
146
  if (address) return address;
147
147
  throw new Error(
148
148
  "Rate limiting could not identify the caller: this runtime reports no client address. Set `server.trustProxy` so a proxy's x-forwarded-for is trusted, or pass a `keyGenerator` that derives the bucket from something you do have, such as a session or an API key."
@@ -413,7 +413,7 @@ function farmMiddlewarePlugin(options = {}) {
413
413
  mode: server.config.mode === "production" ? "production" : "development",
414
414
  basePath: _nullishCoalesce(options.basePath, () => ( "/"))
415
415
  });
416
- manager = new (0, _chunkVGHDPEPQcjs.MiddlewareManager)(
416
+ manager = new (0, _chunkUA77C2ZAcjs.MiddlewareManager)(
417
417
  getMiddlewareAppDirectory(server.config.root, srcDir),
418
418
  server,
419
419
  options.middleware,
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.1.86";
2
+ var version = "0.2.0-beta.0";
3
3
 
4
4
  // src/version.ts
5
5
  var FARM_VERSION = version;
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
- var _chunkQ3YWQEUScjs = require('./chunk-Q3YWQEUS.cjs');
4
+ var _chunkVMGQOP7Xcjs = require('./chunk-VMGQOP7X.cjs');
5
5
 
6
6
 
7
7
  var _chunkPIUTGRDIcjs = require('./chunk-PIUTGRDI.cjs');
@@ -64,7 +64,7 @@ function findFarmNativeScreenFiles(appDirs) {
64
64
  }
65
65
  function collectFarmNativeServerFns(options) {
66
66
  const { root, srcDir } = options;
67
- const aliases = _chunkQ3YWQEUScjs.readAliases.call(void 0, root, srcDir);
67
+ const aliases = _chunkVMGQOP7Xcjs.readAliases.call(void 0, root, srcDir);
68
68
  const seen = /* @__PURE__ */ new Set();
69
69
  const found = /* @__PURE__ */ new Map();
70
70
  const queue = [...options.entries];
@@ -98,7 +98,7 @@ function collectFarmNativeServerFns(options) {
98
98
  }
99
99
  }
100
100
  for (const candidate of _nullishCoalesce(candidates, () => ( []))) {
101
- const resolved = _chunkQ3YWQEUScjs.resolveFile.call(void 0, candidate);
101
+ const resolved = _chunkVMGQOP7Xcjs.resolveFile.call(void 0, candidate);
102
102
  if (resolved && SCRIPT.test(resolved) && !resolved.includes(`${_path2.default.sep}node_modules${_path2.default.sep}`)) {
103
103
  queue.push(resolved);
104
104
  break;
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-LRPPXKCX.mjs";
19
19
  import {
20
20
  resolveDocsConfig
21
- } from "./chunk-KHIEGVG7.mjs";
21
+ } from "./chunk-BGEA4K7C.mjs";
22
22
  import {
23
23
  getFarmDocsAdapterConfigModule,
24
24
  isSecretDocsConfigKey
@@ -0,0 +1,32 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/client/navigation-url.ts
2
+ var FARM_NAVIGATION_PROTOCOLS = /* @__PURE__ */ new Set(["http:", "https:", "mailto:", "tel:"]);
3
+ function isFarmBlockedNavigationURL(url) {
4
+ if (FARM_NAVIGATION_PROTOCOLS.has(url.protocol)) return false;
5
+ console.error(`[Farm.js] Blocked navigation to a ${url.protocol} URL as a security precaution.`);
6
+ return true;
7
+ }
8
+ function isFarmScriptURL(href) {
9
+ try {
10
+ return new URL(href, "http://farm.invalid").protocol === "javascript:";
11
+ } catch (e) {
12
+ return false;
13
+ }
14
+ }
15
+ function isFarmSameDocumentFragment(href, currentHref) {
16
+ const fragment = href.indexOf("#");
17
+ return fragment >= 0 && href.slice(0, fragment) === currentHref.split("#", 1)[0];
18
+ }
19
+ function isFarmExternalNavigationURL(url, currentOrigin) {
20
+ return url.protocol !== "http:" && url.protocol !== "https:" || url.origin !== currentOrigin;
21
+ }
22
+ function resolveFarmNavigationURL(href, documentUrl) {
23
+ return new URL(href, documentUrl);
24
+ }
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+ exports.isFarmBlockedNavigationURL = isFarmBlockedNavigationURL; exports.isFarmScriptURL = isFarmScriptURL; exports.isFarmSameDocumentFragment = isFarmSameDocumentFragment; exports.isFarmExternalNavigationURL = isFarmExternalNavigationURL; exports.resolveFarmNavigationURL = resolveFarmNavigationURL;
@@ -1,7 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunk7KJJ4SBScjs = require('./chunk-7KJJ4SBS.cjs');
4
-
5
3
 
6
4
 
7
5
 
@@ -9,6 +7,9 @@ var _chunk7KJJ4SBScjs = require('./chunk-7KJJ4SBS.cjs');
9
7
  var _chunkT7UC2ORAcjs = require('./chunk-T7UC2ORA.cjs');
10
8
 
11
9
 
10
+ var _chunk7KJJ4SBScjs = require('./chunk-7KJJ4SBS.cjs');
11
+
12
+
12
13
  var _chunk3BIASUGRcjs = require('./chunk-3BIASUGR.cjs');
13
14
 
14
15
  // src/renderer-islands.ts
@@ -87,12 +88,27 @@ function resolveFarmIsland(props, reference) {
87
88
  return void 0;
88
89
  }
89
90
  }
91
+ function resolveFarmRendererServerComponentsIslands(config) {
92
+ if (_chunkT7UC2ORAcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _2 => _2.experimental, 'optionalAccess', _3 => _3.serverComponents])) !== "islands") {
93
+ return false;
94
+ }
95
+ if (config.renderer === void 0 || _chunkT7UC2ORAcjs.isFarmRendererDisabled.call(void 0, config.renderer)) return false;
96
+ const renderer = _chunkT7UC2ORAcjs.resolveFarmRenderer.call(void 0, config.renderer);
97
+ if (_chunkT7UC2ORAcjs.isReactRenderer.call(void 0, renderer)) return false;
98
+ if (!_chunkT7UC2ORAcjs.getFarmRendererCapabilities.call(void 0, renderer).islands) {
99
+ throw new Error(
100
+ `[Farm.js] \`experimental.serverComponents: { mode: "islands" }\` needs a renderer that supports islands, and \`${renderer.name}\` doesn't declare \`capabilities.islands\`. Remove \`experimental.serverComponents\` to hydrate each route whole, or add islands to the renderer: https://farmjs.dev/docs/renderers/custom#islands`
101
+ );
102
+ }
103
+ return true;
104
+ }
90
105
  function usesFarmRendererIslands(config) {
91
106
  const renderer = _chunkT7UC2ORAcjs.resolveFarmRenderer.call(void 0, config.renderer);
92
- return !_chunkT7UC2ORAcjs.isReactRenderer.call(void 0, renderer) && _chunkT7UC2ORAcjs.getFarmRendererCapabilities.call(void 0, renderer).islands && _optionalChain([config, 'access', _2 => _2.experimental, 'optionalAccess', _3 => _3.isolatedClientHydration]) === "enabled" && _chunkT7UC2ORAcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _4 => _4.experimental, 'optionalAccess', _5 => _5.serverComponents])) === void 0;
107
+ return !_chunkT7UC2ORAcjs.isReactRenderer.call(void 0, renderer) && _chunkT7UC2ORAcjs.getFarmRendererCapabilities.call(void 0, renderer).islands && _optionalChain([config, 'access', _4 => _4.experimental, 'optionalAccess', _5 => _5.isolatedClientHydration]) === "enabled" && _chunkT7UC2ORAcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _6 => _6.experimental, 'optionalAccess', _7 => _7.serverComponents])) === void 0;
93
108
  }
94
109
 
95
110
 
96
111
 
97
112
 
98
- exports.resolveFarmIsland = resolveFarmIsland; exports.usesFarmRendererIslands = usesFarmRendererIslands;
113
+
114
+ exports.resolveFarmIsland = resolveFarmIsland; exports.resolveFarmRendererServerComponentsIslands = resolveFarmRendererServerComponentsIslands; exports.usesFarmRendererIslands = usesFarmRendererIslands;
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-RLEAVG6G.mjs";
4
4
  import {
5
5
  resolveDeployOutputPath
6
- } from "./chunk-KHIEGVG7.mjs";
6
+ } from "./chunk-BGEA4K7C.mjs";
7
7
  import {
8
8
  farmDesktopDevGuardPlugin,
9
9
  loadFarmReactPlugin
@@ -217,7 +217,7 @@ async function resolveFarmRscServerPlugins(userConfig, config, root) {
217
217
  }
218
218
  async function configureFarmRscPlugins(config, command) {
219
219
  if (config.plugins.length === 0) return config;
220
- const { PluginManager } = await import("./plugin-QOTAPTVV.mjs");
220
+ const { PluginManager } = await import("./plugin-EVKQZBNW.mjs");
221
221
  const manager = new PluginManager({
222
222
  config,
223
223
  isDev: command === "serve",
@@ -1,15 +1,15 @@
1
- import './utils.d-BUjpSNIO.js';
2
- import { F as FarmPlugin } from './client-plugins.d-BVXjyIkY.js';
1
+ import './utils.d-BODwBtkz.js';
2
+ import { F as FarmPlugin } from './client-plugins.d-Crct3m_r.js';
3
3
  import { R as ResolvedFarmLayer } from './layers.d-CH0bC4QL.js';
4
4
  import { FarmRenderer } from './renderer.js';
5
- import './ssg.d-Bifiq0EL.js';
5
+ import './ssg.d-jXlUAKzg.js';
6
6
  import './deployment.js';
7
- import './handler.d-Dzpyg3-N.js';
7
+ import './handler.d-ZweCBJD4.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-C2UEKJn7.js';
12
+ import './server-components-status.d-CfKDpmCH.js';
13
13
  import './storage.js';
14
14
 
15
15
  /**
@@ -1,15 +1,15 @@
1
- import './utils.d-wGPLeVbq.mjs';
2
- import { F as FarmPlugin } from './client-plugins.d-BwKwuO_0.mjs';
1
+ import './utils.d-Cmj-fzds.mjs';
2
+ import { F as FarmPlugin } from './client-plugins.d-Dzc3vOw_.mjs';
3
3
  import { R as ResolvedFarmLayer } from './layers.d-CH0bC4QL.mjs';
4
4
  import { FarmRenderer } from './renderer.mjs';
5
- import './ssg.d-CCE9aob5.mjs';
5
+ import './ssg.d-DS-gXUbf.mjs';
6
6
  import './deployment.mjs';
7
- import './handler.d-BKTWzzNA.mjs';
7
+ import './handler.d-B1S1ZBqS.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-BpxiEMQE.mjs';
12
+ import './server-components-status.d-BDVcxi0z.mjs';
13
13
  import './storage.mjs';
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-BwKwuO_0.mjs';
2
+ import { aR as FarmIsolatedClientHydrationMode } from './client-plugins.d-Dzc3vOw_.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-BVXjyIkY.js';
2
+ import { aR as FarmIsolatedClientHydrationMode } from './client-plugins.d-Crct3m_r.js';
3
3
 
4
4
  /**
5
5
  * The browser copy of a programmatic page or layout imports only the module that defines its
@@ -68,7 +68,8 @@ declare function describeIntegrationOriginRejection(reason: IntegrationOriginRej
68
68
  /**
69
69
  * `experimental.serverComponents`: which engine renders server components.
70
70
  *
71
- * - `"islands"`: Farm's own engine (RFC 0003), on Farm's pipeline. Experimental. The default.
71
+ * - `"islands"`: Farm's own engine (RFC 0003), on Farm's pipeline. Experimental. The default. On a
72
+ * renderer besides React, that renderer's islands (`capabilities.islands`), without the engine.
72
73
  * - `"rsc"`: React's Flight pipeline (`@farm.js/plugin/rsc` on `@vitejs/plugin-rsc`).
73
74
  *
74
75
  * `true` means `{ mode: "islands" }`; `{ mode: "rsc" }` opts into React's pipeline. Both modes share
@@ -2732,9 +2733,16 @@ interface FarmConfig {
2732
2733
  suppressLintOnLink?: boolean;
2733
2734
  experimental?: {
2734
2735
  /**
2735
- * React Server Components. `true` is `{ mode: "rsc" }`: `farm dev` and `farm build` run
2736
- * React's Flight pipeline from `@farm.js/plugin/rsc`. `{ mode: "islands" }` is reserved for
2737
- * Farm's own engine (RFC 0003). Pages and layouts are server components either way.
2736
+ * Server components: pages and layouts render on the server only, and `"use client"` marks
2737
+ * what runs in the browser.
2738
+ *
2739
+ * - `{ mode: "islands" }`, or `true`: each client component hydrates on its own, as an island.
2740
+ * React runs pages on Farm's own engine (RFC 0003). Another renderer needs
2741
+ * `capabilities.islands`, and its islands hydrate through its `withIsland`.
2742
+ * - `{ mode: "rsc" }`: React's Flight pipeline from `@farm.js/plugin/rsc`. React only.
2743
+ *
2744
+ * @experimental
2745
+ * @default false
2738
2746
  */
2739
2747
  serverComponents?: FarmServerComponentsConfig;
2740
2748
  serverActions?: boolean;
@@ -2759,7 +2767,8 @@ interface FarmConfig {
2759
2767
  * back to route-wide hydration for unsupported module graphs.
2760
2768
  *
2761
2769
  * This does not enable React Server Components. `"use client"` remains a
2762
- * valid client-boundary declaration in normal SSR applications.
2770
+ * valid client-boundary declaration in normal SSR applications. On a renderer
2771
+ * besides React, turn islands on with `serverComponents: { mode: "islands" }`.
2763
2772
  *
2764
2773
  * @experimental
2765
2774
  * @default "off"
@@ -68,7 +68,8 @@ declare function describeIntegrationOriginRejection(reason: IntegrationOriginRej
68
68
  /**
69
69
  * `experimental.serverComponents`: which engine renders server components.
70
70
  *
71
- * - `"islands"`: Farm's own engine (RFC 0003), on Farm's pipeline. Experimental. The default.
71
+ * - `"islands"`: Farm's own engine (RFC 0003), on Farm's pipeline. Experimental. The default. On a
72
+ * renderer besides React, that renderer's islands (`capabilities.islands`), without the engine.
72
73
  * - `"rsc"`: React's Flight pipeline (`@farm.js/plugin/rsc` on `@vitejs/plugin-rsc`).
73
74
  *
74
75
  * `true` means `{ mode: "islands" }`; `{ mode: "rsc" }` opts into React's pipeline. Both modes share
@@ -2732,9 +2733,16 @@ interface FarmConfig {
2732
2733
  suppressLintOnLink?: boolean;
2733
2734
  experimental?: {
2734
2735
  /**
2735
- * React Server Components. `true` is `{ mode: "rsc" }`: `farm dev` and `farm build` run
2736
- * React's Flight pipeline from `@farm.js/plugin/rsc`. `{ mode: "islands" }` is reserved for
2737
- * Farm's own engine (RFC 0003). Pages and layouts are server components either way.
2736
+ * Server components: pages and layouts render on the server only, and `"use client"` marks
2737
+ * what runs in the browser.
2738
+ *
2739
+ * - `{ mode: "islands" }`, or `true`: each client component hydrates on its own, as an island.
2740
+ * React runs pages on Farm's own engine (RFC 0003). Another renderer needs
2741
+ * `capabilities.islands`, and its islands hydrate through its `withIsland`.
2742
+ * - `{ mode: "rsc" }`: React's Flight pipeline from `@farm.js/plugin/rsc`. React only.
2743
+ *
2744
+ * @experimental
2745
+ * @default false
2738
2746
  */
2739
2747
  serverComponents?: FarmServerComponentsConfig;
2740
2748
  serverActions?: boolean;
@@ -2759,7 +2767,8 @@ interface FarmConfig {
2759
2767
  * back to route-wide hydration for unsupported module graphs.
2760
2768
  *
2761
2769
  * This does not enable React Server Components. `"use client"` remains a
2762
- * valid client-boundary declaration in normal SSR applications.
2770
+ * valid client-boundary declaration in normal SSR applications. On a renderer
2771
+ * besides React, turn islands on with `serverComponents: { mode: "islands" }`.
2763
2772
  *
2764
2773
  * @experimental
2765
2774
  * @default "off"
@@ -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-BwKwuO_0.mjs';
2
+ export { F as FarmPlugin, I as FarmPluginContext, ao as FarmRequestPluginContext, ap as FarmRequestStore } from './client-plugins.d-Dzc3vOw_.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-BVXjyIkY.js';
2
+ export { F as FarmPlugin, I as FarmPluginContext, ao as FarmRequestPluginContext, ap as FarmRequestStore } from './client-plugins.d-Crct3m_r.js';
3
3
  import './route.d-Cd4Fi6BA.js';
4
4
  import './endpoint.d-Dx_1k6Du.js';
5
5
  import './cache.js';