@farm.js/core 0.1.80 → 0.1.81
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-Cxi3214_.d.ts} +1 -1
- package/dist/{agent-mcp.d-DOP95Jxm.d.mts → agent-mcp.d-DMqOqnOA.d.mts} +1 -1
- package/dist/agent-runtime.d.mts +2 -1
- package/dist/agent-runtime.d.ts +2 -1
- package/dist/analyzer-435DCIQ6.cjs +17 -0
- package/dist/{analyzer-F7CWE5VA.mjs → analyzer-IC66UJCU.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 +1 -1
- package/dist/api/node.d.mts +4 -3
- package/dist/api/node.d.ts +4 -3
- package/dist/api/node.mjs +1 -1
- package/dist/api/route-manager.cjs +4 -4
- package/dist/api/route-manager.d.mts +4 -3
- package/dist/api/route-manager.d.ts +4 -3
- package/dist/api/route-manager.mjs +3 -3
- package/dist/api/runtime.cjs +1 -1
- package/dist/api/runtime.d.mts +3 -2
- package/dist/api/runtime.d.ts +3 -2
- package/dist/api/runtime.mjs +1 -1
- package/dist/api.cjs +5 -5
- package/dist/api.d.mts +5 -4
- package/dist/api.d.ts +5 -4
- package/dist/api.mjs +4 -4
- package/dist/{app-manifest.d-9UD6BznX.d.mts → app-manifest.d-Bbxp5kes.d.mts} +1 -1
- package/dist/{app-manifest.d-CO6Iu0Hx.d.ts → app-manifest.d-C8Cswd31.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-BJuSurgy.d.mts} +13 -4
- package/dist/{app.d-DwX1ePhs.d.ts → app.d-DGIoFt5D.d.ts} +13 -4
- package/dist/{chunk-Q4TRGTO7.cjs → chunk-26WP75W5.cjs} +32 -16
- package/dist/{chunk-GCRT6GJG.mjs → chunk-2HMSSPCZ.mjs} +26 -0
- package/dist/{chunk-7KDCVSTR.mjs → chunk-2PFGA6PB.mjs} +2 -2
- package/dist/chunk-2UYYXSUS.mjs +401 -0
- package/dist/{chunk-G4SZC2WH.cjs → chunk-2Y2HRZQY.cjs} +431 -332
- package/dist/{chunk-PL7MCYYD.mjs → chunk-3AV4DCXY.mjs} +58 -358
- package/dist/{chunk-3GNHJ3RN.cjs → chunk-3BTN3NP7.cjs} +2 -2
- package/dist/{chunk-ZVSQN7NC.cjs → chunk-46UV2E7I.cjs} +40 -43
- package/dist/{chunk-QMR2TUVZ.cjs → chunk-52Q4OB4A.cjs} +4 -4
- package/dist/chunk-5MMKNW7Q.cjs +54 -0
- package/dist/{chunk-XZBBKZGW.mjs → chunk-5N526T7Q.mjs} +64 -33
- package/dist/{chunk-XY5OZQF6.cjs → chunk-ADQ2LATR.cjs} +2 -2
- package/dist/{chunk-7DD5TNPS.cjs → chunk-AHVF5GI2.cjs} +2 -2
- package/dist/{chunk-MGKWYPE3.mjs → chunk-AYDVUCXD.mjs} +1 -0
- 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-44G4XHEL.mjs → chunk-BJWJP5A4.mjs} +9 -9
- package/dist/{chunk-GBESKA76.cjs → chunk-BSX5OGSD.cjs} +1 -1
- package/dist/{chunk-CNDBLUKI.mjs → chunk-BVJUFVCU.mjs} +1 -1
- package/dist/chunk-C5QHZ626.cjs +85 -0
- package/dist/{chunk-X4TSMQWF.cjs → chunk-CL7BUGVB.cjs} +465 -360
- package/dist/{chunk-RLCOWWE5.cjs → chunk-CN2JOTRO.cjs} +7 -7
- package/dist/{chunk-AXA2BSX3.cjs → chunk-CPZZBCPO.cjs} +22 -21
- package/dist/chunk-D2VAANBS.mjs +48 -0
- package/dist/{chunk-JGEN2FIT.mjs → chunk-D77OGI6X.mjs} +1 -1
- package/dist/{chunk-4H4ZXUNB.cjs → chunk-DJ3PVHTW.cjs} +3 -3
- package/dist/{chunk-ZPEZXQTM.cjs → chunk-E3HBD2K3.cjs} +2 -2
- package/dist/{chunk-Q4YEAWUK.mjs → chunk-ECVSRE4Y.mjs} +3 -2
- 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-5OAN7BG5.cjs → chunk-FYZD7DUS.cjs} +4 -4
- package/dist/{chunk-RQBGHHOQ.mjs → chunk-GY63XD6K.mjs} +1 -1
- package/dist/{chunk-HNUBRUFQ.cjs → chunk-HQEYZSF3.cjs} +4 -3
- package/dist/{chunk-MDEFTF63.mjs → chunk-HTNJ7A4D.mjs} +25 -28
- package/dist/chunk-I4WZRG73.mjs +54 -0
- package/dist/{chunk-MUZHULW2.mjs → chunk-ICOJ2BC6.mjs} +23 -7
- package/dist/{chunk-V73Y4UBL.mjs → chunk-IM3UINTZ.mjs} +1 -1
- package/dist/{chunk-MNIR7I7B.mjs → chunk-INKVDO42.mjs} +1 -1
- package/dist/{chunk-ZDYYZX73.mjs → chunk-IPG6B25T.mjs} +194 -89
- package/dist/{chunk-HEDGTXXB.cjs → chunk-JB4BHRFK.cjs} +17 -17
- package/dist/{chunk-XKUKWMGX.cjs → chunk-JCYDWJVO.cjs} +3 -3
- package/dist/{chunk-SVCUSOEF.mjs → chunk-KR5DF7WK.mjs} +1 -1
- package/dist/{chunk-COTFX4GT.mjs → chunk-LTOT5KVJ.mjs} +1 -1
- package/dist/{chunk-67MZTLTF.cjs → chunk-M6DAIE4T.cjs} +27 -1
- package/dist/{chunk-LVGB5PYK.cjs → chunk-MOGRRZMW.cjs} +17 -17
- package/dist/{chunk-MZ5QGWRW.mjs → chunk-N3VMHPIY.mjs} +2 -2
- package/dist/{chunk-GBW5DU7V.mjs → chunk-NOYKBGUK.mjs} +376 -277
- package/dist/{chunk-CCMP4JD2.cjs → chunk-NSLRK5DK.cjs} +1 -1
- package/dist/{chunk-WJ2O2MPP.cjs → chunk-OIWDEDUO.cjs} +394 -363
- package/dist/{chunk-K3XKEZR6.mjs → chunk-ONSZP5JK.mjs} +1 -1
- package/dist/{chunk-SDICLSQU.cjs → chunk-OUDNUFVR.cjs} +10 -10
- package/dist/{chunk-3XTRT3MB.mjs → chunk-PO5MZIWK.mjs} +1 -1
- package/dist/{chunk-EG5YBYHO.mjs → chunk-POL5RCVU.mjs} +1 -1
- package/dist/{chunk-ASYOWPSR.cjs → chunk-PWDBWXQI.cjs} +2 -1
- package/dist/{chunk-7YLDUB4R.cjs → chunk-QCKSYYXK.cjs} +7 -7
- package/dist/{chunk-57QAQU4F.mjs → chunk-QRNYSISP.mjs} +1 -1
- package/dist/{chunk-PRL7FXG4.cjs → chunk-RDNKQ5MK.cjs} +12 -13
- package/dist/{chunk-3JQBQG7K.mjs → chunk-RZ6XUEQS.mjs} +2 -2
- package/dist/{chunk-QHAISITM.mjs → chunk-S3IWDDQ3.mjs} +1 -1
- package/dist/{chunk-EGHPFXPZ.cjs → chunk-SAPG45RA.cjs} +23 -23
- package/dist/{chunk-YN3YMSKD.mjs → chunk-TLSGRK7E.mjs} +3 -3
- package/dist/chunk-UDMBUTJD.mjs +85 -0
- package/dist/{chunk-NJ4OASLP.mjs → chunk-UF4BNKKJ.mjs} +1 -1
- package/dist/{chunk-WHEQJN4G.cjs → chunk-UGD53SNO.cjs} +2 -2
- package/dist/{chunk-WBPVLCNE.mjs → chunk-VPGEYX5Y.mjs} +4 -4
- package/dist/chunk-VS7HLH4S.cjs +385 -0
- package/dist/{chunk-ANZLZNNX.cjs → chunk-W6C3LEXX.cjs} +3 -3
- 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-TS3ZHJN5.cjs → chunk-XOGCNKB7.cjs} +3 -3
- package/dist/{chunk-KEU55O2D.mjs → chunk-XOXCQGAF.mjs} +7 -6
- package/dist/{chunk-4MIDUSIX.mjs → chunk-YH7ENV3K.mjs} +14 -14
- 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-DVHFIETW.cjs → chunk-ZIYJWJV2.cjs} +13 -13
- package/dist/{chunk-Z4SMFUZ7.cjs → chunk-ZKNXCRUQ.cjs} +7 -7
- package/dist/{cli-runtime.d-DPNTN-JV.d.mts → cli-runtime.d-D8O1v2_X.d.mts} +5 -5
- package/dist/{cli-runtime.d-8BhZy_wr.d.ts → cli-runtime.d-hf4L1MNP.d.ts} +5 -5
- package/dist/{client-component.d-CkDcob6D.d.ts → client-component.d-CX8UCQh-.d.ts} +1 -1
- package/dist/{client-component.d-CMCdyAr8.d.mts → client-component.d-DFwUHlOz.d.mts} +1 -1
- package/dist/{client-plugins.d-WcMwOZGZ.d.mts → client-plugins.d-BflSNO-b.d.mts} +2 -13
- package/dist/{client-plugins.d-BYIovYqX.d.ts → client-plugins.d-qWp8hNwd.d.ts} +2 -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/desktop.d.mts +3 -2
- package/dist/desktop.d.ts +3 -2
- package/dist/{devtools-JJOYTIMS.cjs → devtools-EI5N366Z.cjs} +9 -9
- package/dist/{devtools-F3FDFV26.mjs → devtools-XJHODO5H.mjs} +7 -7
- package/dist/docs.cjs +9 -9
- package/dist/docs.d.mts +4 -3
- package/dist/docs.d.ts +4 -3
- package/dist/docs.mjs +8 -8
- package/dist/environment/vite.cjs +7 -6
- package/dist/environment/vite.mjs +6 -5
- package/dist/{handler.d-BwdOyc9x.d.ts → handler.d-C2oRihfa.d.ts} +1 -1
- package/dist/{handler.d-s3IM6pbJ.d.mts → handler.d-DoH5Krkq.d.mts} +1 -1
- package/dist/{headers.d-BR-OXrqQ.d.mts → headers.d-BrX53wFQ.d.mts} +1 -1
- package/dist/{headers.d-CAW4wPey.d.ts → headers.d-Dj0mfYpb.d.ts} +1 -1
- package/dist/index.cjs +58 -56
- package/dist/{index.d-ah2c89Wu.d.ts → index.d-Dhc2scRl.d.ts} +1 -1
- package/dist/{index.d-BEVK61zS.d.mts → index.d-DzDHOttz.d.mts} +1 -1
- package/dist/index.d.mts +25 -23
- package/dist/index.d.ts +25 -23
- package/dist/index.mjs +62 -60
- 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.d.mts +2 -1
- package/dist/integrations.d.ts +2 -1
- 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 +41 -40
- package/dist/internal/build-runtime.d.mts +5 -4
- package/dist/internal/build-runtime.d.ts +5 -4
- package/dist/internal/build-runtime.mjs +40 -39
- package/dist/internal/cli-runtime.cjs +19 -19
- package/dist/internal/cli-runtime.d.mts +8 -7
- package/dist/internal/cli-runtime.d.ts +8 -7
- package/dist/internal/cli-runtime.mjs +20 -20
- 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 +9 -9
- package/dist/internal/config-runtime.d.mts +4 -3
- package/dist/internal/config-runtime.d.ts +4 -3
- package/dist/internal/config-runtime.mjs +8 -8
- 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 +7 -7
- package/dist/internal/infra-analytics-runtime.mjs +5 -5
- 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 +9 -3
- package/dist/internal/islands-boot.mjs +9 -3
- 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 +24 -24
- package/dist/internal/production-runtime.d.mts +11 -10
- package/dist/internal/production-runtime.d.ts +11 -10
- package/dist/internal/production-runtime.mjs +29 -29
- 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-Ylo-CmzK.d.mts → mount.d-DOaeUoWq.d.mts} +1 -1
- package/dist/{mount.d-DcoPFqv5.d.ts → mount.d-DwXjaOHY.d.ts} +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-BA5h0fbE.d.mts → navigation-delegate.d-BElGUMgt.d.mts} +1 -1
- package/dist/{navigation-delegate.d-2MK4YSlL.d.ts → navigation-delegate.d-o3pPd9VI.d.ts} +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-6UOJXJZ6.cjs → nitro-XGIO6EQN.cjs} +2 -2
- package/dist/{nitro-C3MYDX7V.mjs → nitro-YLTGVGK4.mjs} +1 -1
- 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.cjs +32 -30
- package/dist/plugin.d.mts +6 -5
- package/dist/plugin.d.ts +6 -5
- package/dist/plugin.mjs +31 -29
- 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-BD06tqFA.d.ts} +1 -1
- package/dist/{render-plan.d-ChYBMhLu.d.mts → render-plan.d-xWCRAJeR.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 +34 -15
- package/dist/renderer-client.d.mts +13 -97
- package/dist/renderer-client.d.ts +13 -97
- package/dist/renderer-client.mjs +23 -4
- package/dist/renderer.cjs +4 -2
- package/dist/renderer.d.mts +33 -5
- package/dist/renderer.d.ts +33 -5
- package/dist/renderer.mjs +3 -1
- package/dist/{request.d-CE0FIkiM.d.ts → request.d-DUMuWxSN.d.ts} +1 -1
- package/dist/{request.d-RCnCBuWq.d.mts → request.d-Dx82V8bz.d.mts} +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-BwBVpLtD.d.ts} +1 -1
- package/dist/{route-rendering.d-BZJnfKsp.d.mts → route-rendering.d-DJh6GauM.d.mts} +1 -1
- package/dist/{router.d-D8Vvwl4i.d.mts → router.d-BtkKDxUB.d.mts} +1 -1
- package/dist/{router.d-BU_WE6Ol.d.ts → router.d-CJBSG5jr.d.ts} +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-JZWVSHOR.mjs → rsc-pipeline-GD6KLOIG.mjs} +13 -13
- package/dist/{rsc-pipeline-A3R4U26C.cjs → rsc-pipeline-H5AXQA7A.cjs} +14 -14
- package/dist/{runtime-SQFRHRGJ.mjs → runtime-OJ7FXFUI.mjs} +13 -13
- package/dist/{runtime-WZ3CHHGJ.cjs → runtime-YWQVBC3V.cjs} +15 -15
- package/dist/{runtime.d-DJ6IIKcF.d.ts → runtime.d-BQnD0cfC.d.ts} +1 -1
- package/dist/{runtime.d-BnmuOXVD.d.mts → runtime.d-C4SuZXf6.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-BzOg9M8g.d.mts → server-components-status.d-9rH7ZoEq.d.mts} +1 -1
- package/dist/{server-components-status.d-BeqSXcjM.d.ts → server-components-status.d-rfKOcE0N.d.ts} +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 +64 -59
- package/dist/server.d.mts +12 -11
- package/dist/server.d.ts +12 -11
- package/dist/server.mjs +45 -40
- package/dist/{spa-router.d-BOwuVkMl.d.ts → spa-router.d-DMKiBsHH.d.ts} +3 -3
- package/dist/{spa-router.d-CDpftSsk.d.mts → spa-router.d-V6XLSTCy.d.mts} +3 -3
- package/dist/{ssg.d-Bx_WFuwg.d.mts → ssg.d-BnCKPQL0.d.mts} +2 -2
- package/dist/{ssg.d-BTVqyq8T.d.ts → ssg.d-MNedvvMB.d.ts} +2 -2
- package/dist/store-core.d-Ad5biajo.d.ts +301 -0
- package/dist/store-core.d-BqJI1-ix.d.mts +301 -0
- package/dist/testing.cjs +3 -3
- package/dist/testing.d.mts +2 -1
- package/dist/testing.d.ts +2 -1
- package/dist/testing.mjs +3 -3
- package/dist/{utils.d-JkrpS-NJ.d.mts → utils.d-BEKLWa0Z.d.mts} +1 -1
- package/dist/{utils.d-_dvevm5s.d.ts → utils.d-BdjHKDuT.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +34 -30
- package/dist/vite.d.mts +18 -7
- package/dist/vite.d.ts +18 -7
- package/dist/vite.mjs +33 -29
- 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-KKVRWNDH.mjs → chunk-6WVRVGKC.mjs} +3 -3
- package/dist/{chunk-UJPE75GF.mjs → chunk-J2VUPCCR.mjs} +3 -3
- package/dist/{chunk-MQOHYV6L.cjs → chunk-LKIG5SM6.cjs} +2 -2
- package/dist/{chunk-UWOCYINY.cjs → chunk-OFVCWV2D.cjs} +2 -2
- package/dist/{chunk-3K2E55BJ.mjs → chunk-OO4GVGM3.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
package/dist/app-markdown.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { e as RouteModule, d as FarmMdxResolvedConfig, c as FarmMdxComponents } from './client-plugins.d-
|
|
2
|
-
export { g as FARM_MARKDOWN_CONTENT_TYPE, j as FarmMdxComponent, k as FarmMdxUserConfig, h as createFarmMarkdownErrorBody, i as farmRequestWantsMarkdown, r as resolveFarmMdxComponentsModulePath, l as resolveMdxConfig } from './client-plugins.d-
|
|
1
|
+
import { e as RouteModule, d as FarmMdxResolvedConfig, c as FarmMdxComponents } from './client-plugins.d-qWp8hNwd.js';
|
|
2
|
+
export { g as FARM_MARKDOWN_CONTENT_TYPE, j as FarmMdxComponent, k as FarmMdxUserConfig, h as createFarmMarkdownErrorBody, i as farmRequestWantsMarkdown, r as resolveFarmMdxComponentsModulePath, l as resolveMdxConfig } from './client-plugins.d-qWp8hNwd.js';
|
|
3
3
|
import { FarmMarkdownPageModuleInput } from './internal/app-markdown-runtime.js';
|
|
4
|
-
export { FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS, FARM_MARKDOWN_PRECOMPILED_PAGES, FarmMarkdownPageSource, compileFarmMarkdownPage, createFarmMarkdownRouteModule, createFarmMarkdownSourceResponse, createMarkdownMetadata, isFarmMarkdownPageFile, isFarmMarkdownPublicSourceResponse, normalizeFarmMarkdownRoutePath, parseMarkdownFrontmatter, readFarmMarkdownRouteConfig, titleFromMarkdown } from './internal/app-markdown-runtime.js';
|
|
4
|
+
export { FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS, FARM_MARKDOWN_PRECOMPILED_PAGES, FarmMarkdownPageRenderer, FarmMarkdownPageSource, compileFarmMarkdownPage, createFarmMarkdownRouteModule, createFarmMarkdownSourceResponse, createMarkdownMetadata, isFarmMarkdownPageFile, isFarmMarkdownPublicSourceResponse, normalizeFarmMarkdownRoutePath, parseMarkdownFrontmatter, readFarmMarkdownRouteConfig, titleFromMarkdown } from './internal/app-markdown-runtime.js';
|
|
5
5
|
import './lifecycle.d-OtGWAvJT.js';
|
|
6
6
|
import './route.d-Cd4Fi6BA.js';
|
|
7
7
|
import './endpoint.d-Dx_1k6Du.js';
|
|
@@ -31,6 +31,7 @@ import './workflows.js';
|
|
|
31
31
|
import './server-http.d-rAe7lAQc.js';
|
|
32
32
|
import './cron.js';
|
|
33
33
|
import './env.js';
|
|
34
|
+
import './navigation-errors.d-DwHtoMyR.js';
|
|
34
35
|
import './server-action-security.js';
|
|
35
36
|
import './layers.d-CH0bC4QL.js';
|
|
36
37
|
import 'rolldown/utils';
|
|
@@ -40,7 +41,7 @@ import './config.d-BKIhJtmr.js';
|
|
|
40
41
|
import './types.d-DQnyD3VD.js';
|
|
41
42
|
import './font.js';
|
|
42
43
|
|
|
43
|
-
declare function createFarmMarkdownRouteModuleFromFile(filePath: string, options?: Pick<FarmMarkdownPageModuleInput, "components" | "config">): Promise<RouteModule<never> & {
|
|
44
|
+
declare function createFarmMarkdownRouteModuleFromFile(filePath: string, options?: Pick<FarmMarkdownPageModuleInput, "components" | "config" | "renderer">): Promise<RouteModule<never> & {
|
|
44
45
|
source: string;
|
|
45
46
|
}>;
|
|
46
47
|
declare function loadFarmMdxComponents(config: FarmMdxResolvedConfig | undefined, options: {
|
package/dist/app-markdown.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createFarmMarkdownRouteModuleFromFile,
|
|
3
3
|
loadFarmMdxComponents
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ECVSRE4Y.mjs";
|
|
5
5
|
import {
|
|
6
6
|
FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS,
|
|
7
7
|
FARM_MARKDOWN_PRECOMPILED_PAGES,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
parseMarkdownFrontmatter,
|
|
16
16
|
readFarmMarkdownRouteConfig,
|
|
17
17
|
titleFromMarkdown
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ICOJ2BC6.mjs";
|
|
19
19
|
import "./chunk-BRYPZIMB.mjs";
|
|
20
20
|
import {
|
|
21
21
|
resolveFarmMdxComponentsModulePath,
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aK as FarmConfig, P as ParsedRoute, bn as ResolvedFarmRouteRuntimeConfig, bo as ApplicationMetadataRouteKind, e as RouteModule, aZ as LayoutModule, S as SSGCollectionResult, E as FarmRequest, G as FarmResponse, bp as ResolvedFarmAPIConfig, aH as FarmDocsResolvedConfig, bm as FarmMarkdownResolvedConfig, d as FarmMdxResolvedConfig, ax as ResolvedFarmDevtoolsConfig, bq as ResolvedFarmDevIndicatorsConfig, br as ResolvedFarmAuthConfig, bs as ResolvedFarmPerformanceConfig, bt as ResolvedFarmSecurityConfig } from './client-plugins.d-BflSNO-b.mjs';
|
|
2
2
|
import { FarmWorkflowsResolvedConfig } from './workflows.mjs';
|
|
3
3
|
import { FarmCronResolvedConfig } from './cron.mjs';
|
|
4
4
|
import { R as ResolvedFarmImageConfig } from './image-config.d-ByhQ0TT7.mjs';
|
|
5
|
-
import { F as FarmSearchPreserveRoute, M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp.d-
|
|
5
|
+
import { F as FarmSearchPreserveRoute, M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp.d-DMqOqnOA.mjs';
|
|
6
6
|
import { ProgrammaticRedirectRoute, ProgrammaticRouteSearchClientOptions } from './routes.mjs';
|
|
7
|
-
import { I as IsolatedClientBoundaryReference, F as FarmSourceSnapshotStore, C as ClientModuleHydrationPlan, P as ProgrammaticClientRoutes } from './client-component.d-
|
|
7
|
+
import { I as IsolatedClientBoundaryReference, F as FarmSourceSnapshotStore, C as ClientModuleHydrationPlan, P as ProgrammaticClientRoutes } from './client-component.d-DFwUHlOz.mjs';
|
|
8
8
|
import { ViteDevServer } from 'vite';
|
|
9
9
|
import { F as FarmIslandStrategy } from './island.d-CfGru1MO.mjs';
|
|
10
10
|
import { FarmRenderer, FarmServerRendererRuntime } from './renderer.mjs';
|
|
11
|
-
import { F as FarmRouteRenderPlan } from './render-plan.d-
|
|
11
|
+
import { F as FarmRouteRenderPlan } from './render-plan.d-xWCRAJeR.mjs';
|
|
12
12
|
import { R as ResolvedFarmI18nConfig } from './types.d-euATAbE4.mjs';
|
|
13
|
+
import { a as FarmRedirectStatus } from './navigation-errors.d-DwHtoMyR.mjs';
|
|
13
14
|
import { F as FarmI18nRuntime } from './runtime.d-CTAXWZby.mjs';
|
|
14
15
|
import { R as ResolvedFarmThemeConfig } from './types.d-DQnyD3VD.mjs';
|
|
15
16
|
|
|
@@ -497,6 +498,12 @@ declare class ServerRenderer {
|
|
|
497
498
|
private renderElementToDocumentParts;
|
|
498
499
|
/** Islands mode sends large prop values once, keyed by content (RFC 0003). */
|
|
499
500
|
private islandValues;
|
|
501
|
+
/**
|
|
502
|
+
* The page's element. Only React renders an async component, so for any other renderer Farm
|
|
503
|
+
* awaits an async page itself and hands the renderer what it returned, as the production
|
|
504
|
+
* server does. A `page.md` page is one: it compiles its Markdown on first render.
|
|
505
|
+
*/
|
|
506
|
+
private createPageElement;
|
|
500
507
|
/**
|
|
501
508
|
* Render the route tree used by client navigation without producing a second
|
|
502
509
|
* document response. Layout markers let the browser preserve the longest
|
|
@@ -618,6 +625,8 @@ declare class ServerRenderer {
|
|
|
618
625
|
private createDevMarkdownReader;
|
|
619
626
|
private renderMetadataImage;
|
|
620
627
|
private writeMetadataImageResponse;
|
|
628
|
+
/** The renderer that draws a metadata image: none for React, whose elements Satori reads directly. */
|
|
629
|
+
private getMetadataImageRenderer;
|
|
621
630
|
private writeStaticMetadataImageResponse;
|
|
622
631
|
private renderRouteErrorBoundary;
|
|
623
632
|
private renderBufferedSSR;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aK as FarmConfig, P as ParsedRoute, bn as ResolvedFarmRouteRuntimeConfig, bo as ApplicationMetadataRouteKind, e as RouteModule, aZ as LayoutModule, S as SSGCollectionResult, E as FarmRequest, G as FarmResponse, bp as ResolvedFarmAPIConfig, aH as FarmDocsResolvedConfig, bm as FarmMarkdownResolvedConfig, d as FarmMdxResolvedConfig, ax as ResolvedFarmDevtoolsConfig, bq as ResolvedFarmDevIndicatorsConfig, br as ResolvedFarmAuthConfig, bs as ResolvedFarmPerformanceConfig, bt as ResolvedFarmSecurityConfig } from './client-plugins.d-qWp8hNwd.js';
|
|
2
2
|
import { FarmWorkflowsResolvedConfig } from './workflows.js';
|
|
3
3
|
import { FarmCronResolvedConfig } from './cron.js';
|
|
4
4
|
import { R as ResolvedFarmImageConfig } from './image-config.d-ByhQ0TT7.js';
|
|
5
|
-
import { F as FarmSearchPreserveRoute, M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp.d-
|
|
5
|
+
import { F as FarmSearchPreserveRoute, M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp.d-Cxi3214_.js';
|
|
6
6
|
import { ProgrammaticRedirectRoute, ProgrammaticRouteSearchClientOptions } from './routes.js';
|
|
7
|
-
import { I as IsolatedClientBoundaryReference, F as FarmSourceSnapshotStore, C as ClientModuleHydrationPlan, P as ProgrammaticClientRoutes } from './client-component.d-
|
|
7
|
+
import { I as IsolatedClientBoundaryReference, F as FarmSourceSnapshotStore, C as ClientModuleHydrationPlan, P as ProgrammaticClientRoutes } from './client-component.d-CX8UCQh-.js';
|
|
8
8
|
import { ViteDevServer } from 'vite';
|
|
9
9
|
import { F as FarmIslandStrategy } from './island.d-CfGru1MO.js';
|
|
10
10
|
import { FarmRenderer, FarmServerRendererRuntime } from './renderer.js';
|
|
11
|
-
import { F as FarmRouteRenderPlan } from './render-plan.d-
|
|
11
|
+
import { F as FarmRouteRenderPlan } from './render-plan.d-BD06tqFA.js';
|
|
12
12
|
import { R as ResolvedFarmI18nConfig } from './types.d-euATAbE4.js';
|
|
13
|
+
import { a as FarmRedirectStatus } from './navigation-errors.d-DwHtoMyR.js';
|
|
13
14
|
import { F as FarmI18nRuntime } from './runtime.d-PUA5qBnd.js';
|
|
14
15
|
import { R as ResolvedFarmThemeConfig } from './types.d-DQnyD3VD.js';
|
|
15
16
|
|
|
@@ -497,6 +498,12 @@ declare class ServerRenderer {
|
|
|
497
498
|
private renderElementToDocumentParts;
|
|
498
499
|
/** Islands mode sends large prop values once, keyed by content (RFC 0003). */
|
|
499
500
|
private islandValues;
|
|
501
|
+
/**
|
|
502
|
+
* The page's element. Only React renders an async component, so for any other renderer Farm
|
|
503
|
+
* awaits an async page itself and hands the renderer what it returned, as the production
|
|
504
|
+
* server does. A `page.md` page is one: it compiles its Markdown on first render.
|
|
505
|
+
*/
|
|
506
|
+
private createPageElement;
|
|
500
507
|
/**
|
|
501
508
|
* Render the route tree used by client navigation without producing a second
|
|
502
509
|
* document response. Layout markers let the browser preserve the longest
|
|
@@ -618,6 +625,8 @@ declare class ServerRenderer {
|
|
|
618
625
|
private createDevMarkdownReader;
|
|
619
626
|
private renderMetadataImage;
|
|
620
627
|
private writeMetadataImageResponse;
|
|
628
|
+
/** The renderer that draws a metadata image: none for React, whose elements Satori reads directly. */
|
|
629
|
+
private getMetadataImageRenderer;
|
|
621
630
|
private writeStaticMetadataImageResponse;
|
|
622
631
|
private renderRouteErrorBoundary;
|
|
623
632
|
private renderBufferedSSR;
|
|
@@ -75,25 +75,41 @@ async function compileFarmMarkdownPage(body) {
|
|
|
75
75
|
}
|
|
76
76
|
var AsyncFunction = Object.getPrototypeOf(async () => {
|
|
77
77
|
}).constructor;
|
|
78
|
-
async function runFarmMarkdownPage(code, filePath) {
|
|
79
|
-
const { Fragment, jsx, jsxs } = await import("react/jsx-runtime");
|
|
80
|
-
|
|
78
|
+
async function runFarmMarkdownPage(code, filePath, renderer) {
|
|
79
|
+
const { Fragment, jsx, jsxs } = renderer ? createFarmMarkdownJsxRuntime(renderer) : await import("react/jsx-runtime");
|
|
80
|
+
const evaluated = await new AsyncFunction(code)({
|
|
81
|
+
Fragment,
|
|
82
|
+
jsx,
|
|
83
|
+
jsxs,
|
|
84
|
+
baseUrl: _url.pathToFileURL.call(void 0, filePath)
|
|
85
|
+
});
|
|
86
|
+
_optionalChain([renderer, 'optionalAccess', _6 => _6.markFunctionComponent, 'optionalCall', _7 => _7(evaluated.default)]);
|
|
87
|
+
return evaluated;
|
|
88
|
+
}
|
|
89
|
+
function createFarmMarkdownJsxRuntime(renderer) {
|
|
90
|
+
const toElement = (staticChildren) => (type, props, key) => {
|
|
91
|
+
const { children, ...rest } = props;
|
|
92
|
+
if (key !== void 0) rest.key = key;
|
|
93
|
+
if (children === void 0) return renderer.createElement(type, rest);
|
|
94
|
+
return staticChildren && Array.isArray(children) ? renderer.createElement(type, rest, ...children) : renderer.createElement(type, rest, children);
|
|
95
|
+
};
|
|
96
|
+
return { Fragment: renderer.Fragment, jsx: toElement(false), jsxs: toElement(true) };
|
|
81
97
|
}
|
|
82
98
|
var FARM_MARKDOWN_PRECOMPILED_PAGES = /* @__PURE__ */ Symbol.for("farm.markdown.precompiledPages");
|
|
83
99
|
function precompiledFarmMarkdownPage(body) {
|
|
84
100
|
const pages = globalThis[FARM_MARKDOWN_PRECOMPILED_PAGES];
|
|
85
|
-
return _optionalChain([pages, 'optionalAccess',
|
|
101
|
+
return _optionalChain([pages, 'optionalAccess', _8 => _8.get, 'call', _9 => _9(body)]);
|
|
86
102
|
}
|
|
87
|
-
async function evaluateMdxSource(body, filePath) {
|
|
103
|
+
async function evaluateMdxSource(body, filePath, renderer) {
|
|
88
104
|
const code = await _asyncNullishCoalesce(precompiledFarmMarkdownPage(body), async () => ( await compileFarmMarkdownPage(body)));
|
|
89
|
-
return runFarmMarkdownPage(code, filePath);
|
|
105
|
+
return runFarmMarkdownPage(code, filePath, renderer);
|
|
90
106
|
}
|
|
91
107
|
var MARKDOWN_ROUTE_CONFIG_EXPORT = /^export\s+const\s+(dynamic|revalidate|ssg)\s*=\s*("[^"\\]*"|'[^'\\]*'|\d+(?:\.\d+)?|true|false)\s*;?\s*$/;
|
|
92
108
|
function readFarmMarkdownRouteConfig(body) {
|
|
93
109
|
const config = {};
|
|
94
110
|
let fence;
|
|
95
111
|
for (const line of body.split(/\r?\n/)) {
|
|
96
|
-
const marker = _optionalChain([line, 'access',
|
|
112
|
+
const marker = _optionalChain([line, 'access', _10 => _10.match, 'call', _11 => _11(/^ {0,3}(`{3,}|~{3,})/), 'optionalAccess', _12 => _12[1]]);
|
|
97
113
|
if (fence) {
|
|
98
114
|
if (marker && marker[0] === fence[0] && marker.length >= fence.length) fence = void 0;
|
|
99
115
|
continue;
|
|
@@ -111,11 +127,11 @@ function readFarmMarkdownRouteConfig(body) {
|
|
|
111
127
|
}
|
|
112
128
|
function createFarmMarkdownRouteModule(input) {
|
|
113
129
|
const { body } = parseMarkdownFrontmatter(input.source);
|
|
114
|
-
const className = _optionalChain([input, 'access',
|
|
130
|
+
const className = _optionalChain([input, 'access', _13 => _13.config, 'optionalAccess', _14 => _14.className]) || "farm-markdown";
|
|
115
131
|
let evaluatedPromise;
|
|
116
132
|
let componentsPromise;
|
|
117
133
|
const loadContent = async () => {
|
|
118
|
-
_nullishCoalesce(evaluatedPromise, () => ( (evaluatedPromise = evaluateMdxSource(body, input.filePath))));
|
|
134
|
+
_nullishCoalesce(evaluatedPromise, () => ( (evaluatedPromise = evaluateMdxSource(body, input.filePath, input.renderer))));
|
|
119
135
|
return evaluatedPromise;
|
|
120
136
|
};
|
|
121
137
|
const loadComponents = () => {
|
|
@@ -128,7 +144,7 @@ function createFarmMarkdownRouteModule(input) {
|
|
|
128
144
|
return componentsPromise;
|
|
129
145
|
};
|
|
130
146
|
async function FarmMarkdownPage(props) {
|
|
131
|
-
const { createElement } = await import("react");
|
|
147
|
+
const { createElement } = await _asyncNullishCoalesce(input.renderer, async () => ( await import("react")));
|
|
132
148
|
const [evaluated, components] = await Promise.all([loadContent(), loadComponents()]);
|
|
133
149
|
const MDXContent = evaluated.default;
|
|
134
150
|
return createElement(
|
|
@@ -138,7 +154,7 @@ function createFarmMarkdownRouteModule(input) {
|
|
|
138
154
|
...props,
|
|
139
155
|
components: {
|
|
140
156
|
...components,
|
|
141
|
-
..._optionalChain([props, 'optionalAccess',
|
|
157
|
+
..._optionalChain([props, 'optionalAccess', _15 => _15.components])
|
|
142
158
|
}
|
|
143
159
|
})
|
|
144
160
|
);
|
|
@@ -218,8 +234,8 @@ async function anonymousVisitorOpensPage(options, url, targetPathname) {
|
|
|
218
234
|
signal: options.request.signal
|
|
219
235
|
})
|
|
220
236
|
);
|
|
221
|
-
if (response.status < 200 || response.status >= 300 || !_optionalChain([response, 'access',
|
|
222
|
-
void _optionalChain([response, 'access',
|
|
237
|
+
if (response.status < 200 || response.status >= 300 || !_optionalChain([response, 'access', _16 => _16.headers, 'access', _17 => _17.get, 'call', _18 => _18("content-type"), 'optionalAccess', _19 => _19.toLowerCase, 'call', _20 => _20(), 'access', _21 => _21.includes, 'call', _22 => _22("text/html")])) {
|
|
238
|
+
void _optionalChain([response, 'access', _23 => _23.body, 'optionalAccess', _24 => _24.cancel, 'call', _25 => _25(), 'access', _26 => _26.catch, 'call', _27 => _27(() => {
|
|
223
239
|
})]);
|
|
224
240
|
return false;
|
|
225
241
|
}
|
|
@@ -236,7 +252,7 @@ async function createFarmMarkdownSourceResponse(options) {
|
|
|
236
252
|
if (options.request.method !== "GET" && options.request.method !== "HEAD") {
|
|
237
253
|
return null;
|
|
238
254
|
}
|
|
239
|
-
if (_optionalChain([options, 'access',
|
|
255
|
+
if (_optionalChain([options, 'access', _28 => _28.config, 'optionalAccess', _29 => _29.markdownRoutes]) === false) {
|
|
240
256
|
return null;
|
|
241
257
|
}
|
|
242
258
|
const url = new URL(options.request.url);
|
|
@@ -279,7 +295,7 @@ async function createFarmMarkdownSourceResponse(options) {
|
|
|
279
295
|
publicSourceResponses.add(response);
|
|
280
296
|
return response;
|
|
281
297
|
}
|
|
282
|
-
await _optionalChain([publicResponse, 'access',
|
|
298
|
+
await _optionalChain([publicResponse, 'access', _30 => _30.body, 'optionalAccess', _31 => _31.cancel, 'call', _32 => _32()]);
|
|
283
299
|
if (!hasMarkdownExtension) return null;
|
|
284
300
|
return new Response(`No public Markdown version of ${targetPathname}.
|
|
285
301
|
`, {
|
|
@@ -297,7 +313,7 @@ async function createFarmMarkdownSourceResponse(options) {
|
|
|
297
313
|
"Content-Type": "text/markdown; charset=utf-8",
|
|
298
314
|
"Content-Location": _chunk2NOHVIJ3cjs._getFarmMarkdownPath.call(void 0,
|
|
299
315
|
targetPathname,
|
|
300
|
-
_optionalChain([options, 'access',
|
|
316
|
+
_optionalChain([options, 'access', _33 => _33.routePathname, 'optionalCall', _34 => _34(targetPathname)])
|
|
301
317
|
),
|
|
302
318
|
"Cache-Control": "public, s-maxage=60, stale-while-revalidate=300",
|
|
303
319
|
"X-Farm-Markdown-Route": targetPathname,
|
|
@@ -44,6 +44,31 @@ function getFarmRendererStreamingCapabilitiesForRuntime(renderer, runtime) {
|
|
|
44
44
|
if (runtime === "unknown") return { node: streaming.node, web: streaming.web };
|
|
45
45
|
return streaming.runtimes?.[runtime] ?? { node: streaming.node, web: streaming.web };
|
|
46
46
|
}
|
|
47
|
+
var FARM_RENDERER_SERVER_EXPORTS = [
|
|
48
|
+
"name",
|
|
49
|
+
"createElement",
|
|
50
|
+
"isValidElement",
|
|
51
|
+
"Fragment",
|
|
52
|
+
"Suspense",
|
|
53
|
+
"renderToString"
|
|
54
|
+
];
|
|
55
|
+
function isMissingServerExport(key, value) {
|
|
56
|
+
if (key === "name") return typeof value !== "string" || value === "";
|
|
57
|
+
if (key === "Fragment" || key === "Suspense") return value === void 0 || value === null;
|
|
58
|
+
return typeof value !== "function";
|
|
59
|
+
}
|
|
60
|
+
function assertFarmRendererServerModule(runtime, renderer) {
|
|
61
|
+
const exports = runtime ?? {};
|
|
62
|
+
const missing = FARM_RENDERER_SERVER_EXPORTS.filter(
|
|
63
|
+
(key) => isMissingServerExport(key, exports[key])
|
|
64
|
+
);
|
|
65
|
+
if (missing.length === 0) return;
|
|
66
|
+
const names = missing.map((key) => `\`${key}\``);
|
|
67
|
+
const list = names.length === 1 ? names[0] : `${names.slice(0, -1).join(", ")}${names.length > 2 ? "," : ""} and ${names[names.length - 1]}`;
|
|
68
|
+
throw new Error(
|
|
69
|
+
`Renderer \`${renderer.name}\` server module \`${renderer.server}\` does not export ${list}. Export ${missing.length === 1 ? "it" : "them"} by name from that module: https://farmjs.dev/docs/renderers#renderer-modules`
|
|
70
|
+
);
|
|
71
|
+
}
|
|
47
72
|
function assertFarmRendererStreamingRuntime(name, renderer, runtimeModule, runtime) {
|
|
48
73
|
const declared = getFarmRendererStreamingCapabilitiesForRuntime(renderer, runtime);
|
|
49
74
|
const runtimeDeclaration = runtimeModule.capabilities?.streaming;
|
|
@@ -204,6 +229,7 @@ async function loadFarmRendererVitePlugins(renderer, root, options = {}) {
|
|
|
204
229
|
export {
|
|
205
230
|
getFarmRendererCapabilities,
|
|
206
231
|
getFarmRendererStreamingCapabilitiesForRuntime,
|
|
232
|
+
assertFarmRendererServerModule,
|
|
207
233
|
assertFarmRendererStreamingRuntime,
|
|
208
234
|
FARM_COMPONENT_EXTENSIONS,
|
|
209
235
|
resolveFarmComponentExtensions,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
decodeFarmTagged,
|
|
3
3
|
encodeFarmLeaf
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-INKVDO42.mjs";
|
|
5
5
|
import {
|
|
6
6
|
FARM_MAX_HELD_VALUES,
|
|
7
7
|
FARM_REFERENCE_TAG,
|
|
8
8
|
FARM_VALUES_HEADER,
|
|
9
9
|
FARM_VALUE_KEY_PATTERN
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UDMBUTJD.mjs";
|
|
11
11
|
import {
|
|
12
12
|
_peekCurrentRequest,
|
|
13
13
|
_resolveCurrentRequestForApp
|