@farm.js/core 0.1.80 → 0.1.82
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/dist/{agent-mcp.d-BPa5n0ld.d.ts → agent-mcp.d-C2Su3x4D.d.ts} +1 -1
- package/dist/{agent-mcp.d-DOP95Jxm.d.mts → agent-mcp.d-Yak-LqRd.d.mts} +1 -1
- package/dist/agent-runtime.cjs +4 -3
- package/dist/agent-runtime.d.mts +2 -1
- package/dist/agent-runtime.d.ts +2 -1
- package/dist/agent-runtime.mjs +3 -2
- package/dist/analyzer-LV23T6QN.cjs +17 -0
- package/dist/{analyzer-F7CWE5VA.mjs → analyzer-RPU2KG4J.mjs} +3 -2
- package/dist/api/client.cjs +1 -1
- package/dist/api/client.mjs +1 -1
- package/dist/api/client.native.cjs +1 -1
- package/dist/api/client.native.mjs +1 -1
- package/dist/api/node.cjs +6 -5
- package/dist/api/node.d.mts +4 -3
- package/dist/api/node.d.ts +4 -3
- package/dist/api/node.mjs +5 -4
- package/dist/api/route-manager.cjs +7 -6
- package/dist/api/route-manager.d.mts +4 -3
- package/dist/api/route-manager.d.ts +4 -3
- package/dist/api/route-manager.mjs +6 -5
- package/dist/api/runtime.cjs +5 -4
- package/dist/api/runtime.d.mts +3 -2
- package/dist/api/runtime.d.ts +3 -2
- package/dist/api/runtime.mjs +4 -3
- package/dist/api.cjs +9 -8
- package/dist/api.d.mts +5 -4
- package/dist/api.d.ts +5 -4
- package/dist/api.mjs +8 -7
- package/dist/{app-manifest.d-9UD6BznX.d.mts → app-manifest.d-BcyOFMrg.d.mts} +1 -1
- package/dist/{app-manifest.d-CO6Iu0Hx.d.ts → app-manifest.d-DZyXaICz.d.ts} +1 -1
- package/dist/app-markdown.cjs +3 -3
- package/dist/app-markdown.d.mts +5 -4
- package/dist/app-markdown.d.ts +5 -4
- package/dist/app-markdown.mjs +2 -2
- package/dist/{app.d-DXeRWZK7.d.mts → app.d-C0ePpuaG.d.mts} +30 -4
- package/dist/{app.d-DwX1ePhs.d.ts → app.d-CIoXsAbN.d.ts} +30 -4
- package/dist/{chunk-Q4TRGTO7.cjs → chunk-26WP75W5.cjs} +32 -16
- package/dist/{chunk-7KDCVSTR.mjs → chunk-2PFGA6PB.mjs} +2 -2
- package/dist/chunk-2UYYXSUS.mjs +401 -0
- package/dist/{chunk-PL7MCYYD.mjs → chunk-3AV4DCXY.mjs} +58 -358
- package/dist/{chunk-3GNHJ3RN.cjs → chunk-3BTN3NP7.cjs} +2 -2
- package/dist/chunk-3DE6RK7K.cjs +36 -0
- package/dist/{chunk-GBW5DU7V.mjs → chunk-47I2MYIR.mjs} +487 -304
- package/dist/{chunk-RQBGHHOQ.mjs → chunk-4X7LSGM6.mjs} +1 -1
- package/dist/{chunk-QMR2TUVZ.cjs → chunk-52Q4OB4A.cjs} +4 -4
- package/dist/{chunk-BPWTSPK6.mjs → chunk-5AL2GXAU.mjs} +1 -1
- package/dist/{chunk-GAWSWJJ2.cjs → chunk-5GFTMTX3.cjs} +2 -2
- package/dist/chunk-5MMKNW7Q.cjs +54 -0
- package/dist/{chunk-AXA2BSX3.cjs → chunk-5MUFW5UU.cjs} +22 -21
- package/dist/{chunk-MQOHYV6L.cjs → chunk-5P65LXGU.cjs} +11 -11
- package/dist/{chunk-KEU55O2D.mjs → chunk-63ZE6B6M.mjs} +7 -6
- package/dist/{chunk-TS3ZHJN5.cjs → chunk-6BPFIYGY.cjs} +3 -3
- package/dist/{chunk-NJ4OASLP.mjs → chunk-6QYPP5KC.mjs} +2 -2
- package/dist/{chunk-ATISIC6G.mjs → chunk-7VJXYB6S.mjs} +7 -1
- package/dist/{chunk-G4SZC2WH.cjs → chunk-AIPZDBP6.cjs} +557 -374
- package/dist/{chunk-X4TSMQWF.cjs → chunk-ARORZ3MH.cjs} +548 -397
- package/dist/{chunk-K3XKEZR6.mjs → chunk-AUFEM3FB.mjs} +1 -1
- package/dist/{chunk-MGKWYPE3.mjs → chunk-AYDVUCXD.mjs} +1 -0
- package/dist/{chunk-5OAN7BG5.cjs → chunk-B2PGVHBG.cjs} +4 -4
- package/dist/{chunk-WGWWRV2M.cjs → chunk-B3HQTGXS.cjs} +6 -4
- package/dist/chunk-B7L24VPX.cjs +401 -0
- package/dist/{chunk-5VDJEKGK.cjs → chunk-BBVLOEND.cjs} +1 -1
- package/dist/{chunk-XF7MJSUS.mjs → chunk-BCQIXH7L.mjs} +1 -1
- package/dist/{chunk-67MZTLTF.cjs → chunk-BCTHOQPP.cjs} +37 -9
- package/dist/{chunk-GBESKA76.cjs → chunk-BSX5OGSD.cjs} +1 -1
- package/dist/{chunk-CNDBLUKI.mjs → chunk-BVJUFVCU.mjs} +1 -1
- package/dist/{chunk-QHAISITM.mjs → chunk-C3VCYOU4.mjs} +1 -1
- package/dist/chunk-C5QHZ626.cjs +85 -0
- package/dist/{chunk-3K2E55BJ.mjs → chunk-CA2HBLXP.mjs} +13 -3
- package/dist/{chunk-ANZLZNNX.cjs → chunk-CD5Z7RR5.cjs} +155 -20
- package/dist/{chunk-4MIDUSIX.mjs → chunk-CJDBTTLB.mjs} +17 -17
- package/dist/{chunk-RLCOWWE5.cjs → chunk-CN2JOTRO.cjs} +7 -7
- package/dist/chunk-D2VAANBS.mjs +48 -0
- package/dist/{chunk-XZBBKZGW.mjs → chunk-DAXU2NBE.mjs} +128 -41
- package/dist/{chunk-4H4ZXUNB.cjs → chunk-DJ3PVHTW.cjs} +3 -3
- package/dist/{chunk-Z5BANEQD.cjs → chunk-DMSXZNQR.cjs} +2 -2
- package/dist/{chunk-ZVSQN7NC.cjs → chunk-DRO3NXA3.cjs} +40 -43
- package/dist/{chunk-4OFWG4IK.cjs → chunk-EACD6ND7.cjs} +8 -2
- package/dist/{chunk-Q4YEAWUK.mjs → chunk-ECVSRE4Y.mjs} +3 -2
- package/dist/{chunk-MDEFTF63.mjs → chunk-EL2Z6YFZ.mjs} +25 -28
- package/dist/chunk-EZYKV24V.mjs +385 -0
- package/dist/{chunk-TVCFY3KK.cjs → chunk-FB4CWSC2.cjs} +12 -12
- package/dist/{chunk-IYFBLWXU.cjs → chunk-FULX5RYX.cjs} +61 -361
- package/dist/{chunk-V73Y4UBL.mjs → chunk-GXLNARPO.mjs} +151 -16
- package/dist/{chunk-ZPEZXQTM.cjs → chunk-HHQEKLZL.cjs} +2 -2
- package/dist/{chunk-HNUBRUFQ.cjs → chunk-HQEYZSF3.cjs} +4 -3
- package/dist/{chunk-5ZHC6QGD.cjs → chunk-HQKCSJEH.cjs} +8 -2
- package/dist/{chunk-RHI67C2V.cjs → chunk-HUGPJFOC.cjs} +1 -35
- package/dist/{chunk-44G4XHEL.mjs → chunk-I4DR3HCH.mjs} +11 -11
- package/dist/chunk-I4WZRG73.mjs +54 -0
- package/dist/{chunk-MUZHULW2.mjs → chunk-ICOJ2BC6.mjs} +23 -7
- package/dist/{chunk-MNIR7I7B.mjs → chunk-INKVDO42.mjs} +1 -1
- package/dist/{chunk-C2OLXVUC.mjs → chunk-IVP5Q4BX.mjs} +10 -3
- package/dist/{chunk-HEDGTXXB.cjs → chunk-JB4BHRFK.cjs} +17 -17
- package/dist/{chunk-XKUKWMGX.cjs → chunk-JCYDWJVO.cjs} +3 -3
- package/dist/{chunk-CCMP4JD2.cjs → chunk-JK26IMT7.cjs} +1 -1
- package/dist/{chunk-WIZRYFB2.cjs → chunk-JYQ6DGPW.cjs} +8 -6
- package/dist/{chunk-SVCUSOEF.mjs → chunk-KR5DF7WK.mjs} +1 -1
- package/dist/{chunk-TYHWZOA2.mjs → chunk-KWI3SQFX.mjs} +4 -2
- package/dist/{chunk-POVHO46S.mjs → chunk-L3RDECA5.mjs} +1 -1
- package/dist/{chunk-LVGB5PYK.cjs → chunk-LM2ZDNDD.cjs} +28 -28
- package/dist/{chunk-COTFX4GT.mjs → chunk-LTOT5KVJ.mjs} +1 -1
- package/dist/{chunk-RPA45OQS.mjs → chunk-MO4UTDQ6.mjs} +1 -1
- package/dist/{chunk-DVHFIETW.cjs → chunk-N2EFMN2K.cjs} +18 -18
- package/dist/{chunk-MZ5QGWRW.mjs → chunk-N3VMHPIY.mjs} +2 -2
- package/dist/{chunk-KKVRWNDH.mjs → chunk-NAHDG6UX.mjs} +4 -4
- package/dist/{chunk-UWOCYINY.cjs → chunk-NEKO3HM2.cjs} +12 -2
- package/dist/{chunk-SLEHAGGV.mjs → chunk-NQ3Y6E2T.mjs} +7 -1
- package/dist/{chunk-ZDYYZX73.mjs → chunk-NRCKBDYP.mjs} +266 -115
- package/dist/{chunk-EG5YBYHO.mjs → chunk-OMB7UGVW.mjs} +1 -1
- package/dist/{chunk-JGEN2FIT.mjs → chunk-OP5VI4TP.mjs} +1 -1
- package/dist/{chunk-7VCLTNED.mjs → chunk-PNMAD3OS.mjs} +1 -35
- package/dist/{chunk-3XTRT3MB.mjs → chunk-PO5MZIWK.mjs} +1 -1
- package/dist/{chunk-ASYOWPSR.cjs → chunk-PWDBWXQI.cjs} +2 -1
- package/dist/{chunk-WJ2O2MPP.cjs → chunk-Q2VOT3K2.cjs} +494 -407
- package/dist/{chunk-7YLDUB4R.cjs → chunk-QCKSYYXK.cjs} +7 -7
- package/dist/{chunk-57QAQU4F.mjs → chunk-QRNYSISP.mjs} +1 -1
- package/dist/{chunk-3JQBQG7K.mjs → chunk-QSMUMK7Y.mjs} +2 -2
- package/dist/{chunk-PRL7FXG4.cjs → chunk-RDNKQ5MK.cjs} +12 -13
- package/dist/{chunk-GCRT6GJG.mjs → chunk-RMLR5RMH.mjs} +30 -2
- package/dist/{chunk-XY5OZQF6.cjs → chunk-RMPUEH5T.cjs} +2 -2
- package/dist/{chunk-7DD5TNPS.cjs → chunk-S7WZUK3B.cjs} +2 -2
- package/dist/{chunk-EGHPFXPZ.cjs → chunk-SAPG45RA.cjs} +23 -23
- package/dist/{chunk-Z4SMFUZ7.cjs → chunk-U54REWMJ.cjs} +23 -23
- package/dist/chunk-U6XYBTUT.mjs +36 -0
- package/dist/chunk-UDMBUTJD.mjs +85 -0
- package/dist/{chunk-WHEQJN4G.cjs → chunk-UGD53SNO.cjs} +2 -2
- package/dist/{chunk-TCMRLW3K.cjs → chunk-VACYUMXW.cjs} +10 -3
- package/dist/{chunk-SDICLSQU.cjs → chunk-VMBIKDKW.cjs} +10 -10
- package/dist/{chunk-WBPVLCNE.mjs → chunk-VPGEYX5Y.mjs} +4 -4
- package/dist/chunk-VS7HLH4S.cjs +385 -0
- package/dist/{chunk-UGLTOLTJ.cjs → chunk-W76C7TCW.cjs} +2 -2
- package/dist/chunk-WMRGIQTA.cjs +48 -0
- package/dist/{chunk-52LTENRE.cjs → chunk-WOAXQ5MZ.cjs} +9 -9
- package/dist/{chunk-C6HGUTXB.mjs → chunk-XBSIGZ4J.mjs} +2 -3
- package/dist/{chunk-6JWXHPVR.mjs → chunk-XRSNW4IU.mjs} +4 -2
- package/dist/{chunk-2RRTOKRZ.mjs → chunk-YHM4PXJY.mjs} +1 -1
- package/dist/{chunk-A5D3UMLJ.mjs → chunk-YSU3WCW6.mjs} +1 -1
- package/dist/{chunk-4STJ6LGR.mjs → chunk-Z3RM3VA2.mjs} +1 -1
- package/dist/{chunk-YN3YMSKD.mjs → chunk-ZIZRIZLP.mjs} +3 -3
- package/dist/{cli-runtime.d-DPNTN-JV.d.mts → cli-runtime.d-Hnvvadz7.d.mts} +5 -5
- package/dist/{cli-runtime.d-8BhZy_wr.d.ts → cli-runtime.d-I0MphTbc.d.ts} +5 -5
- package/dist/{client-component.d-CkDcob6D.d.ts → client-component.d-5QEvtJsg.d.ts} +1 -1
- package/dist/{client-component.d-CMCdyAr8.d.mts → client-component.d-DapRqtSC.d.mts} +1 -1
- package/dist/{client-plugins.d-WcMwOZGZ.d.mts → client-plugins.d-C1WM3ieD.d.mts} +7 -13
- package/dist/{client-plugins.d-BYIovYqX.d.ts → client-plugins.d-DcmDzcSC.d.ts} +7 -13
- package/dist/client-plugins.d.mts +2 -1
- package/dist/client-plugins.d.ts +2 -1
- package/dist/client.cjs +9 -8
- package/dist/client.d.mts +20 -151
- package/dist/client.d.ts +20 -151
- package/dist/client.mjs +8 -7
- package/dist/config.d.mts +2 -1
- package/dist/config.d.ts +2 -1
- package/dist/cron.cjs +2 -2
- package/dist/cron.mjs +1 -1
- package/dist/desktop.d.mts +3 -2
- package/dist/desktop.d.ts +3 -2
- package/dist/{devtools-JJOYTIMS.cjs → devtools-5B7NZE6F.cjs} +15 -14
- package/dist/{devtools-F3FDFV26.mjs → devtools-C5GXZZ7E.mjs} +12 -11
- package/dist/docs.cjs +14 -13
- package/dist/docs.d.mts +4 -3
- package/dist/docs.d.ts +4 -3
- package/dist/docs.mjs +13 -12
- package/dist/environment/vite.cjs +7 -6
- package/dist/environment/vite.mjs +6 -5
- package/dist/{handler.d-s3IM6pbJ.d.mts → handler.d-B8bPCBzl.d.mts} +1 -1
- package/dist/{handler.d-BwdOyc9x.d.ts → handler.d-Cliwo6Nu.d.ts} +1 -1
- package/dist/{headers.d-BR-OXrqQ.d.mts → headers.d-CVwSpSGX.d.mts} +1 -1
- package/dist/{headers.d-CAW4wPey.d.ts → headers.d-C_btqjV6.d.ts} +1 -1
- package/dist/index.cjs +68 -65
- package/dist/{index.d-BEVK61zS.d.mts → index.d-DFuMZk9-.d.mts} +1 -1
- package/dist/{index.d-ah2c89Wu.d.ts → index.d-hOEbMcLk.d.ts} +1 -1
- package/dist/index.d.mts +25 -23
- package/dist/index.d.ts +25 -23
- package/dist/index.mjs +72 -69
- package/dist/instrumentation.cjs +3 -3
- package/dist/instrumentation.mjs +2 -2
- package/dist/integrations/orm.d.mts +2 -1
- package/dist/integrations/orm.d.ts +2 -1
- package/dist/integrations.cjs +4 -3
- package/dist/integrations.d.mts +2 -1
- package/dist/integrations.d.ts +2 -1
- package/dist/integrations.mjs +3 -2
- package/dist/internal/app-markdown-runtime.cjs +2 -2
- package/dist/internal/app-markdown-runtime.d.mts +12 -5
- package/dist/internal/app-markdown-runtime.d.ts +12 -5
- package/dist/internal/app-markdown-runtime.mjs +1 -1
- package/dist/internal/build-runtime.cjs +49 -47
- package/dist/internal/build-runtime.d.mts +5 -4
- package/dist/internal/build-runtime.d.ts +5 -4
- package/dist/internal/build-runtime.mjs +48 -46
- package/dist/internal/cli-runtime.cjs +25 -24
- package/dist/internal/cli-runtime.d.mts +8 -7
- package/dist/internal/cli-runtime.d.ts +8 -7
- package/dist/internal/cli-runtime.mjs +26 -25
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +76 -15
- package/dist/internal/client-runtime.d.mts +18 -7
- package/dist/internal/client-runtime.d.ts +18 -7
- package/dist/internal/client-runtime.mjs +67 -6
- package/dist/internal/compression-runtime.d.mts +2 -1
- package/dist/internal/compression-runtime.d.ts +2 -1
- package/dist/internal/config-runtime.cjs +14 -13
- package/dist/internal/config-runtime.d.mts +4 -3
- package/dist/internal/config-runtime.d.ts +4 -3
- package/dist/internal/config-runtime.mjs +13 -12
- package/dist/internal/docs-precompiled-runtime.cjs +1 -1
- package/dist/internal/docs-precompiled-runtime.mjs +1 -1
- package/dist/internal/form-actions.cjs +3 -3
- package/dist/internal/form-actions.mjs +2 -2
- package/dist/internal/infra-analytics-runtime.cjs +9 -7
- package/dist/internal/infra-analytics-runtime.d.mts +8 -2
- package/dist/internal/infra-analytics-runtime.d.ts +8 -2
- package/dist/internal/infra-analytics-runtime.mjs +9 -7
- package/dist/internal/island-codec.cjs +3 -3
- package/dist/internal/island-codec.mjs +2 -2
- package/dist/internal/island-value-store.d.mts +1 -1
- package/dist/internal/island-value-store.d.ts +1 -1
- package/dist/internal/islands-boot.cjs +63 -23
- package/dist/internal/islands-boot.d.mts +5 -3
- package/dist/internal/islands-boot.d.ts +5 -3
- package/dist/internal/islands-boot.mjs +58 -18
- package/dist/internal/islands-runtime.cjs +10 -56
- package/dist/internal/islands-runtime.mjs +6 -52
- package/dist/internal/islands-server.cjs +4 -4
- package/dist/internal/islands-server.mjs +3 -3
- package/dist/internal/islx-actions-client.cjs +36 -0
- package/dist/internal/islx-actions-client.d.mts +13 -0
- package/dist/internal/islx-actions-client.d.ts +13 -0
- package/dist/internal/islx-actions-client.mjs +36 -0
- package/dist/internal/islx-actions-server.cjs +8 -0
- package/dist/internal/islx-actions-server.d.mts +6 -0
- package/dist/internal/islx-actions-server.d.ts +6 -0
- package/dist/internal/islx-actions-server.mjs +8 -0
- package/dist/internal/islx-client.d.mts +0 -4
- package/dist/internal/islx-client.d.ts +0 -4
- package/dist/internal/isolated-boundary.cjs +3 -3
- package/dist/internal/isolated-boundary.d.mts +1 -1
- package/dist/internal/isolated-boundary.d.ts +1 -1
- package/dist/internal/isolated-boundary.mjs +2 -2
- package/dist/internal/metadata-image-runtime.cjs +4 -2
- package/dist/internal/metadata-image-runtime.d.mts +18 -2
- package/dist/internal/metadata-image-runtime.d.ts +18 -2
- package/dist/internal/metadata-image-runtime.mjs +5 -3
- package/dist/internal/native-server-fns.cjs +5 -4
- package/dist/internal/native-server-fns.mjs +4 -3
- package/dist/internal/navigation-neutral.cjs +36 -0
- package/dist/internal/navigation-neutral.d.mts +14 -0
- package/dist/internal/navigation-neutral.d.ts +14 -0
- package/dist/internal/navigation-neutral.mjs +36 -0
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +30 -25
- package/dist/internal/production-runtime.d.mts +14 -11
- package/dist/internal/production-runtime.d.ts +14 -11
- package/dist/internal/production-runtime.mjs +35 -30
- package/dist/internal/server-tree.cjs +5 -4
- package/dist/internal/server-tree.d.mts +3 -4
- package/dist/internal/server-tree.d.ts +3 -4
- package/dist/internal/server-tree.mjs +4 -3
- package/dist/internal/spa-router.cjs +3 -3
- package/dist/internal/spa-router.d.mts +4 -3
- package/dist/internal/spa-router.d.ts +4 -3
- package/dist/internal/spa-router.mjs +2 -2
- package/dist/internal/start-manifest.d.mts +2 -1
- package/dist/internal/start-manifest.d.ts +2 -1
- package/dist/internal/vercel-edge-middleware.cjs +1 -1
- package/dist/internal/vercel-edge-middleware.mjs +1 -1
- package/dist/island-value-protocol.d-fEoc1m8e.d.mts +27 -0
- package/dist/island-value-protocol.d-fEoc1m8e.d.ts +27 -0
- package/dist/{layers-5ZD4764G.mjs → layers-744BBUY5.mjs} +2 -2
- package/dist/layers-XLOMMQP7.cjs +21 -0
- package/dist/markdown.d.mts +2 -1
- package/dist/markdown.d.ts +2 -1
- package/dist/middleware.cjs +5 -5
- package/dist/middleware.d.mts +2 -1
- package/dist/middleware.d.ts +2 -1
- package/dist/middleware.mjs +4 -4
- package/dist/{mount.d-DcoPFqv5.d.ts → mount.d-CAovYKfs.d.ts} +1 -1
- package/dist/{mount.d-Ylo-CmzK.d.mts → mount.d-DLeYxeRR.d.mts} +1 -1
- package/dist/{native-server-fn-handler-TNVFEQW3.cjs → native-server-fn-handler-57TCQPSM.cjs} +4 -4
- package/dist/{native-server-fn-handler-OXFTI6V5.mjs → native-server-fn-handler-PYK65A46.mjs} +3 -3
- package/dist/{navigation-delegate.d-2MK4YSlL.d.ts → navigation-delegate.d-BLM-8Q3Z.d.ts} +1 -1
- package/dist/{navigation-delegate.d-BA5h0fbE.d.mts → navigation-delegate.d-Chv93QS6.d.mts} +1 -1
- package/dist/navigation-errors.d-DwHtoMyR.d.mts +13 -0
- package/dist/navigation-errors.d-DwHtoMyR.d.ts +13 -0
- package/dist/navigation.cjs +6 -6
- package/dist/navigation.d.mts +7 -6
- package/dist/navigation.d.ts +7 -6
- package/dist/navigation.mjs +5 -5
- package/dist/{nitro-C3MYDX7V.mjs → nitro-FK3SZM4H.mjs} +2 -2
- package/dist/{nitro-6UOJXJZ6.cjs → nitro-YDFMH5PY.cjs} +6 -6
- package/dist/node-module-bundle-TNSY5PAC.cjs +15 -0
- package/dist/{node-module-bundle-XPLBMXRD.mjs → node-module-bundle-ZWCQJCKA.mjs} +3 -1
- package/dist/{plugin-LN3JBZRR.cjs → plugin-3PT7I26P.cjs} +2 -2
- package/dist/{plugin-33I3V42N.mjs → plugin-QOTAPTVV.mjs} +1 -1
- package/dist/plugin.cjs +41 -37
- package/dist/plugin.d.mts +6 -5
- package/dist/plugin.d.ts +6 -5
- package/dist/plugin.mjs +40 -36
- package/dist/query/client.cjs +10 -10
- package/dist/query/client.mjs +5 -5
- package/dist/{render-plan.d-2o-AG-ot.d.ts → render-plan.d-BSTjTH8h.d.ts} +1 -1
- package/dist/{render-plan.d-ChYBMhLu.d.mts → render-plan.d-CK5Lggyb.d.mts} +1 -1
- package/dist/renderer/none/server.cjs +5 -1
- package/dist/renderer/none/server.d.mts +3 -1
- package/dist/renderer/none/server.d.ts +3 -1
- package/dist/renderer/none/server.mjs +4 -0
- package/dist/renderer/react/server.cjs +6 -6
- package/dist/renderer/react/server.mjs +3 -3
- package/dist/renderer-client.cjs +79 -17
- package/dist/renderer-client.d.mts +13 -97
- package/dist/renderer-client.d.ts +13 -97
- package/dist/renderer-client.mjs +69 -7
- package/dist/renderer.cjs +4 -2
- package/dist/renderer.d.mts +43 -5
- package/dist/renderer.d.ts +43 -5
- package/dist/renderer.mjs +3 -1
- package/dist/{request.d-RCnCBuWq.d.mts → request.d-BhggxQf3.d.mts} +1 -1
- package/dist/{request.d-CE0FIkiM.d.ts → request.d-CyJS9bjm.d.ts} +1 -1
- package/dist/request.d.mts +3 -2
- package/dist/request.d.ts +3 -2
- package/dist/{route-rendering.d-BTPOM2nU.d.ts → route-rendering.d-BLPPmI5I.d.ts} +1 -1
- package/dist/{route-rendering.d-BZJnfKsp.d.mts → route-rendering.d-CUpG2mZJ.d.mts} +1 -1
- package/dist/{router.d-BU_WE6Ol.d.ts → router.d-0X2Ki6rf.d.ts} +1 -1
- package/dist/{router.d-D8Vvwl4i.d.mts → router.d-2NQM1Kgw.d.mts} +1 -1
- package/dist/routes.cjs +1 -1
- package/dist/routes.d.mts +2 -1
- package/dist/routes.d.ts +2 -1
- package/dist/routes.mjs +1 -1
- package/dist/{rsc-pipeline-A3R4U26C.cjs → rsc-pipeline-5AOF64FL.cjs} +19 -18
- package/dist/{rsc-pipeline-JZWVSHOR.mjs → rsc-pipeline-DNRLYOJ7.mjs} +18 -17
- package/dist/{runtime-SQFRHRGJ.mjs → runtime-EHG2FRXZ.mjs} +18 -17
- package/dist/{runtime-WZ3CHHGJ.cjs → runtime-ZVHG5SRB.cjs} +20 -19
- package/dist/{runtime.d-DJ6IIKcF.d.ts → runtime.d-CXuwkUgr.d.ts} +1 -1
- package/dist/{runtime.d-BnmuOXVD.d.mts → runtime.d-CaFXcu_Q.d.mts} +1 -1
- package/dist/server-action-security.cjs +1 -1
- package/dist/server-action-security.mjs +1 -1
- package/dist/{server-components-status.d-BeqSXcjM.d.ts → server-components-status.d-BdeFD8ZH.d.ts} +1 -1
- package/dist/{server-components-status.d-BzOg9M8g.d.mts → server-components-status.d-Cp7zvBm5.d.mts} +1 -1
- package/dist/server-fn.cjs +3 -3
- package/dist/server-fn.mjs +2 -2
- package/dist/server-plugins.cjs +1 -1
- package/dist/server-plugins.d.mts +4 -3
- package/dist/server-plugins.d.ts +4 -3
- package/dist/server-plugins.mjs +1 -1
- package/dist/server-query.cjs +4 -4
- package/dist/server-query.mjs +3 -3
- package/dist/server.cjs +82 -71
- package/dist/server.d.mts +12 -11
- package/dist/server.d.ts +12 -11
- package/dist/server.mjs +61 -50
- package/dist/{spa-router.d-BOwuVkMl.d.ts → spa-router.d-Bjgl-Osi.d.ts} +3 -3
- package/dist/{spa-router.d-CDpftSsk.d.mts → spa-router.d-l3G38xHa.d.mts} +3 -3
- package/dist/{ssg.d-BTVqyq8T.d.ts → ssg.d-DDca17Lc.d.ts} +2 -2
- package/dist/{ssg.d-Bx_WFuwg.d.mts → ssg.d-RnlHOqUL.d.mts} +2 -2
- package/dist/store-core.d-BZjuC6Zc.d.mts +309 -0
- package/dist/store-core.d-BaOUOPf7.d.ts +309 -0
- package/dist/testing.cjs +7 -6
- package/dist/testing.d.mts +2 -1
- package/dist/testing.d.ts +2 -1
- package/dist/testing.mjs +6 -5
- package/dist/{utils.d-_dvevm5s.d.ts → utils.d-D8TWmpWo.d.ts} +1 -1
- package/dist/{utils.d-JkrpS-NJ.d.mts → utils.d-tdzw0_zQ.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +43 -37
- package/dist/vite.d.mts +18 -7
- package/dist/vite.d.ts +18 -7
- package/dist/vite.mjs +42 -36
- package/dist/workflows.cjs +2 -2
- package/dist/workflows.mjs +1 -1
- package/package.json +17 -2
- package/dist/analyzer-I7RBBQ65.cjs +0 -16
- package/dist/chunk-CQL5ZGFU.cjs +0 -50
- package/dist/chunk-HONTCUK6.mjs +0 -203
- package/dist/chunk-K6PGK7DC.cjs +0 -203
- package/dist/chunk-NBIVGHAT.mjs +0 -50
- package/dist/island-value-protocol.d-BRayRghM.d.mts +0 -12
- package/dist/island-value-protocol.d-BRayRghM.d.ts +0 -12
- package/dist/layers-HMEGUEXM.cjs +0 -21
- package/dist/node-module-bundle-M6BISE2P.cjs +0 -13
- package/dist/{chunk-EY7ED5UW.mjs → chunk-3RVLJTFZ.mjs} +3 -3
- package/dist/{chunk-UJPE75GF.mjs → chunk-J2VUPCCR.mjs} +3 -3
- package/dist/{chunk-PBJ7MEOV.cjs → chunk-OZUINP2P.cjs} +2 -2
- package/dist/{chunk-7FQFK3OA.mjs → chunk-V7HNYR76.mjs} +3 -3
- package/dist/{chunk-2FK47RRZ.cjs → chunk-VGHDPEPQ.cjs} +2 -2
- package/dist/{chunk-CGIVCGH5.cjs → chunk-XOFJUSWC.cjs} +2 -2
|
@@ -27,6 +27,7 @@ import {
|
|
|
27
27
|
createFarmSourceAlias,
|
|
28
28
|
createFarmThemeCssPlugin,
|
|
29
29
|
exactIdPattern,
|
|
30
|
+
farmBrowserServerFnsEnabled,
|
|
30
31
|
farmFontImportsPlugin,
|
|
31
32
|
generateClientCachePersistenceCode,
|
|
32
33
|
generateFarmIntegrationProviderClientCode,
|
|
@@ -39,24 +40,25 @@ import {
|
|
|
39
40
|
resolveFarmAppPackages,
|
|
40
41
|
resolveFarmClientCacheAdapterEntry,
|
|
41
42
|
resolveFarmImageProviderForRuntime,
|
|
43
|
+
resolveFarmIslxActionsMode,
|
|
42
44
|
resolveFarmRouteRootStrategy,
|
|
43
45
|
toBakedMarkdownSourcePath
|
|
44
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-NRCKBDYP.mjs";
|
|
45
47
|
import {
|
|
46
48
|
generateFarmClientPluginEntryCode,
|
|
47
49
|
hasFarmServerRuntimePlugins,
|
|
48
50
|
loadTailwindVitePlugin
|
|
49
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-MO4UTDQ6.mjs";
|
|
50
52
|
import {
|
|
51
53
|
FARM_NODE_RESPONSE_END_PENDING
|
|
52
|
-
} from "./chunk-
|
|
53
|
-
import {
|
|
54
|
-
resolveFarmPlatform
|
|
55
|
-
} from "./chunk-SMUW7UST.mjs";
|
|
54
|
+
} from "./chunk-IVP5Q4BX.mjs";
|
|
56
55
|
import {
|
|
57
56
|
generateFarmTypeArtifacts,
|
|
58
57
|
resolveRouteRenderingConfig
|
|
59
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-ZIZRIZLP.mjs";
|
|
59
|
+
import {
|
|
60
|
+
resolveFarmPlatform
|
|
61
|
+
} from "./chunk-SMUW7UST.mjs";
|
|
60
62
|
import {
|
|
61
63
|
createFarmRouteRenderPlan,
|
|
62
64
|
farmPathGuardCoversEndpoint,
|
|
@@ -65,10 +67,13 @@ import {
|
|
|
65
67
|
getSharedLayoutPrefixLength,
|
|
66
68
|
parseFarmLayoutChainHeader,
|
|
67
69
|
renderFarmLocaleAlternateLinks
|
|
68
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-CA2HBLXP.mjs";
|
|
69
71
|
import {
|
|
70
72
|
FARM_NATIVE_TREE_CONTENT_TYPE
|
|
71
73
|
} from "./chunk-LLZSYFOM.mjs";
|
|
74
|
+
import {
|
|
75
|
+
_setFarmInfraAnalyticsWebMCPRoute
|
|
76
|
+
} from "./chunk-GXLNARPO.mjs";
|
|
72
77
|
import {
|
|
73
78
|
FARM_API_CATALOG_PATH,
|
|
74
79
|
createFarmAiCatalogResponse,
|
|
@@ -83,13 +88,13 @@ import {
|
|
|
83
88
|
resolveFarmMCPRouteLabel,
|
|
84
89
|
resolveFarmMarkdownRouteLabel,
|
|
85
90
|
setFarmRouteLabel
|
|
86
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-QSMUMK7Y.mjs";
|
|
87
92
|
import {
|
|
88
93
|
FARM_DEFAULT_MCP_PATH
|
|
89
94
|
} from "./chunk-HR4N2K4V.mjs";
|
|
90
95
|
import {
|
|
91
96
|
isFarmPreviewDeploymentEnvironment
|
|
92
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-4X7LSGM6.mjs";
|
|
93
98
|
import {
|
|
94
99
|
createFarmServerFnBoundaryModule,
|
|
95
100
|
isFarmServerFnBoundaryId,
|
|
@@ -140,7 +145,7 @@ import {
|
|
|
140
145
|
usePackageScanCacheFile,
|
|
141
146
|
withFarmSourceSnapshotOf,
|
|
142
147
|
wrapFarmIslandContainers
|
|
143
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-EL2Z6YFZ.mjs";
|
|
144
149
|
import {
|
|
145
150
|
generateFarmDocsAdapterClientRuntime,
|
|
146
151
|
getFarmDocsAdapterConfigModule
|
|
@@ -164,13 +169,18 @@ import {
|
|
|
164
169
|
FARM_PREVIEW_ROBOTS_TAG,
|
|
165
170
|
resolveFarmAgentCrawlers,
|
|
166
171
|
resolveFarmAgentSitemap
|
|
167
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-NQ3Y6E2T.mjs";
|
|
168
173
|
import {
|
|
169
174
|
resolveFarmLlmsTxtConfig
|
|
170
175
|
} from "./chunk-XGL42MQ7.mjs";
|
|
171
176
|
import {
|
|
172
177
|
resolveFarmServerComponentsMode
|
|
173
178
|
} from "./chunk-4QENVMG7.mjs";
|
|
179
|
+
import {
|
|
180
|
+
getFarmAppDirectories,
|
|
181
|
+
getFarmLayerAliases,
|
|
182
|
+
getFarmSourceRoots
|
|
183
|
+
} from "./chunk-Z3RM3VA2.mjs";
|
|
174
184
|
import {
|
|
175
185
|
REACT_RENDERER,
|
|
176
186
|
getFarmRendererCapabilities,
|
|
@@ -180,16 +190,14 @@ import {
|
|
|
180
190
|
resolveFarmComponentExtensions,
|
|
181
191
|
resolveFarmRenderer,
|
|
182
192
|
resolveFarmRendererAppSetup
|
|
183
|
-
} from "./chunk-
|
|
184
|
-
import {
|
|
185
|
-
getFarmAppDirectories,
|
|
186
|
-
getFarmLayerAliases,
|
|
187
|
-
getFarmSourceRoots
|
|
188
|
-
} from "./chunk-4STJ6LGR.mjs";
|
|
193
|
+
} from "./chunk-RMLR5RMH.mjs";
|
|
189
194
|
import {
|
|
190
195
|
getPublicFarmImageConfig,
|
|
191
196
|
resolveFarmImageConfig
|
|
192
197
|
} from "./chunk-AOIUYHPH.mjs";
|
|
198
|
+
import {
|
|
199
|
+
FARM_PREVIEW_REQUEST_HEADER
|
|
200
|
+
} from "./chunk-7VJXYB6S.mjs";
|
|
193
201
|
import {
|
|
194
202
|
createBundledEnv
|
|
195
203
|
} from "./chunk-N33DLJBC.mjs";
|
|
@@ -197,7 +205,7 @@ import {
|
|
|
197
205
|
createFarmMarkdownSourceResponse,
|
|
198
206
|
isFarmMarkdownPageFile,
|
|
199
207
|
normalizeFarmMarkdownRoutePath
|
|
200
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-ICOJ2BC6.mjs";
|
|
201
209
|
import {
|
|
202
210
|
resolveFarmMdxComponentsModulePath,
|
|
203
211
|
resolveMdxConfig
|
|
@@ -216,14 +224,14 @@ import {
|
|
|
216
224
|
getIntegrationDocumentNavigationMatchers,
|
|
217
225
|
getIntegrationProviders,
|
|
218
226
|
matchIntegrationRoute
|
|
219
|
-
} from "./chunk-
|
|
227
|
+
} from "./chunk-XRSNW4IU.mjs";
|
|
220
228
|
import {
|
|
221
229
|
resolveFarmRouteContext,
|
|
222
230
|
withFarmRouteContext
|
|
223
231
|
} from "./chunk-BMQAPZXD.mjs";
|
|
224
232
|
import {
|
|
225
233
|
MiddlewareManager
|
|
226
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-3RVLJTFZ.mjs";
|
|
227
235
|
import {
|
|
228
236
|
_runWithMiddlewareContext,
|
|
229
237
|
_runWithMiddlewareData
|
|
@@ -239,7 +247,7 @@ import {
|
|
|
239
247
|
} from "./chunk-IYEY3JWJ.mjs";
|
|
240
248
|
import {
|
|
241
249
|
APIRouteManager
|
|
242
|
-
} from "./chunk-
|
|
250
|
+
} from "./chunk-NAHDG6UX.mjs";
|
|
243
251
|
import {
|
|
244
252
|
getFarmI18nClientSnapshot
|
|
245
253
|
} from "./chunk-O7JEFGUV.mjs";
|
|
@@ -251,7 +259,7 @@ import {
|
|
|
251
259
|
FARM_INTERNAL_SERVER_ERROR_BODY,
|
|
252
260
|
createFarmInternalServerErrorResponse,
|
|
253
261
|
isFarmAPIPathname
|
|
254
|
-
} from "./chunk-
|
|
262
|
+
} from "./chunk-KWI3SQFX.mjs";
|
|
255
263
|
import {
|
|
256
264
|
registerFarmMCPServer
|
|
257
265
|
} from "./chunk-F7MJWW6A.mjs";
|
|
@@ -302,7 +310,7 @@ import {
|
|
|
302
310
|
} from "./chunk-EILUVBKS.mjs";
|
|
303
311
|
import {
|
|
304
312
|
FARM_VERSION
|
|
305
|
-
} from "./chunk-
|
|
313
|
+
} from "./chunk-OP5VI4TP.mjs";
|
|
306
314
|
import {
|
|
307
315
|
DEFAULT_FARM_API_BASE_PATH
|
|
308
316
|
} from "./chunk-W6QLRQ3V.mjs";
|
|
@@ -363,7 +371,10 @@ function transformFarmFormActionModule(options) {
|
|
|
363
371
|
root: options.root,
|
|
364
372
|
environment: options.ssr ? "server" : "client",
|
|
365
373
|
parse: options.parse,
|
|
366
|
-
runtime: {
|
|
374
|
+
runtime: options.runtime === "renderer" ? {
|
|
375
|
+
server: runtimeModule("@farm.js/core/internal/islx-actions-server"),
|
|
376
|
+
client: runtimeModule("@farm.js/core/internal/islx-actions-client")
|
|
377
|
+
} : {
|
|
367
378
|
server: runtimeModule("@farm.js/core/internal/islx-server"),
|
|
368
379
|
client: runtimeModule("@farm.js/core/internal/islx-client")
|
|
369
380
|
}
|
|
@@ -380,7 +391,6 @@ import { builtinModules as builtinModules2, isBuiltin as isBuiltin2 } from "modu
|
|
|
380
391
|
// src/dev-preview-guard.ts
|
|
381
392
|
import { promises as fsp } from "fs";
|
|
382
393
|
import * as path2 from "path";
|
|
383
|
-
var FARM_PREVIEW_REQUEST_HEADER = "x-farm-preview";
|
|
384
394
|
function isFarmPreviewTunnelRequest(headers) {
|
|
385
395
|
return headers[FARM_PREVIEW_REQUEST_HEADER] !== void 0;
|
|
386
396
|
}
|
|
@@ -1275,7 +1285,7 @@ function loadFarmWorkflowsDevRuntime() {
|
|
|
1275
1285
|
return import("./workflows.mjs");
|
|
1276
1286
|
}
|
|
1277
1287
|
function loadFarmDevtoolsSnapshotRuntime() {
|
|
1278
|
-
return import("./devtools-
|
|
1288
|
+
return import("./devtools-C5GXZZ7E.mjs");
|
|
1279
1289
|
}
|
|
1280
1290
|
function loadFarmDevtoolsUIRuntime() {
|
|
1281
1291
|
return import("./devtools-ui-BOG33MT5.mjs");
|
|
@@ -1299,6 +1309,25 @@ function farmI18nClientBridgePlugin() {
|
|
|
1299
1309
|
}
|
|
1300
1310
|
};
|
|
1301
1311
|
}
|
|
1312
|
+
function farmNavigationPlugin(renderer) {
|
|
1313
|
+
const otherRenderer = !isFarmRendererDisabled(renderer) && !isReactRenderer(renderer || void 0) && (renderer || void 0)?.name !== "preact";
|
|
1314
|
+
return {
|
|
1315
|
+
name: "farm:navigation",
|
|
1316
|
+
config() {
|
|
1317
|
+
if (!otherRenderer) return;
|
|
1318
|
+
return {
|
|
1319
|
+
resolve: {
|
|
1320
|
+
alias: [
|
|
1321
|
+
{
|
|
1322
|
+
find: /^@farm\.js\/core\/navigation$/,
|
|
1323
|
+
replacement: "@farm.js/core/internal/navigation-neutral"
|
|
1324
|
+
}
|
|
1325
|
+
]
|
|
1326
|
+
}
|
|
1327
|
+
};
|
|
1328
|
+
}
|
|
1329
|
+
};
|
|
1330
|
+
}
|
|
1302
1331
|
var FARM_SERVER_ONLY_ENTRIES = /* @__PURE__ */ new Set(["@farm.js/core/og"]);
|
|
1303
1332
|
var SERVER_ONLY_PACKAGE = "server-only";
|
|
1304
1333
|
var farmReactServerFiles = /* @__PURE__ */ new Set();
|
|
@@ -2322,10 +2351,8 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2322
2351
|
if (mdxComponents) files.add(mdxComponents);
|
|
2323
2352
|
return files;
|
|
2324
2353
|
};
|
|
2325
|
-
const
|
|
2326
|
-
|
|
2327
|
-
return config.experimental?.serverActions === true && resolveFarmServerComponentsMode(config.experimental?.serverComponents) === "islands";
|
|
2328
|
-
};
|
|
2354
|
+
const islxActionsMode = () => resolveFarmIslxActionsMode(farmApp?.getConfig() ?? options);
|
|
2355
|
+
const islandsServerFns = () => farmBrowserServerFnsEnabled(farmApp?.getConfig() ?? options);
|
|
2329
2356
|
let reactRefreshActive = false;
|
|
2330
2357
|
let server;
|
|
2331
2358
|
let deferredGates;
|
|
@@ -2887,6 +2914,24 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2887
2914
|
});
|
|
2888
2915
|
}
|
|
2889
2916
|
}
|
|
2917
|
+
const farmInfraAnalyticsPlugin = pm?.getPlugins().find((plugin2) => plugin2.name === "farm:infra-analytics");
|
|
2918
|
+
if (farmInfraAnalyticsPlugin) {
|
|
2919
|
+
_setFarmInfraAnalyticsWebMCPRoute(farmInfraAnalyticsPlugin, async (pathname) => {
|
|
2920
|
+
if (farmDocsDevRuntime) {
|
|
2921
|
+
const label = resolveFarmDocsRouteLabel(
|
|
2922
|
+
stripFarmBasePath(pathname, farmConfig.basePath),
|
|
2923
|
+
{
|
|
2924
|
+
path: farmConfig.docs?.entry || "/docs",
|
|
2925
|
+
roots: farmConfig.docs?.roots?.map((root) => root.entry),
|
|
2926
|
+
pages: await getFarmDocsPagePaths()
|
|
2927
|
+
}
|
|
2928
|
+
);
|
|
2929
|
+
if (label) return setFarmRouteLabel({ pathname }, label);
|
|
2930
|
+
}
|
|
2931
|
+
const match = farmApp.getRouteManager().matchRoute(pathname);
|
|
2932
|
+
return { pathname, pattern: match.route?.pattern || null };
|
|
2933
|
+
});
|
|
2934
|
+
}
|
|
2890
2935
|
if (farmDocsDevRuntime && !farmDocsDevRuntime.hasFarmDocsRuntimeAdapter(farmConfig.docs)) {
|
|
2891
2936
|
const docsContentDirs = farmDocsDevRuntime.getFarmDocsContentDirs(farmConfig.docs, {
|
|
2892
2937
|
root: farmConfig.root,
|
|
@@ -3017,6 +3062,31 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3017
3062
|
return;
|
|
3018
3063
|
}
|
|
3019
3064
|
}
|
|
3065
|
+
if (pm && requestMethod !== "GET" && requestMethod !== "HEAD" && pm._hasRuntimeEndpoint(requestPathname)) {
|
|
3066
|
+
let body;
|
|
3067
|
+
try {
|
|
3068
|
+
body = await readNodeRequestBody(req, currentServerConfig.bodySizeLimit);
|
|
3069
|
+
} catch (error) {
|
|
3070
|
+
res.statusCode = error.status ?? 400;
|
|
3071
|
+
res.end();
|
|
3072
|
+
return;
|
|
3073
|
+
}
|
|
3074
|
+
let response;
|
|
3075
|
+
try {
|
|
3076
|
+
const endpointRequest = createRequestFromNodeRequest(req, parsedRequestUrl);
|
|
3077
|
+
response = await pm.runRuntimeRequest(
|
|
3078
|
+
new Request(endpointRequest, { method: requestMethod, body: toRequestBody(body) }),
|
|
3079
|
+
// An endpoint answers before the handler would run.
|
|
3080
|
+
() => new Response(null, { status: 404 }),
|
|
3081
|
+
{ kind: "request", route: { pathname: requestPathname } }
|
|
3082
|
+
);
|
|
3083
|
+
} catch {
|
|
3084
|
+
sendFarmDevRuntimeHookError(res, true);
|
|
3085
|
+
return;
|
|
3086
|
+
}
|
|
3087
|
+
await sendWebResponse(res, response);
|
|
3088
|
+
return;
|
|
3089
|
+
}
|
|
3020
3090
|
if (!rendererDisabled && (requestMethod === "GET" || requestMethod === "HEAD") && requestPathname === FARM_VIDEO_PLAYER_PATH) {
|
|
3021
3091
|
res.statusCode = 200;
|
|
3022
3092
|
res.setHeader("Content-Type", "text/html; charset=utf-8");
|
|
@@ -4833,7 +4903,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4833
4903
|
) : EMPTY_FARM_DOCS_SEARCH_CLIENT_RUNTIME;
|
|
4834
4904
|
const generatedDevtoolsClientRuntime = devtoolsClientRuntime ? devtoolsClientRuntime.generateFarmDevtoolsClientRuntime(devtools) : "";
|
|
4835
4905
|
const generatedDevIndicatorsClientRuntime = farmApp ? generateFarmDevIndicatorsClientRuntime(farmApp.getConfig().devIndicators) : "";
|
|
4836
|
-
const integrationProviders =
|
|
4906
|
+
const integrationProviders = getIntegrationProviders(integrations);
|
|
4837
4907
|
const isolatedHydrationMode = resolveFarmIsolatedClientHydrationMode(
|
|
4838
4908
|
resolvedConfig?.experimental?.isolatedClientHydration,
|
|
4839
4909
|
{
|
|
@@ -4979,7 +5049,8 @@ export { manifest };
|
|
|
4979
5049
|
code = serverFns.code;
|
|
4980
5050
|
}
|
|
4981
5051
|
}
|
|
4982
|
-
|
|
5052
|
+
const actionsMode = islxActionsMode();
|
|
5053
|
+
if (actionsMode !== null && code.includes("use server") && !id.includes("/node_modules/") && /\.[cm]?[jt]sx?(?:$|\?)/.test(id)) {
|
|
4983
5054
|
const file = id.split("?", 1)[0];
|
|
4984
5055
|
const actionModule = transformFarmFormActionModule({
|
|
4985
5056
|
code,
|
|
@@ -4988,7 +5059,8 @@ export { manifest };
|
|
|
4988
5059
|
ssr: transformOptions?.ssr === true,
|
|
4989
5060
|
// Parsed by file type: page components are TSX.
|
|
4990
5061
|
parse: (source) => parseSync(file, source).program,
|
|
4991
|
-
runtimeModule
|
|
5062
|
+
runtimeModule,
|
|
5063
|
+
runtime: actionsMode
|
|
4992
5064
|
});
|
|
4993
5065
|
if (actionModule) return { code: actionModule, map: null };
|
|
4994
5066
|
}
|
|
@@ -5596,7 +5668,8 @@ function generateProgrammaticClientRouteModuleForId(moduleId, root, renderer, cl
|
|
|
5596
5668
|
route: parsed.kind === "api" ? void 0 : clientRoutes?.routes.get(
|
|
5597
5669
|
programmaticClientRouteKey(routesFile, parsed.kind, parsed.routePath)
|
|
5598
5670
|
),
|
|
5599
|
-
|
|
5671
|
+
// React's client module exports no createElement; the main client entry imports React too.
|
|
5672
|
+
rendererClient: isReactRenderer(renderer) ? "react" : renderer.client,
|
|
5600
5673
|
toImportSpecifier: (file) => toProgrammaticRouteImportSpecifier(file, root)
|
|
5601
5674
|
});
|
|
5602
5675
|
}
|
|
@@ -6032,7 +6105,7 @@ import {
|
|
|
6032
6105
|
createFarmDeploymentRequestHeaders,
|
|
6033
6106
|
isFarmDeploymentMismatchResponse,
|
|
6034
6107
|
} from '@farm.js/core/deployment'
|
|
6035
|
-
${islandValues ? "import { getFarmIslandValueHeaders } from '@farm.js/core/internal/client-runtime'" : ""}
|
|
6108
|
+
${islandValues ? "import { getFarmIslandValueHeaders, keepFarmIslandValues } from '@farm.js/core/internal/client-runtime'" : ""}
|
|
6036
6109
|
${providerClientCode.imports}
|
|
6037
6110
|
${clientPluginEntry.imports}
|
|
6038
6111
|
|
|
@@ -7088,6 +7161,8 @@ async function tryHydrateImportedPage(
|
|
|
7088
7161
|
window.__FARM_REACT_ROOT__ = reactRoot;
|
|
7089
7162
|
return true;
|
|
7090
7163
|
} catch (error) {
|
|
7164
|
+
// The page still works, but the server's DOM, focus, and typed input are gone, so say so.
|
|
7165
|
+
console.error('[Farm.js] Hydration error; rendering the page on the client instead:', error);
|
|
7091
7166
|
appRoot = createRoot(container);
|
|
7092
7167
|
if (routeState) renderFarmRoute(appRoot, routeState);
|
|
7093
7168
|
else appRoot.render(wrappedElement);
|
|
@@ -7224,6 +7299,8 @@ ${islandValues ? FARM_REFRESH_FIELDS_SOURCE : ""}function replaceNavigationBound
|
|
|
7224
7299
|
) {
|
|
7225
7300
|
sharedCount++;
|
|
7226
7301
|
}
|
|
7302
|
+
// After the comparison: a noscript turned to text serializes escaped in the template's document.
|
|
7303
|
+
adoptFarmParsedNodes(fragment);
|
|
7227
7304
|
|
|
7228
7305
|
const fragmentTreeRoot = nextPatterns.length > 0
|
|
7229
7306
|
? find(fragment, nextPatterns[0])
|
|
@@ -7354,7 +7431,8 @@ async function fetchFarmNavigationDocument(path, context) {
|
|
|
7354
7431
|
Accept: 'text/html',
|
|
7355
7432
|
// A refresh arrives whole, like a transition: the islands it keeps are all in it.
|
|
7356
7433
|
...(context.prefetch || context.refresh ? {} : { 'F-Stream': 'flush' }),
|
|
7357
|
-
|
|
7434
|
+
// The swap keeps the values only the page holds (keepFarmIslandValues).
|
|
7435
|
+
...getFarmIslandValueHeaders(container),
|
|
7358
7436
|
// A prefetch names its layouts even when it keeps none: that marks it as a navigation,
|
|
7359
7437
|
// which the server answers without loading.tsx.
|
|
7360
7438
|
...(identities.length || context.prefetch ? { 'F-Layouts': JSON.stringify(identities) } : {}),
|
|
@@ -7446,9 +7524,12 @@ async function streamFarmDevNavigation(stream, root, generation) {
|
|
|
7446
7524
|
observer.disconnect();
|
|
7447
7525
|
return stream.cancel();
|
|
7448
7526
|
}
|
|
7449
|
-
const parsed = new DOMParser()
|
|
7527
|
+
const parsed = new DOMParser()
|
|
7528
|
+
.parseFromString('<div id="root">' + flush, 'text/html')
|
|
7529
|
+
.getElementById('root');
|
|
7530
|
+
adoptFarmParsedNodes(parsed);
|
|
7450
7531
|
const fragment = document.createDocumentFragment();
|
|
7451
|
-
for (const node of Array.from(parsed.
|
|
7532
|
+
for (const node of Array.from(parsed.childNodes)) fragment.appendChild(node);
|
|
7452
7533
|
activateFragmentScripts(fragment);
|
|
7453
7534
|
root.appendChild(fragment);
|
|
7454
7535
|
}
|
|
@@ -7594,12 +7675,14 @@ async function renderPage(pageData, info) {
|
|
|
7594
7675
|
);
|
|
7595
7676
|
} else {
|
|
7596
7677
|
${isolatedHydrationEnabled ? "let isolatedHydrationScope = container;" : ""}
|
|
7678
|
+
${islandValues ? "const keepValues = keepFarmIslandValues(container);" : ""}
|
|
7597
7679
|
// A route whose layouts hydrate renders them for its own root (inline client components,
|
|
7598
7680
|
// islands mode's layout trees), so the HTML of shared layouts is replaced too.
|
|
7599
7681
|
if (activeLayoutShouldHydrate || layoutShouldHydrate) {
|
|
7600
7682
|
${isolatedHydrationEnabled ? "disposeFarmIsolatedClientBoundaries(container);" : ""}
|
|
7601
7683
|
if (appRoot) { try { appRoot.unmount(); } catch (error) {} appRoot = null; }
|
|
7602
7684
|
if (reactRoot) { try { reactRoot.unmount(); } catch (error) {} reactRoot = null; }
|
|
7685
|
+
adoptFarmParsedNodes(fragment);
|
|
7603
7686
|
container.replaceChildren(fragment);
|
|
7604
7687
|
activateFragmentScripts(container);
|
|
7605
7688
|
} else {
|
|
@@ -7608,6 +7691,7 @@ async function renderPage(pageData, info) {
|
|
|
7608
7691
|
delete window.__FARM_REACT_ROOT__;
|
|
7609
7692
|
${isolatedHydrationEnabled ? islandValues ? "isolatedHydrationScope = (pageData.farmDocument ? replaceNavigationBoundary(container, fragment, readLayoutIdentities(container), readLayoutIdentities(fragment), info?.refresh === true, findLayoutBoundaryByIdentity) : replaceNavigationBoundary(container, fragment, activeLayoutPatterns, layoutPatterns, info?.refresh === true)) || container;" : "isolatedHydrationScope = replaceNavigationBoundary(container, fragment, activeLayoutPatterns, layoutPatterns, info?.refresh === true) || container;" : islandValues ? "if (pageData.farmDocument) replaceNavigationBoundary(container, fragment, readLayoutIdentities(container), readLayoutIdentities(fragment), false, findLayoutBoundaryByIdentity); else replaceNavigationBoundary(container, fragment, activeLayoutPatterns, layoutPatterns);" : "replaceNavigationBoundary(container, fragment, activeLayoutPatterns, layoutPatterns);"}
|
|
7610
7693
|
}
|
|
7694
|
+
${islandValues ? "keepValues();" : ""}
|
|
7611
7695
|
|
|
7612
7696
|
const hydrationController = new AbortController();
|
|
7613
7697
|
if (
|
|
@@ -7978,7 +8062,7 @@ async function defineConfig(config = {}) {
|
|
|
7978
8062
|
const tailwindVitePlugin = await loadTailwindVitePlugin();
|
|
7979
8063
|
const appRoot = path6.resolve(config.root || process.cwd());
|
|
7980
8064
|
if (config.extends?.length) {
|
|
7981
|
-
const { config: layeredConfig } = await import("./layers-
|
|
8065
|
+
const { config: layeredConfig } = await import("./layers-744BBUY5.mjs").then(
|
|
7982
8066
|
({ resolveFarmLayers }) => resolveFarmLayers(config, {
|
|
7983
8067
|
root: appRoot,
|
|
7984
8068
|
mode: process.env.NODE_ENV === "production" ? "production" : "development"
|
|
@@ -8126,6 +8210,7 @@ async function defineConfig(config = {}) {
|
|
|
8126
8210
|
viteBrowserExternalPlugin,
|
|
8127
8211
|
farmI18nClientBridgePlugin(),
|
|
8128
8212
|
farmServerOnlyEntriesPlugin({ distDir: config.distDir || ".farm" }),
|
|
8213
|
+
farmNavigationPlugin(config.renderer),
|
|
8129
8214
|
farmIslandContainersPlugin(config),
|
|
8130
8215
|
farmPlugin(config),
|
|
8131
8216
|
farmEnvironmentFunctionsPlugin(config),
|
|
@@ -8139,7 +8224,8 @@ async function defineConfig(config = {}) {
|
|
|
8139
8224
|
appRoot,
|
|
8140
8225
|
getFarmAppDirectories({ ...config, root: appRoot })
|
|
8141
8226
|
),
|
|
8142
|
-
config.renderer
|
|
8227
|
+
config.renderer,
|
|
8228
|
+
appRoot
|
|
8143
8229
|
),
|
|
8144
8230
|
// Pre-bundle every framework client-runtime entry with the renderer. Without
|
|
8145
8231
|
// this, Vite can discover a linked Farm entry after the page has loaded,
|
|
@@ -8202,6 +8288,7 @@ export {
|
|
|
8202
8288
|
isViteDevClientRequest,
|
|
8203
8289
|
farmImageImportsPlugin,
|
|
8204
8290
|
farmI18nClientBridgePlugin,
|
|
8291
|
+
farmNavigationPlugin,
|
|
8205
8292
|
farmIslandContainersPlugin,
|
|
8206
8293
|
farmServerOnlyEntriesPlugin,
|
|
8207
8294
|
withFarmRequestTracing,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkVGHDPEPQcjs = require('./chunk-VGHDPEPQ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk5DX3O6TTcjs = require('./chunk-5DX3O6TT.cjs');
|
|
@@ -142,7 +142,7 @@ function getCountedRateLimitKeys(ctx) {
|
|
|
142
142
|
return counted;
|
|
143
143
|
}
|
|
144
144
|
function requireRateLimitClientAddress(ctx) {
|
|
145
|
-
const address =
|
|
145
|
+
const address = _chunkVGHDPEPQcjs.getFarmMiddlewareClientAddress.call(void 0, ctx.request);
|
|
146
146
|
if (address) return address;
|
|
147
147
|
throw new Error(
|
|
148
148
|
"Rate limiting could not identify the caller: this runtime reports no client address. Set `server.trustProxy` so a proxy's x-forwarded-for is trusted, or pass a `keyGenerator` that derives the bucket from something you do have, such as a session or an API key."
|
|
@@ -413,7 +413,7 @@ function farmMiddlewarePlugin(options = {}) {
|
|
|
413
413
|
mode: server.config.mode === "production" ? "production" : "development",
|
|
414
414
|
basePath: _nullishCoalesce(options.basePath, () => ( "/"))
|
|
415
415
|
});
|
|
416
|
-
manager = new (0,
|
|
416
|
+
manager = new (0, _chunkVGHDPEPQcjs.MiddlewareManager)(
|
|
417
417
|
getMiddlewareAppDirectory(server.config.root, srcDir),
|
|
418
418
|
server,
|
|
419
419
|
options.middleware,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkAQLHD6HZcjs = require('./chunk-AQLHD6HZ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkB3HQTGXScjs = require('./chunk-B3HQTGXS.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -284,7 +284,7 @@ function isArrayIndex(key) {
|
|
|
284
284
|
// src/plugin-server-runtime.ts
|
|
285
285
|
function hasFarmServerRuntimePlugins(plugins) {
|
|
286
286
|
return (plugins || []).some((plugin) => {
|
|
287
|
-
if (
|
|
287
|
+
if (_chunkB3HQTGXScjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) === false) return false;
|
|
288
288
|
return Boolean(
|
|
289
289
|
plugin.setup || plugin.init || plugin.ready || plugin.shutdown || plugin.runtime || plugin.router || plugin.render || plugin.beforeRouteMatch || plugin.afterRouteMatch || plugin.beforeRender || plugin.afterRender || plugin.onError || plugin.transformHTML
|
|
290
290
|
);
|