@farm.js/core 0.1.39 → 0.1.40

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 (362) hide show
  1. package/dist/{agent-mcp-BhneNPb4.d.mts → agent-mcp-DRlXq3lM.d.ts} +1 -1
  2. package/dist/{agent-mcp-HcTYQmNX.d.ts → agent-mcp-XNF4JqHw.d.mts} +1 -1
  3. package/dist/{agent-mcp-handler-OLRMZONF.mjs → agent-mcp-handler-HVV5LNXF.mjs} +6 -6
  4. package/dist/{agent-mcp-handler-MRGP3WJ3.cjs → agent-mcp-handler-YKG7KVCY.cjs} +7 -7
  5. package/dist/agent-runtime.cjs +10 -6
  6. package/dist/agent-runtime.d.mts +5 -7
  7. package/dist/agent-runtime.d.ts +5 -7
  8. package/dist/agent-runtime.mjs +9 -5
  9. package/dist/api/client.cjs +3 -3
  10. package/dist/api/client.d.mts +3 -3
  11. package/dist/api/client.d.ts +3 -3
  12. package/dist/api/client.mjs +2 -2
  13. package/dist/api/route-manager.cjs +15 -13
  14. package/dist/api/route-manager.d.mts +7 -9
  15. package/dist/api/route-manager.d.ts +7 -9
  16. package/dist/api/route-manager.mjs +14 -12
  17. package/dist/api/runtime.cjs +12 -10
  18. package/dist/api/runtime.d.mts +6 -8
  19. package/dist/api/runtime.d.ts +6 -8
  20. package/dist/api/runtime.mjs +11 -9
  21. package/dist/{api-client-CyFtZFJ4.d.ts → api-client-BJv9mTbO.d.ts} +2 -2
  22. package/dist/{api-client-BjMmY8OD.d.mts → api-client-Dk9QOLwr.d.mts} +2 -2
  23. package/dist/api.cjs +17 -15
  24. package/dist/api.d.mts +9 -11
  25. package/dist/api.d.ts +9 -11
  26. package/dist/api.mjs +16 -14
  27. package/dist/{app-CMkoghtp.d.ts → app-CDJHPqZn.d.ts} +11 -4
  28. package/dist/{app-DVzmmbNO.d.mts → app-CWjCklhF.d.mts} +11 -4
  29. package/dist/app-markdown.cjs +7 -6
  30. package/dist/app-markdown.d.mts +6 -8
  31. package/dist/app-markdown.d.ts +6 -8
  32. package/dist/app-markdown.mjs +6 -5
  33. package/dist/cache.cjs +6 -3
  34. package/dist/cache.d.mts +23 -2
  35. package/dist/cache.d.ts +23 -2
  36. package/dist/cache.mjs +5 -2
  37. package/dist/{chunk-3UEVPCGW.mjs → chunk-2DMWQWNJ.mjs} +6 -1
  38. package/dist/{chunk-ZXH4TS3F.cjs → chunk-2JG2LJDI.cjs} +3 -64
  39. package/dist/{chunk-QTXBII4Z.cjs → chunk-3TB5QGUW.cjs} +5 -5
  40. package/dist/chunk-45QJHGZM.cjs +1063 -0
  41. package/dist/{chunk-QYMZOOC5.mjs → chunk-45UZKX2J.mjs} +12 -44
  42. package/dist/{chunk-FUCSUGDM.cjs → chunk-4A3YUB4D.cjs} +3 -3
  43. package/dist/{chunk-FUZEBRP3.mjs → chunk-4GP3XZ4Z.mjs} +5 -3
  44. package/dist/chunk-4TLUFAIP.cjs +92 -0
  45. package/dist/chunk-4U5XZDLG.cjs +80 -0
  46. package/dist/{chunk-VXEEATVD.cjs → chunk-4XO5GSD6.cjs} +2 -2
  47. package/dist/{chunk-P664ZVTV.mjs → chunk-4ZZNPK25.mjs} +2 -2
  48. package/dist/{chunk-YFYUYWL7.cjs → chunk-54QWHSNR.cjs} +697 -422
  49. package/dist/{chunk-W36M2BQ4.mjs → chunk-5E65AL7P.mjs} +3 -3
  50. package/dist/{chunk-3LOLJTFV.cjs → chunk-5JEC43MQ.cjs} +11 -11
  51. package/dist/{chunk-INL3THCU.mjs → chunk-5LL6TKII.mjs} +1 -1
  52. package/dist/{chunk-KIIMAWOJ.cjs → chunk-5NAVKJCZ.cjs} +35 -105
  53. package/dist/{chunk-PGZDEPTM.cjs → chunk-5XS5NCVM.cjs} +10 -10
  54. package/dist/{chunk-HXRYZWTA.mjs → chunk-62DY5GKS.mjs} +3 -3
  55. package/dist/{chunk-LSKZMJMP.cjs → chunk-64SBBZDU.cjs} +38 -1
  56. package/dist/chunk-6BWKJ6QS.cjs +43 -0
  57. package/dist/{chunk-JSROZYYO.cjs → chunk-6D24SDKO.cjs} +1 -20
  58. package/dist/{chunk-EIPC3FDA.cjs → chunk-6ILGLCXF.cjs} +9 -5
  59. package/dist/chunk-6QOLZITB.cjs +22 -0
  60. package/dist/{chunk-RW63BOV7.cjs → chunk-7FHZ3E6D.cjs} +2 -2
  61. package/dist/chunk-7GNWGLWB.mjs +14 -0
  62. package/dist/{chunk-34UCJRQO.cjs → chunk-7RNAKBWF.cjs} +2 -2
  63. package/dist/{chunk-MSSFIQGM.mjs → chunk-7VAJSSPG.mjs} +41 -10
  64. package/dist/{chunk-PVZE2JGJ.mjs → chunk-ACLPN56I.mjs} +43 -25
  65. package/dist/{chunk-JCYYXBAJ.cjs → chunk-AGR7F3LA.cjs} +3 -3
  66. package/dist/{chunk-UPJLHLJU.cjs → chunk-ALPWLT27.cjs} +4 -4
  67. package/dist/{chunk-ATSDUUFK.mjs → chunk-AX7S67YV.mjs} +33 -40
  68. package/dist/{chunk-CUM5NYL5.mjs → chunk-AXB5P7BK.mjs} +1 -1
  69. package/dist/{chunk-2ZYGC6SS.cjs → chunk-B6IMBBOS.cjs} +3 -3
  70. package/dist/{chunk-472NCAZ7.cjs → chunk-B77AUCBV.cjs} +3 -3
  71. package/dist/{chunk-H5CLOUZS.cjs → chunk-BMOBTMDR.cjs} +5 -5
  72. package/dist/{chunk-CQMVIOYP.mjs → chunk-BPGO2IEP.mjs} +7 -7
  73. package/dist/{chunk-E2ROOWQC.cjs → chunk-BPOTSHDO.cjs} +24 -87
  74. package/dist/chunk-BRYPZIMB.mjs +6 -0
  75. package/dist/{chunk-WFRT7JPX.mjs → chunk-BYQVROIP.mjs} +2 -2
  76. package/dist/{chunk-HALDNTIV.mjs → chunk-BYR3RQPB.mjs} +10 -73
  77. package/dist/{chunk-IWZKTWHZ.cjs → chunk-CA62IQY3.cjs} +7 -2
  78. package/dist/chunk-CALY6QG6.mjs +963 -0
  79. package/dist/{chunk-WC5UV2HQ.cjs → chunk-CBXBGM72.cjs} +2 -2
  80. package/dist/{chunk-WW46B6HA.cjs → chunk-CGR525MJ.cjs} +84 -45
  81. package/dist/{chunk-6V4TDWEC.cjs → chunk-CGVPXIRN.cjs} +18 -1
  82. package/dist/{chunk-677THUVP.mjs → chunk-CKFK3Z2V.mjs} +1 -1
  83. package/dist/chunk-CZS6OACQ.mjs +63 -0
  84. package/dist/{chunk-SGBJ247Q.cjs → chunk-D4ROBNTK.cjs} +2 -2
  85. package/dist/{chunk-WEW2JVA4.cjs → chunk-D5IHNDHI.cjs} +6 -6
  86. package/dist/{chunk-ULASELLA.cjs → chunk-DATEWH3W.cjs} +13 -1
  87. package/dist/{chunk-QUCXCDE2.cjs → chunk-DKU6NXRK.cjs} +1 -1
  88. package/dist/{chunk-NBBEQLOK.cjs → chunk-E55H6UKH.cjs} +9 -9
  89. package/dist/{chunk-AS2VPMEE.cjs → chunk-EGCT3AHF.cjs} +1440 -8172
  90. package/dist/{chunk-SDOTRX3V.cjs → chunk-EORXKFLR.cjs} +7 -7
  91. package/dist/{chunk-HD5CF3OE.mjs → chunk-ETPEZLS3.mjs} +2 -2
  92. package/dist/{chunk-RVXFINNS.cjs → chunk-EW4MEVLE.cjs} +30 -30
  93. package/dist/{chunk-HYTZYOW2.mjs → chunk-FCOLU5P6.mjs} +1172 -7904
  94. package/dist/chunk-FGH3ZXTP.mjs +1063 -0
  95. package/dist/{chunk-HRETEZ2Z.cjs → chunk-FLZ4H25A.cjs} +37 -35
  96. package/dist/chunk-FVPXT2JR.cjs +63 -0
  97. package/dist/{chunk-D2ULAULS.cjs → chunk-FXFKIJDA.cjs} +9 -7
  98. package/dist/chunk-GC3EM6H4.mjs +80 -0
  99. package/dist/chunk-GKQL726H.cjs +6096 -0
  100. package/dist/{chunk-5PWXMJOH.cjs → chunk-GNVEJUT5.cjs} +36 -36
  101. package/dist/{chunk-E3UK5IIB.cjs → chunk-GS3WR5HX.cjs} +5 -3
  102. package/dist/{chunk-QFW2IH5E.mjs → chunk-GZTUT75U.mjs} +5 -2
  103. package/dist/chunk-H3EGVQE5.mjs +22 -0
  104. package/dist/{chunk-LMPAPBUA.cjs → chunk-H44XGLFU.cjs} +36 -68
  105. package/dist/{chunk-SOP2EAA6.mjs → chunk-H56MQYEG.mjs} +1 -1
  106. package/dist/chunk-HANGSYMB.mjs +67 -0
  107. package/dist/{chunk-5BWWFHR2.mjs → chunk-HBEBV7OZ.mjs} +3 -3
  108. package/dist/{chunk-RSOJ7DRT.mjs → chunk-HCSVR4YZ.mjs} +1 -58
  109. package/dist/{chunk-P3PLW4FR.mjs → chunk-HKFBMHCD.mjs} +4 -4
  110. package/dist/{chunk-MLY2RP5R.mjs → chunk-I63UCMXW.mjs} +6 -2
  111. package/dist/{chunk-TO4GJ56K.cjs → chunk-I64GEPOB.cjs} +58 -18
  112. package/dist/{chunk-VNGH5MLF.mjs → chunk-I6UVKUYK.mjs} +1 -1
  113. package/dist/{chunk-EPYU2EBL.mjs → chunk-IF4NU2NG.mjs} +1 -1
  114. package/dist/{chunk-IVLZZZEI.mjs → chunk-IM7DY3ED.mjs} +1 -1
  115. package/dist/{chunk-YKZRDB5Z.mjs → chunk-IMQO6ZUU.mjs} +2 -2
  116. package/dist/{chunk-F5QO4FNE.mjs → chunk-INQ64HTJ.mjs} +43 -11
  117. package/dist/{chunk-BXDJXFQG.cjs → chunk-IRYK4Z5M.cjs} +4 -4
  118. package/dist/{chunk-UWPLULNK.mjs → chunk-JGHCKIRI.mjs} +84 -24
  119. package/dist/{chunk-BFJTHYTN.mjs → chunk-JIYYX7WU.mjs} +10 -8
  120. package/dist/{chunk-6MVFL3R5.cjs → chunk-JR4QCLJY.cjs} +1 -58
  121. package/dist/{chunk-Q2KB32T4.mjs → chunk-JXB6DVCO.mjs} +5 -5
  122. package/dist/{chunk-CGBDNNSM.cjs → chunk-KEXK442I.cjs} +44 -12
  123. package/dist/{chunk-5D2JIPLH.cjs → chunk-KK22JPQM.cjs} +10 -10
  124. package/dist/{chunk-EA5K5BKU.mjs → chunk-KNHBTJP6.mjs} +18 -1
  125. package/dist/{chunk-MVL2RAJW.mjs → chunk-KYN5ODF6.mjs} +1 -1
  126. package/dist/{chunk-B5J2YVG7.cjs → chunk-LDPKAYVS.cjs} +2 -2
  127. package/dist/chunk-LFHCG2DU.mjs +43 -0
  128. package/dist/{chunk-FZ6YYU2W.mjs → chunk-MGMF4VP7.mjs} +38 -1
  129. package/dist/{chunk-KTSUBU2E.mjs → chunk-MNUSIXGS.mjs} +2 -2
  130. package/dist/{chunk-MYIZXDZA.mjs → chunk-MOSYH4CY.mjs} +1 -1
  131. package/dist/{chunk-4ZFL5GFN.cjs → chunk-OILHPMFX.cjs} +86 -26
  132. package/dist/{chunk-AJQTP4OO.mjs → chunk-OJ7JP7RJ.mjs} +1 -1
  133. package/dist/{chunk-VWBHM3F6.mjs → chunk-OLQ73ZO5.mjs} +1 -1
  134. package/dist/{chunk-5OKBARDN.cjs → chunk-OZN4XL6L.cjs} +10 -10
  135. package/dist/{chunk-T5OJPTVN.cjs → chunk-P4TYB4SF.cjs} +2 -2
  136. package/dist/chunk-P7XDC7UJ.mjs +92 -0
  137. package/dist/{chunk-5ULKUBIA.cjs → chunk-PGW7HZE2.cjs} +6 -6
  138. package/dist/{chunk-SHLXACIO.cjs → chunk-PJ42JESY.cjs} +1 -9
  139. package/dist/{chunk-U6QLDL3G.mjs → chunk-PNCM5MFD.mjs} +1 -1
  140. package/dist/{chunk-OAHTRMIC.mjs → chunk-PYQ3ZG4Z.mjs} +11 -11
  141. package/dist/{chunk-KMTGADN3.mjs → chunk-QCVIRVHE.mjs} +1 -9
  142. package/dist/{chunk-RWFLWR5J.cjs → chunk-QJM7A4CR.cjs} +17 -15
  143. package/dist/{chunk-BWIQR4DH.cjs → chunk-RHGK2JEN.cjs} +56 -63
  144. package/dist/{chunk-QV4VE2OW.mjs → chunk-S6ENKNNG.mjs} +5 -3
  145. package/dist/{chunk-HRSAQ23K.cjs → chunk-SHFXCE5A.cjs} +4 -4
  146. package/dist/{chunk-EKN7NSZO.cjs → chunk-SZLNU3GJ.cjs} +8 -5
  147. package/dist/{chunk-WLL43JMO.mjs → chunk-T36UJS3X.mjs} +7 -5
  148. package/dist/{chunk-CNNOLE4O.mjs → chunk-T4II4MMW.mjs} +1 -1
  149. package/dist/{chunk-GKBWWRBG.mjs → chunk-T6DLMX5V.mjs} +11 -11
  150. package/dist/{chunk-CIOT4HGT.cjs → chunk-TAKG7ZCD.cjs} +14 -14
  151. package/dist/{chunk-SKVTP5PR.mjs → chunk-TFX4RTH2.mjs} +1 -62
  152. package/dist/chunk-TI7UANHI.cjs +77 -0
  153. package/dist/{chunk-6BK3K2GB.mjs → chunk-UIDWEU7M.mjs} +83 -44
  154. package/dist/{chunk-EGCTIS5F.mjs → chunk-UM3ZV5EP.mjs} +1 -1
  155. package/dist/{chunk-YWN746US.cjs → chunk-UMQAK3KP.cjs} +85 -54
  156. package/dist/chunk-UNJZGVPU.cjs +6 -0
  157. package/dist/{chunk-XKG2BLFN.cjs → chunk-UXMIFB44.cjs} +18 -35
  158. package/dist/{chunk-DMEPTZTI.mjs → chunk-VBN3UAPQ.mjs} +47 -7
  159. package/dist/chunk-VDRM36QB.cjs +963 -0
  160. package/dist/{chunk-RG4A6LB2.cjs → chunk-VNPXKF3G.cjs} +7 -7
  161. package/dist/chunk-VQDBNVOO.cjs +14 -0
  162. package/dist/chunk-VQGKD7RV.mjs +25 -0
  163. package/dist/{chunk-6HB6V3R7.mjs → chunk-WCWV25PG.mjs} +10 -27
  164. package/dist/{chunk-ZMSZZXOR.mjs → chunk-WDMIW6Q6.mjs} +0 -19
  165. package/dist/{chunk-4WVJLURN.mjs → chunk-WMHG64DA.mjs} +1 -1
  166. package/dist/{chunk-A657YSP4.cjs → chunk-WSOBCAYO.cjs} +37 -35
  167. package/dist/{chunk-ARC7I3O2.mjs → chunk-WW374SGU.mjs} +1 -1
  168. package/dist/{chunk-J63ZH5OQ.cjs → chunk-X3GMHKO3.cjs} +2 -2
  169. package/dist/{chunk-VT4WFRHA.mjs → chunk-XJAEZCT6.mjs} +1 -1
  170. package/dist/{chunk-ZUPXLIGB.mjs → chunk-XKIUHXHW.mjs} +618 -343
  171. package/dist/{chunk-6XWDE2P2.cjs → chunk-XVIEGKTT.cjs} +30 -5
  172. package/dist/{chunk-QG775BRV.cjs → chunk-Y2GNNXGV.cjs} +72 -54
  173. package/dist/{chunk-75HN5IZ3.mjs → chunk-Y4QVEU67.mjs} +21 -19
  174. package/dist/chunk-Y5RG6B7S.mjs +77 -0
  175. package/dist/{chunk-QRKIMN7T.mjs → chunk-Y6LRPO2K.mjs} +13 -1
  176. package/dist/{chunk-BZHXGVMA.mjs → chunk-YJBWB6GF.mjs} +5 -3
  177. package/dist/{chunk-WXJLNP33.cjs → chunk-YR2P74F7.cjs} +9 -7
  178. package/dist/chunk-YZAKIXRL.cjs +67 -0
  179. package/dist/chunk-ZKVJYQPO.mjs +6095 -0
  180. package/dist/{chunk-POSPE3IO.mjs → chunk-ZOABCQGT.mjs} +27 -2
  181. package/dist/chunk-ZQRCSUSB.cjs +25 -0
  182. package/dist/{chunk-ZMMBIVQM.mjs → chunk-ZZGQD7A4.mjs} +16 -86
  183. package/dist/{client-plugins-CsCuCLBz.d.mts → client-plugins-B_5QbNrp.d.mts} +2544 -2664
  184. package/dist/{client-plugins-D0ke-Hc8.d.ts → client-plugins-DgSfIWIF.d.ts} +2544 -2664
  185. package/dist/client-plugins.d.mts +5 -7
  186. package/dist/client-plugins.d.ts +5 -7
  187. package/dist/client.cjs +5 -5
  188. package/dist/client.d.mts +11 -12
  189. package/dist/client.d.ts +11 -12
  190. package/dist/client.mjs +4 -4
  191. package/dist/config.d.mts +5 -7
  192. package/dist/config.d.ts +5 -7
  193. package/dist/{devtools-LW4QQ5J3.cjs → devtools-ANJ7JAPQ.cjs} +21 -18
  194. package/dist/{devtools-5AFIPVUJ.mjs → devtools-VEQQDVHE.mjs} +20 -17
  195. package/dist/docs.cjs +23 -20
  196. package/dist/docs.d.mts +6 -8
  197. package/dist/docs.d.ts +6 -8
  198. package/dist/docs.mjs +22 -19
  199. package/dist/{endpoint-CA-TNX60.d.ts → endpoint-BOE0IAaG.d.ts} +6 -3
  200. package/dist/{endpoint-CCHFqyTE.d.mts → endpoint-DGZRZHux.d.mts} +6 -3
  201. package/dist/environment/vite.cjs +6 -2
  202. package/dist/environment/vite.d.mts +11 -2
  203. package/dist/environment/vite.d.ts +11 -2
  204. package/dist/environment/vite.mjs +5 -1
  205. package/dist/headers.cjs +4 -4
  206. package/dist/headers.mjs +3 -3
  207. package/dist/image/server.cjs +7 -3
  208. package/dist/image/server.d.mts +9 -1
  209. package/dist/image/server.d.ts +9 -1
  210. package/dist/image/server.mjs +6 -2
  211. package/dist/image/sharp.cjs +12 -10
  212. package/dist/image/sharp.mjs +4 -2
  213. package/dist/index.cjs +87 -67
  214. package/dist/index.d.mts +27 -24
  215. package/dist/index.d.ts +27 -24
  216. package/dist/index.mjs +100 -80
  217. package/dist/{integration-api-BPJo5oXb.d.ts → integration-api-BuPHMeKz.d.ts} +2 -2
  218. package/dist/{integration-api-0y4FXJpC.d.mts → integration-api-DWyMmvrR.d.mts} +2 -2
  219. package/dist/integration-orm-P2II2EBK.cjs +14 -0
  220. package/dist/{integration-orm-KV5B3BGZ.mjs → integration-orm-RBKCIQYZ.mjs} +4 -3
  221. package/dist/integrations.cjs +7 -5
  222. package/dist/integrations.d.mts +7 -9
  223. package/dist/integrations.d.ts +7 -9
  224. package/dist/integrations.mjs +6 -4
  225. package/dist/internal/app-markdown-runtime.cjs +6 -5
  226. package/dist/internal/app-markdown-runtime.d.mts +6 -8
  227. package/dist/internal/app-markdown-runtime.d.ts +6 -8
  228. package/dist/internal/app-markdown-runtime.mjs +5 -4
  229. package/dist/internal/build-runtime.cjs +56 -55
  230. package/dist/internal/build-runtime.d.mts +7 -9
  231. package/dist/internal/build-runtime.d.ts +7 -9
  232. package/dist/internal/build-runtime.mjs +55 -54
  233. package/dist/internal/cli-runtime.cjs +36 -30
  234. package/dist/internal/cli-runtime.mjs +36 -30
  235. package/dist/internal/client-error-overlay.cjs +4 -4
  236. package/dist/internal/client-error-overlay.mjs +1 -1
  237. package/dist/internal/compression-runtime.d.mts +5 -7
  238. package/dist/internal/compression-runtime.d.ts +5 -7
  239. package/dist/internal/config-runtime.cjs +21 -18
  240. package/dist/internal/config-runtime.d.mts +6 -8
  241. package/dist/internal/config-runtime.d.ts +6 -8
  242. package/dist/internal/config-runtime.mjs +20 -17
  243. package/dist/internal/docs-precompiled-runtime.cjs +3 -3
  244. package/dist/internal/docs-precompiled-runtime.mjs +2 -2
  245. package/dist/internal/infra-analytics-runtime.cjs +7 -7
  246. package/dist/internal/infra-analytics-runtime.mjs +5 -5
  247. package/dist/internal/metadata-image-runtime.cjs +4 -3
  248. package/dist/internal/metadata-image-runtime.mjs +3 -2
  249. package/dist/internal/product-telemetry-runtime.cjs +2 -2
  250. package/dist/internal/product-telemetry-runtime.mjs +1 -1
  251. package/dist/internal/production-node-env.cjs +2 -2
  252. package/dist/internal/production-node-env.mjs +1 -1
  253. package/dist/internal/production-runtime.cjs +44 -27
  254. package/dist/internal/production-runtime.d.mts +25 -14
  255. package/dist/internal/production-runtime.d.ts +25 -14
  256. package/dist/internal/production-runtime.mjs +47 -30
  257. package/dist/layers-CM5i6T7z.d.mts +55 -0
  258. package/dist/layers-CM5i6T7z.d.ts +55 -0
  259. package/dist/markdown.cjs +4 -4
  260. package/dist/markdown.d.mts +5 -7
  261. package/dist/markdown.d.ts +5 -7
  262. package/dist/markdown.mjs +3 -3
  263. package/dist/middleware.cjs +16 -10
  264. package/dist/middleware.d.mts +7 -9
  265. package/dist/middleware.d.ts +7 -9
  266. package/dist/middleware.mjs +19 -13
  267. package/dist/navigation.cjs +4 -4
  268. package/dist/navigation.d.mts +8 -9
  269. package/dist/navigation.d.ts +8 -9
  270. package/dist/navigation.mjs +3 -3
  271. package/dist/{nitro-MPZJGPXK.mjs → nitro-NFG2LBRC.mjs} +3 -2
  272. package/dist/{nitro-7F65EZZS.cjs → nitro-S2QABUFA.cjs} +4 -3
  273. package/dist/observability.cjs +2 -2
  274. package/dist/observability.mjs +1 -1
  275. package/dist/plugin-DBBZ4JI2.cjs +32 -0
  276. package/dist/plugin-SYMK7PQ2.mjs +32 -0
  277. package/dist/plugin.cjs +55 -42
  278. package/dist/plugin.d.mts +23 -7
  279. package/dist/plugin.d.ts +23 -7
  280. package/dist/plugin.mjs +56 -43
  281. package/dist/{production-runtime-BaI3WHnV.d.ts → production-runtime-DfknD3g_.d.ts} +17 -3
  282. package/dist/{production-runtime-DfRP0cV0.d.mts → production-runtime-j_WCfuwB.d.mts} +17 -3
  283. package/dist/programmatic-routes-client-DcoxEaLe.d.mts +55 -0
  284. package/dist/programmatic-routes-client-DcoxEaLe.d.ts +55 -0
  285. package/dist/query/client.cjs +2 -2
  286. package/dist/query/client.mjs +1 -1
  287. package/dist/{render-plan-CfIdJKAf.d.ts → render-plan-CFIhcYYS.d.ts} +1 -1
  288. package/dist/{render-plan-Dg8RBYFa.d.mts → render-plan-ChUtsymc.d.mts} +1 -1
  289. package/dist/renderer-client.d.mts +7 -8
  290. package/dist/renderer-client.d.ts +7 -8
  291. package/dist/{request-DfE02G_A.d.mts → request-F4HRwzSd.d.mts} +1 -1
  292. package/dist/{request-CEbHIIl4.d.ts → request-RJvelT8L.d.ts} +1 -1
  293. package/dist/request.cjs +3 -3
  294. package/dist/request.d.mts +6 -8
  295. package/dist/request.d.ts +6 -8
  296. package/dist/request.mjs +2 -2
  297. package/dist/{route-rendering-C4oHbv6C.d.ts → route-rendering-3a4fbNyC.d.mts} +1 -1
  298. package/dist/{route-rendering-BHyOfXjD.d.mts → route-rendering-D4coJ-kw.d.ts} +1 -1
  299. package/dist/{router-DwhA61SB.d.mts → router-DqIssGRO.d.mts} +1 -1
  300. package/dist/{router-uRN_29Em.d.ts → router-WLEW3Te1.d.ts} +1 -1
  301. package/dist/routes.cjs +6 -5
  302. package/dist/routes.d.mts +5 -7
  303. package/dist/routes.d.ts +5 -7
  304. package/dist/routes.mjs +5 -4
  305. package/dist/{runtime-COk03hmx.d.ts → runtime-BrNdLOq9.d.ts} +3 -3
  306. package/dist/{runtime-BEdHhN4C.d.mts → runtime-CmE_j-js.d.mts} +3 -3
  307. package/dist/{schema-dev-notice-Y7MQEFGN.cjs → schema-dev-notice-5JPE67AI.cjs} +6 -4
  308. package/dist/{schema-dev-notice-O67CPXJ6.mjs → schema-dev-notice-WLPZ6WKU.mjs} +4 -2
  309. package/dist/server-action-security.cjs +4 -3
  310. package/dist/server-action-security.mjs +3 -2
  311. package/dist/server-client-bridge-DKWDl5NB.d.mts +7 -0
  312. package/dist/server-client-bridge-DKWDl5NB.d.ts +7 -0
  313. package/dist/server-fn-client.d.mts +3 -3
  314. package/dist/server-fn-client.d.ts +3 -3
  315. package/dist/server-fn.cjs +8 -7
  316. package/dist/server-fn.d.mts +1 -1
  317. package/dist/server-fn.d.ts +1 -1
  318. package/dist/server-fn.mjs +7 -6
  319. package/dist/server-plugins.cjs +5 -5
  320. package/dist/server-plugins.d.mts +6 -8
  321. package/dist/server-plugins.d.ts +6 -8
  322. package/dist/server-plugins.mjs +4 -4
  323. package/dist/server-query-client.d.mts +1 -1
  324. package/dist/server-query-client.d.ts +1 -1
  325. package/dist/server-query.cjs +9 -8
  326. package/dist/server-query.d.mts +1 -1
  327. package/dist/server-query.d.ts +1 -1
  328. package/dist/server-query.mjs +8 -7
  329. package/dist/server.cjs +96 -72
  330. package/dist/server.d.mts +16 -12
  331. package/dist/server.d.ts +16 -12
  332. package/dist/server.mjs +81 -57
  333. package/dist/{spa-router-w4aFOuyn.d.mts → spa-router-C41zjnFl.d.mts} +2 -2
  334. package/dist/{spa-router-DrVOBVGg.d.ts → spa-router-D_0VXqPC.d.ts} +2 -2
  335. package/dist/storage.cjs +6 -2
  336. package/dist/storage.d.mts +9 -1
  337. package/dist/storage.d.ts +9 -1
  338. package/dist/storage.mjs +5 -1
  339. package/dist/testing.cjs +20 -18
  340. package/dist/testing.d.mts +6 -8
  341. package/dist/testing.d.ts +6 -8
  342. package/dist/testing.mjs +16 -14
  343. package/dist/theme/server.cjs +4 -4
  344. package/dist/theme/server.mjs +3 -3
  345. package/dist/{utils-Dhuqwmd2.d.ts → utils-BKWSe3S7.d.mts} +1 -1
  346. package/dist/{utils-BtYehqeU.d.mts → utils-YYcWsOJp.d.ts} +1 -1
  347. package/dist/version.cjs +2 -2
  348. package/dist/version.mjs +1 -1
  349. package/dist/vite.cjs +57 -44
  350. package/dist/vite.d.mts +92 -10
  351. package/dist/vite.d.ts +92 -10
  352. package/dist/vite.mjs +58 -45
  353. package/dist/{workflows-jZ4BcdoZ.d.ts → workflows-IWP1ddBm.d.mts} +5 -2
  354. package/dist/{workflows-jZ4BcdoZ.d.mts → workflows-IWP1ddBm.d.ts} +5 -2
  355. package/dist/workflows.cjs +4 -3
  356. package/dist/workflows.d.mts +1 -1
  357. package/dist/workflows.d.ts +1 -1
  358. package/dist/workflows.mjs +3 -2
  359. package/package.json +2 -1
  360. package/dist/chunk-3SDFA7UF.cjs +0 -701
  361. package/dist/chunk-E5GNDG5F.mjs +0 -701
  362. package/dist/integration-orm-55F7CII5.cjs +0 -13
@@ -9,10 +9,10 @@ var _chunk4PPEPOZZcjs = require('./chunk-4PPEPOZZ.cjs');
9
9
  var _chunkMQ3H6LT5cjs = require('./chunk-MQ3H6LT5.cjs');
10
10
 
11
11
 
12
- var _chunkRWFLWR5Jcjs = require('./chunk-RWFLWR5J.cjs');
12
+ var _chunkQJM7A4CRcjs = require('./chunk-QJM7A4CR.cjs');
13
13
 
14
14
 
15
- var _chunkFUCSUGDMcjs = require('./chunk-FUCSUGDM.cjs');
15
+ var _chunk4A3YUB4Dcjs = require('./chunk-4A3YUB4D.cjs');
16
16
 
17
17
 
18
18
  var _chunk2CQ74SP6cjs = require('./chunk-2CQ74SP6.cjs');
@@ -23,31 +23,31 @@ var _chunk2CQ74SP6cjs = require('./chunk-2CQ74SP6.cjs');
23
23
 
24
24
 
25
25
 
26
- var _chunkXKG2BLFNcjs = require('./chunk-XKG2BLFN.cjs');
26
+ var _chunkUXMIFB44cjs = require('./chunk-UXMIFB44.cjs');
27
27
 
28
28
 
29
- var _chunk6V4TDWECcjs = require('./chunk-6V4TDWEC.cjs');
29
+ var _chunkCGVPXIRNcjs = require('./chunk-CGVPXIRN.cjs');
30
30
 
31
31
 
32
+ var _chunkM2L4MYDQcjs = require('./chunk-M2L4MYDQ.cjs');
32
33
 
33
34
 
34
- var _chunkKIIMAWOJcjs = require('./chunk-KIIMAWOJ.cjs');
35
+ var _chunkPJ42JESYcjs = require('./chunk-PJ42JESY.cjs');
35
36
 
36
37
 
37
- var _chunkM2L4MYDQcjs = require('./chunk-M2L4MYDQ.cjs');
38
38
 
39
+ var _chunk5QIKR7RRcjs = require('./chunk-5QIKR7RR.cjs');
39
40
 
40
- var _chunkSHLXACIOcjs = require('./chunk-SHLXACIO.cjs');
41
41
 
42
+ var _chunkUQZ4AYTHcjs = require('./chunk-UQZ4AYTH.cjs');
42
43
 
43
44
 
44
- var _chunk5QIKR7RRcjs = require('./chunk-5QIKR7RR.cjs');
45
45
 
46
46
 
47
- var _chunkUQZ4AYTHcjs = require('./chunk-UQZ4AYTH.cjs');
47
+ var _chunk5NAVKJCZcjs = require('./chunk-5NAVKJCZ.cjs');
48
48
 
49
49
 
50
- var _chunk6XWDE2P2cjs = require('./chunk-6XWDE2P2.cjs');
50
+ var _chunkXVIEGKTTcjs = require('./chunk-XVIEGKTT.cjs');
51
51
 
52
52
 
53
53
 
@@ -61,7 +61,7 @@ var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
61
61
  function farmApiPlugin(options = {}) {
62
62
  const srcDir = _nullishCoalesce(options.srcDir, () => ( "src"));
63
63
  const debug = _nullishCoalesce(options.debug, () => ( false));
64
- const bodySizeLimit = _chunkKIIMAWOJcjs.resolveFarmServerConfig.call(void 0, {
64
+ const bodySizeLimit = _chunk5NAVKJCZcjs.resolveFarmServerConfig.call(void 0, {
65
65
  bodySizeLimit: options.bodySizeLimit
66
66
  }).bodySizeLimit;
67
67
  const basePath = options.basePath;
@@ -114,7 +114,7 @@ function farmApiPlugin(options = {}) {
114
114
  const existing = apiRoutesCache.get(routePath);
115
115
  const existingFile = _optionalChain([endpointSources, 'access', _ => _.get, 'call', _2 => _2(routePath), 'optionalAccess', _3 => _3.get, 'call', _4 => _4(normalizedMethod)]);
116
116
  if (existingFile) {
117
- throw new (0, _chunkRWFLWR5Jcjs.APIRouteConflictError)(routePath, normalizedMethod, existingFile, filePath);
117
+ throw new (0, _chunkQJM7A4CRcjs.APIRouteConflictError)(routePath, normalizedMethod, existingFile, filePath);
118
118
  }
119
119
  if (existing) {
120
120
  if (!existing.methods.includes(normalizedMethod)) {
@@ -190,7 +190,7 @@ function farmApiPlugin(options = {}) {
190
190
  const createRouter = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, async () => {
191
191
  const plugins = options.plugins ? await (_nullishCoalesce(routePlugins, () => ( (routePlugins = Promise.resolve(options.plugins({ root: projectRoot })))))) : [];
192
192
  pluginMergedRoutes = plugins.length ? new Map(
193
- _chunkXKG2BLFNcjs.mergePluginAPIRoutes.call(void 0, [...apiRoutesCache.values()], plugins, void 0, {
193
+ _chunkUXMIFB44cjs.mergePluginAPIRoutes.call(void 0, [...apiRoutesCache.values()], plugins, void 0, {
194
194
  bodySizeLimit,
195
195
  // A plugin calling an app endpoint (an MCP tool, say) goes back through this server,
196
196
  // so the middleware that guards the endpoint's path runs for it.
@@ -210,7 +210,7 @@ function farmApiPlugin(options = {}) {
210
210
  const url = new URL(request.url);
211
211
  const method = request.method.toUpperCase();
212
212
  const pathname = url.pathname;
213
- const match = _chunkXKG2BLFNcjs.matchAPIRouteAtBasePath.call(void 0, servedRoutes(), pathname, basePath);
213
+ const match = _chunkUXMIFB44cjs.matchAPIRouteAtBasePath.call(void 0, servedRoutes(), pathname, basePath);
214
214
  if (!match) {
215
215
  return new Response(JSON.stringify({ error: "Not Found" }), {
216
216
  status: 404,
@@ -218,18 +218,18 @@ function farmApiPlugin(options = {}) {
218
218
  });
219
219
  }
220
220
  const { route, params } = match;
221
- const endpoint = _chunkXKG2BLFNcjs.resolveAPIRouteEndpoint.call(void 0, route, method);
221
+ const endpoint = _chunkUXMIFB44cjs.resolveAPIRouteEndpoint.call(void 0, route, method);
222
222
  if (!endpoint) {
223
223
  return new Response(JSON.stringify({ error: "Method Not Allowed" }), {
224
224
  status: 405,
225
225
  headers: {
226
- Allow: _chunkXKG2BLFNcjs.getAllowedAPIRouteMethods.call(void 0, route).join(", "),
226
+ Allow: _chunkUXMIFB44cjs.getAllowedAPIRouteMethods.call(void 0, route).join(", "),
227
227
  "Content-Type": "application/json"
228
228
  }
229
229
  });
230
230
  }
231
231
  try {
232
- return await _chunkXKG2BLFNcjs.invokeAPIRouteEndpoint.call(void 0, endpoint, request, params, bodySizeLimit);
232
+ return await _chunkUXMIFB44cjs.invokeAPIRouteEndpoint.call(void 0, endpoint, request, params, bodySizeLimit);
233
233
  } catch (error) {
234
234
  return new Response(JSON.stringify({ error: error.message || "Internal Server Error" }), {
235
235
  status: 500,
@@ -275,10 +275,10 @@ function farmApiPlugin(options = {}) {
275
275
  try {
276
276
  const relativePath = path.relative(apiDir, path.dirname(filePath));
277
277
  const routePath = "/api/" + (relativePath === "." ? "" : relativePath.replace(/\\/g, "/"));
278
- const routeModule = await _chunkSHLXACIOcjs.loadFarmDevModule.call(void 0, server, filePath);
278
+ const routeModule = await _chunkPJ42JESYcjs.loadFarmDevModule.call(void 0, server, filePath);
279
279
  const endpoints = {};
280
280
  const availableMethods = [];
281
- for (const method of _chunkXKG2BLFNcjs.API_ROUTE_METHODS) {
281
+ for (const method of _chunkUXMIFB44cjs.API_ROUTE_METHODS) {
282
282
  if (routeModule[method]) {
283
283
  availableMethods.push(method);
284
284
  endpoints[method] = routeModule[method];
@@ -291,7 +291,7 @@ function farmApiPlugin(options = {}) {
291
291
  log(`API route discovered: ${availableMethods.join(", ")} ${routePath}`);
292
292
  }
293
293
  } catch (e) {
294
- if (e instanceof _chunkRWFLWR5Jcjs.APIRouteConflictError || e instanceof _chunkNO3WWW3Ncjs.AmbiguousRouteError) throw e;
294
+ if (e instanceof _chunkQJM7A4CRcjs.APIRouteConflictError || e instanceof _chunkNO3WWW3Ncjs.AmbiguousRouteError) throw e;
295
295
  log(`API route load failed at ${filePath}: ${e.message}`);
296
296
  }
297
297
  }
@@ -307,7 +307,7 @@ function farmApiPlugin(options = {}) {
307
307
  for (const routesFile of routesFiles) {
308
308
  if (fs.existsSync(routesFile)) {
309
309
  try {
310
- const routesModule = await _chunkSHLXACIOcjs.loadFarmDevModule.call(void 0, server, routesFile);
310
+ const routesModule = await _chunkPJ42JESYcjs.loadFarmDevModule.call(void 0, server, routesFile);
311
311
  for (const [exportName, exportValue] of Object.entries(routesModule)) {
312
312
  const endpoint = exportValue;
313
313
  if (endpoint && endpoint.__path) {
@@ -318,7 +318,7 @@ function farmApiPlugin(options = {}) {
318
318
  }
319
319
  }
320
320
  } catch (e) {
321
- if (e instanceof _chunkRWFLWR5Jcjs.APIRouteConflictError || e instanceof _chunkNO3WWW3Ncjs.AmbiguousRouteError) throw e;
321
+ if (e instanceof _chunkQJM7A4CRcjs.APIRouteConflictError || e instanceof _chunkNO3WWW3Ncjs.AmbiguousRouteError) throw e;
322
322
  log(`Root routes.ts load failed: ${e.message}`);
323
323
  }
324
324
  break;
@@ -328,12 +328,12 @@ function farmApiPlugin(options = {}) {
328
328
  const discoverProgrammaticRoutes = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, async () => {
329
329
  const path = await import("path");
330
330
  const srcRoot = path.join(server.config.root, srcDir);
331
- const routeFiles = _chunkFUCSUGDMcjs.findProgrammaticRouteFilesInDir.call(void 0, srcRoot);
331
+ const routeFiles = _chunk4A3YUB4Dcjs.findProgrammaticRouteFilesInDir.call(void 0, srcRoot);
332
332
  if (routeFiles.length === 0) return;
333
333
  const { getProgrammaticRouteManifest } = await import("./routes.cjs");
334
334
  for (const routeFile of routeFiles) {
335
335
  try {
336
- const routesModule = await _chunkSHLXACIOcjs.loadFarmDevModule.call(void 0,
336
+ const routesModule = await _chunkPJ42JESYcjs.loadFarmDevModule.call(void 0,
337
337
  server,
338
338
  _chunk5QIKR7RRcjs.toViteModuleId.call(void 0, routeFile, server.config.root)
339
339
  );
@@ -349,7 +349,7 @@ function farmApiPlugin(options = {}) {
349
349
  }
350
350
  }
351
351
  } catch (e) {
352
- if (e instanceof _chunkRWFLWR5Jcjs.APIRouteConflictError || e instanceof _chunkNO3WWW3Ncjs.AmbiguousRouteError) throw e;
352
+ if (e instanceof _chunkQJM7A4CRcjs.APIRouteConflictError || e instanceof _chunkNO3WWW3Ncjs.AmbiguousRouteError) throw e;
353
353
  log(`Programmatic routes file load failed at ${routeFile}: ${e.message}`);
354
354
  }
355
355
  }
@@ -401,7 +401,7 @@ function farmApiPlugin(options = {}) {
401
401
  const pathname = url.split("?")[0];
402
402
  const method = req.method || "GET";
403
403
  if (discoveryPromise) await waitForDiscovery();
404
- if (!_chunkXKG2BLFNcjs.matchAPIRouteAtBasePath.call(void 0, servedRoutes(), pathname, basePath)) {
404
+ if (!_chunkUXMIFB44cjs.matchAPIRouteAtBasePath.call(void 0, servedRoutes(), pathname, basePath)) {
405
405
  return next();
406
406
  }
407
407
  if (!apiRouterHandler) {
@@ -422,10 +422,10 @@ function farmApiPlugin(options = {}) {
422
422
  }
423
423
  const currentUrl = req.url || url;
424
424
  const currentPathname = currentUrl.split("?")[0];
425
- if (currentPathname !== pathname && !_chunkXKG2BLFNcjs.matchAPIRouteAtBasePath.call(void 0, servedRoutes(), currentPathname, basePath)) {
425
+ if (currentPathname !== pathname && !_chunkUXMIFB44cjs.matchAPIRouteAtBasePath.call(void 0, servedRoutes(), currentPathname, basePath)) {
426
426
  return next();
427
427
  }
428
- const fullUrl = _chunk6XWDE2P2cjs.resolveFarmRequestURL.call(void 0, req);
428
+ const fullUrl = _chunkXVIEGKTTcjs.resolveFarmRequestURL.call(void 0, req);
429
429
  const headers = new Headers();
430
430
  for (const [key, value] of Object.entries(req.headers)) {
431
431
  if (value) {
@@ -434,7 +434,7 @@ function farmApiPlugin(options = {}) {
434
434
  }
435
435
  let body;
436
436
  if (method !== "GET" && method !== "HEAD") {
437
- body = await _chunkKIIMAWOJcjs.readNodeRequestBody.call(void 0, req, bodySizeLimit);
437
+ body = await _chunk5NAVKJCZcjs.readNodeRequestBody.call(void 0, req, bodySizeLimit);
438
438
  }
439
439
  const request = new Request(fullUrl, {
440
440
  method,
@@ -449,7 +449,7 @@ function farmApiPlugin(options = {}) {
449
449
  logResponse(method, currentPathname, response.status, duration);
450
450
  await _chunkUQZ4AYTHcjs.sendWebResponse.call(void 0, res, response);
451
451
  } catch (error) {
452
- const bodyErrorResponse = _chunkKIIMAWOJcjs.createFarmRequestBodyErrorResponse.call(void 0, error);
452
+ const bodyErrorResponse = _chunk5NAVKJCZcjs.createFarmRequestBodyErrorResponse.call(void 0, error);
453
453
  if (bodyErrorResponse) {
454
454
  await _chunkUQZ4AYTHcjs.sendWebResponse.call(void 0, res, bodyErrorResponse);
455
455
  return;
@@ -490,7 +490,7 @@ function farmApiPlugin(options = {}) {
490
490
  async handleHotUpdate({ file, server, modules }) {
491
491
  const normalizedFile = _chunk5QIKR7RRcjs.toPosixPath.call(void 0, file);
492
492
  const fileName = normalizedFile.split("/").pop() || "";
493
- if (fileName === "routes.ts" || fileName === "routes.tsx" || fileName === "routes.js" || _chunk6V4TDWECcjs.isProgrammaticRoutesFileName.call(void 0, fileName)) {
493
+ if (fileName === "routes.ts" || fileName === "routes.tsx" || fileName === "routes.js" || _chunkCGVPXIRNcjs.isProgrammaticRoutesFileName.call(void 0, fileName)) {
494
494
  log(`Root routes file updated: ${fileName}`);
495
495
  for (const mod of modules) {
496
496
  server.moduleGraph.invalidateModule(mod);
@@ -498,7 +498,7 @@ function farmApiPlugin(options = {}) {
498
498
  if (await _optionalChain([recoverFailedDiscovery, 'optionalCall', _9 => _9()])) return [];
499
499
  const previousState = snapshotRouteState();
500
500
  try {
501
- const routesModule = await _chunkSHLXACIOcjs.loadFarmDevModule.call(void 0, server, file);
501
+ const routesModule = await _chunkPJ42JESYcjs.loadFarmDevModule.call(void 0, server, file);
502
502
  removeEndpointsFromFile(file);
503
503
  for (const [exportName, exportValue] of Object.entries(routesModule)) {
504
504
  const endpoint = exportValue;
@@ -526,7 +526,7 @@ function farmApiPlugin(options = {}) {
526
526
  log(`API router recreated`);
527
527
  } catch (e) {
528
528
  restoreRouteState(previousState);
529
- if (e instanceof _chunkRWFLWR5Jcjs.APIRouteConflictError || e instanceof _chunkNO3WWW3Ncjs.AmbiguousRouteError) throw e;
529
+ if (e instanceof _chunkQJM7A4CRcjs.APIRouteConflictError || e instanceof _chunkNO3WWW3Ncjs.AmbiguousRouteError) throw e;
530
530
  log(`Root routes.ts HMR failed: ${e.message}`);
531
531
  }
532
532
  return [];
@@ -551,10 +551,10 @@ function farmApiPlugin(options = {}) {
551
551
  log(`API route file removed: ${routePath}`);
552
552
  return [];
553
553
  }
554
- const routeModule = await _chunkSHLXACIOcjs.loadFarmDevModule.call(void 0, server, file);
554
+ const routeModule = await _chunkPJ42JESYcjs.loadFarmDevModule.call(void 0, server, file);
555
555
  removeEndpointsFromFile(file);
556
556
  const availableMethods = [];
557
- for (const method of _chunkXKG2BLFNcjs.API_ROUTE_METHODS) {
557
+ for (const method of _chunkUXMIFB44cjs.API_ROUTE_METHODS) {
558
558
  if (!routeModule[method]) continue;
559
559
  availableMethods.push(method);
560
560
  addEndpoint(routePath, file, method, routeModule[method]);
@@ -564,7 +564,7 @@ function farmApiPlugin(options = {}) {
564
564
  log(`API router recreated`);
565
565
  } catch (e) {
566
566
  restoreRouteState(previousState);
567
- if (e instanceof _chunkRWFLWR5Jcjs.APIRouteConflictError || e instanceof _chunkNO3WWW3Ncjs.AmbiguousRouteError) throw e;
567
+ if (e instanceof _chunkQJM7A4CRcjs.APIRouteConflictError || e instanceof _chunkNO3WWW3Ncjs.AmbiguousRouteError) throw e;
568
568
  log(`API route HMR failed: ${e.message}`);
569
569
  }
570
570
  return [];
@@ -307,12 +307,11 @@ function hashFarmCacheKey(value) {
307
307
  _chunkS3JO3N4Hcjs.__name.call(void 0, hashFarmCacheKey, "hashFarmCacheKey");
308
308
  function toEventAttributes(event) {
309
309
  const attributes = {};
310
- const redactKey = typeof event.type === "string" && event.type.startsWith("cache.");
311
310
  for (const [key, value] of Object.entries(event)) {
312
311
  if (key === "timestamp" || key === "level" || key === "error" || key === "traceId" || key === "spanId" || key === "traceSampled" || value === void 0) {
313
312
  continue;
314
313
  }
315
- if (redactKey && key === "key" && typeof value === "string") {
314
+ if (key === "key" && typeof value === "string") {
316
315
  attributes["farm.key_hash"] = hashFarmCacheKey(value);
317
316
  continue;
318
317
  }
@@ -432,6 +431,7 @@ function emitFarmEvent(input) {
432
431
  level: inferFarmEventLevel(input.type),
433
432
  ...input
434
433
  };
434
+ if (event.type === "route.redirect") event.to = event.to.replace(/[?#][\s\S]*$/, "");
435
435
  const traceContext = recordFarmEventTrace(event);
436
436
  if (traceContext) {
437
437
  event.traceId = traceContext.traceId;
@@ -553,7 +553,9 @@ function formatFarmEventDetails(event) {
553
553
  "count"
554
554
  ]) {
555
555
  const value = record[key];
556
- if (value !== void 0) {
556
+ if (key === "key" && typeof value === "string") {
557
+ details.push(`key_hash=${hashFarmCacheKey(value)}`);
558
+ } else if (value !== void 0) {
557
559
  details.push(`${key}=${formatDetailValue(value)}`);
558
560
  }
559
561
  }
@@ -1,9 +1,12 @@
1
+ import {
2
+ FARM_ANONYMOUS_CLIENT_ADDRESS
3
+ } from "./chunk-BRYPZIMB.mjs";
1
4
  import {
2
5
  FARM_MARKDOWN_PAGE_CHECK_HEADER,
3
6
  _getFarmMarkdownPageCheckToken,
4
7
  createFarmMarkdownViewResponse,
5
8
  requestAcceptsMarkdown
6
- } from "./chunk-VNGH5MLF.mjs";
9
+ } from "./chunk-I6UVKUYK.mjs";
7
10
  import {
8
11
  __name
9
12
  } from "./chunk-LPEX4YW6.mjs";
@@ -194,7 +197,7 @@ function hasOnlyAnonymousHeaders(headers) {
194
197
  return true;
195
198
  }
196
199
  __name(hasOnlyAnonymousHeaders, "hasOnlyAnonymousHeaders");
197
- var FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS = "192.0.2.1";
200
+ var FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS = FARM_ANONYMOUS_CLIENT_ADDRESS;
198
201
  async function createFarmMarkdownSourceResponse(options) {
199
202
  if (options.request.method !== "GET" && options.request.method !== "HEAD") {
200
203
  return null;
@@ -0,0 +1,22 @@
1
+ import {
2
+ __name
3
+ } from "./chunk-LPEX4YW6.mjs";
4
+
5
+ // src/plugin-integration-context.ts
6
+ var FARM_PLUGIN_INTEGRATION_CONTEXT = /* @__PURE__ */ Symbol.for("@farm.js/core/plugin-integration-context");
7
+ function setFarmPluginIntegrationContext(plugin, integration) {
8
+ Object.defineProperty(plugin, FARM_PLUGIN_INTEGRATION_CONTEXT, {
9
+ value: integration
10
+ });
11
+ }
12
+ __name(setFarmPluginIntegrationContext, "setFarmPluginIntegrationContext");
13
+ function getFarmPluginIntegrationContext(plugin) {
14
+ const value = plugin[FARM_PLUGIN_INTEGRATION_CONTEXT];
15
+ return value && typeof value === "object" ? value : void 0;
16
+ }
17
+ __name(getFarmPluginIntegrationContext, "getFarmPluginIntegrationContext");
18
+
19
+ export {
20
+ setFarmPluginIntegrationContext,
21
+ getFarmPluginIntegrationContext
22
+ };
@@ -1,33 +1,36 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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
3
 
4
- var _chunkM7MKQXAFcjs = require('./chunk-M7MKQXAF.cjs');
5
4
 
5
+ var _chunk6BWKJ6QScjs = require('./chunk-6BWKJ6QS.cjs');
6
6
 
7
7
 
8
8
 
9
9
 
10
- var _chunkZXH4TS3Fcjs = require('./chunk-ZXH4TS3F.cjs');
11
10
 
11
+ var _chunk2JG2LJDIcjs = require('./chunk-2JG2LJDI.cjs');
12
12
 
13
13
 
14
14
 
15
15
 
16
16
 
17
- var _chunkUPJLHLJUcjs = require('./chunk-UPJLHLJU.cjs');
17
+
18
+ var _chunkALPWLT27cjs = require('./chunk-ALPWLT27.cjs');
18
19
 
19
20
 
20
21
  var _chunkM2L4MYDQcjs = require('./chunk-M2L4MYDQ.cjs');
21
22
 
22
23
 
24
+ var _chunkVQDBNVOOcjs = require('./chunk-VQDBNVOO.cjs');
25
+
23
26
 
24
- var _chunkSHLXACIOcjs = require('./chunk-SHLXACIO.cjs');
27
+ var _chunkPJ42JESYcjs = require('./chunk-PJ42JESY.cjs');
25
28
 
26
29
 
27
30
  var _chunk5QIKR7RRcjs = require('./chunk-5QIKR7RR.cjs');
28
31
 
29
32
 
30
- var _chunkE3UK5IIBcjs = require('./chunk-E3UK5IIB.cjs');
33
+ var _chunkGS3WR5HXcjs = require('./chunk-GS3WR5HX.cjs');
31
34
 
32
35
 
33
36
  var _chunkUQZ4AYTHcjs = require('./chunk-UQZ4AYTH.cjs');
@@ -41,7 +44,7 @@ var _chunkKNBBQHO2cjs = require('./chunk-KNBBQHO2.cjs');
41
44
  var _chunkOX6O6WVAcjs = require('./chunk-OX6O6WVA.cjs');
42
45
 
43
46
 
44
- var _chunk6XWDE2P2cjs = require('./chunk-6XWDE2P2.cjs');
47
+ var _chunkXVIEGKTTcjs = require('./chunk-XVIEGKTT.cjs');
45
48
 
46
49
 
47
50
  var _chunkBIDYX3SLcjs = require('./chunk-BIDYX3SL.cjs');
@@ -57,7 +60,7 @@ var _CookieJarImpl = class _CookieJarImpl {
57
60
  constructor(req, res) {
58
61
  this.req = req;
59
62
  this.res = res;
60
- this.cookies = _chunkZXH4TS3Fcjs.parseMiddlewareCookieHeader.call(void 0, req.headers.cookie);
63
+ this.cookies = _chunk2JG2LJDIcjs.parseMiddlewareCookieHeader.call(void 0, req.headers.cookie);
61
64
  const existing = res.getHeader("Set-Cookie");
62
65
  this.setCookies = Array.isArray(existing) ? existing.map(String) : existing === void 0 ? [] : [String(existing)];
63
66
  }
@@ -66,13 +69,13 @@ var _CookieJarImpl = class _CookieJarImpl {
66
69
  }
67
70
  set(name, value, options = {}) {
68
71
  this.cookies[name] = value;
69
- const cookieString = _chunkZXH4TS3Fcjs.serializeMiddlewareCookie.call(void 0, name, value, options);
72
+ const cookieString = _chunk2JG2LJDIcjs.serializeMiddlewareCookie.call(void 0, name, value, options);
70
73
  this.setCookies.push(cookieString);
71
74
  this.res.setHeader("Set-Cookie", this.setCookies);
72
75
  }
73
76
  delete(name, options = {}) {
74
77
  delete this.cookies[name];
75
- this.setCookies.push(_chunkZXH4TS3Fcjs.serializeMiddlewareCookieDeletion.call(void 0, name, options));
78
+ this.setCookies.push(_chunk2JG2LJDIcjs.serializeMiddlewareCookieDeletion.call(void 0, name, options));
76
79
  this.res.setHeader("Set-Cookie", this.setCookies);
77
80
  }
78
81
  getAll() {
@@ -82,7 +85,7 @@ var _CookieJarImpl = class _CookieJarImpl {
82
85
  _chunkS3JO3N4Hcjs.__name.call(void 0, _CookieJarImpl, "CookieJarImpl");
83
86
  var CookieJarImpl = _CookieJarImpl;
84
87
  function createContext(req, res, viteServer, parent, server, toRoutePathname) {
85
- const url = _chunk6XWDE2P2cjs.resolveFarmRequestURL.call(void 0, req, { trustProxy: _optionalChain([server, 'optionalAccess', _ => _.trustProxy]) });
88
+ const url = _chunkXVIEGKTTcjs.resolveFarmRequestURL.call(void 0, req, { trustProxy: _optionalChain([server, 'optionalAccess', _ => _.trustProxy]) });
86
89
  const headers = /* @__PURE__ */ new Map();
87
90
  const data = _optionalChain([parent, 'optionalAccess', _2 => _2.data]) ? new Map(parent.data) : /* @__PURE__ */ new Map();
88
91
  const locals = _optionalChain([parent, 'optionalAccess', _3 => _3.locals]) ? new Map(parent.locals) : /* @__PURE__ */ new Map();
@@ -106,7 +109,7 @@ function createContext(req, res, viteServer, parent, server, toRoutePathname) {
106
109
  response: res,
107
110
  url,
108
111
  pathname: url.pathname,
109
- routePathname: _chunkUPJLHLJUcjs.toMiddlewareRoutePathname.call(void 0, url.pathname, toRoutePathname),
112
+ routePathname: _chunkALPWLT27cjs.toMiddlewareRoutePathname.call(void 0, url.pathname, toRoutePathname),
110
113
  searchParams: url.searchParams,
111
114
  method: req.method || "GET",
112
115
  params: {},
@@ -142,7 +145,7 @@ function createContext(req, res, viteServer, parent, server, toRoutePathname) {
142
145
  const newUrl = new URL(rewriteUrl, ctx.url);
143
146
  ctx.url = newUrl;
144
147
  ctx.pathname = newUrl.pathname;
145
- ctx.routePathname = _chunkUPJLHLJUcjs.toMiddlewareRoutePathname.call(void 0, newUrl.pathname, toRoutePathname);
148
+ ctx.routePathname = _chunkALPWLT27cjs.toMiddlewareRoutePathname.call(void 0, newUrl.pathname, toRoutePathname);
146
149
  ctx.searchParams = newUrl.searchParams;
147
150
  ctx.route = newUrl.pathname;
148
151
  req.url = rewriteUrl;
@@ -194,38 +197,6 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, createContext, "createContext");
194
197
  // src/middleware/manager.ts
195
198
  var _fs = require('fs'); var fs = _interopRequireWildcard(_fs);
196
199
  var _path = require('path'); var path = _interopRequireWildcard(_path);
197
-
198
- // src/middleware/path.ts
199
- function appendMiddlewareRoutePath(routePath, directoryName) {
200
- const marker = _chunkM7MKQXAFcjs.parseInterceptionMarker.call(void 0, directoryName);
201
- if (marker) {
202
- const owner = routePath.split("/").filter(Boolean);
203
- const parts = [
204
- ...marker.root ? [] : owner.slice(0, Math.max(0, owner.length - marker.up)),
205
- ...marker.remainder ? [marker.remainder] : []
206
- ];
207
- return `/${parts.join("/")}`;
208
- }
209
- if (directoryName.startsWith("(") && directoryName.endsWith(")") || _chunkM7MKQXAFcjs.isRouteSlotSegment.call(void 0, directoryName)) {
210
- return routePath;
211
- }
212
- return routePath === "/" ? `/${directoryName}` : `${routePath}/${directoryName}`;
213
- }
214
- _chunkS3JO3N4Hcjs.__name.call(void 0, appendMiddlewareRoutePath, "appendMiddlewareRoutePath");
215
- function appendMiddlewareDirectory(directory, directoryName) {
216
- return directory === "" ? directoryName : `${directory}/${directoryName}`;
217
- }
218
- _chunkS3JO3N4Hcjs.__name.call(void 0, appendMiddlewareDirectory, "appendMiddlewareDirectory");
219
- function countSegments(value) {
220
- return value.split("/").filter(Boolean).length;
221
- }
222
- _chunkS3JO3N4Hcjs.__name.call(void 0, countSegments, "countSegments");
223
- function compareMiddlewareRouteLocations(left, right) {
224
- return countSegments(left.path) - countSegments(right.path) || left.path.localeCompare(right.path) || countSegments(left.directory) - countSegments(right.directory) || left.directory.localeCompare(right.directory);
225
- }
226
- _chunkS3JO3N4Hcjs.__name.call(void 0, compareMiddlewareRouteLocations, "compareMiddlewareRouteLocations");
227
-
228
- // src/middleware/manager.ts
229
200
  function isMiddlewareResponse(value) {
230
201
  return value instanceof Response;
231
202
  }
@@ -249,7 +220,7 @@ var _MiddlewareManager = class _MiddlewareManager {
249
220
  for (const [index, entry] of entries.entries()) {
250
221
  const handlers = this.getConfigHandlers(entry);
251
222
  const middlewareConfig = this.toMiddlewareConfig(entry);
252
- _chunkUPJLHLJUcjs.compileMiddlewareConfig.call(void 0, middlewareConfig);
223
+ _chunkALPWLT27cjs.compileMiddlewareConfig.call(void 0, middlewareConfig);
253
224
  if (handlers.length === 0) {
254
225
  this.globalConfig = middlewareConfig;
255
226
  continue;
@@ -272,11 +243,11 @@ var _MiddlewareManager = class _MiddlewareManager {
272
243
  const discovered = [];
273
244
  await this.discoverInDirectory(appDir, "/", "", discovered);
274
245
  for (const entry of discovered) {
275
- _chunkUPJLHLJUcjs.compileMiddlewareRoute.call(void 0, entry.middleware);
246
+ _chunkALPWLT27cjs.compileMiddlewareRoute.call(void 0, entry.middleware);
276
247
  middlewareByDirectory.set(entry.location.directory, entry);
277
248
  }
278
249
  }
279
- this.middleware = Array.from(middlewareByDirectory.values()).sort((left, right) => compareMiddlewareRouteLocations(left.location, right.location)).map((entry) => entry.middleware);
250
+ this.middleware = Array.from(middlewareByDirectory.values()).sort((left, right) => _chunk6BWKJ6QScjs.compareMiddlewareRouteLocations.call(void 0, left.location, right.location)).map((entry) => entry.middleware);
280
251
  if (process.env.FARM_VERBOSE && this.middleware.length > 0) {
281
252
  _chunk5QIKR7RRcjs.logger.success(`Discovered ${this.middleware.length} middleware files`);
282
253
  for (const mw of this.middleware) {
@@ -303,8 +274,8 @@ var _MiddlewareManager = class _MiddlewareManager {
303
274
  if (entry.isDirectory() && !entry.name.startsWith(".")) {
304
275
  await this.discoverInDirectory(
305
276
  path.join(dir, entry.name),
306
- appendMiddlewareRoutePath(routePath, entry.name),
307
- appendMiddlewareDirectory(directory, entry.name),
277
+ _chunk6BWKJ6QScjs.appendMiddlewareRoutePath.call(void 0, routePath, entry.name),
278
+ _chunk6BWKJ6QScjs.appendMiddlewareDirectory.call(void 0, directory, entry.name),
308
279
  discovered
309
280
  );
310
281
  }
@@ -330,19 +301,19 @@ var _MiddlewareManager = class _MiddlewareManager {
330
301
  try {
331
302
  let module;
332
303
  if (this.viteServer) {
333
- module = await _chunkSHLXACIOcjs.loadFarmDevModule.call(void 0, this.viteServer, filePath);
304
+ module = await _chunkPJ42JESYcjs.loadFarmDevModule.call(void 0, this.viteServer, filePath);
334
305
  } else {
335
306
  module = await import(
336
307
  /* @vite-ignore */
337
- _chunkSHLXACIOcjs.toFileModuleUrl.call(void 0, filePath)
308
+ _chunkVQDBNVOOcjs.toFileModuleUrl.call(void 0, filePath)
338
309
  );
339
310
  }
340
- const normalized = _chunkZXH4TS3Fcjs.normalizeMiddlewareModule.call(void 0, module, routePath);
311
+ const normalized = _chunk2JG2LJDIcjs.normalizeMiddlewareModule.call(void 0, module, routePath);
341
312
  if (!normalized) {
342
313
  throw new Error("must export a default handler or a named middleware handler");
343
314
  }
344
315
  if (normalized.config) {
345
- _chunkUPJLHLJUcjs.compileMiddlewareConfig.call(void 0, normalized.config);
316
+ _chunkALPWLT27cjs.compileMiddlewareConfig.call(void 0, normalized.config);
346
317
  }
347
318
  return {
348
319
  path: routePath,
@@ -359,7 +330,7 @@ var _MiddlewareManager = class _MiddlewareManager {
359
330
  * Execute middleware for a request
360
331
  */
361
332
  async execute(req, res) {
362
- const url = _chunk6XWDE2P2cjs.resolveFarmRequestURL.call(void 0, req, { trustProxy: _optionalChain([this, 'access', _6 => _6.server, 'optionalAccess', _7 => _7.trustProxy]) });
333
+ const url = _chunkXVIEGKTTcjs.resolveFarmRequestURL.call(void 0, req, { trustProxy: _optionalChain([this, 'access', _6 => _6.server, 'optionalAccess', _7 => _7.trustProxy]) });
363
334
  const pathname = url.pathname;
364
335
  const toRoutePathname = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (value) => _optionalChain([this, 'access', _8 => _8.i18n, 'optionalAccess', _9 => _9.enabled]) ? _chunkBIDYX3SLcjs.stripFarmLocaleFromPathname.call(void 0, value, this.i18n) : _chunkI57LW5VZcjs.stripFarmBasePath.call(void 0, value, _nullishCoalesce(_optionalChain([this, 'access', _10 => _10.i18n, 'optionalAccess', _11 => _11.basePath]), () => ( "/"))), "toRoutePathname");
365
336
  const routePathname = toRoutePathname(pathname);
@@ -381,7 +352,7 @@ var _MiddlewareManager = class _MiddlewareManager {
381
352
  ...this.configMiddleware.map((mw) => ({ mw, routeMatch: { matched: true } })),
382
353
  ...this.middleware.map((mw) => ({
383
354
  mw,
384
- routeMatch: _chunkUPJLHLJUcjs.matchesMiddlewareRouteAt.call(void 0, toMiddlewarePathnames(routePathname), mw)
355
+ routeMatch: _chunkALPWLT27cjs.matchesMiddlewareRouteAt.call(void 0, toMiddlewarePathnames(routePathname), mw)
385
356
  })).filter((entry) => entry.routeMatch.matched)
386
357
  ];
387
358
  if (applicable.length === 0) {
@@ -407,17 +378,17 @@ var _MiddlewareManager = class _MiddlewareManager {
407
378
  for (; ; ) {
408
379
  for (const entry of pass) yield { ...entry, pathname: passPathname };
409
380
  const rewrittenPathname = toRoutePathname(
410
- _chunk6XWDE2P2cjs.resolveFarmRequestURL.call(void 0, req, { trustProxy }).pathname
381
+ _chunkXVIEGKTTcjs.resolveFarmRequestURL.call(void 0, req, { trustProxy }).pathname
411
382
  );
412
383
  if (rewrittenPathname === passPathname) return;
413
384
  passPathname = rewrittenPathname;
414
385
  const passPathnames = toMiddlewarePathnames(passPathname);
415
- if (globalConfig && !_chunkUPJLHLJUcjs.matchesMiddlewareConfigAt.call(void 0, passPathnames, globalConfig, ctx).matched) {
386
+ if (globalConfig && !_chunkALPWLT27cjs.matchesMiddlewareConfigAt.call(void 0, passPathnames, globalConfig, ctx).matched) {
416
387
  return;
417
388
  }
418
389
  pass = allMiddleware.filter((mw) => !ran.has(mw)).map((mw) => ({
419
390
  mw,
420
- routeMatch: mw.source === "config" ? { matched: true } : _chunkUPJLHLJUcjs.matchesMiddlewareRouteAt.call(void 0, passPathnames, mw)
391
+ routeMatch: mw.source === "config" ? { matched: true } : _chunkALPWLT27cjs.matchesMiddlewareRouteAt.call(void 0, passPathnames, mw)
421
392
  })).filter((entry) => entry.routeMatch.matched);
422
393
  }
423
394
  }
@@ -449,7 +420,7 @@ var _MiddlewareManager = class _MiddlewareManager {
449
420
  pathname,
450
421
  name: mw.filePath
451
422
  };
452
- _chunkE3UK5IIBcjs.emitFarmEvent.call(void 0, { type: "middleware.start", ...middlewareEvent });
423
+ _chunkGS3WR5HXcjs.emitFarmEvent.call(void 0, { type: "middleware.start", ...middlewareEvent });
453
424
  try {
454
425
  let handlerIndex = 0;
455
426
  let returnedResponse;
@@ -475,7 +446,7 @@ var _MiddlewareManager = class _MiddlewareManager {
475
446
  }
476
447
  }
477
448
  }
478
- _chunkE3UK5IIBcjs.emitFarmEvent.call(void 0, {
449
+ _chunkGS3WR5HXcjs.emitFarmEvent.call(void 0, {
479
450
  type: "middleware.shortCircuit",
480
451
  ...middlewareEvent,
481
452
  status: response.status
@@ -484,20 +455,20 @@ var _MiddlewareManager = class _MiddlewareManager {
484
455
  return true;
485
456
  }
486
457
  if (ctx._handled || res.headersSent || res.writableEnded) {
487
- _chunkE3UK5IIBcjs.emitFarmEvent.call(void 0, {
458
+ _chunkGS3WR5HXcjs.emitFarmEvent.call(void 0, {
488
459
  type: "middleware.shortCircuit",
489
460
  ...middlewareEvent,
490
461
  status: res.statusCode
491
462
  });
492
463
  return true;
493
464
  }
494
- _chunkE3UK5IIBcjs.emitFarmEvent.call(void 0, {
465
+ _chunkGS3WR5HXcjs.emitFarmEvent.call(void 0, {
495
466
  type: "middleware.complete",
496
467
  ...middlewareEvent,
497
468
  durationMs: Date.now() - middlewareStartTime
498
469
  });
499
470
  } catch (error) {
500
- _chunkE3UK5IIBcjs.emitFarmEvent.call(void 0,
471
+ _chunkGS3WR5HXcjs.emitFarmEvent.call(void 0,
501
472
  _chunkOX6O6WVAcjs.isFarmRedirectError.call(void 0, error) || _chunkOX6O6WVAcjs.isFarmNotFoundError.call(void 0, error) ? {
502
473
  type: "middleware.shortCircuit",
503
474
  ...middlewareEvent,
@@ -528,7 +499,7 @@ var _MiddlewareManager = class _MiddlewareManager {
528
499
  * Check if pathname matches middleware config
529
500
  */
530
501
  matchesConfig(pathname, config, ctx) {
531
- return _chunkUPJLHLJUcjs.matchesMiddlewareConfigAt.call(void 0, this.toMiddlewarePathnames(pathname), config, ctx);
502
+ return _chunkALPWLT27cjs.matchesMiddlewareConfigAt.call(void 0, this.toMiddlewarePathnames(pathname), config, ctx);
532
503
  }
533
504
  /**
534
505
  * Reload middleware (for HMR)
@@ -563,7 +534,4 @@ var MiddlewareManager = _MiddlewareManager;
563
534
 
564
535
 
565
536
 
566
-
567
-
568
-
569
- exports.createContext = createContext; exports.appendMiddlewareRoutePath = appendMiddlewareRoutePath; exports.appendMiddlewareDirectory = appendMiddlewareDirectory; exports.compareMiddlewareRouteLocations = compareMiddlewareRouteLocations; exports.MiddlewareManager = MiddlewareManager;
537
+ exports.createContext = createContext; exports.MiddlewareManager = MiddlewareManager;
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.1.39";
2
+ var version = "0.1.40";
3
3
 
4
4
  // src/version.ts
5
5
  var FARM_VERSION = version;