@farm.js/core 0.1.31 → 0.1.35
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.
- package/README.md +1 -1
- package/dist/agent-runtime.cjs +70 -15
- package/dist/agent-runtime.d.mts +4 -5
- package/dist/agent-runtime.d.ts +4 -5
- package/dist/agent-runtime.mjs +59 -4
- package/dist/api/route-manager.cjs +17 -14
- package/dist/api/route-manager.d.mts +6 -7
- package/dist/api/route-manager.d.ts +6 -7
- package/dist/api/route-manager.mjs +16 -13
- package/dist/api/runtime.cjs +12 -8
- package/dist/api/runtime.d.mts +4 -5
- package/dist/api/runtime.d.ts +4 -5
- package/dist/api/runtime.mjs +12 -8
- package/dist/api.cjs +20 -17
- package/dist/api.d.mts +7 -8
- package/dist/api.d.ts +7 -8
- package/dist/api.mjs +19 -16
- package/dist/{app-sUJ3jnTZ.d.ts → app-BXB3JZYc.d.ts} +38 -12
- package/dist/{app-DAuUTIZf.d.mts → app-D_j9AAVL.d.mts} +38 -12
- package/dist/app-markdown.cjs +8 -6
- package/dist/app-markdown.d.mts +6 -7
- package/dist/app-markdown.d.ts +6 -7
- package/dist/app-markdown.mjs +7 -5
- package/dist/cache.cjs +2 -2
- package/dist/cache.d.mts +10 -1
- package/dist/cache.d.ts +10 -1
- package/dist/cache.mjs +1 -1
- package/dist/{chunk-BXFWA23T.mjs → chunk-22LTEMGQ.mjs} +3 -3
- package/dist/{chunk-YZTASLPQ.cjs → chunk-27ZWSI3W.cjs} +2 -2
- package/dist/{chunk-WBIH66JK.mjs → chunk-2ELDTQRN.mjs} +5 -2
- package/dist/{chunk-K7CELQLK.cjs → chunk-2F2ER724.cjs} +54 -29
- package/dist/{chunk-O3DTUAX2.mjs → chunk-2G2NNLE2.mjs} +6 -77
- package/dist/{chunk-NRVGEI5I.mjs → chunk-2NNMOPDN.mjs} +4 -210
- package/dist/{chunk-CTV2TTNP.cjs → chunk-3BHT4WMP.cjs} +16 -87
- package/dist/chunk-3BU22U3M.cjs +237 -0
- package/dist/{chunk-MM5D6VLP.mjs → chunk-3KZS4SUS.mjs} +33 -14
- package/dist/{chunk-VA62MHFV.mjs → chunk-3PXS2MHU.mjs} +1 -1
- package/dist/chunk-3SDFA7UF.cjs +701 -0
- package/dist/{chunk-4IEPYMHF.mjs → chunk-3UEVPCGW.mjs} +1 -1
- package/dist/{chunk-MXDTKXO6.cjs → chunk-3UH7MRCP.cjs} +73 -26
- package/dist/{chunk-7QOCTYBS.mjs → chunk-4JHOT46A.mjs} +37 -1
- package/dist/{chunk-6L6DQR5W.mjs → chunk-4KU5Q7C2.mjs} +917 -305
- package/dist/{chunk-3FCFQP5V.cjs → chunk-4MMGO7YW.cjs} +25 -25
- package/dist/{chunk-5HGR3W6O.mjs → chunk-5SJWVY6R.mjs} +8 -0
- package/dist/{chunk-KZLND3D2.cjs → chunk-62XKI4Z3.cjs} +7 -5
- package/dist/{chunk-FJZ3DQLK.mjs → chunk-6DU6UFUE.mjs} +13 -12
- package/dist/{chunk-TEN4FIZU.mjs → chunk-6ETPZTJI.mjs} +513 -3
- package/dist/{chunk-VUMAE7NC.mjs → chunk-6TJOML4E.mjs} +92 -31
- package/dist/{chunk-3ATMYLLJ.mjs → chunk-6WCPV6G2.mjs} +1 -1
- package/dist/{chunk-FYRBX5IY.cjs → chunk-73MC7ZL6.cjs} +2 -2
- package/dist/chunk-75RZHGLS.cjs +135 -0
- package/dist/{chunk-QZRVZSPN.cjs → chunk-77GNHH2Z.cjs} +3 -3
- package/dist/{chunk-FXUUWYAX.cjs → chunk-7GLPRTTF.cjs} +12 -2
- package/dist/{chunk-A777V5WU.cjs → chunk-7L5V3KQO.cjs} +2 -2
- package/dist/{chunk-4ZQQL4IU.mjs → chunk-AHGECQEW.mjs} +1 -1
- package/dist/{chunk-RG3ZOTG5.cjs → chunk-AI7QMY7O.cjs} +10 -3
- package/dist/{chunk-YMCXWPWK.mjs → chunk-BCMSYSN2.mjs} +4 -1
- package/dist/{chunk-I6XDAKWQ.mjs → chunk-BTHHUD7Q.mjs} +14 -0
- package/dist/{chunk-LI2LMOLR.mjs → chunk-C35ZBVRD.mjs} +12 -3
- package/dist/chunk-C4SPBWFM.cjs +26 -0
- package/dist/{chunk-YQVSHTMR.mjs → chunk-CP6X4AEU.mjs} +1 -1
- package/dist/{chunk-QZCT2CQ4.mjs → chunk-CXEN47J3.mjs} +64 -2
- package/dist/{chunk-WNLBF77X.cjs → chunk-D227TIEN.cjs} +28 -16
- package/dist/{chunk-ROUTX2E5.cjs → chunk-DBNKI4NF.cjs} +12 -3
- package/dist/{chunk-J3LOGE4T.cjs → chunk-DQQOKWYA.cjs} +5 -5
- package/dist/chunk-E5GNDG5F.mjs +701 -0
- package/dist/{chunk-X7KZBF63.cjs → chunk-EFCQPQMG.cjs} +40 -4
- package/dist/{chunk-K3F2E6GS.cjs → chunk-EJQT6KZN.cjs} +2 -2
- package/dist/{chunk-3LUF2PE2.cjs → chunk-EK4QAEFZ.cjs} +67 -5
- package/dist/{chunk-VVBO3QH7.mjs → chunk-ENLZ4R3Y.mjs} +10 -1
- package/dist/{chunk-KJ2TIHZZ.cjs → chunk-EUV4YR3V.cjs} +3 -2
- package/dist/{chunk-E76XC6ZG.mjs → chunk-EZDQRNQ7.mjs} +2 -2
- package/dist/{chunk-TOVMYGYW.mjs → chunk-F2SE2VDO.mjs} +1 -1
- package/dist/{chunk-MNUGPHLN.mjs → chunk-F6Z3Y5KL.mjs} +5 -3
- package/dist/{chunk-DFLLARUK.cjs → chunk-F7JZENPF.cjs} +35 -34
- package/dist/{chunk-BSPQVJ4A.mjs → chunk-FDR64H6B.mjs} +13 -0
- package/dist/{chunk-5OVTOKGH.cjs → chunk-FFFW3OQ7.cjs} +2 -2
- package/dist/{chunk-D4JE5NNV.cjs → chunk-FNO7A7CM.cjs} +5 -5
- package/dist/{chunk-Z5HIWVDP.cjs → chunk-FTFYRMQQ.cjs} +80 -91
- package/dist/chunk-FZ6YYU2W.mjs +65 -0
- package/dist/{chunk-X7WVQMIB.mjs → chunk-G5RT7EXW.mjs} +11 -5
- package/dist/{chunk-IXUY2F5U.mjs → chunk-GCXWJJKH.mjs} +4 -7
- package/dist/{chunk-ES4B2IXW.cjs → chunk-GFHLGIYC.cjs} +8 -8
- package/dist/{chunk-SORB3MAR.cjs → chunk-GQ3Z3IZI.cjs} +17 -17
- package/dist/{chunk-75WGQVQA.cjs → chunk-HITLGIAO.cjs} +10 -1
- package/dist/{chunk-HBTUGXHS.cjs → chunk-HLJ6MBUZ.cjs} +7 -4
- package/dist/{chunk-JLCQGPXE.mjs → chunk-HMIJDL7S.mjs} +51 -62
- package/dist/{chunk-F6XEGFHO.mjs → chunk-HUMR6LSU.mjs} +11 -1
- package/dist/{chunk-IMB4PIAR.cjs → chunk-ICUQICNC.cjs} +1441 -828
- package/dist/{chunk-ZCU4NZ3M.cjs → chunk-IE7XCHH3.cjs} +4 -4
- package/dist/{chunk-I26CZYPV.cjs → chunk-IHNIDL6H.cjs} +50 -7
- package/dist/{chunk-2FQHH5SC.mjs → chunk-IHNMMXHV.mjs} +49 -24
- package/dist/{chunk-YVGAEAA5.cjs → chunk-IPXLADVO.cjs} +522 -12
- package/dist/{chunk-VHJGDMCG.cjs → chunk-IWZKTWHZ.cjs} +2 -2
- package/dist/chunk-JG6DJF5A.mjs +238 -0
- package/dist/{chunk-KROWKCUH.cjs → chunk-JGLC4TO3.cjs} +8 -1
- package/dist/{chunk-5TISYEQF.mjs → chunk-JM5XPKWH.mjs} +10 -3
- package/dist/{chunk-BJJATPEC.mjs → chunk-KN7K4VQN.mjs} +1 -1
- package/dist/{chunk-WPYFSQKK.cjs → chunk-KNBBQHO2.cjs} +15 -1
- package/dist/{chunk-XWAWFQFS.cjs → chunk-KXWRO25S.cjs} +7 -4
- package/dist/chunk-LSKZMJMP.cjs +65 -0
- package/dist/{chunk-2N5PX3LS.mjs → chunk-LYV44OIR.mjs} +7 -1
- package/dist/chunk-M7MKQXAF.cjs +87 -0
- package/dist/{chunk-IV6CQY7O.mjs → chunk-MSSFIQGM.mjs} +63 -13
- package/dist/{chunk-KH7BN726.cjs → chunk-N4UOK6ZI.cjs} +8 -2
- package/dist/{chunk-JNGIWIY6.mjs → chunk-NPC7VWJE.mjs} +2 -2
- package/dist/chunk-NRDBW4MP.mjs +45 -0
- package/dist/{chunk-ILWLPEVO.mjs → chunk-NRSN7G7E.mjs} +2 -2
- package/dist/chunk-OFZUJMCU.mjs +601 -0
- package/dist/{chunk-L4DVIHOC.mjs → chunk-OKZUAXHF.mjs} +1 -1
- package/dist/{chunk-EM6SBQKM.cjs → chunk-OMVAU7NT.cjs} +27 -2
- package/dist/{chunk-AHAJGAYD.mjs → chunk-PDOCJ6RY.mjs} +2 -2
- package/dist/{chunk-IFI5FXEZ.cjs → chunk-PFQKNERH.cjs} +562 -251
- package/dist/{chunk-S5GDHOE4.mjs → chunk-PZNL3WEG.mjs} +48 -5
- package/dist/{chunk-GZYH4OER.mjs → chunk-Q3VLETLE.mjs} +2 -2
- package/dist/{chunk-WG2KHOMN.mjs → chunk-QAU5JD57.mjs} +571 -260
- package/dist/{chunk-FV45CKBC.mjs → chunk-QCFBDFRS.mjs} +1 -1
- package/dist/{chunk-75BRBIFP.cjs → chunk-QCVE2OCI.cjs} +5 -8
- package/dist/{chunk-6ZCMSZ5U.mjs → chunk-QE6VAKLT.mjs} +1 -1
- package/dist/{chunk-QG5HNS7P.mjs → chunk-QORUJDIV.mjs} +2 -2
- package/dist/chunk-RHAZ22ZN.mjs +87 -0
- package/dist/{chunk-CUMINO7Z.cjs → chunk-RU3M2FIK.cjs} +18 -14
- package/dist/{chunk-DGXN3L4D.mjs → chunk-SAZVVAJH.mjs} +5 -5
- package/dist/{chunk-MKMBQSNQ.mjs → chunk-SC2WYWPF.mjs} +3 -3
- package/dist/{chunk-QCFFHV5H.mjs → chunk-SMHH4VDG.mjs} +1 -1
- package/dist/{chunk-UAFSBWNT.mjs → chunk-SOMHP6GF.mjs} +63 -16
- package/dist/{chunk-ND224OE2.cjs → chunk-TKSCR644.cjs} +34 -15
- package/dist/{chunk-4V7GIE2U.mjs → chunk-UAORZ7QA.mjs} +3 -3
- package/dist/{chunk-IQXFRNY2.cjs → chunk-UFDAAQFX.cjs} +2 -2
- package/dist/{chunk-6VYZOPOT.mjs → chunk-UJD4PHYB.mjs} +15 -11
- package/dist/{chunk-ZHVYQL3H.cjs → chunk-ULAWS2PA.cjs} +97 -36
- package/dist/{chunk-5ZSWG4UX.cjs → chunk-UXFQ3UDA.cjs} +14 -1
- package/dist/{chunk-MPEYMSCF.cjs → chunk-VFQT3LAO.cjs} +5 -5
- package/dist/{chunk-2FXWWUE5.cjs → chunk-VZJR7UTG.cjs} +6 -6
- package/dist/{chunk-2AKFKCHA.mjs → chunk-W7LF2J2S.mjs} +1 -1
- package/dist/chunk-WWFTAUFG.cjs +45 -0
- package/dist/{chunk-JBC2FKRW.mjs → chunk-WWIKMBRN.mjs} +2 -1
- package/dist/{chunk-75DYEVXI.cjs → chunk-X6W5FFH6.cjs} +11 -11
- package/dist/{chunk-EXLKRR4U.cjs → chunk-XBML5KMG.cjs} +12 -12
- package/dist/{chunk-PZNCMPJF.cjs → chunk-XCACDAZZ.cjs} +18 -12
- package/dist/{chunk-JATSG2ZO.mjs → chunk-XCMCS4DA.mjs} +15 -3
- package/dist/{chunk-UJ2C4ICS.cjs → chunk-XJXBIP67.cjs} +4 -4
- package/dist/{chunk-XF7Q24PF.mjs → chunk-Y7RKTKYI.mjs} +25 -0
- package/dist/{chunk-VYZSOYR4.cjs → chunk-YC6V7PWE.cjs} +1 -1
- package/dist/{chunk-F6OHXPWR.mjs → chunk-YFILVET3.mjs} +8 -1
- package/dist/{chunk-JLRDISQL.cjs → chunk-YKX5BK66.cjs} +7 -7
- package/dist/{chunk-DYEJQTDN.cjs → chunk-YSCV4SJF.cjs} +4 -4
- package/dist/chunk-YSLWRWWP.cjs +601 -0
- package/dist/{chunk-5LJCOSKT.mjs → chunk-YULD7ICZ.mjs} +1 -1
- package/dist/{chunk-2SDO73HK.cjs → chunk-YWN746US.cjs} +64 -14
- package/dist/chunk-Z2HLU4IX.cjs +238 -0
- package/dist/chunk-ZLAT2CWY.mjs +135 -0
- package/dist/{chunk-T5CERMEH.cjs → chunk-ZXGAFZDO.cjs} +2 -2
- package/dist/{client-plugins-BX2ptm4H.d.mts → client-plugins-CvIslxWi.d.mts} +232 -8
- package/dist/{client-plugins-BmxM5KW_.d.ts → client-plugins-HIyulDym.d.ts} +232 -8
- package/dist/client-plugins.d.mts +4 -5
- package/dist/client-plugins.d.ts +4 -5
- package/dist/client.cjs +10 -10
- package/dist/client.d.mts +8 -9
- package/dist/client.d.ts +8 -9
- package/dist/client.mjs +9 -9
- package/dist/config.d.mts +4 -5
- package/dist/config.d.ts +4 -5
- package/dist/{devtools-EWRDHCD5.cjs → devtools-EAUY43BS.cjs} +14 -12
- package/dist/{devtools-BPBCYOU6.mjs → devtools-EE5RIBTH.mjs} +13 -11
- package/dist/docs.cjs +17 -15
- package/dist/docs.d.mts +46 -4
- package/dist/docs.d.ts +46 -4
- package/dist/docs.mjs +16 -14
- package/dist/environment/vite.cjs +2 -2
- package/dist/environment/vite.mjs +1 -1
- package/dist/headers.cjs +4 -4
- package/dist/headers.mjs +3 -3
- package/dist/i18n/client.cjs +14 -13
- package/dist/i18n/client.d.mts +2 -2
- package/dist/i18n/client.d.ts +2 -2
- package/dist/i18n/client.mjs +5 -4
- package/dist/i18n/index.cjs +3 -2
- package/dist/i18n/index.d.mts +3 -3
- package/dist/i18n/index.d.ts +3 -3
- package/dist/i18n/index.mjs +2 -1
- package/dist/i18n/server.cjs +6 -5
- package/dist/i18n/server.d.mts +5 -5
- package/dist/i18n/server.d.ts +5 -5
- package/dist/i18n/server.mjs +5 -4
- package/dist/image/server.cjs +3 -3
- package/dist/image/server.mjs +2 -2
- package/dist/image/sharp.cjs +10 -10
- package/dist/image/sharp.mjs +2 -2
- package/dist/{index-a-8Z5kZU.d.mts → index-BJJfLxJo.d.mts} +2 -2
- package/dist/{index-BWVfxIsO.d.ts → index-CwoOP-MW.d.ts} +2 -2
- package/dist/index.cjs +75 -60
- package/dist/index.d.mts +21 -22
- package/dist/index.d.ts +21 -22
- package/dist/index.mjs +79 -64
- package/dist/integrations.cjs +7 -4
- package/dist/integrations.d.mts +4 -5
- package/dist/integrations.d.ts +4 -5
- package/dist/integrations.mjs +8 -5
- package/dist/internal/app-markdown-runtime.cjs +7 -5
- package/dist/internal/app-markdown-runtime.d.mts +17 -7
- package/dist/internal/app-markdown-runtime.d.ts +17 -7
- package/dist/internal/app-markdown-runtime.mjs +6 -4
- package/dist/internal/build-runtime.cjs +44 -41
- package/dist/internal/build-runtime.d.mts +6 -7
- package/dist/internal/build-runtime.d.ts +6 -7
- package/dist/internal/build-runtime.mjs +43 -40
- package/dist/internal/cli-runtime.cjs +23 -20
- package/dist/internal/cli-runtime.mjs +22 -19
- package/dist/internal/client-error-overlay.cjs +6 -6
- package/dist/internal/client-error-overlay.mjs +2 -2
- package/dist/internal/client-runtime.cjs +5 -3
- package/dist/internal/client-runtime.d.mts +9 -1
- package/dist/internal/client-runtime.d.ts +9 -1
- package/dist/internal/client-runtime.mjs +4 -2
- package/dist/internal/compression-runtime.d.mts +4 -5
- package/dist/internal/compression-runtime.d.ts +4 -5
- package/dist/internal/config-runtime.cjs +14 -12
- package/dist/internal/config-runtime.d.mts +5 -6
- package/dist/internal/config-runtime.d.ts +5 -6
- package/dist/internal/config-runtime.mjs +13 -11
- package/dist/internal/infra-analytics-runtime.cjs +4 -4
- package/dist/internal/infra-analytics-runtime.mjs +2 -2
- package/dist/internal/isolated-boundary.cjs +3 -2
- package/dist/internal/isolated-boundary.d.mts +1 -0
- package/dist/internal/isolated-boundary.d.ts +1 -0
- package/dist/internal/isolated-boundary.mjs +2 -1
- package/dist/internal/metadata-image-runtime.cjs +3 -3
- package/dist/internal/metadata-image-runtime.mjs +2 -2
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +61 -31
- package/dist/internal/production-runtime.d.mts +165 -18
- package/dist/internal/production-runtime.d.ts +165 -18
- package/dist/internal/production-runtime.mjs +57 -27
- package/dist/internal/request-cookies.cjs +4 -2
- package/dist/internal/request-cookies.d.mts +9 -1
- package/dist/internal/request-cookies.d.ts +9 -1
- package/dist/internal/request-cookies.mjs +3 -1
- package/dist/internal/server-tree.cjs +12 -0
- package/dist/internal/server-tree.d.mts +27 -0
- package/dist/internal/server-tree.d.ts +27 -0
- package/dist/internal/server-tree.mjs +12 -0
- package/dist/markdown.cjs +4 -4
- package/dist/markdown.d.mts +4 -5
- package/dist/markdown.d.ts +4 -5
- package/dist/markdown.mjs +3 -3
- package/dist/{metadata-DsEaK7mQ.d.mts → metadata-BnLDsUOS.d.ts} +16 -2
- package/dist/{metadata-fwZ3gfG6.d.ts → metadata-WGpBYcGn.d.mts} +16 -2
- package/dist/middleware.cjs +18 -8
- package/dist/middleware.d.mts +27 -9
- package/dist/middleware.d.ts +27 -9
- package/dist/middleware.mjs +18 -8
- package/dist/navigation.cjs +7 -7
- package/dist/navigation.d.mts +7 -8
- package/dist/navigation.d.ts +7 -8
- package/dist/navigation.mjs +6 -6
- package/dist/{nitro-NAKCRVHX.mjs → nitro-MXRDCXWZ.mjs} +5 -5
- package/dist/{nitro-VYDZGYFY.cjs → nitro-OVPLKPE2.cjs} +7 -7
- package/dist/{observability-BupkiN0m.d.mts → observability-CoXunYhS.d.mts} +4 -3
- package/dist/{observability-BupkiN0m.d.ts → observability-CoXunYhS.d.ts} +4 -3
- package/dist/observability.d.mts +1 -1
- package/dist/observability.d.ts +1 -1
- package/dist/plugin.cjs +39 -36
- package/dist/plugin.d.mts +4 -5
- package/dist/plugin.d.ts +4 -5
- package/dist/plugin.mjs +38 -35
- package/dist/{production-runtime-Baqgwtvc.d.mts → production-runtime-0sRnuYc-.d.mts} +11 -4
- package/dist/{production-runtime-DNkpFnmg.d.ts → production-runtime-Crq6CJ-2.d.ts} +11 -4
- package/dist/query/client.cjs +8 -8
- package/dist/query/client.mjs +4 -4
- package/dist/{render-plan-rkIK9wd9.d.ts → render-plan-8ozZh2Qv.d.ts} +1 -1
- package/dist/{render-plan-DhwQnmmX.d.mts → render-plan-gs9GGPzw.d.mts} +1 -1
- package/dist/renderer/react/server.cjs +10 -4
- package/dist/renderer/react/server.d.mts +2 -1
- package/dist/renderer/react/server.d.ts +2 -1
- package/dist/renderer/react/server.mjs +7 -1
- package/dist/renderer-client.cjs +40 -20
- package/dist/renderer-client.d.mts +6 -7
- package/dist/renderer-client.d.ts +6 -7
- package/dist/renderer-client.mjs +29 -9
- package/dist/renderer.d.mts +2 -0
- package/dist/renderer.d.ts +2 -0
- package/dist/{request-BcY4RYPC.d.ts → request-B5G8rLBH.d.ts} +7 -2
- package/dist/{request-CFy1BltJ.d.mts → request-fkhiynXe.d.mts} +7 -2
- package/dist/request.cjs +2 -2
- package/dist/request.d.mts +5 -6
- package/dist/request.d.ts +5 -6
- package/dist/request.mjs +1 -1
- package/dist/{resolver-PPEeiJ6M.d.ts → resolver-DadfRL6F.d.ts} +1 -1
- package/dist/{resolver-DhW0CqZN.d.mts → resolver-khasx3fU.d.mts} +1 -1
- package/dist/{route-rendering-BkS0TBlB.d.mts → route-rendering-CLnS7AZj.d.mts} +1 -1
- package/dist/{route-rendering-D4XpMjam.d.ts → route-rendering-lS5nUMua.d.ts} +1 -1
- package/dist/{router-Cq7BcZxg.d.ts → router-4iuiYnOW.d.ts} +1 -1
- package/dist/{router-C4zPlC3V.d.mts → router-ifU8Dui1.d.mts} +1 -1
- package/dist/routes.cjs +3 -3
- package/dist/routes.d.mts +4 -5
- package/dist/routes.d.ts +4 -5
- package/dist/routes.mjs +2 -2
- package/dist/{runtime-BirxPwbZ.d.ts → runtime-BgDQzBiu.d.ts} +2 -2
- package/dist/{runtime-AOJge4vQ.d.mts → runtime-CV2UCV-5.d.mts} +2 -2
- package/dist/server-action-security.cjs +3 -3
- package/dist/server-action-security.mjs +2 -2
- package/dist/server-fn.cjs +5 -5
- package/dist/server-fn.mjs +4 -4
- package/dist/server-plugins.cjs +4 -4
- package/dist/server-plugins.d.mts +5 -6
- package/dist/server-plugins.d.ts +5 -6
- package/dist/server-plugins.mjs +3 -3
- package/dist/server-query-client.cjs +3 -3
- package/dist/server-query-client.mjs +2 -2
- package/dist/server-query.cjs +6 -6
- package/dist/server-query.mjs +5 -5
- package/dist/server.cjs +66 -63
- package/dist/server.d.mts +13 -14
- package/dist/server.d.ts +13 -14
- package/dist/server.mjs +43 -40
- package/dist/{spa-router-DzPZH-AO.d.mts → spa-router-Bq7VCOwx.d.mts} +3 -3
- package/dist/{spa-router-B1HI3X9k.d.ts → spa-router-DaJk5Re4.d.ts} +3 -3
- package/dist/testing.cjs +22 -20
- package/dist/testing.d.mts +4 -5
- package/dist/testing.d.ts +4 -5
- package/dist/testing.mjs +18 -16
- package/dist/theme/server.cjs +4 -3
- package/dist/theme/server.mjs +3 -2
- package/dist/{types-Z0aotQ8w.d.mts → types-CnH8DOqo.d.mts} +1 -1
- package/dist/{types-Z0aotQ8w.d.ts → types-CnH8DOqo.d.ts} +1 -1
- package/dist/{utils-DMD1Hzta.d.ts → utils-BXLmFsVR.d.ts} +1 -1
- package/dist/{utils-CEBktlBG.d.mts → utils-XJn0c9bj.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +39 -36
- package/dist/vite.d.mts +4 -5
- package/dist/vite.d.ts +4 -5
- package/dist/vite.mjs +38 -35
- package/dist/{workflows-CR9ex-gz.d.ts → workflows-jZ4BcdoZ.d.mts} +1 -1
- package/dist/{workflows-CR9ex-gz.d.mts → workflows-jZ4BcdoZ.d.ts} +1 -1
- package/dist/workflows.cjs +3 -3
- package/dist/workflows.d.mts +1 -1
- package/dist/workflows.d.ts +1 -1
- package/dist/workflows.mjs +2 -2
- package/package.json +10 -2
- package/dist/chunk-22GUSVNJ.cjs +0 -351
- package/dist/chunk-5MKEDGLD.cjs +0 -53
- package/dist/chunk-O6XNAMBV.mjs +0 -53
- package/dist/chunk-SWN467MP.cjs +0 -18
- package/dist/chunk-XGC343EY.cjs +0 -443
- package/dist/chunk-ZSH2Y4LN.mjs +0 -351
- package/dist/types-DFbjpjXX.d.mts +0 -105
- package/dist/types-DFbjpjXX.d.ts +0 -105
- /package/dist/{chunk-SUIBNSNO.cjs → chunk-SJNMVDDF.cjs} +0 -0
- /package/dist/{chunk-LNZ7JZUS.mjs → chunk-UDNPLXW7.mjs} +0 -0
|
@@ -32,6 +32,7 @@ declare const createElement: typeof React__default.createElement;
|
|
|
32
32
|
declare const isValidElement: typeof React__default.isValidElement;
|
|
33
33
|
declare const wrapClientGraph: (element: React__default.ReactNode) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>>;
|
|
34
34
|
declare const isolateServerPageGraph: (element: React__default.ReactNode) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>>;
|
|
35
|
+
declare const renderServerTreePage: (element: React__default.ReactNode) => Promise<React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>>>;
|
|
35
36
|
declare const renderToString: typeof renderToString$1;
|
|
36
37
|
declare const renderToPipeableStream: typeof renderToPipeableStream$1;
|
|
37
38
|
|
|
@@ -42,4 +43,4 @@ declare const renderToPipeableStream: typeof renderToPipeableStream$1;
|
|
|
42
43
|
*/
|
|
43
44
|
declare function findStaticShellBoundary(chunk: string): number;
|
|
44
45
|
|
|
45
|
-
export { ErrorBoundary, Fragment, Suspense, capabilities, createElement, findStaticShellBoundary, isValidElement, isolateServerPageGraph, name, renderToPipeableStream, renderToString, wrapClientGraph };
|
|
46
|
+
export { ErrorBoundary, Fragment, Suspense, capabilities, createElement, findStaticShellBoundary, isValidElement, isolateServerPageGraph, name, renderServerTreePage, renderToPipeableStream, renderToString, wrapClientGraph };
|
|
@@ -32,6 +32,7 @@ declare const createElement: typeof React__default.createElement;
|
|
|
32
32
|
declare const isValidElement: typeof React__default.isValidElement;
|
|
33
33
|
declare const wrapClientGraph: (element: React__default.ReactNode) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>>;
|
|
34
34
|
declare const isolateServerPageGraph: (element: React__default.ReactNode) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>>;
|
|
35
|
+
declare const renderServerTreePage: (element: React__default.ReactNode) => Promise<React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>>>;
|
|
35
36
|
declare const renderToString: typeof renderToString$1;
|
|
36
37
|
declare const renderToPipeableStream: typeof renderToPipeableStream$1;
|
|
37
38
|
|
|
@@ -42,4 +43,4 @@ declare const renderToPipeableStream: typeof renderToPipeableStream$1;
|
|
|
42
43
|
*/
|
|
43
44
|
declare function findStaticShellBoundary(chunk: string): number;
|
|
44
45
|
|
|
45
|
-
export { ErrorBoundary, Fragment, Suspense, capabilities, createElement, findStaticShellBoundary, isValidElement, isolateServerPageGraph, name, renderToPipeableStream, renderToString, wrapClientGraph };
|
|
46
|
+
export { ErrorBoundary, Fragment, Suspense, capabilities, createElement, findStaticShellBoundary, isValidElement, isolateServerPageGraph, name, renderServerTreePage, renderToPipeableStream, renderToString, wrapClientGraph };
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isolateFarmServerPageGraph,
|
|
3
3
|
wrapFarmIsolatedClientGraph
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-C35ZBVRD.mjs";
|
|
5
|
+
import {
|
|
6
|
+
renderFarmServerTreePage
|
|
7
|
+
} from "../../chunk-OFZUJMCU.mjs";
|
|
8
|
+
import "../../chunk-NRDBW4MP.mjs";
|
|
5
9
|
import {
|
|
6
10
|
__name
|
|
7
11
|
} from "../../chunk-LPEX4YW6.mjs";
|
|
@@ -44,6 +48,7 @@ var createElement = React.createElement;
|
|
|
44
48
|
var isValidElement = React.isValidElement;
|
|
45
49
|
var wrapClientGraph = /* @__PURE__ */ __name((element) => wrapFarmIsolatedClientGraph(React, element), "wrapClientGraph");
|
|
46
50
|
var isolateServerPageGraph = /* @__PURE__ */ __name((element) => isolateFarmServerPageGraph(React, element), "isolateServerPageGraph");
|
|
51
|
+
var renderServerTreePage = /* @__PURE__ */ __name((element) => renderFarmServerTreePage(React, element, { isolate: isolateServerPageGraph }), "renderServerTreePage");
|
|
47
52
|
var renderToString = reactRenderToString;
|
|
48
53
|
var renderToPipeableStream = reactRenderToPipeableStream;
|
|
49
54
|
var server_default = React;
|
|
@@ -73,6 +78,7 @@ export {
|
|
|
73
78
|
isValidElement,
|
|
74
79
|
isolateServerPageGraph,
|
|
75
80
|
name,
|
|
81
|
+
renderServerTreePage,
|
|
76
82
|
renderToPipeableStream,
|
|
77
83
|
renderToString,
|
|
78
84
|
wrapClientGraph
|
package/dist/renderer-client.cjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkYSCV4SJFcjs = require('./chunk-YSCV4SJF.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
|
|
10
|
+
var _chunkN4UOK6ZIcjs = require('./chunk-N4UOK6ZI.cjs');
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
|
|
@@ -21,13 +22,13 @@ require('./chunk-PCOTGFSM.cjs');
|
|
|
21
22
|
|
|
22
23
|
|
|
23
24
|
|
|
24
|
-
var
|
|
25
|
+
var _chunkD227TIENcjs = require('./chunk-D227TIEN.cjs');
|
|
25
26
|
|
|
26
27
|
|
|
27
28
|
|
|
28
|
-
var
|
|
29
|
+
var _chunkFFFW3OQ7cjs = require('./chunk-FFFW3OQ7.cjs');
|
|
29
30
|
require('./chunk-R5A5KNVX.cjs');
|
|
30
|
-
require('./chunk-
|
|
31
|
+
require('./chunk-C4SPBWFM.cjs');
|
|
31
32
|
|
|
32
33
|
|
|
33
34
|
var _chunk63H6BKXGcjs = require('./chunk-63H6BKXG.cjs');
|
|
@@ -35,8 +36,9 @@ require('./chunk-J7FSKED3.cjs');
|
|
|
35
36
|
require('./chunk-SK35NQKK.cjs');
|
|
36
37
|
|
|
37
38
|
|
|
38
|
-
var
|
|
39
|
-
require('./chunk-
|
|
39
|
+
var _chunkQCVE2OCIcjs = require('./chunk-QCVE2OCI.cjs');
|
|
40
|
+
require('./chunk-AI7QMY7O.cjs');
|
|
41
|
+
require('./chunk-EK4QAEFZ.cjs');
|
|
40
42
|
require('./chunk-R5JIFR6B.cjs');
|
|
41
43
|
require('./chunk-C5GUTBZK.cjs');
|
|
42
44
|
require('./chunk-QBK2AA4U.cjs');
|
|
@@ -62,7 +64,7 @@ var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
|
62
64
|
function createRendererRouter(options = {}) {
|
|
63
65
|
const basePath = options.basePath === void 0 ? _chunkI57LW5VZcjs.getFarmBasePath.call(void 0, ) : _chunkI57LW5VZcjs.normalizeFarmBasePath.call(void 0, options.basePath);
|
|
64
66
|
const matcher = _optionalChain([options, 'access', _ => _.routes, 'optionalAccess', _2 => _2.length]) ? _chunkSU7MH53Pcjs.createFarmRouter.call(void 0, [...options.routes]) : null;
|
|
65
|
-
const router =
|
|
67
|
+
const router = _chunkD227TIENcjs.getRouter.call(void 0, );
|
|
66
68
|
let snapshot = readRendererRouterSnapshot(basePath, matcher, router.getNavigationState());
|
|
67
69
|
const read = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, () => {
|
|
68
70
|
snapshot = readRendererRouterSnapshot(basePath, matcher, router.getNavigationState());
|
|
@@ -78,7 +80,7 @@ function createRendererRouter(options = {}) {
|
|
|
78
80
|
listener();
|
|
79
81
|
}, "notify");
|
|
80
82
|
const unsubscribeNavigation = router.subscribeNavigation(notify);
|
|
81
|
-
const unsubscribeHistory =
|
|
83
|
+
const unsubscribeHistory = _chunkD227TIENcjs.subscribeHistoryChange.call(void 0, notify);
|
|
82
84
|
read();
|
|
83
85
|
return () => {
|
|
84
86
|
unsubscribeNavigation();
|
|
@@ -199,19 +201,37 @@ function createRendererAction(target, options = {}) {
|
|
|
199
201
|
}
|
|
200
202
|
_chunkS3JO3N4Hcjs.__name.call(void 0, createRendererAction, "createRendererAction");
|
|
201
203
|
function createRendererQuery(query, input, options = {}) {
|
|
204
|
+
if (!_chunkN4UOK6ZIcjs.isFarmServerQueryBrowserRuntime.call(void 0, )) {
|
|
205
|
+
const snapshot = {
|
|
206
|
+
data: void 0,
|
|
207
|
+
error: null,
|
|
208
|
+
status: "idle",
|
|
209
|
+
pending: false,
|
|
210
|
+
fetching: false,
|
|
211
|
+
stale: true
|
|
212
|
+
};
|
|
213
|
+
return {
|
|
214
|
+
getSnapshot: /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, () => snapshot, "getSnapshot"),
|
|
215
|
+
subscribe: /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, () => () => {
|
|
216
|
+
}, "subscribe"),
|
|
217
|
+
refetch: /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, () => _chunkN4UOK6ZIcjs.fetchServerQuery.call(void 0, query, input), "refetch"),
|
|
218
|
+
dispose() {
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
}
|
|
202
222
|
const cache = _chunk63H6BKXGcjs.getFarmClientDataCache.call(void 0, );
|
|
203
|
-
const key =
|
|
223
|
+
const key = _chunkN4UOK6ZIcjs.createServerQueryCallKey.call(void 0, query, input);
|
|
204
224
|
const listeners = /* @__PURE__ */ new Set();
|
|
205
225
|
let unsubscribeCache;
|
|
206
226
|
let cleanupBrowser;
|
|
207
|
-
const run = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (force = false) =>
|
|
227
|
+
const run = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (force = false) => _chunkN4UOK6ZIcjs.fetchServerQuery.call(void 0, query, input, { ...options, force }), "run");
|
|
208
228
|
const ensureStarted = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, () => {
|
|
209
229
|
if (options.enabled === false || unsubscribeCache) return;
|
|
210
230
|
unsubscribeCache = cache.subscribe(key, () => {
|
|
211
231
|
for (const listener of listeners) listener();
|
|
212
232
|
});
|
|
213
233
|
if (!cache.get(key) || cache.isStale(key)) void run().catch(() => void 0);
|
|
214
|
-
cleanupBrowser =
|
|
234
|
+
cleanupBrowser = _chunkN4UOK6ZIcjs.attachRevalidationListeners.call(void 0,
|
|
215
235
|
() => {
|
|
216
236
|
if (cache.isStale(key)) void run().catch(() => void 0);
|
|
217
237
|
},
|
|
@@ -261,17 +281,17 @@ function createRendererTheme() {
|
|
|
261
281
|
_chunkS3JO3N4Hcjs.__name.call(void 0, createRendererTheme, "createRendererTheme");
|
|
262
282
|
function createRendererI18n() {
|
|
263
283
|
return {
|
|
264
|
-
getSnapshot:
|
|
265
|
-
subscribe:
|
|
266
|
-
t:
|
|
284
|
+
getSnapshot: _chunkFFFW3OQ7cjs.getFarmI18nClientState,
|
|
285
|
+
subscribe: _chunkFFFW3OQ7cjs.subscribeFarmI18n,
|
|
286
|
+
t: _chunkYSCV4SJFcjs.createFarmClientTranslator.call(void 0, ),
|
|
267
287
|
setLocale(locale) {
|
|
268
|
-
const snapshot =
|
|
288
|
+
const snapshot = _chunkFFFW3OQ7cjs.getFarmI18nClientState.call(void 0, );
|
|
269
289
|
if (!snapshot) throw new Error("Farm i18n is not configured or has not been hydrated.");
|
|
270
290
|
if (!snapshot.locales.includes(locale)) {
|
|
271
291
|
throw new Error(`Unsupported Farm i18n locale "${locale}".`);
|
|
272
292
|
}
|
|
273
293
|
if (typeof window === "undefined") return;
|
|
274
|
-
document.cookie =
|
|
294
|
+
document.cookie = _chunkQCVE2OCIcjs.createFarmLocaleCookie.call(void 0, locale, { cookie: snapshot.cookie });
|
|
275
295
|
const href = `${window.location.pathname}${window.location.search}${window.location.hash}`;
|
|
276
296
|
window.location.assign(_chunkBIDYX3SLcjs.localizeFarmHref.call(void 0, href, locale, snapshot));
|
|
277
297
|
}
|
|
@@ -290,13 +310,13 @@ function readRendererRouterSnapshot(basePath, matcher, navigation) {
|
|
|
290
310
|
}
|
|
291
311
|
const url = new URL(window.location.href);
|
|
292
312
|
const pathname = _chunkI57LW5VZcjs.stripFarmBasePath.call(void 0, url.pathname, basePath);
|
|
293
|
-
const i18n =
|
|
294
|
-
const routePathname = i18n ? _chunkBIDYX3SLcjs.stripFarmLocaleFromPathname.call(void 0, pathname, i18n) : pathname;
|
|
313
|
+
const i18n = _chunkFFFW3OQ7cjs.getFarmI18nClientState.call(void 0, );
|
|
314
|
+
const routePathname = i18n ? _chunkBIDYX3SLcjs.stripFarmLocaleFromPathname.call(void 0, pathname, { ...i18n, basePath: "/" }) : pathname;
|
|
295
315
|
return {
|
|
296
316
|
pathname,
|
|
297
317
|
searchParams: url.searchParams,
|
|
298
318
|
params: _optionalChain([matcher, 'optionalAccess', _20 => _20.match, 'call', _21 => _21(routePathname), 'optionalAccess', _22 => _22.params]) || {},
|
|
299
|
-
pageState:
|
|
319
|
+
pageState: _chunkD227TIENcjs.readPageState.call(void 0, ),
|
|
300
320
|
navigation
|
|
301
321
|
};
|
|
302
322
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { FarmRouterRouteInput } from './router.mjs';
|
|
2
|
-
import { F as FarmNavigationState, a as FarmNavigateOptions } from './spa-router-
|
|
2
|
+
import { F as FarmNavigationState, a as FarmNavigateOptions } from './spa-router-Bq7VCOwx.mjs';
|
|
3
3
|
import { F as FarmClientCacheStatus } from './client-cache-di_Nasxa.mjs';
|
|
4
4
|
import { ServerFn } from './server-fn.mjs';
|
|
5
5
|
import { ServerQuery } from './server-query.mjs';
|
|
6
6
|
import { S as ServerQueryFetchOptions } from './server-query-runtime-aP52iuL5.mjs';
|
|
7
7
|
import { F as FarmThemeSnapshot, a as FarmThemePreference } from './types-DQnyD3VD.mjs';
|
|
8
|
-
import { F as FarmI18nClientSnapshot, a as FarmTranslator, b as FarmI18nLocale } from './types-
|
|
9
|
-
import './client-plugins-
|
|
8
|
+
import { F as FarmI18nClientSnapshot, a as FarmTranslator, b as FarmI18nLocale } from './types-CnH8DOqo.mjs';
|
|
9
|
+
import './client-plugins-CvIslxWi.mjs';
|
|
10
10
|
import './lifecycle-DK06VuKP.mjs';
|
|
11
11
|
import './integration-api-0y4FXJpC.mjs';
|
|
12
12
|
import './endpoint-CCHFqyTE.mjs';
|
|
@@ -21,12 +21,11 @@ import 'unstorage';
|
|
|
21
21
|
import './schema.mjs';
|
|
22
22
|
import 'react';
|
|
23
23
|
import '@farming-labs/orm';
|
|
24
|
-
import './types-DFbjpjXX.mjs';
|
|
25
24
|
import '@farming-labs/docs';
|
|
26
|
-
import './observability-
|
|
25
|
+
import './observability-CoXunYhS.mjs';
|
|
27
26
|
import '@opentelemetry/api';
|
|
28
27
|
import 'vite';
|
|
29
|
-
import './workflows-
|
|
28
|
+
import './workflows-jZ4BcdoZ.mjs';
|
|
30
29
|
import './cron.mjs';
|
|
31
30
|
import './env.mjs';
|
|
32
31
|
import './server-action-security.mjs';
|
|
@@ -38,7 +37,7 @@ import './font.mjs';
|
|
|
38
37
|
import './after.mjs';
|
|
39
38
|
import 'node:http';
|
|
40
39
|
import './island-CfGru1MO.mjs';
|
|
41
|
-
import './render-plan-
|
|
40
|
+
import './render-plan-gs9GGPzw.mjs';
|
|
42
41
|
|
|
43
42
|
interface FarmClientStore<TSnapshot> {
|
|
44
43
|
getSnapshot(): TSnapshot;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { FarmRouterRouteInput } from './router.js';
|
|
2
|
-
import { F as FarmNavigationState, a as FarmNavigateOptions } from './spa-router-
|
|
2
|
+
import { F as FarmNavigationState, a as FarmNavigateOptions } from './spa-router-DaJk5Re4.js';
|
|
3
3
|
import { F as FarmClientCacheStatus } from './client-cache-Deoqq-nM.js';
|
|
4
4
|
import { ServerFn } from './server-fn.js';
|
|
5
5
|
import { ServerQuery } from './server-query.js';
|
|
6
6
|
import { S as ServerQueryFetchOptions } from './server-query-runtime-DXRNhX_3.js';
|
|
7
7
|
import { F as FarmThemeSnapshot, a as FarmThemePreference } from './types-DQnyD3VD.js';
|
|
8
|
-
import { F as FarmI18nClientSnapshot, a as FarmTranslator, b as FarmI18nLocale } from './types-
|
|
9
|
-
import './client-plugins-
|
|
8
|
+
import { F as FarmI18nClientSnapshot, a as FarmTranslator, b as FarmI18nLocale } from './types-CnH8DOqo.js';
|
|
9
|
+
import './client-plugins-HIyulDym.js';
|
|
10
10
|
import './lifecycle-DK06VuKP.js';
|
|
11
11
|
import './integration-api-BPJo5oXb.js';
|
|
12
12
|
import './endpoint-CA-TNX60.js';
|
|
@@ -21,12 +21,11 @@ import 'unstorage';
|
|
|
21
21
|
import './schema.js';
|
|
22
22
|
import 'react';
|
|
23
23
|
import '@farming-labs/orm';
|
|
24
|
-
import './types-DFbjpjXX.js';
|
|
25
24
|
import '@farming-labs/docs';
|
|
26
|
-
import './observability-
|
|
25
|
+
import './observability-CoXunYhS.js';
|
|
27
26
|
import '@opentelemetry/api';
|
|
28
27
|
import 'vite';
|
|
29
|
-
import './workflows-
|
|
28
|
+
import './workflows-jZ4BcdoZ.js';
|
|
30
29
|
import './cron.js';
|
|
31
30
|
import './env.js';
|
|
32
31
|
import './server-action-security.js';
|
|
@@ -38,7 +37,7 @@ import './font.js';
|
|
|
38
37
|
import './after.js';
|
|
39
38
|
import 'node:http';
|
|
40
39
|
import './island-CfGru1MO.js';
|
|
41
|
-
import './render-plan-
|
|
40
|
+
import './render-plan-8ozZh2Qv.js';
|
|
42
41
|
|
|
43
42
|
interface FarmClientStore<TSnapshot> {
|
|
44
43
|
getSnapshot(): TSnapshot;
|
package/dist/renderer-client.mjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createFarmClientTranslator
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AHGECQEW.mjs";
|
|
5
5
|
import {
|
|
6
6
|
attachRevalidationListeners,
|
|
7
7
|
createServerQueryCallKey,
|
|
8
|
-
fetchServerQuery
|
|
9
|
-
|
|
8
|
+
fetchServerQuery,
|
|
9
|
+
isFarmServerQueryBrowserRuntime
|
|
10
|
+
} from "./chunk-LYV44OIR.mjs";
|
|
10
11
|
import {
|
|
11
12
|
getTheme,
|
|
12
13
|
setTheme,
|
|
@@ -21,13 +22,13 @@ import {
|
|
|
21
22
|
getRouter,
|
|
22
23
|
readPageState,
|
|
23
24
|
subscribeHistoryChange
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-XCMCS4DA.mjs";
|
|
25
26
|
import {
|
|
26
27
|
getFarmI18nClientState,
|
|
27
28
|
subscribeFarmI18n
|
|
28
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-F2SE2VDO.mjs";
|
|
29
30
|
import "./chunk-2PQNJXFM.mjs";
|
|
30
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-5SJWVY6R.mjs";
|
|
31
32
|
import {
|
|
32
33
|
getFarmClientDataCache
|
|
33
34
|
} from "./chunk-XNPDONUH.mjs";
|
|
@@ -35,8 +36,9 @@ import "./chunk-QVYLBY73.mjs";
|
|
|
35
36
|
import "./chunk-KGB5UXJJ.mjs";
|
|
36
37
|
import {
|
|
37
38
|
createFarmLocaleCookie
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-GCXWJJKH.mjs";
|
|
40
|
+
import "./chunk-JM5XPKWH.mjs";
|
|
41
|
+
import "./chunk-CXEN47J3.mjs";
|
|
40
42
|
import "./chunk-SKNL7VA2.mjs";
|
|
41
43
|
import "./chunk-2A3EQHXX.mjs";
|
|
42
44
|
import "./chunk-JNZ4TDWM.mjs";
|
|
@@ -199,6 +201,24 @@ function createRendererAction(target, options = {}) {
|
|
|
199
201
|
}
|
|
200
202
|
__name(createRendererAction, "createRendererAction");
|
|
201
203
|
function createRendererQuery(query, input, options = {}) {
|
|
204
|
+
if (!isFarmServerQueryBrowserRuntime()) {
|
|
205
|
+
const snapshot = {
|
|
206
|
+
data: void 0,
|
|
207
|
+
error: null,
|
|
208
|
+
status: "idle",
|
|
209
|
+
pending: false,
|
|
210
|
+
fetching: false,
|
|
211
|
+
stale: true
|
|
212
|
+
};
|
|
213
|
+
return {
|
|
214
|
+
getSnapshot: /* @__PURE__ */ __name(() => snapshot, "getSnapshot"),
|
|
215
|
+
subscribe: /* @__PURE__ */ __name(() => () => {
|
|
216
|
+
}, "subscribe"),
|
|
217
|
+
refetch: /* @__PURE__ */ __name(() => fetchServerQuery(query, input), "refetch"),
|
|
218
|
+
dispose() {
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
}
|
|
202
222
|
const cache = getFarmClientDataCache();
|
|
203
223
|
const key = createServerQueryCallKey(query, input);
|
|
204
224
|
const listeners = /* @__PURE__ */ new Set();
|
|
@@ -291,7 +311,7 @@ function readRendererRouterSnapshot(basePath, matcher, navigation) {
|
|
|
291
311
|
const url = new URL(window.location.href);
|
|
292
312
|
const pathname = stripFarmBasePath(url.pathname, basePath);
|
|
293
313
|
const i18n = getFarmI18nClientState();
|
|
294
|
-
const routePathname = i18n ? stripFarmLocaleFromPathname(pathname, i18n) : pathname;
|
|
314
|
+
const routePathname = i18n ? stripFarmLocaleFromPathname(pathname, { ...i18n, basePath: "/" }) : pathname;
|
|
295
315
|
return {
|
|
296
316
|
pathname,
|
|
297
317
|
searchParams: url.searchParams,
|
package/dist/renderer.d.mts
CHANGED
|
@@ -174,6 +174,8 @@ interface FarmServerRendererRuntime {
|
|
|
174
174
|
wrapClientGraph?(element: unknown): unknown;
|
|
175
175
|
/** Lets a server-only page under a route-owned client tree render its own isolated islands. */
|
|
176
176
|
isolateServerPageGraph?(element: unknown): unknown;
|
|
177
|
+
/** Resolves an async page below a hydrating layout into a tree the browser rebuilds there. */
|
|
178
|
+
renderServerTreePage?(element: unknown): Promise<unknown>;
|
|
177
179
|
/**
|
|
178
180
|
* Optional: tag a plain function component so a renderer that compiles its
|
|
179
181
|
* own components can tell the two apart. Renderers without the hook treat
|
package/dist/renderer.d.ts
CHANGED
|
@@ -174,6 +174,8 @@ interface FarmServerRendererRuntime {
|
|
|
174
174
|
wrapClientGraph?(element: unknown): unknown;
|
|
175
175
|
/** Lets a server-only page under a route-owned client tree render its own isolated islands. */
|
|
176
176
|
isolateServerPageGraph?(element: unknown): unknown;
|
|
177
|
+
/** Resolves an async page below a hydrating layout into a tree the browser rebuilds there. */
|
|
178
|
+
renderServerTreePage?(element: unknown): Promise<unknown>;
|
|
177
179
|
/**
|
|
178
180
|
* Optional: tag a plain function component so a renderer that compiles its
|
|
179
181
|
* own components can tell the two apart. Renderers without the hook treat
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './client-plugins-
|
|
1
|
+
import './client-plugins-HIyulDym.js';
|
|
2
2
|
|
|
3
3
|
interface FarmRequestURLOptions {
|
|
4
4
|
origin?: string | URL;
|
|
@@ -13,5 +13,10 @@ interface FarmRequestURLOptions {
|
|
|
13
13
|
declare function resolveFarmWebRequestOrigin(request: Request, options?: Pick<FarmRequestURLOptions, "trustProxy">): string;
|
|
14
14
|
declare function _runWithCurrentRequest<T>(request: Request, fn: () => Promise<T> | T): Promise<T>;
|
|
15
15
|
declare function getCurrentRequest(): Request;
|
|
16
|
+
/**
|
|
17
|
+
* @internal How many times app code has read `request` (default: the current
|
|
18
|
+
* request). Compare two readings to learn whether a render read the request.
|
|
19
|
+
*/
|
|
20
|
+
declare function _getRequestReadCount(request?: Request | undefined): number;
|
|
16
21
|
|
|
17
|
-
export {
|
|
22
|
+
export { _getRequestReadCount as _, _runWithCurrentRequest as a, getCurrentRequest as g, resolveFarmWebRequestOrigin as r };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './client-plugins-
|
|
1
|
+
import './client-plugins-CvIslxWi.mjs';
|
|
2
2
|
|
|
3
3
|
interface FarmRequestURLOptions {
|
|
4
4
|
origin?: string | URL;
|
|
@@ -13,5 +13,10 @@ interface FarmRequestURLOptions {
|
|
|
13
13
|
declare function resolveFarmWebRequestOrigin(request: Request, options?: Pick<FarmRequestURLOptions, "trustProxy">): string;
|
|
14
14
|
declare function _runWithCurrentRequest<T>(request: Request, fn: () => Promise<T> | T): Promise<T>;
|
|
15
15
|
declare function getCurrentRequest(): Request;
|
|
16
|
+
/**
|
|
17
|
+
* @internal How many times app code has read `request` (default: the current
|
|
18
|
+
* request). Compare two readings to learn whether a render read the request.
|
|
19
|
+
*/
|
|
20
|
+
declare function _getRequestReadCount(request?: Request | undefined): number;
|
|
16
21
|
|
|
17
|
-
export {
|
|
22
|
+
export { _getRequestReadCount as _, _runWithCurrentRequest as a, getCurrentRequest as g, resolveFarmWebRequestOrigin as r };
|
package/dist/request.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkUXFQ3UDAcjs = require('./chunk-UXFQ3UDA.cjs');
|
|
4
4
|
require('./chunk-U4KT7QP3.cjs');
|
|
5
5
|
require('./chunk-S3JO3N4H.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.getCurrentRequest =
|
|
8
|
+
exports.getCurrentRequest = _chunkUXFQ3UDAcjs.getCurrentRequest;
|
package/dist/request.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { g as getCurrentRequest } from './request-
|
|
2
|
-
import './client-plugins-
|
|
1
|
+
export { g as getCurrentRequest } from './request-fkhiynXe.mjs';
|
|
2
|
+
import './client-plugins-CvIslxWi.mjs';
|
|
3
3
|
import './lifecycle-DK06VuKP.mjs';
|
|
4
4
|
import './integration-api-0y4FXJpC.mjs';
|
|
5
5
|
import './endpoint-CCHFqyTE.mjs';
|
|
@@ -17,19 +17,18 @@ import 'unstorage';
|
|
|
17
17
|
import './schema.mjs';
|
|
18
18
|
import 'react';
|
|
19
19
|
import '@farming-labs/orm';
|
|
20
|
-
import './types-DFbjpjXX.mjs';
|
|
21
20
|
import '@farming-labs/docs';
|
|
22
|
-
import './observability-
|
|
21
|
+
import './observability-CoXunYhS.mjs';
|
|
23
22
|
import '@opentelemetry/api';
|
|
24
23
|
import 'vite';
|
|
25
|
-
import './workflows-
|
|
24
|
+
import './workflows-jZ4BcdoZ.mjs';
|
|
26
25
|
import './cron.mjs';
|
|
27
26
|
import './env.mjs';
|
|
28
27
|
import './server-action-security.mjs';
|
|
29
28
|
import 'rolldown/utils';
|
|
30
29
|
import 'rolldown';
|
|
31
30
|
import './image-config-Duob7wER.mjs';
|
|
32
|
-
import './types-
|
|
31
|
+
import './types-CnH8DOqo.mjs';
|
|
33
32
|
import './types-DQnyD3VD.mjs';
|
|
34
33
|
import './font.mjs';
|
|
35
34
|
import './after.mjs';
|
package/dist/request.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { g as getCurrentRequest } from './request-
|
|
2
|
-
import './client-plugins-
|
|
1
|
+
export { g as getCurrentRequest } from './request-B5G8rLBH.js';
|
|
2
|
+
import './client-plugins-HIyulDym.js';
|
|
3
3
|
import './lifecycle-DK06VuKP.js';
|
|
4
4
|
import './integration-api-BPJo5oXb.js';
|
|
5
5
|
import './endpoint-CA-TNX60.js';
|
|
@@ -17,19 +17,18 @@ import 'unstorage';
|
|
|
17
17
|
import './schema.js';
|
|
18
18
|
import 'react';
|
|
19
19
|
import '@farming-labs/orm';
|
|
20
|
-
import './types-DFbjpjXX.js';
|
|
21
20
|
import '@farming-labs/docs';
|
|
22
|
-
import './observability-
|
|
21
|
+
import './observability-CoXunYhS.js';
|
|
23
22
|
import '@opentelemetry/api';
|
|
24
23
|
import 'vite';
|
|
25
|
-
import './workflows-
|
|
24
|
+
import './workflows-jZ4BcdoZ.js';
|
|
26
25
|
import './cron.js';
|
|
27
26
|
import './env.js';
|
|
28
27
|
import './server-action-security.js';
|
|
29
28
|
import 'rolldown/utils';
|
|
30
29
|
import 'rolldown';
|
|
31
30
|
import './image-config-Duob7wER.js';
|
|
32
|
-
import './types-
|
|
31
|
+
import './types-CnH8DOqo.js';
|
|
33
32
|
import './types-DQnyD3VD.js';
|
|
34
33
|
import './font.js';
|
|
35
34
|
import './after.js';
|
package/dist/request.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
import { FarmRouterRouteInput } from './router.js';
|
|
3
|
-
import { b as FarmNavigationBlockerContext, F as FarmNavigationState } from './spa-router-
|
|
3
|
+
import { b as FarmNavigationBlockerContext, F as FarmNavigationState } from './spa-router-DaJk5Re4.js';
|
|
4
4
|
|
|
5
5
|
interface UseRouterOptions {
|
|
6
6
|
basePath?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
import { FarmRouterRouteInput } from './router.mjs';
|
|
3
|
-
import { b as FarmNavigationBlockerContext, F as FarmNavigationState } from './spa-router-
|
|
3
|
+
import { b as FarmNavigationBlockerContext, F as FarmNavigationState } from './spa-router-Bq7VCOwx.mjs';
|
|
4
4
|
|
|
5
5
|
interface UseRouterOptions {
|
|
6
6
|
basePath?: string;
|
package/dist/routes.cjs
CHANGED
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkIHNIDL6Hcjs = require('./chunk-IHNIDL6H.cjs');
|
|
23
23
|
require('./chunk-6QQDAAAZ.cjs');
|
|
24
24
|
require('./chunk-6V4TDWEC.cjs');
|
|
25
25
|
require('./chunk-SOR334EB.cjs');
|
|
26
|
-
require('./chunk-
|
|
26
|
+
require('./chunk-YWN746US.cjs');
|
|
27
27
|
require('./chunk-E3UK5IIB.cjs');
|
|
28
28
|
require('./chunk-LIUGYUX3.cjs');
|
|
29
29
|
require('./chunk-NYJMY3JA.cjs');
|
|
@@ -51,4 +51,4 @@ require('./chunk-S3JO3N4H.cjs');
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
exports.PROGRAMMATIC_ROUTE_FILE_NAMES =
|
|
54
|
+
exports.PROGRAMMATIC_ROUTE_FILE_NAMES = _chunkIHNIDL6Hcjs.PROGRAMMATIC_ROUTE_FILE_NAMES; exports.api = _chunkIHNIDL6Hcjs.api; exports.createLayoutModuleFromProgrammaticLayout = _chunkIHNIDL6Hcjs.createLayoutModuleFromProgrammaticLayout; exports.createProgrammaticRouteModuleId = _chunkIHNIDL6Hcjs.createProgrammaticRouteModuleId; exports.createRoute = _chunkIHNIDL6Hcjs.createRoute; exports.createRouteModuleFromProgrammaticPage = _chunkIHNIDL6Hcjs.createRouteModuleFromProgrammaticPage; exports.defineRoutes = _chunkIHNIDL6Hcjs.defineRoutes; exports.getProgrammaticRouteManifest = _chunkIHNIDL6Hcjs.getProgrammaticRouteManifest; exports.getProgrammaticRouteSearchClientOptions = _chunkIHNIDL6Hcjs.getProgrammaticRouteSearchClientOptions; exports.getProgrammaticRouteSearchSchema = _chunkIHNIDL6Hcjs.getProgrammaticRouteSearchSchema; exports.isProgrammaticRouteDefinition = _chunkIHNIDL6Hcjs.isProgrammaticRouteDefinition; exports.isProgrammaticRouteManifest = _chunkIHNIDL6Hcjs.isProgrammaticRouteManifest; exports.isProgrammaticRoutesFileName = _chunkIHNIDL6Hcjs.isProgrammaticRoutesFileName; exports.layout = _chunkIHNIDL6Hcjs.layout; exports.page = _chunkIHNIDL6Hcjs.page; exports.parseProgrammaticRouteModuleId = _chunkIHNIDL6Hcjs.parseProgrammaticRouteModuleId; exports.parseProgrammaticRoutePath = _chunkIHNIDL6Hcjs.parseProgrammaticRoutePath; exports.redirect = _chunkIHNIDL6Hcjs.redirect; exports.routesBuilder = _chunkIHNIDL6Hcjs.routesBuilder; exports.scanProgrammaticPagePaths = _chunkIHNIDL6Hcjs.scanProgrammaticPagePaths;
|
package/dist/routes.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FarmRouteRuntimeConfig, L as LayoutProps, M as Metadata, j as FarmRouteRuntime, k as FarmRouteRegions, l as FarmRouteMaxDuration, m as FarmAppContext, o as PageProps, q as PluginContextProps, s as RouteModule, P as ParsedRoute } from './client-plugins-
|
|
1
|
+
import { F as FarmRouteRuntimeConfig, L as LayoutProps, M as Metadata, j as FarmRouteRuntime, k as FarmRouteRegions, l as FarmRouteMaxDuration, m as FarmAppContext, o as PageProps, q as PluginContextProps, s as RouteModule, P as ParsedRoute } from './client-plugins-CvIslxWi.mjs';
|
|
2
2
|
import { ComponentType } from 'react';
|
|
3
3
|
import { RouteDataCacheKey } from './cache.mjs';
|
|
4
4
|
import { ServerFn } from './server-fn.mjs';
|
|
@@ -13,12 +13,11 @@ import 'db0';
|
|
|
13
13
|
import 'unstorage';
|
|
14
14
|
import './schema.mjs';
|
|
15
15
|
import '@farming-labs/orm';
|
|
16
|
-
import './types-DFbjpjXX.mjs';
|
|
17
16
|
import '@farming-labs/docs';
|
|
18
|
-
import './observability-
|
|
17
|
+
import './observability-CoXunYhS.mjs';
|
|
19
18
|
import '@opentelemetry/api';
|
|
20
19
|
import 'vite';
|
|
21
|
-
import './workflows-
|
|
20
|
+
import './workflows-jZ4BcdoZ.mjs';
|
|
22
21
|
import './cron.mjs';
|
|
23
22
|
import './env.mjs';
|
|
24
23
|
import './server-action-security.mjs';
|
|
@@ -26,7 +25,7 @@ import './server-fn-error-DDh14a0V.mjs';
|
|
|
26
25
|
import 'rolldown/utils';
|
|
27
26
|
import 'rolldown';
|
|
28
27
|
import './image-config-Duob7wER.mjs';
|
|
29
|
-
import './types-
|
|
28
|
+
import './types-CnH8DOqo.mjs';
|
|
30
29
|
import './types-DQnyD3VD.mjs';
|
|
31
30
|
import './font.mjs';
|
|
32
31
|
import './after.mjs';
|
package/dist/routes.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FarmRouteRuntimeConfig, L as LayoutProps, M as Metadata, j as FarmRouteRuntime, k as FarmRouteRegions, l as FarmRouteMaxDuration, m as FarmAppContext, o as PageProps, q as PluginContextProps, s as RouteModule, P as ParsedRoute } from './client-plugins-
|
|
1
|
+
import { F as FarmRouteRuntimeConfig, L as LayoutProps, M as Metadata, j as FarmRouteRuntime, k as FarmRouteRegions, l as FarmRouteMaxDuration, m as FarmAppContext, o as PageProps, q as PluginContextProps, s as RouteModule, P as ParsedRoute } from './client-plugins-HIyulDym.js';
|
|
2
2
|
import { ComponentType } from 'react';
|
|
3
3
|
import { RouteDataCacheKey } from './cache.js';
|
|
4
4
|
import { ServerFn } from './server-fn.js';
|
|
@@ -13,12 +13,11 @@ import 'db0';
|
|
|
13
13
|
import 'unstorage';
|
|
14
14
|
import './schema.js';
|
|
15
15
|
import '@farming-labs/orm';
|
|
16
|
-
import './types-DFbjpjXX.js';
|
|
17
16
|
import '@farming-labs/docs';
|
|
18
|
-
import './observability-
|
|
17
|
+
import './observability-CoXunYhS.js';
|
|
19
18
|
import '@opentelemetry/api';
|
|
20
19
|
import 'vite';
|
|
21
|
-
import './workflows-
|
|
20
|
+
import './workflows-jZ4BcdoZ.js';
|
|
22
21
|
import './cron.js';
|
|
23
22
|
import './env.js';
|
|
24
23
|
import './server-action-security.js';
|
|
@@ -26,7 +25,7 @@ import './server-fn-error-DDh14a0V.js';
|
|
|
26
25
|
import 'rolldown/utils';
|
|
27
26
|
import 'rolldown';
|
|
28
27
|
import './image-config-Duob7wER.js';
|
|
29
|
-
import './types-
|
|
28
|
+
import './types-CnH8DOqo.js';
|
|
30
29
|
import './types-DQnyD3VD.js';
|
|
31
30
|
import './font.js';
|
|
32
31
|
import './after.js';
|