@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
|
@@ -1,5 +1,9 @@
|
|
|
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(); } } 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
|
+
|
|
4
|
+
var _chunkWMRGIQTAcjs = require('./chunk-WMRGIQTA.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
3
7
|
var _chunk7KJJ4SBScjs = require('./chunk-7KJJ4SBS.cjs');
|
|
4
8
|
|
|
5
9
|
|
|
@@ -7,11 +11,11 @@ var _chunk7KJJ4SBScjs = require('./chunk-7KJJ4SBS.cjs');
|
|
|
7
11
|
var _chunkRE5E2G5Scjs = require('./chunk-RE5E2G5S.cjs');
|
|
8
12
|
|
|
9
13
|
|
|
14
|
+
var _chunk52Q4OB4Acjs = require('./chunk-52Q4OB4A.cjs');
|
|
10
15
|
|
|
11
|
-
var _chunk67MZTLTFcjs = require('./chunk-67MZTLTF.cjs');
|
|
12
16
|
|
|
13
17
|
|
|
14
|
-
var
|
|
18
|
+
var _chunkM6DAIE4Tcjs = require('./chunk-M6DAIE4T.cjs');
|
|
15
19
|
|
|
16
20
|
|
|
17
21
|
|
|
@@ -22,7 +26,7 @@ var _chunkYUCU6XB4cjs = require('./chunk-YUCU6XB4.cjs');
|
|
|
22
26
|
var _chunk7U4XF76Rcjs = require('./chunk-7U4XF76R.cjs');
|
|
23
27
|
|
|
24
28
|
|
|
25
|
-
var
|
|
29
|
+
var _chunkNSLRK5DKcjs = require('./chunk-NSLRK5DK.cjs');
|
|
26
30
|
|
|
27
31
|
// src/environment-vite.ts
|
|
28
32
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
@@ -50,7 +54,7 @@ var FARM_DIAGNOSTIC_RULES = {
|
|
|
50
54
|
},
|
|
51
55
|
CLIENT_SERVER_FUNCTION: {
|
|
52
56
|
severity: "error",
|
|
53
|
-
fix: "
|
|
57
|
+
fix: "Set experimental.serverActions: true so client imports become server references (a React app outside islands mode also needs @farm.js/plugin/rsc), or call it from server code, or expose an API route and call it with createAPIClient.",
|
|
54
58
|
docs: BOUNDARY_DOCS
|
|
55
59
|
},
|
|
56
60
|
CLIENT_SERVER_ONLY_IMPORT: {
|
|
@@ -879,7 +883,7 @@ function usePackageScanCacheFile(file) {
|
|
|
879
883
|
const stored = /* @__PURE__ */ new Map();
|
|
880
884
|
try {
|
|
881
885
|
const value = JSON.parse(_fs2.default.readFileSync(file, "utf8"));
|
|
882
|
-
if (_optionalChain([value, 'optionalAccess', _68 => _68.schema]) === PACKAGE_SCAN_CACHE_SCHEMA && value.farm ===
|
|
886
|
+
if (_optionalChain([value, 'optionalAccess', _68 => _68.schema]) === PACKAGE_SCAN_CACHE_SCHEMA && value.farm === _chunkNSLRK5DKcjs.FARM_VERSION && value.scans && typeof value.scans === "object") {
|
|
883
887
|
for (const [directory, scan] of Object.entries(value.scans)) {
|
|
884
888
|
if (isStoredPackageScan(scan)) stored.set(directory, scan);
|
|
885
889
|
}
|
|
@@ -908,7 +912,7 @@ function persistPackageScanCache() {
|
|
|
908
912
|
_fs2.default.mkdirSync(_path2.default.dirname(cache2.file), { recursive: true });
|
|
909
913
|
_fs2.default.writeFileSync(
|
|
910
914
|
temporary,
|
|
911
|
-
JSON.stringify({ schema: PACKAGE_SCAN_CACHE_SCHEMA, farm:
|
|
915
|
+
JSON.stringify({ schema: PACKAGE_SCAN_CACHE_SCHEMA, farm: _chunkNSLRK5DKcjs.FARM_VERSION, scans })
|
|
912
916
|
);
|
|
913
917
|
_fs2.default.renameSync(temporary, cache2.file);
|
|
914
918
|
cache2.dirty = false;
|
|
@@ -1294,7 +1298,7 @@ export default __farmComponent;
|
|
|
1294
1298
|
...route.serverProps ? [`__farmServerHooks: ${JSON.stringify(route.serverProps)}`] : []
|
|
1295
1299
|
];
|
|
1296
1300
|
return `
|
|
1297
|
-
import * as __farmRendererRuntime from ${JSON.stringify(options.
|
|
1301
|
+
import * as __farmRendererRuntime from ${JSON.stringify(options.rendererClient)};
|
|
1298
1302
|
import { createRouteModuleFromProgrammaticPage as __farmCreatePageRouteModule } from "@farm.js/core/routes";
|
|
1299
1303
|
${component}
|
|
1300
1304
|
${pending}
|
|
@@ -2208,7 +2212,7 @@ var PackageClientBoundaryCache = class {
|
|
|
2208
2212
|
}
|
|
2209
2213
|
const contents = JSON.stringify({
|
|
2210
2214
|
schema: SCHEMA_VERSION,
|
|
2211
|
-
farm:
|
|
2215
|
+
farm: _chunkNSLRK5DKcjs.FARM_VERSION,
|
|
2212
2216
|
paths,
|
|
2213
2217
|
entries
|
|
2214
2218
|
});
|
|
@@ -2248,7 +2252,7 @@ function readStoredCache(file) {
|
|
|
2248
2252
|
} catch (e37) {
|
|
2249
2253
|
return null;
|
|
2250
2254
|
}
|
|
2251
|
-
if (!isRecord(value) || value.schema !== SCHEMA_VERSION || value.farm !==
|
|
2255
|
+
if (!isRecord(value) || value.schema !== SCHEMA_VERSION || value.farm !== _chunkNSLRK5DKcjs.FARM_VERSION) {
|
|
2252
2256
|
return null;
|
|
2253
2257
|
}
|
|
2254
2258
|
const { paths, entries } = value;
|
|
@@ -2259,7 +2263,7 @@ function readStoredCache(file) {
|
|
|
2259
2263
|
const usable = variants.filter((entry) => isStoredEntry(entry, paths.length));
|
|
2260
2264
|
if (usable.length > 0) valid[key] = usable;
|
|
2261
2265
|
}
|
|
2262
|
-
return { schema: SCHEMA_VERSION, farm:
|
|
2266
|
+
return { schema: SCHEMA_VERSION, farm: _chunkNSLRK5DKcjs.FARM_VERSION, paths, entries: valid };
|
|
2263
2267
|
}
|
|
2264
2268
|
function isRecord(value) {
|
|
2265
2269
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -2423,7 +2427,7 @@ function resolveModuleSourcePath(modulePath, root) {
|
|
|
2423
2427
|
return null;
|
|
2424
2428
|
}
|
|
2425
2429
|
function getFarmClientHydrationPlanOptions(renderer, hasUnsupportedIntegrationProvider) {
|
|
2426
|
-
return { asyncOwnerIslands:
|
|
2430
|
+
return { asyncOwnerIslands: _chunkM6DAIE4Tcjs.isReactRenderer.call(void 0, renderer) && !hasUnsupportedIntegrationProvider };
|
|
2427
2431
|
}
|
|
2428
2432
|
function describeSuppressedAsyncHydration(subject, reason) {
|
|
2429
2433
|
const remediation = reason ? "Fix the reason above, or render the interactive UI from a synchronous owner." : 'Move the interactive UI into an eligible "use client" boundary, or render it from a synchronous owner.';
|
|
@@ -2480,22 +2484,7 @@ function hasUseClientDirective(content) {
|
|
|
2480
2484
|
return false;
|
|
2481
2485
|
}
|
|
2482
2486
|
function hasHydrateExport(content) {
|
|
2483
|
-
|
|
2484
|
-
return false;
|
|
2485
|
-
}
|
|
2486
|
-
if (/\bexport\s+const\s+hydrate\s*=\s*true\b/.test(content)) {
|
|
2487
|
-
return true;
|
|
2488
|
-
}
|
|
2489
|
-
for (const match of content.matchAll(/\bexport\s*\{([^}]*)\}/g)) {
|
|
2490
|
-
for (const specifier of match[1].split(",")) {
|
|
2491
|
-
const parts = specifier.trim().split(/\s+as\s+/);
|
|
2492
|
-
const exportedName2 = _optionalChain([(_nullishCoalesce(parts[1], () => ( parts[0]))), 'optionalAccess', _126 => _126.trim, 'call', _127 => _127()]);
|
|
2493
|
-
if (exportedName2 === "hydrate") {
|
|
2494
|
-
return true;
|
|
2495
|
-
}
|
|
2496
|
-
}
|
|
2497
|
-
}
|
|
2498
|
-
return false;
|
|
2487
|
+
return _optionalChain([_chunkWMRGIQTAcjs.readFarmHydrateExport.call(void 0, content), 'optionalAccess', _126 => _126.value]) === true;
|
|
2499
2488
|
}
|
|
2500
2489
|
var REGEXP_PREFIX_PUNCTUATION = /* @__PURE__ */ new Set([
|
|
2501
2490
|
"(",
|
|
@@ -2684,7 +2673,7 @@ function isIslandExportStart(tokens, index) {
|
|
|
2684
2673
|
const token = tokens[index];
|
|
2685
2674
|
const previous = tokens[index - 1];
|
|
2686
2675
|
const startsStatement = !previous || previous.value === ";" || previous.value === "{" || previous.value === "}" || token.line > previous.line;
|
|
2687
|
-
return startsStatement && token.value === "export" && _optionalChain([tokens, 'access',
|
|
2676
|
+
return startsStatement && token.value === "export" && _optionalChain([tokens, 'access', _127 => _127[index + 1], 'optionalAccess', _128 => _128.value]) === "const" && _optionalChain([tokens, 'access', _129 => _129[index + 2], 'optionalAccess', _130 => _130.value]) === "island";
|
|
2688
2677
|
}
|
|
2689
2678
|
function getIslandStrategyExport(content) {
|
|
2690
2679
|
if (!content) return null;
|
|
@@ -2692,15 +2681,15 @@ function getIslandStrategyExport(content) {
|
|
|
2692
2681
|
for (let index = 0; index < tokens.length - 2; index++) {
|
|
2693
2682
|
if (!isIslandExportStart(tokens, index)) continue;
|
|
2694
2683
|
let valueIndex = index + 3;
|
|
2695
|
-
if (_optionalChain([tokens, 'access',
|
|
2684
|
+
if (_optionalChain([tokens, 'access', _131 => _131[valueIndex], 'optionalAccess', _132 => _132.value]) === ":") {
|
|
2696
2685
|
while (valueIndex < tokens.length && tokens[valueIndex].value !== "=") valueIndex++;
|
|
2697
2686
|
}
|
|
2698
|
-
if (_optionalChain([tokens, 'access',
|
|
2687
|
+
if (_optionalChain([tokens, 'access', _133 => _133[valueIndex], 'optionalAccess', _134 => _134.value]) !== "=") break;
|
|
2699
2688
|
valueIndex++;
|
|
2700
2689
|
const literal = tokens[valueIndex];
|
|
2701
2690
|
if (!literal || literal.kind !== "string" || !_chunk7KJJ4SBScjs.isFarmIslandStrategy.call(void 0, literal.value)) break;
|
|
2702
2691
|
let trailingIndex = valueIndex + 1;
|
|
2703
|
-
if (_optionalChain([tokens, 'access',
|
|
2692
|
+
if (_optionalChain([tokens, 'access', _135 => _135[trailingIndex], 'optionalAccess', _136 => _136.value]) === "as" && _optionalChain([tokens, 'access', _137 => _137[trailingIndex + 1], 'optionalAccess', _138 => _138.value]) === "const") {
|
|
2704
2693
|
trailingIndex += 2;
|
|
2705
2694
|
}
|
|
2706
2695
|
const trailing = tokens[trailingIndex];
|
|
@@ -2726,13 +2715,13 @@ function hasAsyncDefaultExport(content) {
|
|
|
2726
2715
|
for (let index = 0; index < tokens.length - 2; index++) {
|
|
2727
2716
|
const token = tokens[index];
|
|
2728
2717
|
if (token.kind !== "identifier" || token.value !== "export") continue;
|
|
2729
|
-
if (_optionalChain([tokens, 'access',
|
|
2730
|
-
if (_optionalChain([tokens, 'access',
|
|
2718
|
+
if (_optionalChain([tokens, 'access', _139 => _139[index - 1], 'optionalAccess', _140 => _140.value]) === ".") continue;
|
|
2719
|
+
if (_optionalChain([tokens, 'access', _141 => _141[index + 1], 'optionalAccess', _142 => _142.value]) !== "default") continue;
|
|
2731
2720
|
const exported = tokens[index + 2];
|
|
2732
2721
|
if (exported.kind === "identifier" && exported.value === "async") {
|
|
2733
2722
|
return true;
|
|
2734
2723
|
}
|
|
2735
|
-
if (exported.kind === "identifier" && !["function", "class"].includes(exported.value) && _optionalChain([tokens, 'access',
|
|
2724
|
+
if (exported.kind === "identifier" && !["function", "class"].includes(exported.value) && _optionalChain([tokens, 'access', _143 => _143[index + 3], 'optionalAccess', _144 => _144.value]) !== "(" && isAsyncLocalDeclaration(tokens, exported.value)) {
|
|
2736
2725
|
return true;
|
|
2737
2726
|
}
|
|
2738
2727
|
}
|
|
@@ -2740,16 +2729,16 @@ function hasAsyncDefaultExport(content) {
|
|
|
2740
2729
|
}
|
|
2741
2730
|
function isAsyncLocalDeclaration(tokens, name) {
|
|
2742
2731
|
for (let index = 0; index < tokens.length - 2; index++) {
|
|
2743
|
-
if (tokens[index].value === "async" && _optionalChain([tokens, 'access',
|
|
2732
|
+
if (tokens[index].value === "async" && _optionalChain([tokens, 'access', _145 => _145[index + 1], 'optionalAccess', _146 => _146.value]) === "function" && _optionalChain([tokens, 'access', _147 => _147[index + 2], 'optionalAccess', _148 => _148.value]) === name) {
|
|
2744
2733
|
return true;
|
|
2745
2734
|
}
|
|
2746
|
-
if (tokens[index].value === name && _optionalChain([tokens, 'access',
|
|
2735
|
+
if (tokens[index].value === name && _optionalChain([tokens, 'access', _149 => _149[index + 1], 'optionalAccess', _150 => _150.value]) === "=" && _optionalChain([tokens, 'access', _151 => _151[index + 2], 'optionalAccess', _152 => _152.value]) === "async") {
|
|
2747
2736
|
return true;
|
|
2748
2737
|
}
|
|
2749
2738
|
}
|
|
2750
2739
|
return false;
|
|
2751
2740
|
}
|
|
2752
|
-
function parseClientModuleMetadata(content, inspectIslandExport) {
|
|
2741
|
+
function parseClientModuleMetadata(content, inspectIslandExport, sourcePath) {
|
|
2753
2742
|
if (!content) {
|
|
2754
2743
|
return {
|
|
2755
2744
|
isClientComponent: false,
|
|
@@ -2758,7 +2747,11 @@ function parseClientModuleMetadata(content, inspectIslandExport) {
|
|
|
2758
2747
|
};
|
|
2759
2748
|
}
|
|
2760
2749
|
const isClientComponent = hasUseClientDirective(content);
|
|
2761
|
-
const
|
|
2750
|
+
const hydrate = _chunkWMRGIQTAcjs.readFarmHydrateExport.call(void 0, content);
|
|
2751
|
+
if (inspectIslandExport && hydrate && hydrate.value === null) {
|
|
2752
|
+
throw new Error(_chunkWMRGIQTAcjs.formatFarmHydrateExportError.call(void 0, hydrate, sourcePath));
|
|
2753
|
+
}
|
|
2754
|
+
const hasHydrate = _optionalChain([hydrate, 'optionalAccess', _153 => _153.value]) === true;
|
|
2762
2755
|
return {
|
|
2763
2756
|
isClientComponent,
|
|
2764
2757
|
hasHydrateExport: hasHydrate,
|
|
@@ -2841,7 +2834,11 @@ function getClientModuleHydrationPlan(modulePath, root, mode = "off", options =
|
|
|
2841
2834
|
return plan;
|
|
2842
2835
|
}
|
|
2843
2836
|
const resolvedPath = resolveOwnerSourcePath(resolveModuleSourcePath(modulePath, root), root);
|
|
2844
|
-
const owner = parseClientModuleMetadata(
|
|
2837
|
+
const owner = parseClientModuleMetadata(
|
|
2838
|
+
readIfExists(_nullishCoalesce(resolvedPath, () => ( ""))),
|
|
2839
|
+
true,
|
|
2840
|
+
_nullishCoalesce(resolvedPath, () => ( void 0))
|
|
2841
|
+
);
|
|
2845
2842
|
if (!resolvedPath || owner.isClientComponent || owner.hasHydrateExport) return plan;
|
|
2846
2843
|
const layout = collectIsolatedClientBoundaries(resolvedPath, root, {
|
|
2847
2844
|
allowDynamicCardinality: true,
|
|
@@ -2893,7 +2890,7 @@ function planClientModuleHydration(modulePath, root, mode, options) {
|
|
|
2893
2890
|
if (mode === "off" && !asyncOwner) return emptyPlan();
|
|
2894
2891
|
const resolvedPath = resolveOwnerSourcePath(resolveModuleSourcePath(modulePath, root), root);
|
|
2895
2892
|
const content = readIfExists(_nullishCoalesce(resolvedPath, () => ( "")));
|
|
2896
|
-
const parsed = parseClientModuleMetadata(content, true);
|
|
2893
|
+
const parsed = parseClientModuleMetadata(content, true, _nullishCoalesce(resolvedPath, () => ( void 0)));
|
|
2897
2894
|
if (!resolvedPath) return emptyPlan("the owner source could not be resolved");
|
|
2898
2895
|
if (parsed.isClientComponent) {
|
|
2899
2896
|
return emptyPlan("the owner is already a client component");
|
|
@@ -3561,7 +3558,7 @@ function inspectClientModuleMetadata(resolvedPath, root, visited, inspectIslandE
|
|
|
3561
3558
|
const target = resolveDefaultReexport(resolvedPath, content, root);
|
|
3562
3559
|
if (target) return inspectClientModuleMetadata(target, root, visited, true);
|
|
3563
3560
|
}
|
|
3564
|
-
const parsed = parseClientModuleMetadata(content, inspectIslandExport);
|
|
3561
|
+
const parsed = parseClientModuleMetadata(content, inspectIslandExport, resolvedPath);
|
|
3565
3562
|
if (parsed.isClientComponent) {
|
|
3566
3563
|
return {
|
|
3567
3564
|
isClientComponent: true,
|
|
@@ -4300,7 +4297,7 @@ function transformEnvironmentFunctions(options) {
|
|
|
4300
4297
|
function farmEnvironmentFunctionsPlugin(options = {}) {
|
|
4301
4298
|
let routesFiles = /* @__PURE__ */ new Set();
|
|
4302
4299
|
const componentExtensions = new Set(
|
|
4303
|
-
|
|
4300
|
+
_chunkM6DAIE4Tcjs.getFarmRendererComponentExtensions.call(void 0, options.renderer || void 0)
|
|
4304
4301
|
);
|
|
4305
4302
|
let farmApi;
|
|
4306
4303
|
let isBuild = false;
|
|
@@ -4337,7 +4334,7 @@ function farmEnvironmentFunctionsPlugin(options = {}) {
|
|
|
4337
4334
|
farmApi = _optionalChain([config, 'access', _247 => _247.plugins, 'access', _248 => _248.find, 'call', _249 => _249((plugin) => plugin.name === "farm"), 'optionalAccess', _250 => _250.api]);
|
|
4338
4335
|
sources = void 0;
|
|
4339
4336
|
routesFiles = new Set(
|
|
4340
|
-
|
|
4337
|
+
_chunk52Q4OB4Acjs.getFarmSourceRoots.call(void 0, { ...options, root: _nullishCoalesce(options.root, () => ( config.root)) }).flatMap(
|
|
4341
4338
|
(source) => _chunkYUCU6XB4cjs.PROGRAMMATIC_ROUTE_FILE_NAMES.map(
|
|
4342
4339
|
(name) => resolvedFile(_path2.default.resolve(source.root, source.srcDir, name))
|
|
4343
4340
|
)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkPWDBWXQIcjs = require('./chunk-PWDBWXQI.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkXRRHPBG2cjs = require('./chunk-XRRHPBG2.cjs');
|
|
@@ -160,8 +160,8 @@ function createFarmConfigResolutionPlugin(options) {
|
|
|
160
160
|
kind: extraOptions.kind,
|
|
161
161
|
skipSelf: true
|
|
162
162
|
});
|
|
163
|
-
if (!_optionalChain([resolved, 'optionalAccess', _ => _.id]) || !
|
|
164
|
-
return await _asyncNullishCoalesce(await
|
|
163
|
+
if (!_optionalChain([resolved, 'optionalAccess', _ => _.id]) || !_chunkPWDBWXQIcjs.isDeclarationFile.call(void 0, resolved.id)) return _optionalChain([resolved, 'optionalAccess', _2 => _2.id]);
|
|
164
|
+
return await _asyncNullishCoalesce(await _chunkPWDBWXQIcjs.resolvePackageWithoutTsconfig.call(void 0, specifier, importer, extraOptions.kind), async () => ( void 0));
|
|
165
165
|
};
|
|
166
166
|
if (source === FARM_CORE_PACKAGE && extraOptions.kind === "import-statement") {
|
|
167
167
|
let configEntryCheck = configEntryChecks.get(importer);
|
|
@@ -194,7 +194,7 @@ async function loadFarmConfigFile(configPath, options) {
|
|
|
194
194
|
configCacheDir,
|
|
195
195
|
`farm-config-${Date.now()}-${Math.random().toString(36).slice(2)}.mjs`
|
|
196
196
|
);
|
|
197
|
-
await
|
|
197
|
+
await _chunkPWDBWXQIcjs.bundleNodeModule.call(void 0, {
|
|
198
198
|
root: _path2.default.resolve(options.root),
|
|
199
199
|
entry: _path2.default.resolve(configPath),
|
|
200
200
|
outfile: modulePath,
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkEX6ZSN5Pcjs = require('./chunk-EX6ZSN5P.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkCKPTIEDXcjs = require('./chunk-CKPTIEDX.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
var _chunkUZCMMJJTcjs = require('./chunk-UZCMMJJT.cjs');
|
|
12
|
+
|
|
13
|
+
// src/islands-action-client.ts
|
|
14
|
+
function createFarmServerFnTransportError(value) {
|
|
15
|
+
const failure = value;
|
|
16
|
+
const error = new Error(
|
|
17
|
+
failure && typeof failure.message === "string" ? failure.message : "Server function failed"
|
|
18
|
+
);
|
|
19
|
+
if (failure && failure.name === "ServerFnFailure" && typeof failure.code === "string" && Number.isInteger(failure.status) && failure.status >= 400 && failure.status <= 599 && Object.prototype.hasOwnProperty.call(failure, "data")) {
|
|
20
|
+
error.name = "ServerFnFailure";
|
|
21
|
+
error.code = failure.code;
|
|
22
|
+
error.status = failure.status;
|
|
23
|
+
error.data = failure.data;
|
|
24
|
+
Object.defineProperty(error, /* @__PURE__ */ Symbol.for("farm.server-fn.failure"), {
|
|
25
|
+
value: true,
|
|
26
|
+
enumerable: false
|
|
27
|
+
});
|
|
28
|
+
return error;
|
|
29
|
+
}
|
|
30
|
+
error.name = "ServerActionError";
|
|
31
|
+
return error;
|
|
32
|
+
}
|
|
33
|
+
var farmIslandsActionInterceptor = async (call, next) => {
|
|
34
|
+
const invocation = _chunkEX6ZSN5Pcjs.beginFarmServerQueryAction.call(void 0, call.id, call.args);
|
|
35
|
+
let result;
|
|
36
|
+
try {
|
|
37
|
+
result = await next();
|
|
38
|
+
} catch (error2) {
|
|
39
|
+
if (error2 instanceof Error && error2.message.startsWith("Server action failed")) {
|
|
40
|
+
throw createFarmServerFnTransportError(void 0);
|
|
41
|
+
}
|
|
42
|
+
throw error2;
|
|
43
|
+
}
|
|
44
|
+
if (!_chunkCKPTIEDXcjs.isFarmIslandsActionResult.call(void 0, result)) return result;
|
|
45
|
+
const { invalidations, error } = result.__farmAction;
|
|
46
|
+
if (_chunkEX6ZSN5Pcjs.shouldApplyFarmServerQueryActionResult.call(void 0, invocation))
|
|
47
|
+
_chunkUZCMMJJTcjs.applyFarmCacheInvalidations.call(void 0, invalidations);
|
|
48
|
+
if (error) throw createFarmServerFnTransportError(error);
|
|
49
|
+
return _chunkEX6ZSN5Pcjs.completeFarmServerQueryAction.call(void 0, invocation, result.value);
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
exports.farmIslandsActionInterceptor = farmIslandsActionInterceptor;
|
|
@@ -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,9 +40,10 @@ import {
|
|
|
39
40
|
resolveFarmAppPackages,
|
|
40
41
|
resolveFarmClientCacheAdapterEntry,
|
|
41
42
|
resolveFarmImageProviderForRuntime,
|
|
43
|
+
resolveFarmIslxActionsMode,
|
|
42
44
|
resolveFarmRouteRootStrategy,
|
|
43
45
|
toBakedMarkdownSourcePath
|
|
44
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-IPG6B25T.mjs";
|
|
45
47
|
import {
|
|
46
48
|
generateFarmClientPluginEntryCode,
|
|
47
49
|
hasFarmServerRuntimePlugins,
|
|
@@ -50,13 +52,13 @@ import {
|
|
|
50
52
|
import {
|
|
51
53
|
FARM_NODE_RESPONSE_END_PENDING
|
|
52
54
|
} from "./chunk-C2OLXVUC.mjs";
|
|
53
|
-
import {
|
|
54
|
-
resolveFarmPlatform
|
|
55
|
-
} from "./chunk-SMUW7UST.mjs";
|
|
56
55
|
import {
|
|
57
56
|
generateFarmTypeArtifacts,
|
|
58
57
|
resolveRouteRenderingConfig
|
|
59
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-TLSGRK7E.mjs";
|
|
59
|
+
import {
|
|
60
|
+
resolveFarmPlatform
|
|
61
|
+
} from "./chunk-SMUW7UST.mjs";
|
|
60
62
|
import {
|
|
61
63
|
createFarmRouteRenderPlan,
|
|
62
64
|
farmPathGuardCoversEndpoint,
|
|
@@ -65,7 +67,7 @@ import {
|
|
|
65
67
|
getSharedLayoutPrefixLength,
|
|
66
68
|
parseFarmLayoutChainHeader,
|
|
67
69
|
renderFarmLocaleAlternateLinks
|
|
68
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-OO4GVGM3.mjs";
|
|
69
71
|
import {
|
|
70
72
|
FARM_NATIVE_TREE_CONTENT_TYPE
|
|
71
73
|
} from "./chunk-LLZSYFOM.mjs";
|
|
@@ -83,13 +85,13 @@ import {
|
|
|
83
85
|
resolveFarmMCPRouteLabel,
|
|
84
86
|
resolveFarmMarkdownRouteLabel,
|
|
85
87
|
setFarmRouteLabel
|
|
86
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-RZ6XUEQS.mjs";
|
|
87
89
|
import {
|
|
88
90
|
FARM_DEFAULT_MCP_PATH
|
|
89
91
|
} from "./chunk-HR4N2K4V.mjs";
|
|
90
92
|
import {
|
|
91
93
|
isFarmPreviewDeploymentEnvironment
|
|
92
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-GY63XD6K.mjs";
|
|
93
95
|
import {
|
|
94
96
|
createFarmServerFnBoundaryModule,
|
|
95
97
|
isFarmServerFnBoundaryId,
|
|
@@ -140,7 +142,7 @@ import {
|
|
|
140
142
|
usePackageScanCacheFile,
|
|
141
143
|
withFarmSourceSnapshotOf,
|
|
142
144
|
wrapFarmIslandContainers
|
|
143
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-HTNJ7A4D.mjs";
|
|
144
146
|
import {
|
|
145
147
|
generateFarmDocsAdapterClientRuntime,
|
|
146
148
|
getFarmDocsAdapterConfigModule
|
|
@@ -171,6 +173,11 @@ import {
|
|
|
171
173
|
import {
|
|
172
174
|
resolveFarmServerComponentsMode
|
|
173
175
|
} from "./chunk-4QENVMG7.mjs";
|
|
176
|
+
import {
|
|
177
|
+
getFarmAppDirectories,
|
|
178
|
+
getFarmLayerAliases,
|
|
179
|
+
getFarmSourceRoots
|
|
180
|
+
} from "./chunk-Z3RM3VA2.mjs";
|
|
174
181
|
import {
|
|
175
182
|
REACT_RENDERER,
|
|
176
183
|
getFarmRendererCapabilities,
|
|
@@ -180,12 +187,7 @@ import {
|
|
|
180
187
|
resolveFarmComponentExtensions,
|
|
181
188
|
resolveFarmRenderer,
|
|
182
189
|
resolveFarmRendererAppSetup
|
|
183
|
-
} from "./chunk-
|
|
184
|
-
import {
|
|
185
|
-
getFarmAppDirectories,
|
|
186
|
-
getFarmLayerAliases,
|
|
187
|
-
getFarmSourceRoots
|
|
188
|
-
} from "./chunk-4STJ6LGR.mjs";
|
|
190
|
+
} from "./chunk-2HMSSPCZ.mjs";
|
|
189
191
|
import {
|
|
190
192
|
getPublicFarmImageConfig,
|
|
191
193
|
resolveFarmImageConfig
|
|
@@ -197,7 +199,7 @@ import {
|
|
|
197
199
|
createFarmMarkdownSourceResponse,
|
|
198
200
|
isFarmMarkdownPageFile,
|
|
199
201
|
normalizeFarmMarkdownRoutePath
|
|
200
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-ICOJ2BC6.mjs";
|
|
201
203
|
import {
|
|
202
204
|
resolveFarmMdxComponentsModulePath,
|
|
203
205
|
resolveMdxConfig
|
|
@@ -223,7 +225,7 @@ import {
|
|
|
223
225
|
} from "./chunk-BMQAPZXD.mjs";
|
|
224
226
|
import {
|
|
225
227
|
MiddlewareManager
|
|
226
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-3RVLJTFZ.mjs";
|
|
227
229
|
import {
|
|
228
230
|
_runWithMiddlewareContext,
|
|
229
231
|
_runWithMiddlewareData
|
|
@@ -239,7 +241,7 @@ import {
|
|
|
239
241
|
} from "./chunk-IYEY3JWJ.mjs";
|
|
240
242
|
import {
|
|
241
243
|
APIRouteManager
|
|
242
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-6WVRVGKC.mjs";
|
|
243
245
|
import {
|
|
244
246
|
getFarmI18nClientSnapshot
|
|
245
247
|
} from "./chunk-O7JEFGUV.mjs";
|
|
@@ -302,7 +304,7 @@ import {
|
|
|
302
304
|
} from "./chunk-EILUVBKS.mjs";
|
|
303
305
|
import {
|
|
304
306
|
FARM_VERSION
|
|
305
|
-
} from "./chunk-
|
|
307
|
+
} from "./chunk-D77OGI6X.mjs";
|
|
306
308
|
import {
|
|
307
309
|
DEFAULT_FARM_API_BASE_PATH
|
|
308
310
|
} from "./chunk-W6QLRQ3V.mjs";
|
|
@@ -363,7 +365,10 @@ function transformFarmFormActionModule(options) {
|
|
|
363
365
|
root: options.root,
|
|
364
366
|
environment: options.ssr ? "server" : "client",
|
|
365
367
|
parse: options.parse,
|
|
366
|
-
runtime: {
|
|
368
|
+
runtime: options.runtime === "renderer" ? {
|
|
369
|
+
server: runtimeModule("@farm.js/core/internal/islx-actions-server"),
|
|
370
|
+
client: runtimeModule("@farm.js/core/internal/islx-actions-client")
|
|
371
|
+
} : {
|
|
367
372
|
server: runtimeModule("@farm.js/core/internal/islx-server"),
|
|
368
373
|
client: runtimeModule("@farm.js/core/internal/islx-client")
|
|
369
374
|
}
|
|
@@ -1275,7 +1280,7 @@ function loadFarmWorkflowsDevRuntime() {
|
|
|
1275
1280
|
return import("./workflows.mjs");
|
|
1276
1281
|
}
|
|
1277
1282
|
function loadFarmDevtoolsSnapshotRuntime() {
|
|
1278
|
-
return import("./devtools-
|
|
1283
|
+
return import("./devtools-XJHODO5H.mjs");
|
|
1279
1284
|
}
|
|
1280
1285
|
function loadFarmDevtoolsUIRuntime() {
|
|
1281
1286
|
return import("./devtools-ui-BOG33MT5.mjs");
|
|
@@ -1299,6 +1304,25 @@ function farmI18nClientBridgePlugin() {
|
|
|
1299
1304
|
}
|
|
1300
1305
|
};
|
|
1301
1306
|
}
|
|
1307
|
+
function farmNavigationPlugin(renderer) {
|
|
1308
|
+
const otherRenderer = !isFarmRendererDisabled(renderer) && !isReactRenderer(renderer || void 0) && (renderer || void 0)?.name !== "preact";
|
|
1309
|
+
return {
|
|
1310
|
+
name: "farm:navigation",
|
|
1311
|
+
config() {
|
|
1312
|
+
if (!otherRenderer) return;
|
|
1313
|
+
return {
|
|
1314
|
+
resolve: {
|
|
1315
|
+
alias: [
|
|
1316
|
+
{
|
|
1317
|
+
find: /^@farm\.js\/core\/navigation$/,
|
|
1318
|
+
replacement: "@farm.js/core/internal/navigation-neutral"
|
|
1319
|
+
}
|
|
1320
|
+
]
|
|
1321
|
+
}
|
|
1322
|
+
};
|
|
1323
|
+
}
|
|
1324
|
+
};
|
|
1325
|
+
}
|
|
1302
1326
|
var FARM_SERVER_ONLY_ENTRIES = /* @__PURE__ */ new Set(["@farm.js/core/og"]);
|
|
1303
1327
|
var SERVER_ONLY_PACKAGE = "server-only";
|
|
1304
1328
|
var farmReactServerFiles = /* @__PURE__ */ new Set();
|
|
@@ -2322,10 +2346,8 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2322
2346
|
if (mdxComponents) files.add(mdxComponents);
|
|
2323
2347
|
return files;
|
|
2324
2348
|
};
|
|
2325
|
-
const
|
|
2326
|
-
|
|
2327
|
-
return config.experimental?.serverActions === true && resolveFarmServerComponentsMode(config.experimental?.serverComponents) === "islands";
|
|
2328
|
-
};
|
|
2349
|
+
const islxActionsMode = () => resolveFarmIslxActionsMode(farmApp?.getConfig() ?? options);
|
|
2350
|
+
const islandsServerFns = () => farmBrowserServerFnsEnabled(farmApp?.getConfig() ?? options);
|
|
2329
2351
|
let reactRefreshActive = false;
|
|
2330
2352
|
let server;
|
|
2331
2353
|
let deferredGates;
|
|
@@ -4833,7 +4855,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4833
4855
|
) : EMPTY_FARM_DOCS_SEARCH_CLIENT_RUNTIME;
|
|
4834
4856
|
const generatedDevtoolsClientRuntime = devtoolsClientRuntime ? devtoolsClientRuntime.generateFarmDevtoolsClientRuntime(devtools) : "";
|
|
4835
4857
|
const generatedDevIndicatorsClientRuntime = farmApp ? generateFarmDevIndicatorsClientRuntime(farmApp.getConfig().devIndicators) : "";
|
|
4836
|
-
const integrationProviders =
|
|
4858
|
+
const integrationProviders = getIntegrationProviders(integrations);
|
|
4837
4859
|
const isolatedHydrationMode = resolveFarmIsolatedClientHydrationMode(
|
|
4838
4860
|
resolvedConfig?.experimental?.isolatedClientHydration,
|
|
4839
4861
|
{
|
|
@@ -4979,7 +5001,8 @@ export { manifest };
|
|
|
4979
5001
|
code = serverFns.code;
|
|
4980
5002
|
}
|
|
4981
5003
|
}
|
|
4982
|
-
|
|
5004
|
+
const actionsMode = islxActionsMode();
|
|
5005
|
+
if (actionsMode !== null && code.includes("use server") && !id.includes("/node_modules/") && /\.[cm]?[jt]sx?(?:$|\?)/.test(id)) {
|
|
4983
5006
|
const file = id.split("?", 1)[0];
|
|
4984
5007
|
const actionModule = transformFarmFormActionModule({
|
|
4985
5008
|
code,
|
|
@@ -4988,7 +5011,8 @@ export { manifest };
|
|
|
4988
5011
|
ssr: transformOptions?.ssr === true,
|
|
4989
5012
|
// Parsed by file type: page components are TSX.
|
|
4990
5013
|
parse: (source) => parseSync(file, source).program,
|
|
4991
|
-
runtimeModule
|
|
5014
|
+
runtimeModule,
|
|
5015
|
+
runtime: actionsMode
|
|
4992
5016
|
});
|
|
4993
5017
|
if (actionModule) return { code: actionModule, map: null };
|
|
4994
5018
|
}
|
|
@@ -5596,7 +5620,8 @@ function generateProgrammaticClientRouteModuleForId(moduleId, root, renderer, cl
|
|
|
5596
5620
|
route: parsed.kind === "api" ? void 0 : clientRoutes?.routes.get(
|
|
5597
5621
|
programmaticClientRouteKey(routesFile, parsed.kind, parsed.routePath)
|
|
5598
5622
|
),
|
|
5599
|
-
|
|
5623
|
+
// React's client module exports no createElement; the main client entry imports React too.
|
|
5624
|
+
rendererClient: isReactRenderer(renderer) ? "react" : renderer.client,
|
|
5600
5625
|
toImportSpecifier: (file) => toProgrammaticRouteImportSpecifier(file, root)
|
|
5601
5626
|
});
|
|
5602
5627
|
}
|
|
@@ -6032,7 +6057,7 @@ import {
|
|
|
6032
6057
|
createFarmDeploymentRequestHeaders,
|
|
6033
6058
|
isFarmDeploymentMismatchResponse,
|
|
6034
6059
|
} from '@farm.js/core/deployment'
|
|
6035
|
-
${islandValues ? "import { getFarmIslandValueHeaders } from '@farm.js/core/internal/client-runtime'" : ""}
|
|
6060
|
+
${islandValues ? "import { getFarmIslandValueHeaders, keepFarmIslandValues } from '@farm.js/core/internal/client-runtime'" : ""}
|
|
6036
6061
|
${providerClientCode.imports}
|
|
6037
6062
|
${clientPluginEntry.imports}
|
|
6038
6063
|
|
|
@@ -7354,7 +7379,8 @@ async function fetchFarmNavigationDocument(path, context) {
|
|
|
7354
7379
|
Accept: 'text/html',
|
|
7355
7380
|
// A refresh arrives whole, like a transition: the islands it keeps are all in it.
|
|
7356
7381
|
...(context.prefetch || context.refresh ? {} : { 'F-Stream': 'flush' }),
|
|
7357
|
-
|
|
7382
|
+
// The swap keeps the values only the page holds (keepFarmIslandValues).
|
|
7383
|
+
...getFarmIslandValueHeaders(container),
|
|
7358
7384
|
// A prefetch names its layouts even when it keeps none: that marks it as a navigation,
|
|
7359
7385
|
// which the server answers without loading.tsx.
|
|
7360
7386
|
...(identities.length || context.prefetch ? { 'F-Layouts': JSON.stringify(identities) } : {}),
|
|
@@ -7594,6 +7620,7 @@ async function renderPage(pageData, info) {
|
|
|
7594
7620
|
);
|
|
7595
7621
|
} else {
|
|
7596
7622
|
${isolatedHydrationEnabled ? "let isolatedHydrationScope = container;" : ""}
|
|
7623
|
+
${islandValues ? "const keepValues = keepFarmIslandValues(container);" : ""}
|
|
7597
7624
|
// A route whose layouts hydrate renders them for its own root (inline client components,
|
|
7598
7625
|
// islands mode's layout trees), so the HTML of shared layouts is replaced too.
|
|
7599
7626
|
if (activeLayoutShouldHydrate || layoutShouldHydrate) {
|
|
@@ -7608,6 +7635,7 @@ async function renderPage(pageData, info) {
|
|
|
7608
7635
|
delete window.__FARM_REACT_ROOT__;
|
|
7609
7636
|
${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
7637
|
}
|
|
7638
|
+
${islandValues ? "keepValues();" : ""}
|
|
7611
7639
|
|
|
7612
7640
|
const hydrationController = new AbortController();
|
|
7613
7641
|
if (
|
|
@@ -7978,7 +8006,7 @@ async function defineConfig(config = {}) {
|
|
|
7978
8006
|
const tailwindVitePlugin = await loadTailwindVitePlugin();
|
|
7979
8007
|
const appRoot = path6.resolve(config.root || process.cwd());
|
|
7980
8008
|
if (config.extends?.length) {
|
|
7981
|
-
const { config: layeredConfig } = await import("./layers-
|
|
8009
|
+
const { config: layeredConfig } = await import("./layers-744BBUY5.mjs").then(
|
|
7982
8010
|
({ resolveFarmLayers }) => resolveFarmLayers(config, {
|
|
7983
8011
|
root: appRoot,
|
|
7984
8012
|
mode: process.env.NODE_ENV === "production" ? "production" : "development"
|
|
@@ -8126,6 +8154,7 @@ async function defineConfig(config = {}) {
|
|
|
8126
8154
|
viteBrowserExternalPlugin,
|
|
8127
8155
|
farmI18nClientBridgePlugin(),
|
|
8128
8156
|
farmServerOnlyEntriesPlugin({ distDir: config.distDir || ".farm" }),
|
|
8157
|
+
farmNavigationPlugin(config.renderer),
|
|
8129
8158
|
farmIslandContainersPlugin(config),
|
|
8130
8159
|
farmPlugin(config),
|
|
8131
8160
|
farmEnvironmentFunctionsPlugin(config),
|
|
@@ -8139,7 +8168,8 @@ async function defineConfig(config = {}) {
|
|
|
8139
8168
|
appRoot,
|
|
8140
8169
|
getFarmAppDirectories({ ...config, root: appRoot })
|
|
8141
8170
|
),
|
|
8142
|
-
config.renderer
|
|
8171
|
+
config.renderer,
|
|
8172
|
+
appRoot
|
|
8143
8173
|
),
|
|
8144
8174
|
// Pre-bundle every framework client-runtime entry with the renderer. Without
|
|
8145
8175
|
// this, Vite can discover a linked Farm entry after the page has loaded,
|
|
@@ -8202,6 +8232,7 @@ export {
|
|
|
8202
8232
|
isViteDevClientRequest,
|
|
8203
8233
|
farmImageImportsPlugin,
|
|
8204
8234
|
farmI18nClientBridgePlugin,
|
|
8235
|
+
farmNavigationPlugin,
|
|
8205
8236
|
farmIslandContainersPlugin,
|
|
8206
8237
|
farmServerOnlyEntriesPlugin,
|
|
8207
8238
|
withFarmRequestTracing,
|
|
@@ -1,6 +1,6 @@
|
|
|
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; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkNSLRK5DKcjs = require('./chunk-NSLRK5DK.cjs');
|
|
4
4
|
|
|
5
5
|
// src/deployment-environment.ts
|
|
6
6
|
function isFarmProductionDeploymentEnvironment(env = process.env) {
|
|
@@ -90,7 +90,7 @@ function createFarmProductionSiteReporter(options) {
|
|
|
90
90
|
schemaVersion: FARM_PRODUCTION_SITE_TELEMETRY_SCHEMA_VERSION,
|
|
91
91
|
eventType: FARM_PRODUCTION_SITE_ATTESTATION_EVENT_TYPE,
|
|
92
92
|
packageName: FARM_PRODUCTION_SITE_TELEMETRY_PACKAGE_NAME,
|
|
93
|
-
packageVersion: sanitizeDetail(
|
|
93
|
+
packageVersion: sanitizeDetail(_chunkNSLRK5DKcjs.FARM_VERSION, "unknown"),
|
|
94
94
|
renderer: sanitizeDetail(options.renderer, "custom"),
|
|
95
95
|
deployTarget: sanitizeDetail(options.deployTarget, "custom")
|
|
96
96
|
};
|