@farm.js/core 0.1.67 → 0.1.68

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 (281) hide show
  1. package/dist/{agent-mcp.d-BFu9xHAi.d.ts → agent-mcp.d-Uh5xr7aX.d.ts} +1 -1
  2. package/dist/{agent-mcp.d-DWyWkTSy.d.mts → agent-mcp.d-wkVPK1GA.d.mts} +1 -1
  3. package/dist/agent-runtime.d.mts +5 -3
  4. package/dist/agent-runtime.d.ts +5 -3
  5. package/dist/{analyzer-TTIIXXMQ.mjs → analyzer-CQDU7E3Y.mjs} +2 -2
  6. package/dist/analyzer-PPAHM4AW.cjs +16 -0
  7. package/dist/api/node.d.mts +7 -5
  8. package/dist/api/node.d.ts +7 -5
  9. package/dist/api/route-manager.d.mts +7 -5
  10. package/dist/api/route-manager.d.ts +7 -5
  11. package/dist/api/runtime.d.mts +6 -4
  12. package/dist/api/runtime.d.ts +6 -4
  13. package/dist/api.d.mts +8 -6
  14. package/dist/api.d.ts +8 -6
  15. package/dist/{app-manifest.d-CwfhGrVR.d.ts → app-manifest.d-BT5i2F-o.d.ts} +1 -1
  16. package/dist/{app-manifest.d-CRmjN5j9.d.mts → app-manifest.d-Dd4q5CFx.d.mts} +1 -1
  17. package/dist/app-markdown.cjs +3 -3
  18. package/dist/app-markdown.d.mts +10 -10
  19. package/dist/app-markdown.d.ts +10 -10
  20. package/dist/app-markdown.mjs +2 -2
  21. package/dist/{app.d-BX9LVTiP.d.ts → app.d-BVOpL_f2.d.ts} +6 -6
  22. package/dist/{app.d-uBBUxwyV.d.mts → app.d-BhiDXex_.d.mts} +6 -6
  23. package/dist/{chunk-23PVOIPT.cjs → chunk-225APHKC.cjs} +3 -3
  24. package/dist/{chunk-4JX3M4C6.cjs → chunk-23VJEGKC.cjs} +2 -1
  25. package/dist/{chunk-Q37INCXG.cjs → chunk-3EEINK7G.cjs} +11 -2
  26. package/dist/{chunk-BRWIVOV4.cjs → chunk-3GNHJ3RN.cjs} +10 -8
  27. package/dist/{chunk-QJVW76JG.mjs → chunk-3Y52TWYU.mjs} +2 -2
  28. package/dist/{chunk-OB3IFUK6.cjs → chunk-437QZIC2.cjs} +4 -4
  29. package/dist/{chunk-WGHY3OL5.mjs → chunk-4UAQB5LB.mjs} +232 -49
  30. package/dist/{chunk-JWSI5WO4.mjs → chunk-4ZXKYCYK.mjs} +1 -1
  31. package/dist/{chunk-N35YPV4N.mjs → chunk-57QAQU4F.mjs} +9 -7
  32. package/dist/{chunk-AQDLVHNF.mjs → chunk-5FBZJJGA.mjs} +17 -0
  33. package/dist/{chunk-PL6RTBDE.cjs → chunk-5JKDFRTK.cjs} +2 -2
  34. package/dist/{chunk-CO3YMZFD.mjs → chunk-6OFOIMNS.mjs} +1 -1
  35. package/dist/{chunk-556H7JCE.cjs → chunk-7LK5CTUM.cjs} +14 -14
  36. package/dist/{chunk-E6CD45JK.mjs → chunk-A3T445WK.mjs} +19 -5
  37. package/dist/{chunk-DQJ2CIH7.cjs → chunk-ASYOWPSR.cjs} +2 -1
  38. package/dist/{chunk-QGJ4FI2G.mjs → chunk-C6HGUTXB.mjs} +113 -29
  39. package/dist/{chunk-IRA2CZAY.mjs → chunk-CRVSYDHV.mjs} +2 -2
  40. package/dist/{chunk-XNZWMXCF.mjs → chunk-DIXFKAPM.mjs} +183 -76
  41. package/dist/{chunk-QGQP6QKO.cjs → chunk-DWLNLU55.cjs} +2 -2
  42. package/dist/{chunk-52Y3C3HG.mjs → chunk-E7VF3LQ5.mjs} +3 -2
  43. package/dist/{chunk-N5DQMOAG.cjs → chunk-F36LS2C7.cjs} +273 -90
  44. package/dist/{chunk-H37MDCPR.mjs → chunk-F6CMGWAL.mjs} +1 -1
  45. package/dist/{chunk-HNVAZGQD.cjs → chunk-FJMC24KG.cjs} +2 -2
  46. package/dist/{chunk-KCY52OUQ.cjs → chunk-FSODPZRT.cjs} +1 -1
  47. package/dist/{chunk-PPX7UOFY.cjs → chunk-FVYBEMOD.cjs} +55 -38
  48. package/dist/{chunk-6YBYX4K4.mjs → chunk-G7NBPP7H.mjs} +1 -1
  49. package/dist/{chunk-HFHJJXSV.mjs → chunk-GFPS7MNE.mjs} +1 -1
  50. package/dist/{chunk-3T5TLFCQ.mjs → chunk-HEJM46HQ.mjs} +11 -2
  51. package/dist/chunk-HHLEYA4B.cjs +17 -0
  52. package/dist/{chunk-F43OG25P.cjs → chunk-I7J5RLGO.cjs} +15 -1
  53. package/dist/chunk-ICFPTHXM.mjs +97 -0
  54. package/dist/{chunk-6V5YWI4W.cjs → chunk-IGDYL2IA.cjs} +2 -2
  55. package/dist/{chunk-TEG6HJVF.mjs → chunk-JL2YW5KX.mjs} +1 -0
  56. package/dist/{chunk-JVM3DKZE.mjs → chunk-KDO6T6OB.mjs} +1 -1
  57. package/dist/{chunk-QITSS4TD.cjs → chunk-KWCZKJYU.cjs} +352 -245
  58. package/dist/{chunk-DCXSIEFE.cjs → chunk-LDEXTX4I.cjs} +51 -37
  59. package/dist/{chunk-3T7ALZJF.cjs → chunk-LR4KP3I7.cjs} +2 -2
  60. package/dist/{chunk-VFXE6NWR.mjs → chunk-MGKWYPE3.mjs} +2 -1
  61. package/dist/{chunk-5TA63JD3.mjs → chunk-MGZVDX4R.mjs} +1 -1
  62. package/dist/{chunk-6SQZXRJ2.cjs → chunk-MMDKYJ5V.cjs} +7 -7
  63. package/dist/{chunk-HP2DQGQH.mjs → chunk-MNJDNTGO.mjs} +1 -1
  64. package/dist/{chunk-5Y2P454O.cjs → chunk-MTBDJ326.cjs} +6 -5
  65. package/dist/{chunk-XUES6OET.mjs → chunk-MV7NWU23.mjs} +1 -1
  66. package/dist/{chunk-4DRINDGN.cjs → chunk-MZ4CRSY7.cjs} +254 -125
  67. package/dist/{chunk-4IHMHFQB.cjs → chunk-NG2EZ6QS.cjs} +28 -1
  68. package/dist/{chunk-WDD5CTZW.mjs → chunk-NT4W4H52.mjs} +6 -6
  69. package/dist/{chunk-F7JKVHU2.mjs → chunk-NVOMQLI2.mjs} +15 -1
  70. package/dist/{chunk-22IWL4YD.cjs → chunk-OCNV4CI2.cjs} +21 -2
  71. package/dist/{chunk-72KCTHLV.cjs → chunk-PRL7FXG4.cjs} +113 -29
  72. package/dist/{chunk-YVTS3S3F.cjs → chunk-QOGIZKSO.cjs} +3 -3
  73. package/dist/{chunk-DB2HSHQA.cjs → chunk-QSUYB3RH.cjs} +14 -14
  74. package/dist/chunk-QYNZ3CTI.mjs +17 -0
  75. package/dist/{chunk-724MGMIL.mjs → chunk-R2ZHU37O.mjs} +19 -0
  76. package/dist/{chunk-YQYTQJZN.mjs → chunk-RLH5AH2M.mjs} +1 -1
  77. package/dist/{chunk-HM7AGSKU.cjs → chunk-SQ6IWJ3H.cjs} +1 -1
  78. package/dist/{chunk-V5MQMQ2P.mjs → chunk-T5XFZQCL.mjs} +1 -1
  79. package/dist/{chunk-Q5UX55YA.cjs → chunk-TNK2TVRS.cjs} +831 -470
  80. package/dist/{chunk-J7JHVCWA.cjs → chunk-UKZ6AWKZ.cjs} +2 -1
  81. package/dist/{chunk-V5RTHYJB.cjs → chunk-URN7VFO7.cjs} +91 -22
  82. package/dist/{chunk-HRPTMX5C.mjs → chunk-VFNAK6A5.mjs} +2 -2
  83. package/dist/{chunk-VK54PDQ6.mjs → chunk-VRGY3X2I.mjs} +86 -17
  84. package/dist/chunk-W44X6IC2.cjs +97 -0
  85. package/dist/{chunk-GTV2ABO7.mjs → chunk-WPB67LE5.mjs} +162 -33
  86. package/dist/{chunk-UHE5JUKB.mjs → chunk-XCAQTCGK.mjs} +1 -1
  87. package/dist/{chunk-DGOFR7D5.cjs → chunk-Y6KHPJDB.cjs} +2 -2
  88. package/dist/{chunk-LPIZMU7D.cjs → chunk-YTNBCXCW.cjs} +4 -4
  89. package/dist/{chunk-KWFNUODD.mjs → chunk-YVPX5PI5.mjs} +1 -0
  90. package/dist/{chunk-6R53ZWX2.cjs → chunk-Z3PW3DIR.cjs} +3 -3
  91. package/dist/{chunk-UHNSY2PQ.mjs → chunk-Z6SOXHAD.mjs} +772 -411
  92. package/dist/{chunk-5FE5YT2N.mjs → chunk-ZZGQD3LL.mjs} +28 -1
  93. package/dist/{client-component.d-CDRvRmbU.d.mts → client-component.d-BvQOxSqh.d.mts} +2 -2
  94. package/dist/{client-component.d-DWRKyAp5.d.ts → client-component.d-DNVSLEPi.d.ts} +2 -2
  95. package/dist/{client-plugins.d-BNILjfX3.d.mts → client-plugins.d-CE1lVK2R.d.mts} +23 -234
  96. package/dist/{client-plugins.d-CrKZiNSN.d.ts → client-plugins.d-CNDqcAuf.d.ts} +23 -234
  97. package/dist/client-plugins.d.mts +5 -3
  98. package/dist/client-plugins.d.ts +5 -3
  99. package/dist/client.cjs +6 -6
  100. package/dist/client.d.mts +10 -8
  101. package/dist/client.d.ts +10 -8
  102. package/dist/client.mjs +5 -5
  103. package/dist/config.d.mts +5 -3
  104. package/dist/config.d.ts +5 -3
  105. package/dist/deployment.cjs +4 -2
  106. package/dist/deployment.d.mts +15 -1
  107. package/dist/deployment.d.ts +15 -1
  108. package/dist/deployment.mjs +3 -1
  109. package/dist/desktop.d.mts +6 -4
  110. package/dist/desktop.d.ts +6 -4
  111. package/dist/{devtools-UFQYT3VA.mjs → devtools-2A2GPC7B.mjs} +6 -6
  112. package/dist/{devtools-RZVT4JVN.cjs → devtools-R27T3BRY.cjs} +7 -7
  113. package/dist/docs.cjs +9 -9
  114. package/dist/docs.d.mts +6 -4
  115. package/dist/docs.d.ts +6 -4
  116. package/dist/docs.mjs +8 -8
  117. package/dist/environment/vite.cjs +5 -5
  118. package/dist/environment/vite.d.mts +1 -1
  119. package/dist/environment/vite.d.ts +1 -1
  120. package/dist/environment/vite.mjs +4 -4
  121. package/dist/{generate-route-types.d-BL2pq6xC.d.ts → generate-route-types.d-B76M5R11.d.ts} +1 -1
  122. package/dist/{generate-route-types.d-BoVDU8qX.d.mts → generate-route-types.d-CaGMIaNI.d.mts} +1 -1
  123. package/dist/index.cjs +41 -36
  124. package/dist/{index.d-Bdm6866n.d.mts → index.d-Bt3kl19W.d.mts} +1 -1
  125. package/dist/{index.d-Dey5T14f.d.ts → index.d-Cx_-DaKV.d.ts} +1 -1
  126. package/dist/index.d.mts +25 -22
  127. package/dist/index.d.ts +25 -22
  128. package/dist/index.mjs +43 -38
  129. package/dist/instrumentation.cjs +3 -3
  130. package/dist/instrumentation.mjs +2 -2
  131. package/dist/integrations/orm.d.mts +5 -3
  132. package/dist/integrations/orm.d.ts +5 -3
  133. package/dist/integrations.d.mts +5 -3
  134. package/dist/integrations.d.ts +5 -3
  135. package/dist/internal/app-markdown-runtime.cjs +2 -2
  136. package/dist/internal/app-markdown-runtime.d.mts +12 -5
  137. package/dist/internal/app-markdown-runtime.d.ts +12 -5
  138. package/dist/internal/app-markdown-runtime.mjs +1 -1
  139. package/dist/internal/build-runtime.cjs +33 -30
  140. package/dist/internal/build-runtime.d.mts +7 -5
  141. package/dist/internal/build-runtime.d.ts +7 -5
  142. package/dist/internal/build-runtime.mjs +32 -29
  143. package/dist/internal/cli-runtime.cjs +10 -10
  144. package/dist/internal/cli-runtime.mjs +9 -9
  145. package/dist/internal/client-error-overlay.cjs +4 -4
  146. package/dist/internal/client-error-overlay.mjs +1 -1
  147. package/dist/internal/client-runtime.cjs +31 -36
  148. package/dist/internal/client-runtime.d.mts +8 -6
  149. package/dist/internal/client-runtime.d.ts +8 -6
  150. package/dist/internal/client-runtime.mjs +22 -27
  151. package/dist/internal/compression-runtime.d.mts +5 -3
  152. package/dist/internal/compression-runtime.d.ts +5 -3
  153. package/dist/internal/config-runtime.cjs +8 -8
  154. package/dist/internal/config-runtime.d.mts +9 -7
  155. package/dist/internal/config-runtime.d.ts +9 -7
  156. package/dist/internal/config-runtime.mjs +7 -7
  157. package/dist/internal/form-actions.cjs +7 -2
  158. package/dist/internal/form-actions.d.mts +10 -3
  159. package/dist/internal/form-actions.d.ts +10 -3
  160. package/dist/internal/form-actions.mjs +8 -3
  161. package/dist/internal/infra-analytics-runtime.cjs +6 -6
  162. package/dist/internal/infra-analytics-runtime.mjs +4 -4
  163. package/dist/internal/islands-boot.cjs +6 -1
  164. package/dist/internal/islands-boot.mjs +6 -1
  165. package/dist/internal/native-server-fns.cjs +4 -4
  166. package/dist/internal/native-server-fns.mjs +3 -3
  167. package/dist/internal/product-telemetry-runtime.cjs +3 -3
  168. package/dist/internal/product-telemetry-runtime.mjs +2 -2
  169. package/dist/internal/production-node-env.cjs +4 -2
  170. package/dist/internal/production-node-env.d.mts +22 -1
  171. package/dist/internal/production-node-env.d.ts +22 -1
  172. package/dist/internal/production-node-env.mjs +3 -1
  173. package/dist/internal/production-runtime.cjs +13 -9
  174. package/dist/internal/production-runtime.d.mts +21 -16
  175. package/dist/internal/production-runtime.d.ts +21 -16
  176. package/dist/internal/production-runtime.mjs +13 -9
  177. package/dist/internal/server-tree.cjs +2 -2
  178. package/dist/internal/server-tree.d.mts +0 -5
  179. package/dist/internal/server-tree.d.ts +0 -5
  180. package/dist/internal/server-tree.mjs +1 -1
  181. package/dist/internal/vercel-edge-middleware.cjs +87 -0
  182. package/dist/internal/vercel-edge-middleware.d.mts +39 -0
  183. package/dist/internal/vercel-edge-middleware.d.ts +39 -0
  184. package/dist/internal/vercel-edge-middleware.mjs +87 -0
  185. package/dist/layers-7P4RLKVX.cjs +20 -0
  186. package/dist/{layers-T55SA47E.mjs → layers-XQ7VFMWO.mjs} +4 -2
  187. package/dist/{layers.d-CcS42OGR.d.mts → layers.d-CH0bC4QL.d.mts} +2 -1
  188. package/dist/{layers.d-CcS42OGR.d.ts → layers.d-CH0bC4QL.d.ts} +2 -1
  189. package/dist/markdown.d.mts +5 -3
  190. package/dist/markdown.d.ts +5 -3
  191. package/dist/middleware.cjs +4 -4
  192. package/dist/middleware.d.mts +8 -5
  193. package/dist/middleware.d.ts +8 -5
  194. package/dist/middleware.mjs +6 -6
  195. package/dist/mobile.d.mts +4 -4
  196. package/dist/mobile.d.ts +4 -4
  197. package/dist/{mount.d-BP0nLYQO.d.mts → mount.d-Bki4pOaJ.d.mts} +1 -1
  198. package/dist/{mount.d-CkiPky_F.d.ts → mount.d-DjR5aerM.d.ts} +1 -1
  199. package/dist/{navigation-delegate.d-DchcGzAQ.d.ts → navigation-delegate.d-CtghaSP3.d.ts} +1 -1
  200. package/dist/{navigation-delegate.d-CdBP-hkZ.d.mts → navigation-delegate.d-VDkziXTK.d.mts} +1 -1
  201. package/dist/navigation.cjs +5 -5
  202. package/dist/navigation.d.mts +8 -6
  203. package/dist/navigation.d.ts +8 -6
  204. package/dist/navigation.mjs +4 -4
  205. package/dist/{nitro-55YOZWRA.mjs → nitro-NSTXT7LB.mjs} +2 -2
  206. package/dist/{nitro-EEX2J3KB.cjs → nitro-Y3LGITW3.cjs} +4 -4
  207. package/dist/node-module-bundle-LIZ2KMVW.cjs +13 -0
  208. package/dist/node-module-bundle-VR6NV6AI.mjs +13 -0
  209. package/dist/plugin.cjs +20 -20
  210. package/dist/plugin.d.mts +7 -5
  211. package/dist/plugin.d.ts +7 -5
  212. package/dist/plugin.mjs +19 -19
  213. package/dist/{production-runtime.d-Dou_Htas.d.ts → production-runtime.d-BMyyLGBB.d.ts} +3 -57
  214. package/dist/{production-runtime.d-VwsBzIee.d.mts → production-runtime.d-DMZY3OgV.d.mts} +3 -57
  215. package/dist/query/client.cjs +6 -6
  216. package/dist/query/client.mjs +2 -2
  217. package/dist/{render-plan.d-LKymStDJ.d.mts → render-plan.d-BSwV8PE4.d.mts} +1 -1
  218. package/dist/{render-plan.d-D8UakAIk.d.ts → render-plan.d-i9sI4tc9.d.ts} +1 -1
  219. package/dist/renderer/react/server.cjs +2 -2
  220. package/dist/renderer/react/server.mjs +1 -1
  221. package/dist/renderer-client.cjs +5 -5
  222. package/dist/renderer-client.d.mts +8 -6
  223. package/dist/renderer-client.d.ts +8 -6
  224. package/dist/renderer-client.mjs +2 -2
  225. package/dist/renderer.d.mts +5 -0
  226. package/dist/renderer.d.ts +5 -0
  227. package/dist/{request.d-KG-4d2eG.d.mts → request.d-C24FNQ_7.d.mts} +1 -1
  228. package/dist/{request.d-B928QjWy.d.ts → request.d-Dgln8tuI.d.ts} +1 -1
  229. package/dist/request.d.mts +6 -4
  230. package/dist/request.d.ts +6 -4
  231. package/dist/{route-rendering.d-DoEe_w9t.d.ts → route-rendering.d-CUylZKJA.d.ts} +1 -1
  232. package/dist/{route-rendering.d-NIHQeb4m.d.mts → route-rendering.d-Ds0BfwQi.d.mts} +1 -1
  233. package/dist/{router.d-DYnRHQwz.d.ts → router.d-B56rMOFm.d.ts} +1 -1
  234. package/dist/{router.d-B8PkJSGp.d.mts → router.d-CFPcbqzc.d.mts} +1 -1
  235. package/dist/{routes.d-uUBZyWoK.d.ts → routes.d-9GFFNioh.d.ts} +1 -1
  236. package/dist/{routes.d-DgZ_jgGG.d.mts → routes.d-CrEy0lJS.d.mts} +1 -1
  237. package/dist/routes.d.mts +5 -3
  238. package/dist/routes.d.ts +5 -3
  239. package/dist/{rsc-pipeline-7K5H2RPH.cjs → rsc-pipeline-3T7V6OUT.cjs} +10 -9
  240. package/dist/{rsc-pipeline-4OJ5ZQNZ.mjs → rsc-pipeline-GA4AQWZI.mjs} +9 -8
  241. package/dist/{runtime-X52Q7JFR.cjs → runtime-REUTNTI5.cjs} +20 -20
  242. package/dist/{runtime-U7O3HZOZ.mjs → runtime-ZYCKKY7L.mjs} +12 -12
  243. package/dist/{runtime.d-BxQIzwfy.d.mts → runtime.d-DLRO-ExG.d.mts} +1 -1
  244. package/dist/{runtime.d-DP7mEkEF.d.ts → runtime.d-H7k9hOQE.d.ts} +1 -1
  245. package/dist/server-http.d-rAe7lAQc.d.mts +70 -0
  246. package/dist/server-http.d-rAe7lAQc.d.ts +70 -0
  247. package/dist/server-plugins.d.mts +6 -4
  248. package/dist/server-plugins.d.ts +6 -4
  249. package/dist/server.cjs +46 -44
  250. package/dist/server.d-C5FFrZAo.d.ts +57 -0
  251. package/dist/server.d-DgC8xew5.d.mts +57 -0
  252. package/dist/server.d.mts +13 -11
  253. package/dist/server.d.ts +13 -11
  254. package/dist/server.mjs +28 -26
  255. package/dist/{spa-router.d-DsFDHTsv.d.ts → spa-router.d-Dr7oanhl.d.ts} +2 -2
  256. package/dist/{spa-router.d-BgHPVMhz.d.mts → spa-router.d-g4CzhEH1.d.mts} +2 -2
  257. package/dist/testing.d.mts +5 -3
  258. package/dist/testing.d.ts +5 -3
  259. package/dist/types.d-xCIhyjOq.d.mts +233 -0
  260. package/dist/types.d-xCIhyjOq.d.ts +233 -0
  261. package/dist/{utils.d-zxAVcf_V.d.ts → utils.d-BxxyDEb8.d.ts} +1 -1
  262. package/dist/{utils.d-BKyKDBR1.d.mts → utils.d-HIla3pD_.d.mts} +1 -1
  263. package/dist/version.cjs +2 -2
  264. package/dist/version.mjs +1 -1
  265. package/dist/vite.cjs +20 -20
  266. package/dist/vite.d.mts +10 -8
  267. package/dist/vite.d.ts +10 -8
  268. package/dist/vite.mjs +19 -19
  269. package/dist/workflows.cjs +2 -2
  270. package/dist/workflows.d.mts +121 -1
  271. package/dist/workflows.d.ts +121 -1
  272. package/dist/workflows.mjs +1 -1
  273. package/package.json +7 -2
  274. package/dist/analyzer-KVZGVY5Q.cjs +0 -16
  275. package/dist/chunk-CLFEQGET.cjs +0 -60
  276. package/dist/chunk-MK5E44WP.mjs +0 -60
  277. package/dist/layers-DMRXRL7F.cjs +0 -18
  278. package/dist/node-module-bundle-7JHPPF6B.mjs +0 -11
  279. package/dist/node-module-bundle-YJGYBOGK.cjs +0 -11
  280. package/dist/workflows.d-CRMzQZ3k.d.mts +0 -188
  281. package/dist/workflows.d-CRMzQZ3k.d.ts +0 -188
package/dist/server.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-FN5UEC7I.mjs";
4
4
  import {
5
5
  createFarmInfraAnalyticsPlugin
6
- } from "./chunk-JVM3DKZE.mjs";
6
+ } from "./chunk-KDO6T6OB.mjs";
7
7
  import {
8
8
  FarmEnvironmentError,
9
9
  createClientOnlyFn,
@@ -24,12 +24,12 @@ import {
24
24
  resolveConfig,
25
25
  resolveFarmMCPConfig,
26
26
  resolveFarmMCPPlugin
27
- } from "./chunk-WDD5CTZW.mjs";
27
+ } from "./chunk-NT4W4H52.mjs";
28
28
  import "./chunk-VISQDC6W.mjs";
29
29
  import {
30
30
  loadFarmInstrumentation,
31
31
  resolveFarmInstrumentationFile
32
- } from "./chunk-N35YPV4N.mjs";
32
+ } from "./chunk-57QAQU4F.mjs";
33
33
  import {
34
34
  createFarmInstrumentationLifecycle
35
35
  } from "./chunk-WNDAISB7.mjs";
@@ -39,7 +39,7 @@ import {
39
39
  farmI18nClientBridgePlugin,
40
40
  farmPlugin,
41
41
  farmServerOnlyEntriesPlugin
42
- } from "./chunk-XNZWMXCF.mjs";
42
+ } from "./chunk-DIXFKAPM.mjs";
43
43
  import {
44
44
  createFarmReactRefreshPlugins,
45
45
  farmDesktopDevGuardPlugin
@@ -55,7 +55,7 @@ import {
55
55
  createFarmThemeCssPlugin,
56
56
  mergeFarmViteConfig,
57
57
  resolveFarmImageProviderForRuntime
58
- } from "./chunk-WGHY3OL5.mjs";
58
+ } from "./chunk-4UAQB5LB.mjs";
59
59
  import {
60
60
  loadTailwindVitePlugin
61
61
  } from "./chunk-DXZ57EPE.mjs";
@@ -63,27 +63,27 @@ import {
63
63
  FarmRuntimeShutdownError,
64
64
  PluginManager
65
65
  } from "./chunk-KSZK34HU.mjs";
66
- import "./chunk-6YBYX4K4.mjs";
67
- import "./chunk-ZJGFAW5U.mjs";
68
- import "./chunk-E3HDJCWF.mjs";
69
- import "./chunk-7PJARAQQ.mjs";
70
- import "./chunk-UTUS6JUH.mjs";
71
- import "./chunk-CROAFCMW.mjs";
72
66
  import {
73
67
  resolveFarmPlatform,
74
68
  validateFarmDesktopConfig
75
69
  } from "./chunk-SMUW7UST.mjs";
76
70
  import "./chunk-UB7RVEMX.mjs";
71
+ import "./chunk-G7NBPP7H.mjs";
72
+ import "./chunk-ZJGFAW5U.mjs";
73
+ import "./chunk-E3HDJCWF.mjs";
74
+ import "./chunk-7PJARAQQ.mjs";
75
+ import "./chunk-UTUS6JUH.mjs";
76
+ import "./chunk-CROAFCMW.mjs";
77
77
  import "./chunk-GNZIAJGB.mjs";
78
78
  import "./chunk-ZPKJPM7K.mjs";
79
79
  import "./chunk-LLZSYFOM.mjs";
80
80
  import "./chunk-UUMKLGUU.mjs";
81
81
  import "./chunk-23LVFSID.mjs";
82
- import "./chunk-HRPTMX5C.mjs";
82
+ import "./chunk-VFNAK6A5.mjs";
83
83
  import "./chunk-K6SXMVXO.mjs";
84
- import "./chunk-V5MQMQ2P.mjs";
84
+ import "./chunk-T5XFZQCL.mjs";
85
85
  import "./chunk-L4RTTTVE.mjs";
86
- import "./chunk-MK5E44WP.mjs";
86
+ import "./chunk-ICFPTHXM.mjs";
87
87
  import "./chunk-X3EFRVXY.mjs";
88
88
  import "./chunk-A4PWGL46.mjs";
89
89
  import "./chunk-MNIR7I7B.mjs";
@@ -93,7 +93,7 @@ import "./chunk-YFTGIHNC.mjs";
93
93
  import "./chunk-HZOMT5DY.mjs";
94
94
  import {
95
95
  farmEnvironmentFunctionsPlugin
96
- } from "./chunk-GTV2ABO7.mjs";
96
+ } from "./chunk-WPB67LE5.mjs";
97
97
  import "./chunk-S32PDOLO.mjs";
98
98
  import {
99
99
  getTheme,
@@ -102,7 +102,7 @@ import {
102
102
  import "./chunk-EJCVG25Z.mjs";
103
103
  import "./chunk-NRNAHZ57.mjs";
104
104
  import "./chunk-TPA2PV5J.mjs";
105
- import "./chunk-724MGMIL.mjs";
105
+ import "./chunk-R2ZHU37O.mjs";
106
106
  import "./chunk-XR2ZIBQK.mjs";
107
107
  import "./chunk-CU5SYTJG.mjs";
108
108
  import "./chunk-OGVTUGMU.mjs";
@@ -114,12 +114,13 @@ import {
114
114
  } from "./chunk-4QENVMG7.mjs";
115
115
  import {
116
116
  createFarmConfigResolutionPlugin,
117
+ findFarmConfigFile,
117
118
  getFarmAppDirectories,
118
119
  getFarmLayerAliases,
119
120
  getFarmSourceRoots,
120
121
  loadFarmConfigFile,
121
122
  resolveFarmLayers
122
- } from "./chunk-52Y3C3HG.mjs";
123
+ } from "./chunk-E7VF3LQ5.mjs";
123
124
  import {
124
125
  isReactRenderer,
125
126
  loadFarmRendererVitePlugins,
@@ -143,13 +144,13 @@ import {
143
144
  import {
144
145
  setEnv
145
146
  } from "./chunk-N33DLJBC.mjs";
146
- import "./chunk-XUES6OET.mjs";
147
- import "./chunk-3T5TLFCQ.mjs";
147
+ import "./chunk-MV7NWU23.mjs";
148
+ import "./chunk-HEJM46HQ.mjs";
148
149
  import "./chunk-BRYPZIMB.mjs";
149
150
  import "./chunk-UIJOLBUL.mjs";
150
151
  import "./chunk-IFR74W6S.mjs";
151
- import "./chunk-VFXE6NWR.mjs";
152
- import "./chunk-5TA63JD3.mjs";
152
+ import "./chunk-MGKWYPE3.mjs";
153
+ import "./chunk-MGZVDX4R.mjs";
153
154
  import "./chunk-WXFY5JIY.mjs";
154
155
  import "./chunk-YP7YO3S3.mjs";
155
156
  import "./chunk-YWPNIYUP.mjs";
@@ -196,8 +197,8 @@ import "./chunk-BMQAPZXD.mjs";
196
197
  import "./chunk-WMLSZAKN.mjs";
197
198
  import "./chunk-MMK4MZUN.mjs";
198
199
  import "./chunk-K3RU5MOR.mjs";
199
- import "./chunk-EYPSKXO4.mjs";
200
200
  import "./chunk-6ZFRWRHO.mjs";
201
+ import "./chunk-EYPSKXO4.mjs";
201
202
  import "./chunk-EDPENAVO.mjs";
202
203
  import "./chunk-OJO2GOM3.mjs";
203
204
  import "./chunk-5PZJ63PK.mjs";
@@ -274,8 +275,8 @@ import "./chunk-H3ASZDT7.mjs";
274
275
  import "./chunk-2DA7CLY7.mjs";
275
276
  import {
276
277
  FARM_VERSION
277
- } from "./chunk-H37MDCPR.mjs";
278
- import "./chunk-KWFNUODD.mjs";
278
+ } from "./chunk-F6CMGWAL.mjs";
279
+ import "./chunk-YVPX5PI5.mjs";
279
280
  import "./chunk-QPNVDSFZ.mjs";
280
281
  import "./chunk-GYMGK467.mjs";
281
282
  import "./chunk-5Y4GYKKH.mjs";
@@ -289,7 +290,7 @@ import "./chunk-SD6JGJOM.mjs";
289
290
  import "./chunk-S6O2L47H.mjs";
290
291
  import "./chunk-NBIVGHAT.mjs";
291
292
  import "./chunk-WCLLPR6H.mjs";
292
- import "./chunk-F7JKVHU2.mjs";
293
+ import "./chunk-NVOMQLI2.mjs";
293
294
  import "./chunk-7BIW7VCW.mjs";
294
295
  import "./chunk-M25IONJP.mjs";
295
296
  import {
@@ -624,7 +625,7 @@ async function createServer2(config = {}, options = {}) {
624
625
  checkWebDesktopBlock(userConfig?.desktop);
625
626
  const rscConfig = userConfig ?? config;
626
627
  if (resolveFarmServerComponentsMode(rscConfig.experimental?.serverComponents)) {
627
- const { createFarmRscDevServer, farmAppUsesRscPipeline, resolveFarmRscCheckConfig } = await import("./rsc-pipeline-4OJ5ZQNZ.mjs");
628
+ const { createFarmRscDevServer, farmAppUsesRscPipeline, resolveFarmRscCheckConfig } = await import("./rsc-pipeline-GA4AQWZI.mjs");
628
629
  await options.ensureServerComponentsPackages?.(rscConfig, root);
629
630
  if (farmAppUsesRscPipeline(await resolveFarmRscCheckConfig(rscConfig, root, mode), root)) {
630
631
  return await createFarmRscDevServer(rscConfig, {
@@ -946,6 +947,7 @@ export {
946
947
  driverStorage,
947
948
  farmPlugin,
948
949
  fileExists,
950
+ findFarmConfigFile,
949
951
  getCurrentRequest,
950
952
  getFarmAppDirectories,
951
953
  getFarmDataCache,
@@ -1,8 +1,8 @@
1
- import { M as Metadata } from './client-plugins.d-CrKZiNSN.js';
1
+ import { M as Metadata } from './client-plugins.d-CNDqcAuf.js';
2
2
  import { F as FarmClientPluginManager } from './lifecycle.d-keQs5Swc.js';
3
3
  import { a as FarmI18nClientSnapshot } from './types.d-C41ePjvP.js';
4
4
  import { F as FarmIslandStrategy } from './island.d-CfGru1MO.js';
5
- import { F as FarmRouteRenderPlan } from './render-plan.d-D8UakAIk.js';
5
+ import { F as FarmRouteRenderPlan } from './render-plan.d-i9sI4tc9.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.d-BNILjfX3.mjs';
1
+ import { M as Metadata } from './client-plugins.d-CE1lVK2R.mjs';
2
2
  import { F as FarmClientPluginManager } from './lifecycle.d-keQs5Swc.mjs';
3
3
  import { a as FarmI18nClientSnapshot } from './types.d-C41ePjvP.mjs';
4
4
  import { F as FarmIslandStrategy } from './island.d-CfGru1MO.mjs';
5
- import { F as FarmRouteRenderPlan } from './render-plan.d-LKymStDJ.mjs';
5
+ import { F as FarmRouteRenderPlan } from './render-plan.d-BSwV8PE4.mjs';
6
6
 
7
7
  type NavigationMetadata = (Metadata & Record<string, any>) | undefined;
8
8
 
@@ -1,5 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
- import { b2 as MiddlewareProps, z as PluginContextProps, i as RouteModule, aN as FarmContextFactory } from './client-plugins.d-BNILjfX3.mjs';
2
+ import { b2 as MiddlewareProps, z as PluginContextProps, i as RouteModule, aN as FarmContextFactory } from './client-plugins.d-CE1lVK2R.mjs';
3
3
  import './types.d-C41ePjvP.mjs';
4
4
  import { b as APIRouteParams } from './route-pattern.d-CVsVbq5n.mjs';
5
5
  import { ServerFn } from './server-fn.mjs';
@@ -22,12 +22,14 @@ import '@farming-labs/orm';
22
22
  import '@farming-labs/docs';
23
23
  import './observability.d-B2363jB6.mjs';
24
24
  import '@opentelemetry/api';
25
+ import './types.d-xCIhyjOq.mjs';
25
26
  import 'vite';
26
- import './workflows.d-CRMzQZ3k.mjs';
27
+ import './workflows.mjs';
28
+ import './server-http.d-rAe7lAQc.mjs';
27
29
  import './cron.mjs';
28
30
  import './env.mjs';
29
31
  import './server-action-security.mjs';
30
- import './layers.d-CcS42OGR.mjs';
32
+ import './layers.d-CH0bC4QL.mjs';
31
33
  import 'rolldown/utils';
32
34
  import 'rolldown';
33
35
  import './image-config.d-ByhQ0TT7.mjs';
package/dist/testing.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
- import { b2 as MiddlewareProps, z as PluginContextProps, i as RouteModule, aN as FarmContextFactory } from './client-plugins.d-CrKZiNSN.js';
2
+ import { b2 as MiddlewareProps, z as PluginContextProps, i as RouteModule, aN as FarmContextFactory } from './client-plugins.d-CNDqcAuf.js';
3
3
  import './types.d-C41ePjvP.js';
4
4
  import { b as APIRouteParams } from './route-pattern.d-CVsVbq5n.js';
5
5
  import { ServerFn } from './server-fn.js';
@@ -22,12 +22,14 @@ import '@farming-labs/orm';
22
22
  import '@farming-labs/docs';
23
23
  import './observability.d-B2363jB6.js';
24
24
  import '@opentelemetry/api';
25
+ import './types.d-xCIhyjOq.js';
25
26
  import 'vite';
26
- import './workflows.d-CRMzQZ3k.js';
27
+ import './workflows.js';
28
+ import './server-http.d-rAe7lAQc.js';
27
29
  import './cron.js';
28
30
  import './env.js';
29
31
  import './server-action-security.js';
30
- import './layers.d-CcS42OGR.js';
32
+ import './layers.d-CH0bC4QL.js';
31
33
  import 'rolldown/utils';
32
34
  import 'rolldown';
33
35
  import './image-config.d-ByhQ0TT7.js';
@@ -0,0 +1,233 @@
1
+ import { IncomingMessage, ServerResponse } from 'http';
2
+ import { ViteDevServer } from 'vite';
3
+
4
+ /**
5
+ * Farm.js Middleware System
6
+ *
7
+ * Type definitions for the middleware system
8
+ */
9
+
10
+ /**
11
+ * Next function type for middleware chain
12
+ */
13
+ type MiddlewareResult = void | Response;
14
+ type NextFunction = () => Promise<MiddlewareResult>;
15
+ type MiddlewareStoreKey<TValues extends Record<string, any>> = Extract<keyof TValues, string>;
16
+ /**
17
+ * A typed view over the request-scoped maps used by middleware.
18
+ */
19
+ interface ReadonlyMiddlewareStore<TValues extends Record<string, any> = Record<string, any>> {
20
+ readonly size: number;
21
+ get<TKey extends MiddlewareStoreKey<TValues>>(key: TKey): TValues[TKey] | undefined;
22
+ has<TKey extends MiddlewareStoreKey<TValues>>(key: TKey): boolean;
23
+ entries(): IterableIterator<[MiddlewareStoreKey<TValues>, TValues[MiddlewareStoreKey<TValues>]]>;
24
+ keys(): IterableIterator<MiddlewareStoreKey<TValues>>;
25
+ values(): IterableIterator<TValues[MiddlewareStoreKey<TValues>]>;
26
+ forEach(callback: (value: TValues[MiddlewareStoreKey<TValues>], key: MiddlewareStoreKey<TValues>, store: ReadonlyMiddlewareStore<TValues>) => void, thisArg?: any): void;
27
+ [Symbol.iterator](): IterableIterator<[
28
+ MiddlewareStoreKey<TValues>,
29
+ TValues[MiddlewareStoreKey<TValues>]
30
+ ]>;
31
+ }
32
+ interface MiddlewareStore<TValues extends Record<string, any> = Record<string, any>> extends ReadonlyMiddlewareStore<TValues> {
33
+ clear(): void;
34
+ delete<TKey extends MiddlewareStoreKey<TValues>>(key: TKey): boolean;
35
+ set<TKey extends MiddlewareStoreKey<TValues>>(key: TKey, value: TValues[TKey]): this;
36
+ }
37
+ /**
38
+ * Middleware function signature
39
+ */
40
+ type MiddlewareFunction = (ctx: MiddlewareContext, next: NextFunction) => MiddlewareResult | Promise<MiddlewareResult>;
41
+ /**
42
+ * Context passed to a named, request-first middleware export.
43
+ * `locals` and the get/set helpers stay on the server. `data` can be exposed
44
+ * through page props and should contain only serializable, client-safe values.
45
+ */
46
+ interface RequestMiddlewareContext<TLocals extends Record<string, any> = Record<string, any>, TData extends Record<string, any> = Record<string, any>> {
47
+ readonly url: URL;
48
+ readonly pathname: string;
49
+ /** The pathname the router matches: decoded once, without basePath or locale. */
50
+ readonly routePathname: string;
51
+ readonly searchParams: URLSearchParams;
52
+ readonly method: string;
53
+ readonly params: Record<string, string>;
54
+ readonly route: string;
55
+ readonly locals: MiddlewareStore<TLocals>;
56
+ readonly data: MiddlewareStore<TData>;
57
+ readonly headers: Map<string, string>;
58
+ readonly cookies: CookieJar;
59
+ get<TKey extends MiddlewareStoreKey<TLocals>>(key: TKey): TLocals[TKey] | undefined;
60
+ has<TKey extends MiddlewareStoreKey<TLocals>>(key: TKey): boolean;
61
+ set<TKey extends MiddlewareStoreKey<TLocals>>(key: TKey, value: TLocals[TKey]): void;
62
+ delete<TKey extends MiddlewareStoreKey<TLocals>>(key: TKey): boolean;
63
+ redirect(url: string, status?: number): void;
64
+ rewrite(url: string): void;
65
+ json(data: any, status?: number): void;
66
+ text(content: string, status?: number): void;
67
+ html(content: string, status?: number): void;
68
+ }
69
+ type RequestMiddleware<TLocals extends Record<string, any> = Record<string, any>, TData extends Record<string, any> = Record<string, any>> = (request: Request, context: RequestMiddlewareContext<TLocals, TData>) => MiddlewareResult | Promise<MiddlewareResult>;
70
+ /**
71
+ * Cookie options
72
+ */
73
+ interface CookieOptions {
74
+ maxAge?: number;
75
+ expires?: Date;
76
+ path?: string;
77
+ domain?: string;
78
+ secure?: boolean;
79
+ httpOnly?: boolean;
80
+ sameSite?: "strict" | "lax" | "none";
81
+ }
82
+ /**
83
+ * Cookie management interface
84
+ */
85
+ interface CookieJar {
86
+ get(name: string): string | undefined;
87
+ set(name: string, value: string, options?: CookieOptions): void;
88
+ /**
89
+ * Remove a cookie. Pass the `path`/`domain` it was set with; a tombstone only
90
+ * matches a cookie with the same scope.
91
+ */
92
+ delete(name: string, options?: CookieOptions): void;
93
+ getAll(): Record<string, string>;
94
+ }
95
+ interface RateLimitIncrementResult {
96
+ count: number;
97
+ /** Unix epoch timestamp in milliseconds when the fixed window resets. */
98
+ resetAt: number;
99
+ }
100
+ interface RateLimitStorage {
101
+ /** Atomically increment a key and create or retain its fixed expiry window. */
102
+ increment(key: string, windowMs: number): Promise<RateLimitIncrementResult> | RateLimitIncrementResult;
103
+ /** Optional inspection support used by getRateLimitStatus(). */
104
+ get?(key: string): Promise<RateLimitIncrementResult | null> | RateLimitIncrementResult | null;
105
+ }
106
+ interface MemoryRateLimitStorageOptions {
107
+ /** Maximum number of active keys retained by this process. */
108
+ maxEntries?: number;
109
+ }
110
+ interface RateLimitConfig {
111
+ requests: number;
112
+ window: string;
113
+ keyGenerator?: (ctx: MiddlewareContext) => string;
114
+ onLimit?: (ctx: MiddlewareContext) => void | Response | Promise<void | Response>;
115
+ storage?: RateLimitStorage;
116
+ }
117
+ interface RateLimitStatus {
118
+ requests: number;
119
+ limit: number;
120
+ remaining: number;
121
+ resetIn: number | null;
122
+ resetAt: Date | null;
123
+ isLimited: boolean;
124
+ }
125
+ /**
126
+ * Middleware configuration
127
+ */
128
+ type MiddlewareMatcher = string | RegExp | ((ctx: MiddlewareContext) => boolean);
129
+ interface MiddlewareConfig {
130
+ matcher?: MiddlewareMatcher | MiddlewareMatcher[];
131
+ exclude?: (string | RegExp)[];
132
+ runtime?: "nodejs" | "edge";
133
+ /**
134
+ * Whether a response this middleware lets through may be stored by a shared cache (a CDN).
135
+ * Farm cannot tell a guard from harmless middleware, and a CDN serves its copy without
136
+ * running either, so by default (`"private"`) the response is sent with
137
+ * `Cache-Control: private, no-store`. Set `"public"` only on middleware that never decides
138
+ * who may read the response, such as logging or response headers.
139
+ */
140
+ cache?: "private" | "public";
141
+ }
142
+ interface MiddlewareConfigEntry extends MiddlewareConfig {
143
+ handler?: MiddlewareFunction;
144
+ handlers?: MiddlewareFunction[];
145
+ }
146
+ type FarmMiddlewareConfig = MiddlewareConfig | MiddlewareConfigEntry | MiddlewareConfigEntry[];
147
+ /**
148
+ * Middleware context - the main object passed to middleware functions
149
+ */
150
+ interface MiddlewareContext {
151
+ request: IncomingMessage;
152
+ response: ServerResponse;
153
+ url: URL;
154
+ /** Request pathname as received: still percent-encoded and carrying basePath/locale. */
155
+ pathname: string;
156
+ /**
157
+ * The pathname the router matches: decoded once, without basePath or locale. String matchers
158
+ * compare this value; compare it in path checks too. Updated by `rewrite()`.
159
+ */
160
+ readonly routePathname: string;
161
+ searchParams: URLSearchParams;
162
+ method: string;
163
+ params: Record<string, string>;
164
+ route: string;
165
+ parent?: {
166
+ data: Map<string, any>;
167
+ locals?: Map<string, any>;
168
+ headers: Record<string, string>;
169
+ };
170
+ vite: {
171
+ isDev: boolean;
172
+ hmr: boolean;
173
+ server?: ViteDevServer;
174
+ };
175
+ data: Map<string, any>;
176
+ locals: Map<string, any>;
177
+ headers: Map<string, string>;
178
+ cookies: CookieJar;
179
+ _handled: boolean;
180
+ _redirectUrl?: string;
181
+ _rewriteUrl?: string;
182
+ redirect(url: string, status?: number): void;
183
+ rewrite(url: string): void;
184
+ json(data: any, status?: number): void;
185
+ text(content: string, status?: number): void;
186
+ html(content: string, status?: number): void;
187
+ }
188
+ /**
189
+ * Middleware chain interface
190
+ */
191
+ interface MiddlewareChain {
192
+ use(fn: MiddlewareFunction): MiddlewareChain;
193
+ /**
194
+ * Conditionally run middleware based on a condition.
195
+ * Supports boolean values or functions that evaluate to boolean.
196
+ *
197
+ * @example
198
+ * .when(true, (ctx, next) => { ... }) // Always run
199
+ * .when((ctx) => ctx.data.get('flag'), (ctx, next) => { ... }) // Conditional
200
+ */
201
+ when(condition: boolean | ((ctx: MiddlewareContext) => boolean), fn: MiddlewareFunction | ((chain: MiddlewareChain) => void)): MiddlewareChain;
202
+ rateLimit(config: RateLimitConfig): MiddlewareChain;
203
+ redirect(source: string, destination: string, permanent?: boolean): MiddlewareChain;
204
+ /**
205
+ * Rewrite the current route to a new destination.
206
+ * In route-specific middleware, this rewrites the middleware's route.
207
+ *
208
+ * @param destination - The destination path to rewrite to
209
+ * @param condition - Optional boolean or function that evaluates to boolean. If false, rewrite is skipped.
210
+ *
211
+ * @example
212
+ * // In /contact/middleware.ts
213
+ * .rewrite('/about') // Always rewrites /contact to /about
214
+ * .rewrite('/about', true) // Always rewrites
215
+ * .rewrite('/about', false) // Never rewrites
216
+ * .rewrite('/about', (ctx) => ctx.data.get('shouldRewrite')) // Conditional rewrite
217
+ */
218
+ rewrite(destination: string, condition?: boolean | ((ctx: MiddlewareContext) => boolean)): MiddlewareChain;
219
+ build(): {
220
+ handlers: MiddlewareFunction[];
221
+ config?: MiddlewareConfig;
222
+ };
223
+ }
224
+ /**
225
+ * Middleware module export
226
+ */
227
+ interface MiddlewareModule {
228
+ default?: MiddlewareChain | MiddlewareFunction;
229
+ middleware?: RequestMiddleware;
230
+ config?: MiddlewareConfig;
231
+ }
232
+
233
+ export type { CookieJar as C, FarmMiddlewareConfig as F, MiddlewareModule as M, NextFunction as N, ReadonlyMiddlewareStore as R, MiddlewareConfig as a, MiddlewareContext as b, CookieOptions as c, MemoryRateLimitStorageOptions as d, MiddlewareChain as e, MiddlewareFunction as f, MiddlewareResult as g, MiddlewareStore as h, RateLimitConfig as i, RateLimitIncrementResult as j, RateLimitStatus as k, RateLimitStorage as l, RequestMiddleware as m, RequestMiddlewareContext as n, MiddlewareMatcher as o };