@farm.js/core 0.1.26 → 0.1.28

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 (231) hide show
  1. package/dist/agent-runtime.d.mts +8 -9
  2. package/dist/agent-runtime.d.ts +8 -9
  3. package/dist/api/client.cjs +5 -7
  4. package/dist/api/client.d.mts +5 -5
  5. package/dist/api/client.d.ts +5 -5
  6. package/dist/api/client.mjs +4 -6
  7. package/dist/api/route-manager.cjs +12 -10
  8. package/dist/api/route-manager.d.mts +7 -8
  9. package/dist/api/route-manager.d.ts +7 -8
  10. package/dist/api/route-manager.mjs +11 -9
  11. package/dist/api/runtime.cjs +15 -8
  12. package/dist/api/runtime.d.mts +36 -3
  13. package/dist/api/runtime.d.ts +36 -3
  14. package/dist/api/runtime.mjs +14 -7
  15. package/dist/{api-client-Cx54IR5g.d.mts → api-client-BjMmY8OD.d.mts} +2 -3
  16. package/dist/{api-client-DykpaKcY.d.ts → api-client-CyFtZFJ4.d.ts} +2 -3
  17. package/dist/api.cjs +16 -14
  18. package/dist/api.d.mts +9 -10
  19. package/dist/api.d.ts +9 -10
  20. package/dist/api.mjs +16 -14
  21. package/dist/{app-29vG5tmY.d.mts → app-DSSq6wiN.d.mts} +3 -4
  22. package/dist/{app-Cx71s_PT.d.ts → app-M8nVWvNU.d.ts} +3 -4
  23. package/dist/app-markdown.cjs +10 -4
  24. package/dist/app-markdown.d.mts +9 -10
  25. package/dist/app-markdown.d.ts +9 -10
  26. package/dist/app-markdown.mjs +9 -3
  27. package/dist/cache-invalidation-BD0z_lfu.d.mts +4 -0
  28. package/dist/cache-invalidation-BD0z_lfu.d.ts +4 -0
  29. package/dist/cache.cjs +6 -4
  30. package/dist/cache.d.mts +11 -6
  31. package/dist/cache.d.ts +11 -6
  32. package/dist/cache.mjs +7 -5
  33. package/dist/{chunk-OFKG57MZ.mjs → chunk-2CNBR3EB.mjs} +2 -2
  34. package/dist/{chunk-JM5GQL4H.mjs → chunk-2DLN6HG4.mjs} +1 -1
  35. package/dist/{chunk-UUYF3CHN.mjs → chunk-2N5PX3LS.mjs} +2 -2
  36. package/dist/{chunk-H6G5INWM.cjs → chunk-2SDO73HK.cjs} +14 -156
  37. package/dist/{chunk-3TQWUUNP.cjs → chunk-3LUF2PE2.cjs} +10 -5
  38. package/dist/{chunk-SYGGPS4A.mjs → chunk-4IEPYMHF.mjs} +3 -3
  39. package/dist/{chunk-WD5PNSOB.mjs → chunk-4V7GIE2U.mjs} +6 -4
  40. package/dist/{chunk-2CT6XUNO.cjs → chunk-55ZY4ZA7.cjs} +4 -4
  41. package/dist/chunk-5MKEDGLD.cjs +53 -0
  42. package/dist/{chunk-I7PUUDGY.cjs → chunk-63H6BKXG.cjs} +2 -2
  43. package/dist/{chunk-FG5H2VCJ.mjs → chunk-6ZCMSZ5U.mjs} +2 -2
  44. package/dist/{chunk-ZMN3H73H.cjs → chunk-75DYEVXI.cjs} +13 -11
  45. package/dist/{chunk-QJ4D3UKJ.cjs → chunk-A672WZEG.cjs} +4 -4
  46. package/dist/{chunk-IXTFU4PL.cjs → chunk-BJPBQNIE.cjs} +14 -14
  47. package/dist/{chunk-QGG336NI.mjs → chunk-BXFWA23T.mjs} +2 -2
  48. package/dist/chunk-CNOQY6Z7.mjs +156 -0
  49. package/dist/{chunk-DW34V5SM.cjs → chunk-CTV2TTNP.cjs} +4 -4
  50. package/dist/{chunk-OAVTUMJP.cjs → chunk-D4JE5NNV.cjs} +12 -12
  51. package/dist/{chunk-KLSSO6YD.mjs → chunk-E76XC6ZG.mjs} +2 -2
  52. package/dist/{chunk-G3HRIVEY.cjs → chunk-ES4B2IXW.cjs} +2 -2
  53. package/dist/{chunk-W2HZKYES.cjs → chunk-EWZ3XHKQ.cjs} +2 -2
  54. package/dist/{chunk-BD2U4ZL6.cjs → chunk-EXLKRR4U.cjs} +10 -10
  55. package/dist/{chunk-SZ4LYNUX.cjs → chunk-F52CDFJM.cjs} +89 -83
  56. package/dist/{chunk-ARXCHQLX.mjs → chunk-FB3H4INL.mjs} +4 -4
  57. package/dist/{chunk-QPPQHB6X.mjs → chunk-FVCSLZWT.mjs} +19 -13
  58. package/dist/{chunk-WD4YXVLV.mjs → chunk-GZYH4OER.mjs} +1 -1
  59. package/dist/{chunk-DX4VKYAJ.cjs → chunk-I26CZYPV.cjs} +6 -4
  60. package/dist/{chunk-3TQG7CGC.cjs → chunk-ID6OVSLH.cjs} +164 -129
  61. package/dist/{chunk-F6SJAKFJ.mjs → chunk-IV6CQY7O.mjs} +12 -154
  62. package/dist/{chunk-6D242YGO.mjs → chunk-JATSG2ZO.mjs} +1 -1
  63. package/dist/{chunk-U74A3P2P.cjs → chunk-JLRDISQL.cjs} +7 -7
  64. package/dist/{chunk-H7CJRJ4L.cjs → chunk-JUFRXDTK.cjs} +18 -18
  65. package/dist/{chunk-OOIL3BWR.mjs → chunk-K3YEZLSY.mjs} +65 -8
  66. package/dist/{chunk-Y4YWHNKU.cjs → chunk-KH7BN726.cjs} +9 -9
  67. package/dist/{chunk-WFPRVVF2.cjs → chunk-KOQ555NR.cjs} +22 -14
  68. package/dist/{chunk-VZWO3XVL.mjs → chunk-KXGDXYUC.mjs} +3 -3
  69. package/dist/{chunk-3IL5UC5I.cjs → chunk-KZLND3D2.cjs} +2 -2
  70. package/dist/{chunk-QLXEYIAW.cjs → chunk-MH24QDVJ.cjs} +13 -13
  71. package/dist/{chunk-TKDY6AJP.mjs → chunk-MKMBQSNQ.mjs} +1 -1
  72. package/dist/{chunk-OCE65DDM.mjs → chunk-MNUGPHLN.mjs} +1 -1
  73. package/dist/{chunk-74RZNRY6.mjs → chunk-NVBS5WSZ.mjs} +1 -1
  74. package/dist/chunk-NYJMY3JA.cjs +156 -0
  75. package/dist/{chunk-VVJCWBIE.mjs → chunk-O3DTUAX2.mjs} +2 -2
  76. package/dist/chunk-O6XNAMBV.mjs +53 -0
  77. package/dist/{chunk-YAOX43YI.cjs → chunk-PZNCMPJF.cjs} +5 -5
  78. package/dist/{chunk-YMUH2BLR.mjs → chunk-PZPDGOU5.mjs} +14 -6
  79. package/dist/{chunk-52SH7TKB.mjs → chunk-QG5HNS7P.mjs} +2 -2
  80. package/dist/{chunk-CEYUWDWA.mjs → chunk-QZCT2CQ4.mjs} +10 -5
  81. package/dist/{chunk-RAI7NULA.mjs → chunk-REGFZJEJ.mjs} +1 -1
  82. package/dist/{chunk-QMV4QELL.mjs → chunk-S5GDHOE4.mjs} +4 -2
  83. package/dist/{chunk-CRQPYWLK.cjs → chunk-SORB3MAR.cjs} +14 -14
  84. package/dist/{chunk-DU2CASV6.mjs → chunk-T7HQ3I4C.mjs} +1 -1
  85. package/dist/{chunk-RCYINC4A.cjs → chunk-TII23GJC.cjs} +3 -3
  86. package/dist/{chunk-PPIW3MH6.mjs → chunk-UX2DD2VK.mjs} +1 -1
  87. package/dist/{chunk-I4J452B7.cjs → chunk-VHJGDMCG.cjs} +3 -3
  88. package/dist/{chunk-3WSWXPYM.cjs → chunk-VQXDC5UV.cjs} +4 -4
  89. package/dist/{chunk-B6ZCT36X.cjs → chunk-WNLBF77X.cjs} +4 -4
  90. package/dist/{chunk-GDUYXFIS.mjs → chunk-X7WVQMIB.mjs} +4 -4
  91. package/dist/{chunk-5SPPCN5J.mjs → chunk-XNPDONUH.mjs} +1 -1
  92. package/dist/{chunk-QIH2HD6H.cjs → chunk-XSPGWQWA.cjs} +86 -29
  93. package/dist/{chunk-ALIFMS4A.cjs → chunk-Y7GW7J46.cjs} +1 -1
  94. package/dist/{chunk-L6V3P73N.mjs → chunk-YDQZGSDS.mjs} +5 -5
  95. package/dist/{chunk-C3VRMB6H.cjs → chunk-ZCU4NZ3M.cjs} +6 -6
  96. package/dist/{chunk-UXQXGB5A.mjs → chunk-ZRIE4KMG.mjs} +63 -28
  97. package/dist/{client-plugins-B8RPJnot.d.mts → client-plugins-CgYNY7jF.d.mts} +1656 -1477
  98. package/dist/{client-plugins-bPBf4haK.d.ts → client-plugins-Fl9Og3yB.d.ts} +1656 -1477
  99. package/dist/client-plugins.d.mts +8 -9
  100. package/dist/client-plugins.d.ts +8 -9
  101. package/dist/client.cjs +12 -13
  102. package/dist/client.d.mts +10 -11
  103. package/dist/client.d.ts +10 -11
  104. package/dist/client.mjs +11 -12
  105. package/dist/config.d.mts +8 -9
  106. package/dist/config.d.ts +8 -9
  107. package/dist/{devtools-5D4ZDRPR.mjs → devtools-3E7ZANMZ.mjs} +7 -4
  108. package/dist/{devtools-QZJEUOJW.cjs → devtools-5AREISIA.cjs} +8 -5
  109. package/dist/docs.cjs +10 -7
  110. package/dist/docs.mjs +9 -6
  111. package/dist/{endpoint-1zA994xL.d.ts → endpoint-CA-TNX60.d.ts} +1 -1
  112. package/dist/{endpoint-DAc96i93.d.mts → endpoint-CCHFqyTE.d.mts} +1 -1
  113. package/dist/index.cjs +58 -55
  114. package/dist/index.d.mts +17 -18
  115. package/dist/index.d.ts +17 -18
  116. package/dist/index.mjs +69 -66
  117. package/dist/{integration-api-BbaiokCC.d.ts → integration-api-0y4FXJpC.d.mts} +128 -1
  118. package/dist/{integration-api-BbaiokCC.d.mts → integration-api-BPJo5oXb.d.ts} +128 -1
  119. package/dist/integrations.d.mts +8 -9
  120. package/dist/integrations.d.ts +8 -9
  121. package/dist/internal/app-markdown-runtime.cjs +9 -3
  122. package/dist/internal/app-markdown-runtime.d.mts +9 -9
  123. package/dist/internal/app-markdown-runtime.d.ts +9 -9
  124. package/dist/internal/app-markdown-runtime.mjs +8 -2
  125. package/dist/internal/build-runtime.cjs +26 -24
  126. package/dist/internal/build-runtime.d.mts +10 -11
  127. package/dist/internal/build-runtime.d.ts +10 -11
  128. package/dist/internal/build-runtime.mjs +25 -23
  129. package/dist/internal/cli-runtime.cjs +16 -12
  130. package/dist/internal/cli-runtime.mjs +15 -11
  131. package/dist/internal/client-error-overlay.cjs +4 -4
  132. package/dist/internal/client-error-overlay.mjs +1 -1
  133. package/dist/internal/client-runtime.cjs +5 -1
  134. package/dist/internal/client-runtime.d.mts +1 -0
  135. package/dist/internal/client-runtime.d.ts +1 -0
  136. package/dist/internal/client-runtime.mjs +4 -0
  137. package/dist/internal/compression-runtime.d.mts +8 -9
  138. package/dist/internal/compression-runtime.d.ts +8 -9
  139. package/dist/internal/config-runtime.cjs +8 -5
  140. package/dist/internal/config-runtime.d.mts +9 -10
  141. package/dist/internal/config-runtime.d.ts +9 -10
  142. package/dist/internal/config-runtime.mjs +7 -4
  143. package/dist/internal/product-telemetry-runtime.cjs +2 -2
  144. package/dist/internal/product-telemetry-runtime.mjs +1 -1
  145. package/dist/internal/production-runtime.cjs +20 -16
  146. package/dist/internal/production-runtime.d.mts +13 -14
  147. package/dist/internal/production-runtime.d.ts +13 -14
  148. package/dist/internal/production-runtime.mjs +20 -16
  149. package/dist/markdown.cjs +8 -2
  150. package/dist/markdown.d.mts +36 -153
  151. package/dist/markdown.d.ts +36 -153
  152. package/dist/markdown.mjs +7 -1
  153. package/dist/{metadata-C3na4CBj.d.mts → metadata-B0X-qtcQ.d.mts} +1 -1
  154. package/dist/{metadata-CzBP4Mfp.d.ts → metadata-BdDKgd7K.d.ts} +1 -1
  155. package/dist/middleware.cjs +4 -4
  156. package/dist/middleware.d.mts +9 -10
  157. package/dist/middleware.d.ts +9 -10
  158. package/dist/middleware.mjs +3 -3
  159. package/dist/navigation.cjs +5 -5
  160. package/dist/navigation.d.mts +10 -11
  161. package/dist/navigation.d.ts +10 -11
  162. package/dist/navigation.mjs +4 -4
  163. package/dist/{nitro-ZKLGOTVY.mjs → nitro-NAKCRVHX.mjs} +4 -3
  164. package/dist/{nitro-KQDU7CFE.cjs → nitro-VYDZGYFY.cjs} +4 -3
  165. package/dist/plugin.cjs +26 -21
  166. package/dist/plugin.d.mts +9 -10
  167. package/dist/plugin.d.ts +9 -10
  168. package/dist/plugin.mjs +26 -21
  169. package/dist/{production-runtime-DP94hPGe.d.mts → production-runtime-BjgFgDIg.d.mts} +1 -1
  170. package/dist/{production-runtime-CYg4wM4E.d.ts → production-runtime-Dx_qMA3t.d.ts} +1 -1
  171. package/dist/query/client.cjs +6 -6
  172. package/dist/query/client.mjs +2 -2
  173. package/dist/{render-plan-Bl6Fzg5z.d.ts → render-plan-B41EWmBb.d.ts} +1 -1
  174. package/dist/{render-plan-CKAJg0jC.d.mts → render-plan-_1TAWODt.d.mts} +1 -1
  175. package/dist/renderer-client.cjs +13 -14
  176. package/dist/renderer-client.d.mts +6 -7
  177. package/dist/renderer-client.d.ts +6 -7
  178. package/dist/renderer-client.mjs +6 -7
  179. package/dist/{request-CrBCcPZZ.d.mts → request-BhE4luLv.d.mts} +1 -1
  180. package/dist/{request-CR-Bp1Px.d.ts → request-Dbf3G0zM.d.ts} +1 -1
  181. package/dist/request.d.mts +9 -10
  182. package/dist/request.d.ts +9 -10
  183. package/dist/{route-rendering-CZH5FegB.d.ts → route-rendering-Z7PveTZE.d.ts} +1 -1
  184. package/dist/{route-rendering-C1NAHo-C.d.mts → route-rendering-zzfx_GHf.d.mts} +1 -1
  185. package/dist/{router-B57eDJ3u.d.mts → router-BatNMsa1.d.mts} +1 -1
  186. package/dist/{router-Cg_kD3Bd.d.ts → router-DtNRhQl3.d.ts} +1 -1
  187. package/dist/routes.cjs +6 -5
  188. package/dist/routes.d.mts +6 -7
  189. package/dist/routes.d.ts +6 -7
  190. package/dist/routes.mjs +5 -4
  191. package/dist/server-fn-client.d.mts +4 -4
  192. package/dist/server-fn-client.d.ts +4 -4
  193. package/dist/server-fn.cjs +6 -5
  194. package/dist/server-fn.d.mts +2 -1
  195. package/dist/server-fn.d.ts +2 -1
  196. package/dist/server-fn.mjs +5 -4
  197. package/dist/server-plugins.d.mts +8 -9
  198. package/dist/server-plugins.d.ts +8 -9
  199. package/dist/server-query-client.cjs +5 -7
  200. package/dist/server-query-client.d.mts +2 -1
  201. package/dist/server-query-client.d.ts +2 -1
  202. package/dist/server-query-client.mjs +4 -6
  203. package/dist/server-query.cjs +7 -6
  204. package/dist/server-query.d.mts +2 -1
  205. package/dist/server-query.d.ts +2 -1
  206. package/dist/server-query.mjs +6 -5
  207. package/dist/server.cjs +235 -131
  208. package/dist/server.d.mts +14 -15
  209. package/dist/server.d.ts +14 -15
  210. package/dist/server.mjs +222 -118
  211. package/dist/{spa-router-BstQUO6Q.d.ts → spa-router-BE3bwU-J.d.ts} +2 -2
  212. package/dist/{spa-router-DTdbuinx.d.mts → spa-router-DQOnHZVj.d.mts} +2 -2
  213. package/dist/testing.cjs +17 -15
  214. package/dist/testing.d.mts +7 -8
  215. package/dist/testing.d.ts +7 -8
  216. package/dist/testing.mjs +14 -12
  217. package/dist/{utils-CS3ZLnEJ.d.mts → utils-DLK1ERNl.d.mts} +1 -1
  218. package/dist/{utils-D3rdsIvM.d.ts → utils-u7ZBSWAK.d.ts} +1 -1
  219. package/dist/version.cjs +2 -2
  220. package/dist/version.mjs +1 -1
  221. package/dist/vite.cjs +22 -20
  222. package/dist/vite.d.mts +8 -9
  223. package/dist/vite.d.ts +8 -9
  224. package/dist/vite.mjs +21 -19
  225. package/package.json +1 -1
  226. package/dist/route-B0XrsrFk.d.mts +0 -128
  227. package/dist/route-DOEpbyWZ.d.ts +0 -128
  228. package/dist/{chunk-YOYF2E4U.mjs → chunk-LNZ7JZUS.mjs} +0 -0
  229. package/dist/{chunk-N4RLRSWW.cjs → chunk-SUIBNSNO.cjs} +0 -0
  230. package/dist/{chunk-TIKNUAU7.mjs → chunk-VUMAE7NC.mjs} +3 -3
  231. package/dist/{chunk-WM6HL7E7.cjs → chunk-ZHVYQL3H.cjs} +2 -2
package/dist/server.mjs CHANGED
@@ -10,15 +10,16 @@ import {
10
10
  import {
11
11
  FARM_SERVER_QUERY_SYMBOL,
12
12
  createServerQuery
13
- } from "./chunk-WD5PNSOB.mjs";
14
- import "./chunk-WD4YXVLV.mjs";
13
+ } from "./chunk-4V7GIE2U.mjs";
14
+ import "./chunk-GZYH4OER.mjs";
15
15
  import {
16
16
  loadFarmDocsEngine
17
17
  } from "./chunk-2VQKKQ6D.mjs";
18
18
  import {
19
+ isResolvedFarmConfig,
19
20
  loadConfig,
20
21
  resolveConfig
21
- } from "./chunk-YMUH2BLR.mjs";
22
+ } from "./chunk-PZPDGOU5.mjs";
22
23
  import "./chunk-XZNTNMHT.mjs";
23
24
  import {
24
25
  loadFarmInstrumentation,
@@ -45,14 +46,14 @@ import {
45
46
  loadTailwindVitePlugin,
46
47
  mergeFarmViteConfig,
47
48
  resolveFarmImageProviderForRuntime
48
- } from "./chunk-UXQXGB5A.mjs";
49
- import "./chunk-VVJCWBIE.mjs";
49
+ } from "./chunk-ZRIE4KMG.mjs";
50
+ import "./chunk-O3DTUAX2.mjs";
50
51
  import {
51
52
  readSchemaTables
52
53
  } from "./chunk-HALDNTIV.mjs";
53
54
  import "./chunk-ZMSZZXOR.mjs";
54
55
  import "./chunk-F3VB7ONA.mjs";
55
- import "./chunk-ARXCHQLX.mjs";
56
+ import "./chunk-FB3H4INL.mjs";
56
57
  import "./chunk-DAO7JGTS.mjs";
57
58
  import "./chunk-BOYNDCZL.mjs";
58
59
  import "./chunk-YQVSHTMR.mjs";
@@ -86,7 +87,7 @@ import {
86
87
  loadFarmRendererVitePlugins,
87
88
  resolveFarmRenderer
88
89
  } from "./chunk-DAATZTKJ.mjs";
89
- import "./chunk-RAI7NULA.mjs";
90
+ import "./chunk-REGFZJEJ.mjs";
90
91
  import "./chunk-G2KY33I6.mjs";
91
92
  import "./chunk-YHOCRI4H.mjs";
92
93
  import {
@@ -102,11 +103,13 @@ import {
102
103
  sanitizeServerActionError,
103
104
  validateServerActionRequest
104
105
  } from "./chunk-QCFFHV5H.mjs";
105
- import "./chunk-4OOBRCJX.mjs";
106
- import "./chunk-74RZNRY6.mjs";
107
- import "./chunk-JM5GQL4H.mjs";
106
+ import {
107
+ setEnv
108
+ } from "./chunk-4OOBRCJX.mjs";
109
+ import "./chunk-NVBS5WSZ.mjs";
110
+ import "./chunk-2DLN6HG4.mjs";
108
111
  import "./chunk-FA2W42OV.mjs";
109
- import "./chunk-OOIL3BWR.mjs";
112
+ import "./chunk-K3YEZLSY.mjs";
110
113
  import "./chunk-MVL2RAJW.mjs";
111
114
  import "./chunk-SFGWNC43.mjs";
112
115
  import "./chunk-3ATMYLLJ.mjs";
@@ -145,7 +148,7 @@ import "./chunk-SEJ5N6SL.mjs";
145
148
  import "./chunk-JLCQGPXE.mjs";
146
149
  import "./chunk-FP2INE7H.mjs";
147
150
  import "./chunk-44SYJEG3.mjs";
148
- import "./chunk-TIKNUAU7.mjs";
151
+ import "./chunk-VUMAE7NC.mjs";
149
152
  import "./chunk-NRVGEI5I.mjs";
150
153
  import "./chunk-5TISYEQF.mjs";
151
154
  import "./chunk-R3DS7A2T.mjs";
@@ -155,19 +158,38 @@ import {
155
158
  _withAfterNodeMiddleware,
156
159
  after
157
160
  } from "./chunk-IOEH4VWN.mjs";
158
- import "./chunk-QGG336NI.mjs";
159
- import "./chunk-YOYF2E4U.mjs";
161
+ import "./chunk-BXFWA23T.mjs";
162
+ import "./chunk-LNZ7JZUS.mjs";
160
163
  import "./chunk-CU625VAY.mjs";
161
164
  import "./chunk-JNGIWIY6.mjs";
162
165
  import "./chunk-FV45CKBC.mjs";
163
166
  import "./chunk-YOZYCI6Z.mjs";
164
- import "./chunk-GDUYXFIS.mjs";
165
- import "./chunk-SYGGPS4A.mjs";
167
+ import "./chunk-X7WVQMIB.mjs";
168
+ import "./chunk-4IEPYMHF.mjs";
166
169
  import "./chunk-W3B4PKAW.mjs";
167
- import "./chunk-I6XDAKWQ.mjs";
168
170
  import "./chunk-5WI2S4CO.mjs";
171
+ import "./chunk-O6XNAMBV.mjs";
172
+ import "./chunk-I6XDAKWQ.mjs";
169
173
  import "./chunk-EA5K5BKU.mjs";
170
174
  import "./chunk-2J7W2WND.mjs";
175
+ import {
176
+ FarmDataCache,
177
+ applyFarmCacheInvalidationTargets,
178
+ configureFarmCache,
179
+ createFarmCacheInvalidationStream,
180
+ createPathCacheTag,
181
+ createRouteDataCacheTag,
182
+ defineCacheKey,
183
+ getFarmDataCache,
184
+ invalidate,
185
+ invalidateRouteData,
186
+ normalizeRevalidatePath,
187
+ revalidatePath,
188
+ revalidateTag,
189
+ storageCacheAdapter,
190
+ unstable_cache,
191
+ updateTag
192
+ } from "./chunk-IV6CQY7O.mjs";
171
193
  import "./chunk-XF7Q24PF.mjs";
172
194
  import {
173
195
  createCliColors
@@ -192,49 +214,33 @@ import {
192
214
  toViteModuleId
193
215
  } from "./chunk-KI3MESHB.mjs";
194
216
  import "./chunk-QVKYGNVM.mjs";
217
+ import "./chunk-FUZEBRP3.mjs";
195
218
  import {
196
219
  sendWebResponse
197
220
  } from "./chunk-Z2RZJZIZ.mjs";
198
221
  import {
199
222
  FARM_VERSION
200
- } from "./chunk-PPIW3MH6.mjs";
223
+ } from "./chunk-UX2DD2VK.mjs";
201
224
  import "./chunk-54UPOYFS.mjs";
202
225
  import "./chunk-WNSDDRNU.mjs";
203
226
  import "./chunk-JPLUGGRV.mjs";
204
227
  import "./chunk-G4MWPDSE.mjs";
205
- import "./chunk-O7BH5O46.mjs";
206
228
  import "./chunk-EMLAPBEM.mjs";
229
+ import "./chunk-O7BH5O46.mjs";
207
230
  import "./chunk-7LTCDQRS.mjs";
208
231
  import "./chunk-IXUY2F5U.mjs";
209
- import "./chunk-CEYUWDWA.mjs";
232
+ import "./chunk-QZCT2CQ4.mjs";
210
233
  import "./chunk-SKNL7VA2.mjs";
211
234
  import "./chunk-2A3EQHXX.mjs";
212
235
  import "./chunk-JNZ4TDWM.mjs";
236
+ import "./chunk-C4NCTZLM.mjs";
213
237
  import {
214
- FarmDataCache,
215
- applyFarmCacheInvalidationTargets,
216
- configureFarmCache,
217
- createFarmCacheInvalidationStream,
218
238
  createFarmCacheKey,
219
- createPathCacheTag,
220
- createRouteDataCacheKey,
221
- createRouteDataCacheTag,
222
- defineCacheKey,
223
- getFarmDataCache,
224
- invalidate,
225
- invalidateRouteData,
226
- normalizeRevalidatePath,
227
- revalidatePath,
228
- revalidateTag,
229
- storageCacheAdapter,
230
- unstable_cache,
231
- updateTag
232
- } from "./chunk-F6SJAKFJ.mjs";
239
+ createRouteDataCacheKey
240
+ } from "./chunk-CNOQY6Z7.mjs";
233
241
  import {
234
242
  applyFarmCacheInvalidations
235
243
  } from "./chunk-4SIYUGRY.mjs";
236
- import "./chunk-C4NCTZLM.mjs";
237
- import "./chunk-FUZEBRP3.mjs";
238
244
  import {
239
245
  createHeadersPlugin,
240
246
  createLoggerPlugin,
@@ -261,11 +267,30 @@ import {
261
267
  __name
262
268
  } from "./chunk-LPEX4YW6.mjs";
263
269
 
264
- // src/server/create-server.ts
265
- import { createServer as createViteServer } from "vite";
266
-
267
270
  // src/server/dev-lifecycle.ts
271
+ import {
272
+ createServer,
273
+ resolveConfig as resolveConfig2
274
+ } from "vite";
268
275
  var VITE_CLOSE_TIMEOUT_MS = 1e4;
276
+ async function createViteDevServer(config, capture) {
277
+ const resolved = await resolveConfig2(
278
+ config,
279
+ "serve",
280
+ void 0,
281
+ void 0,
282
+ false,
283
+ void 0,
284
+ (plugins) => {
285
+ plugins.unshift({
286
+ name: "farm:dev-construction",
287
+ configureServer: { order: "pre", handler: capture }
288
+ });
289
+ }
290
+ );
291
+ return createServer(resolved);
292
+ }
293
+ __name(createViteDevServer, "createViteDevServer");
269
294
  async function drainVitePendingWork(server) {
270
295
  const environments = Object.values(server.environments ?? {});
271
296
  await Promise.allSettled(
@@ -285,6 +310,44 @@ async function drainVitePendingWork(server) {
285
310
  }
286
311
  }
287
312
  __name(drainVitePendingWork, "drainVitePendingWork");
313
+ async function closeViteDevServer(server, closeViteServer) {
314
+ const closingHttpServer = server.httpServer;
315
+ const closingWatcher = server.watcher;
316
+ const closingWebSocket = server.ws;
317
+ let timer;
318
+ const timedOut = new Promise((resolve) => {
319
+ timer = setTimeout(() => resolve("timeout"), VITE_CLOSE_TIMEOUT_MS);
320
+ timer.unref?.();
321
+ });
322
+ try {
323
+ const outcome = await Promise.race([
324
+ (async () => {
325
+ await drainVitePendingWork(server);
326
+ await closeViteServer();
327
+ return "closed";
328
+ })(),
329
+ timedOut
330
+ ]);
331
+ if (outcome === "timeout") {
332
+ logger.error(
333
+ `Vite server close did not settle within ${VITE_CLOSE_TIMEOUT_MS}ms; continuing shutdown without it (https://github.com/farming-labs/farm.js/issues/1263)`
334
+ );
335
+ await Promise.allSettled([
336
+ new Promise((resolve) => {
337
+ if (!closingHttpServer || !closingHttpServer.listening) return resolve();
338
+ closingHttpServer.close(() => resolve());
339
+ }),
340
+ Promise.resolve(closingWatcher?.close?.()).catch(() => {
341
+ }),
342
+ Promise.resolve(closingWebSocket?.close?.()).catch(() => {
343
+ })
344
+ ]);
345
+ }
346
+ } finally {
347
+ if (timer) clearTimeout(timer);
348
+ }
349
+ }
350
+ __name(closeViteDevServer, "closeViteDevServer");
288
351
  function createFarmDevLifecyclePlugin(pluginManager, instrumentation) {
289
352
  let runtimeServer;
290
353
  const pendingRestarts = /* @__PURE__ */ new Set();
@@ -294,9 +357,6 @@ function createFarmDevLifecyclePlugin(pluginManager, instrumentation) {
294
357
  shutdownPromise ?? (shutdownPromise = (async () => {
295
358
  await Promise.allSettled(pendingRestarts);
296
359
  const closeViteServer = viteClosers.get(server.environments);
297
- const closingHttpServer = server.httpServer;
298
- const closingWatcher = server.watcher;
299
- const closingWebSocket = server.ws;
300
360
  const failures = [];
301
361
  const step = /* @__PURE__ */ __name(async (label, run) => {
302
362
  try {
@@ -305,40 +365,7 @@ function createFarmDevLifecyclePlugin(pluginManager, instrumentation) {
305
365
  failures.push({ label, error });
306
366
  }
307
367
  }, "step");
308
- await step("Vite server close", async () => {
309
- let timer;
310
- const timedOut = new Promise((resolve) => {
311
- timer = setTimeout(() => resolve("timeout"), VITE_CLOSE_TIMEOUT_MS);
312
- timer.unref?.();
313
- });
314
- try {
315
- const outcome = await Promise.race([
316
- (async () => {
317
- await drainVitePendingWork(server);
318
- await closeViteServer();
319
- return "closed";
320
- })(),
321
- timedOut
322
- ]);
323
- if (outcome === "timeout") {
324
- logger.error(
325
- `Vite server close did not settle within ${VITE_CLOSE_TIMEOUT_MS}ms; continuing shutdown without it (https://github.com/farming-labs/farm.js/issues/1263)`
326
- );
327
- await Promise.allSettled([
328
- new Promise((resolve) => {
329
- if (!closingHttpServer || !closingHttpServer.listening) return resolve();
330
- closingHttpServer.close(() => resolve());
331
- }),
332
- Promise.resolve(closingWatcher?.close?.()).catch(() => {
333
- }),
334
- Promise.resolve(closingWebSocket?.close?.()).catch(() => {
335
- })
336
- ]);
337
- }
338
- } finally {
339
- if (timer) clearTimeout(timer);
340
- }
341
- });
368
+ await step("Vite server close", () => closeViteDevServer(server, closeViteServer));
342
369
  await step("Plugin runtime shutdown", () => pluginManager.closeRuntime("dev-server-closed"));
343
370
  await step("Instrumentation shutdown", () => instrumentation.shutdown());
344
371
  if (failures.length === 1) throw failures[0].error;
@@ -477,19 +504,66 @@ function withPortFlag(vite, port) {
477
504
  return port === void 0 ? vite : { ...vite, server: { ...vite?.server, port } };
478
505
  }
479
506
  __name(withPortFlag, "withPortFlag");
480
- async function createServer(config = {}, options = {}) {
507
+ function inlineEnvScope(scope) {
508
+ return Object.fromEntries(
509
+ Object.entries(scope || {}).map(([key, value]) => [
510
+ key,
511
+ typeof value === "function" || value && typeof value === "object" && "parse" in value && typeof value.parse === "function" ? value : () => value
512
+ ])
513
+ );
514
+ }
515
+ __name(inlineEnvScope, "inlineEnvScope");
516
+ async function resolveInlineConfig(config, mode) {
517
+ if (isResolvedFarmConfig(config)) {
518
+ setEnv(config.env);
519
+ return { ...config };
520
+ }
521
+ const docs = config.docs;
522
+ const resolvedDocs = docs && typeof docs === "object" && "enabled" in docs && "entry" in docs && "config" in docs ? docs : void 0;
523
+ const i18n = config.i18n;
524
+ const resolvedI18n = i18n && "enabled" in i18n ? i18n : void 0;
525
+ const auth = config.auth;
526
+ const resolvedAuth = auth && typeof auth === "object" && typeof auth.emailAndPassword === "object" && "enabled" in auth.emailAndPassword ? auth : void 0;
527
+ const resolved = await resolveConfig(
528
+ {
529
+ ...config,
530
+ ...resolvedDocs ? { docs: false } : {},
531
+ ...resolvedI18n ? { i18n: false } : {},
532
+ ...resolvedAuth ? { auth: false } : {},
533
+ ...config.layers ? { extends: [] } : {},
534
+ // FarmConfig also accepts literal runtime env values. Adapt only inline
535
+ // input; file/layer config keeps the normal parser validation contract.
536
+ env: config.env && {
537
+ server: inlineEnvScope(config.env.server),
538
+ public: inlineEnvScope(config.env.public)
539
+ }
540
+ },
541
+ mode
542
+ );
543
+ if (resolvedDocs) resolved.docs = resolvedDocs;
544
+ if (resolvedI18n) resolved.i18n = resolvedI18n;
545
+ if (resolvedAuth) resolved.auth = resolvedAuth;
546
+ if (config.layers) {
547
+ resolved.extends = config.extends || [];
548
+ resolved.layers = [...config.layers];
549
+ }
550
+ return resolved;
551
+ }
552
+ __name(resolveInlineConfig, "resolveInlineConfig");
553
+ async function createServer2(config = {}, options = {}) {
481
554
  let pluginManager = null;
482
555
  let instrumentation = null;
556
+ let server;
557
+ let pendingViteServer;
483
558
  try {
484
559
  const root = config.root || process.cwd();
485
560
  const mode = process.env.NODE_ENV === "production" ? "production" : "development";
486
561
  const userConfig = await loadConfig(root, void 0, mode);
487
- const resolvedConfig = userConfig ? await resolveConfig(userConfig, mode) : null;
488
- const instrumentationConfig = resolvedConfig || config;
489
- const instrumentationRoot = instrumentationConfig.root || root;
562
+ const resolvedConfig = userConfig ? await resolveConfig(userConfig, mode) : await resolveInlineConfig(config, mode);
563
+ const instrumentationRoot = resolvedConfig.root;
490
564
  const instrumentationFile = resolveFarmInstrumentationFile(
491
565
  instrumentationRoot,
492
- instrumentationConfig.srcDir || "src"
566
+ resolvedConfig.srcDir
493
567
  );
494
568
  const instrumentationModule = await loadFarmInstrumentation(
495
569
  instrumentationFile,
@@ -502,31 +576,27 @@ async function createServer(config = {}, options = {}) {
502
576
  });
503
577
  await instrumentation.start();
504
578
  pluginManager = new PluginManager({
505
- config: resolvedConfig || config,
579
+ config: resolvedConfig,
506
580
  isDev: mode === "development",
507
581
  isProd: mode === "production"
508
582
  });
509
- if (resolvedConfig) {
510
- const redirects = await resolvedConfig.redirects();
511
- const headers = await resolvedConfig.headers();
512
- const rewrites = await resolvedConfig.rewrites();
513
- if (redirects.length > 0) {
514
- pluginManager.addPlugin(createRedirectsPlugin(redirects, { i18n: resolvedConfig.i18n }));
515
- }
516
- if (headers.length > 0) {
517
- pluginManager.addPlugin(createHeadersPlugin(headers, { i18n: resolvedConfig.i18n }));
518
- }
519
- if (rewrites.length > 0) {
520
- pluginManager.addPlugin(createRewritesPlugin(rewrites, { i18n: resolvedConfig.i18n }));
521
- }
522
- if (resolvedConfig.compress && mode === "production") {
523
- pluginManager.addPlugin(createCompressionPlugin());
524
- }
525
- if (resolvedConfig.plugins) {
526
- pluginManager.addPlugins(resolvedConfig.plugins);
527
- }
583
+ const redirects = await resolvedConfig.redirects();
584
+ const headers = await resolvedConfig.headers();
585
+ const rewrites = await resolvedConfig.rewrites();
586
+ if (redirects.length > 0) {
587
+ pluginManager.addPlugin(createRedirectsPlugin(redirects, { i18n: resolvedConfig.i18n }));
528
588
  }
529
- const infraAnalytics = (resolvedConfig || config).analytics !== false ? createFarmInfraAnalyticsPlugin() : null;
589
+ if (headers.length > 0) {
590
+ pluginManager.addPlugin(createHeadersPlugin(headers, { i18n: resolvedConfig.i18n }));
591
+ }
592
+ if (rewrites.length > 0) {
593
+ pluginManager.addPlugin(createRewritesPlugin(rewrites, { i18n: resolvedConfig.i18n }));
594
+ }
595
+ if (resolvedConfig.compress && mode === "production") {
596
+ pluginManager.addPlugin(createCompressionPlugin());
597
+ }
598
+ pluginManager.addPlugins(resolvedConfig.plugins);
599
+ const infraAnalytics = resolvedConfig.analytics !== false ? createFarmInfraAnalyticsPlugin() : null;
530
600
  if (infraAnalytics) pluginManager.addPlugin(infraAnalytics);
531
601
  if (mode === "development") {
532
602
  const hasLogger = pluginManager.getPlugins().some((p) => p.name === "farm:logger");
@@ -535,7 +605,7 @@ async function createServer(config = {}, options = {}) {
535
605
  }
536
606
  }
537
607
  await pluginManager.runHookParallel("init");
538
- let finalConfig = resolvedConfig || config;
608
+ let finalConfig = resolvedConfig;
539
609
  finalConfig = await pluginManager.runHookSerial("config", finalConfig);
540
610
  finalConfig.renderer = resolveFarmRenderer(finalConfig.renderer);
541
611
  const projectRoot = finalConfig.root || process.cwd();
@@ -558,7 +628,7 @@ async function createServer(config = {}, options = {}) {
558
628
  } else {
559
629
  tailwindVitePlugin = await loadTailwindVitePlugin();
560
630
  }
561
- const server = await createViteServer(
631
+ server = await createViteDevServer(
562
632
  mergeFarmViteConfig(
563
633
  {
564
634
  root: projectRoot,
@@ -630,8 +700,12 @@ async function createServer(config = {}, options = {}) {
630
700
  }
631
701
  },
632
702
  withPortFlag(finalConfig.vite, options.port)
633
- )
703
+ ),
704
+ (candidate) => {
705
+ pendingViteServer = candidate;
706
+ }
634
707
  );
708
+ pendingViteServer = void 0;
635
709
  server.__farmPluginManager = pluginManager;
636
710
  server.__farmResolvedConfig = resolvedConfig;
637
711
  server.__farmInstrumentation = instrumentation;
@@ -642,19 +716,41 @@ async function createServer(config = {}, options = {}) {
642
716
  await pluginManager.runHookParallel("buildStart");
643
717
  return server;
644
718
  } catch (error) {
645
- if (pluginManager) {
646
- await pluginManager.runHookParallel("onError", {
719
+ const attempt = /* @__PURE__ */ __name(async (operation, run) => {
720
+ try {
721
+ await run();
722
+ } catch (cleanupError) {
723
+ console.error(`Failed to ${operation} after a server creation failure:`, cleanupError);
724
+ }
725
+ }, "attempt");
726
+ await attempt(
727
+ "run plugin error hooks",
728
+ () => pluginManager?.runHookParallel("onError", {
647
729
  phase: "createServer",
648
730
  error
649
- });
731
+ })
732
+ );
733
+ if (server) {
734
+ await attempt("close the dev server", server.close.bind(server));
735
+ } else {
736
+ const partialServer = pendingViteServer;
737
+ if (partialServer) {
738
+ await attempt(
739
+ "close the partially created Vite server",
740
+ () => closeViteDevServer(partialServer, partialServer.close.bind(partialServer))
741
+ );
742
+ }
743
+ await attempt(
744
+ "close the plugin runtime",
745
+ () => pluginManager?.closeRuntime("dev-server-creation-failed")
746
+ );
747
+ await attempt("shut down instrumentation", () => instrumentation?.shutdown());
650
748
  }
651
- await instrumentation?.shutdown().catch(() => {
652
- });
653
749
  logger.error(`Failed to create server: ${error}`);
654
750
  throw error;
655
751
  }
656
752
  }
657
- __name(createServer, "createServer");
753
+ __name(createServer2, "createServer");
658
754
  function noticeSchemaChangesInBackground(config) {
659
755
  if (!config) return false;
660
756
  const candidates = [
@@ -668,13 +764,21 @@ function noticeSchemaChangesInBackground(config) {
668
764
  }
669
765
  __name(noticeSchemaChangesInBackground, "noticeSchemaChangesInBackground");
670
766
  async function startDevServer(config = {}, port) {
671
- const server = await createServer(config, { port });
767
+ const server = await createServer2(config, { port });
768
+ const pluginManager = server.__farmPluginManager;
672
769
  try {
673
770
  await server.listen(port);
674
- const pluginManager = server.__farmPluginManager;
675
771
  await pluginManager?.startRuntime();
676
772
  noticeSchemaChangesInBackground(server.__farmResolvedConfig);
677
773
  } catch (error) {
774
+ try {
775
+ await pluginManager?.runHookParallel("onError", { phase: "startDevServer", error });
776
+ } catch (reportError) {
777
+ console.error(
778
+ "Failed to run plugin error hooks after a dev server start failure:",
779
+ reportError
780
+ );
781
+ }
678
782
  try {
679
783
  await server.close();
680
784
  } catch (closeError) {
@@ -712,7 +816,7 @@ export {
712
816
  createPathCacheTag,
713
817
  createRouteDataCacheKey,
714
818
  createRouteDataCacheTag,
715
- createServer,
819
+ createServer2 as createServer,
716
820
  createServerActionRequestErrorResponse,
717
821
  createServerOnlyFn,
718
822
  createServerQuery,
@@ -1,8 +1,8 @@
1
- import { M as Metadata } from './client-plugins-bPBf4haK.js';
1
+ import { M as Metadata } from './client-plugins-Fl9Og3yB.js';
2
2
  import { F as FarmClientPluginManager } from './lifecycle-DK06VuKP.js';
3
3
  import { F as FarmI18nClientSnapshot } from './types-Z0aotQ8w.js';
4
4
  import { F as FarmIslandStrategy } from './island-CfGru1MO.js';
5
- import { F as FarmRouteRenderPlan } from './render-plan-Bl6Fzg5z.js';
5
+ import { F as FarmRouteRenderPlan } from './render-plan-B41EWmBb.js';
6
6
 
7
7
  type NavigationMetadata = (Metadata & Record<string, any>) | undefined;
8
8
 
@@ -1,8 +1,8 @@
1
- import { M as Metadata } from './client-plugins-B8RPJnot.mjs';
1
+ import { M as Metadata } from './client-plugins-CgYNY7jF.mjs';
2
2
  import { F as FarmClientPluginManager } from './lifecycle-DK06VuKP.mjs';
3
3
  import { F as FarmI18nClientSnapshot } from './types-Z0aotQ8w.mjs';
4
4
  import { F as FarmIslandStrategy } from './island-CfGru1MO.mjs';
5
- import { F as FarmRouteRenderPlan } from './render-plan-CKAJg0jC.mjs';
5
+ import { F as FarmRouteRenderPlan } from './render-plan-_1TAWODt.mjs';
6
6
 
7
7
  type NavigationMetadata = (Metadata & Record<string, any>) | undefined;
8
8
 
package/dist/testing.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkDX4VKYAJcjs = require('./chunk-DX4VKYAJ.cjs');
3
+ var _chunkI26CZYPVcjs = require('./chunk-I26CZYPV.cjs');
4
4
 
5
5
 
6
6
 
@@ -14,21 +14,25 @@ var _chunkT5CERMEHcjs = require('./chunk-T5CERMEH.cjs');
14
14
 
15
15
  var _chunk6QQDAAAZcjs = require('./chunk-6QQDAAAZ.cjs');
16
16
  require('./chunk-SVRTJOUF.cjs');
17
- require('./chunk-BD2U4ZL6.cjs');
18
- require('./chunk-N4RLRSWW.cjs');
17
+ require('./chunk-EXLKRR4U.cjs');
18
+ require('./chunk-SUIBNSNO.cjs');
19
19
  require('./chunk-2CQ74SP6.cjs');
20
20
  require('./chunk-UJ2C4ICS.cjs');
21
21
  require('./chunk-IQXFRNY2.cjs');
22
22
  require('./chunk-LYLEZIG3.cjs');
23
23
 
24
24
 
25
- var _chunkYAOX43YIcjs = require('./chunk-YAOX43YI.cjs');
26
- require('./chunk-I4J452B7.cjs');
25
+ var _chunkPZNCMPJFcjs = require('./chunk-PZNCMPJF.cjs');
26
+ require('./chunk-VHJGDMCG.cjs');
27
27
  require('./chunk-WMAPPDMM.cjs');
28
- require('./chunk-WPYFSQKK.cjs');
29
28
  require('./chunk-TKJZFIML.cjs');
29
+ require('./chunk-5MKEDGLD.cjs');
30
+ require('./chunk-WPYFSQKK.cjs');
30
31
  require('./chunk-6V4TDWEC.cjs');
31
32
  require('./chunk-SOR334EB.cjs');
33
+
34
+
35
+ var _chunk2SDO73HKcjs = require('./chunk-2SDO73HK.cjs');
32
36
  require('./chunk-EM6SBQKM.cjs');
33
37
  require('./chunk-BMWDEBXO.cjs');
34
38
  require('./chunk-HBTUGXHS.cjs');
@@ -36,18 +40,16 @@ require('./chunk-5QIKR7RR.cjs');
36
40
 
37
41
 
38
42
  var _chunkQNPEUFHQcjs = require('./chunk-QNPEUFHQ.cjs');
43
+ require('./chunk-E3UK5IIB.cjs');
44
+ require('./chunk-ARJWXNQL.cjs');
39
45
 
40
46
 
41
47
  var _chunkG7HXGLECcjs = require('./chunk-G7HXGLEC.cjs');
42
- require('./chunk-ARJWXNQL.cjs');
43
48
  require('./chunk-S3A45T7F.cjs');
44
49
  require('./chunk-75BRBIFP.cjs');
45
-
46
-
47
- var _chunkH6G5INWMcjs = require('./chunk-H6G5INWM.cjs');
48
- require('./chunk-ZEG3OPIB.cjs');
49
50
  require('./chunk-LIUGYUX3.cjs');
50
- require('./chunk-E3UK5IIB.cjs');
51
+ require('./chunk-NYJMY3JA.cjs');
52
+ require('./chunk-ZEG3OPIB.cjs');
51
53
  require('./chunk-5ZSWG4UX.cjs');
52
54
  require('./chunk-US2QVW3E.cjs');
53
55
  require('./chunk-U4KT7QP3.cjs');
@@ -124,7 +126,7 @@ function createFarmTestHarness(options = {}) {
124
126
  },
125
127
  routeContext
126
128
  );
127
- const routeModule = _chunkDX4VKYAJcjs.createRouteModuleFromProgrammaticPage.call(void 0, route);
129
+ const routeModule = _chunkI26CZYPVcjs.createRouteModuleFromProgrammaticPage.call(void 0, route);
128
130
  const resolveProps = routeModule.__farmResolveRouteProps;
129
131
  const resolvedProps = resolveProps ? await resolveProps(rawProps) : { ...rawProps, search, searchParams: Promise.resolve(search) };
130
132
  const canonicalPath = readCanonicalPath(resolvedProps);
@@ -178,7 +180,7 @@ function createFarmTestHarness(options = {}) {
178
180
  return await _chunkT5CERMEHcjs.runWithServerActionRequest.call(void 0, actionRequest, () => serverFn(input));
179
181
  },
180
182
  clearCache() {
181
- _chunkH6G5INWMcjs.getFarmDataCache.call(void 0, ).clear();
183
+ _chunk2SDO73HKcjs.getFarmDataCache.call(void 0, ).clear();
182
184
  }
183
185
  };
184
186
  }
@@ -325,7 +327,7 @@ function omitEndpointControlOptions(options) {
325
327
  _chunkS3JO3N4Hcjs.__name.call(void 0, omitEndpointControlOptions, "omitEndpointControlOptions");
326
328
  async function invokeTestEndpoint(endpoint, request, params = {}, throwOnError = false) {
327
329
  try {
328
- return await _chunkYAOX43YIcjs.invokeAPIRouteEndpoint.call(void 0, endpoint, request, params);
330
+ return await _chunkPZNCMPJFcjs.invokeAPIRouteEndpoint.call(void 0, endpoint, request, params);
329
331
  } catch (error) {
330
332
  if (throwOnError) throw error;
331
333
  return jsonErrorResponse(error instanceof Error ? error.message : "Internal Server Error", 500);