@farm.js/core 0.1.80 → 0.1.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-mcp.d-BPa5n0ld.d.ts → agent-mcp.d-C2Su3x4D.d.ts} +1 -1
- package/dist/{agent-mcp.d-DOP95Jxm.d.mts → agent-mcp.d-Yak-LqRd.d.mts} +1 -1
- package/dist/agent-runtime.cjs +4 -3
- package/dist/agent-runtime.d.mts +2 -1
- package/dist/agent-runtime.d.ts +2 -1
- package/dist/agent-runtime.mjs +3 -2
- package/dist/analyzer-LV23T6QN.cjs +17 -0
- package/dist/{analyzer-F7CWE5VA.mjs → analyzer-RPU2KG4J.mjs} +3 -2
- package/dist/api/client.cjs +1 -1
- package/dist/api/client.mjs +1 -1
- package/dist/api/client.native.cjs +1 -1
- package/dist/api/client.native.mjs +1 -1
- package/dist/api/node.cjs +6 -5
- package/dist/api/node.d.mts +4 -3
- package/dist/api/node.d.ts +4 -3
- package/dist/api/node.mjs +5 -4
- package/dist/api/route-manager.cjs +7 -6
- package/dist/api/route-manager.d.mts +4 -3
- package/dist/api/route-manager.d.ts +4 -3
- package/dist/api/route-manager.mjs +6 -5
- package/dist/api/runtime.cjs +5 -4
- package/dist/api/runtime.d.mts +3 -2
- package/dist/api/runtime.d.ts +3 -2
- package/dist/api/runtime.mjs +4 -3
- package/dist/api.cjs +9 -8
- package/dist/api.d.mts +5 -4
- package/dist/api.d.ts +5 -4
- package/dist/api.mjs +8 -7
- package/dist/{app-manifest.d-9UD6BznX.d.mts → app-manifest.d-BcyOFMrg.d.mts} +1 -1
- package/dist/{app-manifest.d-CO6Iu0Hx.d.ts → app-manifest.d-DZyXaICz.d.ts} +1 -1
- package/dist/app-markdown.cjs +3 -3
- package/dist/app-markdown.d.mts +5 -4
- package/dist/app-markdown.d.ts +5 -4
- package/dist/app-markdown.mjs +2 -2
- package/dist/{app.d-DXeRWZK7.d.mts → app.d-C0ePpuaG.d.mts} +30 -4
- package/dist/{app.d-DwX1ePhs.d.ts → app.d-CIoXsAbN.d.ts} +30 -4
- package/dist/{chunk-Q4TRGTO7.cjs → chunk-26WP75W5.cjs} +32 -16
- package/dist/{chunk-7KDCVSTR.mjs → chunk-2PFGA6PB.mjs} +2 -2
- package/dist/chunk-2UYYXSUS.mjs +401 -0
- package/dist/{chunk-PL7MCYYD.mjs → chunk-3AV4DCXY.mjs} +58 -358
- package/dist/{chunk-3GNHJ3RN.cjs → chunk-3BTN3NP7.cjs} +2 -2
- package/dist/chunk-3DE6RK7K.cjs +36 -0
- package/dist/{chunk-GBW5DU7V.mjs → chunk-47I2MYIR.mjs} +487 -304
- package/dist/{chunk-RQBGHHOQ.mjs → chunk-4X7LSGM6.mjs} +1 -1
- package/dist/{chunk-QMR2TUVZ.cjs → chunk-52Q4OB4A.cjs} +4 -4
- package/dist/{chunk-BPWTSPK6.mjs → chunk-5AL2GXAU.mjs} +1 -1
- package/dist/{chunk-GAWSWJJ2.cjs → chunk-5GFTMTX3.cjs} +2 -2
- package/dist/chunk-5MMKNW7Q.cjs +54 -0
- package/dist/{chunk-AXA2BSX3.cjs → chunk-5MUFW5UU.cjs} +22 -21
- package/dist/{chunk-MQOHYV6L.cjs → chunk-5P65LXGU.cjs} +11 -11
- package/dist/{chunk-KEU55O2D.mjs → chunk-63ZE6B6M.mjs} +7 -6
- package/dist/{chunk-TS3ZHJN5.cjs → chunk-6BPFIYGY.cjs} +3 -3
- package/dist/{chunk-NJ4OASLP.mjs → chunk-6QYPP5KC.mjs} +2 -2
- package/dist/{chunk-ATISIC6G.mjs → chunk-7VJXYB6S.mjs} +7 -1
- package/dist/{chunk-G4SZC2WH.cjs → chunk-AIPZDBP6.cjs} +557 -374
- package/dist/{chunk-X4TSMQWF.cjs → chunk-ARORZ3MH.cjs} +548 -397
- package/dist/{chunk-K3XKEZR6.mjs → chunk-AUFEM3FB.mjs} +1 -1
- package/dist/{chunk-MGKWYPE3.mjs → chunk-AYDVUCXD.mjs} +1 -0
- package/dist/{chunk-5OAN7BG5.cjs → chunk-B2PGVHBG.cjs} +4 -4
- package/dist/{chunk-WGWWRV2M.cjs → chunk-B3HQTGXS.cjs} +6 -4
- package/dist/chunk-B7L24VPX.cjs +401 -0
- package/dist/{chunk-5VDJEKGK.cjs → chunk-BBVLOEND.cjs} +1 -1
- package/dist/{chunk-XF7MJSUS.mjs → chunk-BCQIXH7L.mjs} +1 -1
- package/dist/{chunk-67MZTLTF.cjs → chunk-BCTHOQPP.cjs} +37 -9
- package/dist/{chunk-GBESKA76.cjs → chunk-BSX5OGSD.cjs} +1 -1
- package/dist/{chunk-CNDBLUKI.mjs → chunk-BVJUFVCU.mjs} +1 -1
- package/dist/{chunk-QHAISITM.mjs → chunk-C3VCYOU4.mjs} +1 -1
- package/dist/chunk-C5QHZ626.cjs +85 -0
- package/dist/{chunk-3K2E55BJ.mjs → chunk-CA2HBLXP.mjs} +13 -3
- package/dist/{chunk-ANZLZNNX.cjs → chunk-CD5Z7RR5.cjs} +155 -20
- package/dist/{chunk-4MIDUSIX.mjs → chunk-CJDBTTLB.mjs} +17 -17
- package/dist/{chunk-RLCOWWE5.cjs → chunk-CN2JOTRO.cjs} +7 -7
- package/dist/chunk-D2VAANBS.mjs +48 -0
- package/dist/{chunk-XZBBKZGW.mjs → chunk-DAXU2NBE.mjs} +128 -41
- package/dist/{chunk-4H4ZXUNB.cjs → chunk-DJ3PVHTW.cjs} +3 -3
- package/dist/{chunk-Z5BANEQD.cjs → chunk-DMSXZNQR.cjs} +2 -2
- package/dist/{chunk-ZVSQN7NC.cjs → chunk-DRO3NXA3.cjs} +40 -43
- package/dist/{chunk-4OFWG4IK.cjs → chunk-EACD6ND7.cjs} +8 -2
- package/dist/{chunk-Q4YEAWUK.mjs → chunk-ECVSRE4Y.mjs} +3 -2
- package/dist/{chunk-MDEFTF63.mjs → chunk-EL2Z6YFZ.mjs} +25 -28
- package/dist/chunk-EZYKV24V.mjs +385 -0
- package/dist/{chunk-TVCFY3KK.cjs → chunk-FB4CWSC2.cjs} +12 -12
- package/dist/{chunk-IYFBLWXU.cjs → chunk-FULX5RYX.cjs} +61 -361
- package/dist/{chunk-V73Y4UBL.mjs → chunk-GXLNARPO.mjs} +151 -16
- package/dist/{chunk-ZPEZXQTM.cjs → chunk-HHQEKLZL.cjs} +2 -2
- package/dist/{chunk-HNUBRUFQ.cjs → chunk-HQEYZSF3.cjs} +4 -3
- package/dist/{chunk-5ZHC6QGD.cjs → chunk-HQKCSJEH.cjs} +8 -2
- package/dist/{chunk-RHI67C2V.cjs → chunk-HUGPJFOC.cjs} +1 -35
- package/dist/{chunk-44G4XHEL.mjs → chunk-I4DR3HCH.mjs} +11 -11
- package/dist/chunk-I4WZRG73.mjs +54 -0
- package/dist/{chunk-MUZHULW2.mjs → chunk-ICOJ2BC6.mjs} +23 -7
- package/dist/{chunk-MNIR7I7B.mjs → chunk-INKVDO42.mjs} +1 -1
- package/dist/{chunk-C2OLXVUC.mjs → chunk-IVP5Q4BX.mjs} +10 -3
- package/dist/{chunk-HEDGTXXB.cjs → chunk-JB4BHRFK.cjs} +17 -17
- package/dist/{chunk-XKUKWMGX.cjs → chunk-JCYDWJVO.cjs} +3 -3
- package/dist/{chunk-CCMP4JD2.cjs → chunk-JK26IMT7.cjs} +1 -1
- package/dist/{chunk-WIZRYFB2.cjs → chunk-JYQ6DGPW.cjs} +8 -6
- package/dist/{chunk-SVCUSOEF.mjs → chunk-KR5DF7WK.mjs} +1 -1
- package/dist/{chunk-TYHWZOA2.mjs → chunk-KWI3SQFX.mjs} +4 -2
- package/dist/{chunk-POVHO46S.mjs → chunk-L3RDECA5.mjs} +1 -1
- package/dist/{chunk-LVGB5PYK.cjs → chunk-LM2ZDNDD.cjs} +28 -28
- package/dist/{chunk-COTFX4GT.mjs → chunk-LTOT5KVJ.mjs} +1 -1
- package/dist/{chunk-RPA45OQS.mjs → chunk-MO4UTDQ6.mjs} +1 -1
- package/dist/{chunk-DVHFIETW.cjs → chunk-N2EFMN2K.cjs} +18 -18
- package/dist/{chunk-MZ5QGWRW.mjs → chunk-N3VMHPIY.mjs} +2 -2
- package/dist/{chunk-KKVRWNDH.mjs → chunk-NAHDG6UX.mjs} +4 -4
- package/dist/{chunk-UWOCYINY.cjs → chunk-NEKO3HM2.cjs} +12 -2
- package/dist/{chunk-SLEHAGGV.mjs → chunk-NQ3Y6E2T.mjs} +7 -1
- package/dist/{chunk-ZDYYZX73.mjs → chunk-NRCKBDYP.mjs} +266 -115
- package/dist/{chunk-EG5YBYHO.mjs → chunk-OMB7UGVW.mjs} +1 -1
- package/dist/{chunk-JGEN2FIT.mjs → chunk-OP5VI4TP.mjs} +1 -1
- package/dist/{chunk-7VCLTNED.mjs → chunk-PNMAD3OS.mjs} +1 -35
- package/dist/{chunk-3XTRT3MB.mjs → chunk-PO5MZIWK.mjs} +1 -1
- package/dist/{chunk-ASYOWPSR.cjs → chunk-PWDBWXQI.cjs} +2 -1
- package/dist/{chunk-WJ2O2MPP.cjs → chunk-Q2VOT3K2.cjs} +494 -407
- package/dist/{chunk-7YLDUB4R.cjs → chunk-QCKSYYXK.cjs} +7 -7
- package/dist/{chunk-57QAQU4F.mjs → chunk-QRNYSISP.mjs} +1 -1
- package/dist/{chunk-3JQBQG7K.mjs → chunk-QSMUMK7Y.mjs} +2 -2
- package/dist/{chunk-PRL7FXG4.cjs → chunk-RDNKQ5MK.cjs} +12 -13
- package/dist/{chunk-GCRT6GJG.mjs → chunk-RMLR5RMH.mjs} +30 -2
- package/dist/{chunk-XY5OZQF6.cjs → chunk-RMPUEH5T.cjs} +2 -2
- package/dist/{chunk-7DD5TNPS.cjs → chunk-S7WZUK3B.cjs} +2 -2
- package/dist/{chunk-EGHPFXPZ.cjs → chunk-SAPG45RA.cjs} +23 -23
- package/dist/{chunk-Z4SMFUZ7.cjs → chunk-U54REWMJ.cjs} +23 -23
- package/dist/chunk-U6XYBTUT.mjs +36 -0
- package/dist/chunk-UDMBUTJD.mjs +85 -0
- package/dist/{chunk-WHEQJN4G.cjs → chunk-UGD53SNO.cjs} +2 -2
- package/dist/{chunk-TCMRLW3K.cjs → chunk-VACYUMXW.cjs} +10 -3
- package/dist/{chunk-SDICLSQU.cjs → chunk-VMBIKDKW.cjs} +10 -10
- package/dist/{chunk-WBPVLCNE.mjs → chunk-VPGEYX5Y.mjs} +4 -4
- package/dist/chunk-VS7HLH4S.cjs +385 -0
- package/dist/{chunk-UGLTOLTJ.cjs → chunk-W76C7TCW.cjs} +2 -2
- package/dist/chunk-WMRGIQTA.cjs +48 -0
- package/dist/{chunk-52LTENRE.cjs → chunk-WOAXQ5MZ.cjs} +9 -9
- package/dist/{chunk-C6HGUTXB.mjs → chunk-XBSIGZ4J.mjs} +2 -3
- package/dist/{chunk-6JWXHPVR.mjs → chunk-XRSNW4IU.mjs} +4 -2
- package/dist/{chunk-2RRTOKRZ.mjs → chunk-YHM4PXJY.mjs} +1 -1
- package/dist/{chunk-A5D3UMLJ.mjs → chunk-YSU3WCW6.mjs} +1 -1
- package/dist/{chunk-4STJ6LGR.mjs → chunk-Z3RM3VA2.mjs} +1 -1
- package/dist/{chunk-YN3YMSKD.mjs → chunk-ZIZRIZLP.mjs} +3 -3
- package/dist/{cli-runtime.d-DPNTN-JV.d.mts → cli-runtime.d-Hnvvadz7.d.mts} +5 -5
- package/dist/{cli-runtime.d-8BhZy_wr.d.ts → cli-runtime.d-I0MphTbc.d.ts} +5 -5
- package/dist/{client-component.d-CkDcob6D.d.ts → client-component.d-5QEvtJsg.d.ts} +1 -1
- package/dist/{client-component.d-CMCdyAr8.d.mts → client-component.d-DapRqtSC.d.mts} +1 -1
- package/dist/{client-plugins.d-WcMwOZGZ.d.mts → client-plugins.d-C1WM3ieD.d.mts} +7 -13
- package/dist/{client-plugins.d-BYIovYqX.d.ts → client-plugins.d-DcmDzcSC.d.ts} +7 -13
- package/dist/client-plugins.d.mts +2 -1
- package/dist/client-plugins.d.ts +2 -1
- package/dist/client.cjs +9 -8
- package/dist/client.d.mts +20 -151
- package/dist/client.d.ts +20 -151
- package/dist/client.mjs +8 -7
- package/dist/config.d.mts +2 -1
- package/dist/config.d.ts +2 -1
- package/dist/cron.cjs +2 -2
- package/dist/cron.mjs +1 -1
- package/dist/desktop.d.mts +3 -2
- package/dist/desktop.d.ts +3 -2
- package/dist/{devtools-JJOYTIMS.cjs → devtools-5B7NZE6F.cjs} +15 -14
- package/dist/{devtools-F3FDFV26.mjs → devtools-C5GXZZ7E.mjs} +12 -11
- package/dist/docs.cjs +14 -13
- package/dist/docs.d.mts +4 -3
- package/dist/docs.d.ts +4 -3
- package/dist/docs.mjs +13 -12
- package/dist/environment/vite.cjs +7 -6
- package/dist/environment/vite.mjs +6 -5
- package/dist/{handler.d-s3IM6pbJ.d.mts → handler.d-B8bPCBzl.d.mts} +1 -1
- package/dist/{handler.d-BwdOyc9x.d.ts → handler.d-Cliwo6Nu.d.ts} +1 -1
- package/dist/{headers.d-BR-OXrqQ.d.mts → headers.d-CVwSpSGX.d.mts} +1 -1
- package/dist/{headers.d-CAW4wPey.d.ts → headers.d-C_btqjV6.d.ts} +1 -1
- package/dist/index.cjs +68 -65
- package/dist/{index.d-BEVK61zS.d.mts → index.d-DFuMZk9-.d.mts} +1 -1
- package/dist/{index.d-ah2c89Wu.d.ts → index.d-hOEbMcLk.d.ts} +1 -1
- package/dist/index.d.mts +25 -23
- package/dist/index.d.ts +25 -23
- package/dist/index.mjs +72 -69
- package/dist/instrumentation.cjs +3 -3
- package/dist/instrumentation.mjs +2 -2
- package/dist/integrations/orm.d.mts +2 -1
- package/dist/integrations/orm.d.ts +2 -1
- package/dist/integrations.cjs +4 -3
- package/dist/integrations.d.mts +2 -1
- package/dist/integrations.d.ts +2 -1
- package/dist/integrations.mjs +3 -2
- package/dist/internal/app-markdown-runtime.cjs +2 -2
- package/dist/internal/app-markdown-runtime.d.mts +12 -5
- package/dist/internal/app-markdown-runtime.d.ts +12 -5
- package/dist/internal/app-markdown-runtime.mjs +1 -1
- package/dist/internal/build-runtime.cjs +49 -47
- package/dist/internal/build-runtime.d.mts +5 -4
- package/dist/internal/build-runtime.d.ts +5 -4
- package/dist/internal/build-runtime.mjs +48 -46
- package/dist/internal/cli-runtime.cjs +25 -24
- package/dist/internal/cli-runtime.d.mts +8 -7
- package/dist/internal/cli-runtime.d.ts +8 -7
- package/dist/internal/cli-runtime.mjs +26 -25
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +76 -15
- package/dist/internal/client-runtime.d.mts +18 -7
- package/dist/internal/client-runtime.d.ts +18 -7
- package/dist/internal/client-runtime.mjs +67 -6
- package/dist/internal/compression-runtime.d.mts +2 -1
- package/dist/internal/compression-runtime.d.ts +2 -1
- package/dist/internal/config-runtime.cjs +14 -13
- package/dist/internal/config-runtime.d.mts +4 -3
- package/dist/internal/config-runtime.d.ts +4 -3
- package/dist/internal/config-runtime.mjs +13 -12
- package/dist/internal/docs-precompiled-runtime.cjs +1 -1
- package/dist/internal/docs-precompiled-runtime.mjs +1 -1
- package/dist/internal/form-actions.cjs +3 -3
- package/dist/internal/form-actions.mjs +2 -2
- package/dist/internal/infra-analytics-runtime.cjs +9 -7
- package/dist/internal/infra-analytics-runtime.d.mts +8 -2
- package/dist/internal/infra-analytics-runtime.d.ts +8 -2
- package/dist/internal/infra-analytics-runtime.mjs +9 -7
- package/dist/internal/island-codec.cjs +3 -3
- package/dist/internal/island-codec.mjs +2 -2
- package/dist/internal/island-value-store.d.mts +1 -1
- package/dist/internal/island-value-store.d.ts +1 -1
- package/dist/internal/islands-boot.cjs +63 -23
- package/dist/internal/islands-boot.d.mts +5 -3
- package/dist/internal/islands-boot.d.ts +5 -3
- package/dist/internal/islands-boot.mjs +58 -18
- package/dist/internal/islands-runtime.cjs +10 -56
- package/dist/internal/islands-runtime.mjs +6 -52
- package/dist/internal/islands-server.cjs +4 -4
- package/dist/internal/islands-server.mjs +3 -3
- package/dist/internal/islx-actions-client.cjs +36 -0
- package/dist/internal/islx-actions-client.d.mts +13 -0
- package/dist/internal/islx-actions-client.d.ts +13 -0
- package/dist/internal/islx-actions-client.mjs +36 -0
- package/dist/internal/islx-actions-server.cjs +8 -0
- package/dist/internal/islx-actions-server.d.mts +6 -0
- package/dist/internal/islx-actions-server.d.ts +6 -0
- package/dist/internal/islx-actions-server.mjs +8 -0
- package/dist/internal/islx-client.d.mts +0 -4
- package/dist/internal/islx-client.d.ts +0 -4
- package/dist/internal/isolated-boundary.cjs +3 -3
- package/dist/internal/isolated-boundary.d.mts +1 -1
- package/dist/internal/isolated-boundary.d.ts +1 -1
- package/dist/internal/isolated-boundary.mjs +2 -2
- package/dist/internal/metadata-image-runtime.cjs +4 -2
- package/dist/internal/metadata-image-runtime.d.mts +18 -2
- package/dist/internal/metadata-image-runtime.d.ts +18 -2
- package/dist/internal/metadata-image-runtime.mjs +5 -3
- package/dist/internal/native-server-fns.cjs +5 -4
- package/dist/internal/native-server-fns.mjs +4 -3
- package/dist/internal/navigation-neutral.cjs +36 -0
- package/dist/internal/navigation-neutral.d.mts +14 -0
- package/dist/internal/navigation-neutral.d.ts +14 -0
- package/dist/internal/navigation-neutral.mjs +36 -0
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +30 -25
- package/dist/internal/production-runtime.d.mts +14 -11
- package/dist/internal/production-runtime.d.ts +14 -11
- package/dist/internal/production-runtime.mjs +35 -30
- package/dist/internal/server-tree.cjs +5 -4
- package/dist/internal/server-tree.d.mts +3 -4
- package/dist/internal/server-tree.d.ts +3 -4
- package/dist/internal/server-tree.mjs +4 -3
- package/dist/internal/spa-router.cjs +3 -3
- package/dist/internal/spa-router.d.mts +4 -3
- package/dist/internal/spa-router.d.ts +4 -3
- package/dist/internal/spa-router.mjs +2 -2
- package/dist/internal/start-manifest.d.mts +2 -1
- package/dist/internal/start-manifest.d.ts +2 -1
- package/dist/internal/vercel-edge-middleware.cjs +1 -1
- package/dist/internal/vercel-edge-middleware.mjs +1 -1
- package/dist/island-value-protocol.d-fEoc1m8e.d.mts +27 -0
- package/dist/island-value-protocol.d-fEoc1m8e.d.ts +27 -0
- package/dist/{layers-5ZD4764G.mjs → layers-744BBUY5.mjs} +2 -2
- package/dist/layers-XLOMMQP7.cjs +21 -0
- package/dist/markdown.d.mts +2 -1
- package/dist/markdown.d.ts +2 -1
- package/dist/middleware.cjs +5 -5
- package/dist/middleware.d.mts +2 -1
- package/dist/middleware.d.ts +2 -1
- package/dist/middleware.mjs +4 -4
- package/dist/{mount.d-DcoPFqv5.d.ts → mount.d-CAovYKfs.d.ts} +1 -1
- package/dist/{mount.d-Ylo-CmzK.d.mts → mount.d-DLeYxeRR.d.mts} +1 -1
- package/dist/{native-server-fn-handler-TNVFEQW3.cjs → native-server-fn-handler-57TCQPSM.cjs} +4 -4
- package/dist/{native-server-fn-handler-OXFTI6V5.mjs → native-server-fn-handler-PYK65A46.mjs} +3 -3
- package/dist/{navigation-delegate.d-2MK4YSlL.d.ts → navigation-delegate.d-BLM-8Q3Z.d.ts} +1 -1
- package/dist/{navigation-delegate.d-BA5h0fbE.d.mts → navigation-delegate.d-Chv93QS6.d.mts} +1 -1
- package/dist/navigation-errors.d-DwHtoMyR.d.mts +13 -0
- package/dist/navigation-errors.d-DwHtoMyR.d.ts +13 -0
- package/dist/navigation.cjs +6 -6
- package/dist/navigation.d.mts +7 -6
- package/dist/navigation.d.ts +7 -6
- package/dist/navigation.mjs +5 -5
- package/dist/{nitro-C3MYDX7V.mjs → nitro-FK3SZM4H.mjs} +2 -2
- package/dist/{nitro-6UOJXJZ6.cjs → nitro-YDFMH5PY.cjs} +6 -6
- package/dist/node-module-bundle-TNSY5PAC.cjs +15 -0
- package/dist/{node-module-bundle-XPLBMXRD.mjs → node-module-bundle-ZWCQJCKA.mjs} +3 -1
- package/dist/{plugin-LN3JBZRR.cjs → plugin-3PT7I26P.cjs} +2 -2
- package/dist/{plugin-33I3V42N.mjs → plugin-QOTAPTVV.mjs} +1 -1
- package/dist/plugin.cjs +41 -37
- package/dist/plugin.d.mts +6 -5
- package/dist/plugin.d.ts +6 -5
- package/dist/plugin.mjs +40 -36
- package/dist/query/client.cjs +10 -10
- package/dist/query/client.mjs +5 -5
- package/dist/{render-plan.d-2o-AG-ot.d.ts → render-plan.d-BSTjTH8h.d.ts} +1 -1
- package/dist/{render-plan.d-ChYBMhLu.d.mts → render-plan.d-CK5Lggyb.d.mts} +1 -1
- package/dist/renderer/none/server.cjs +5 -1
- package/dist/renderer/none/server.d.mts +3 -1
- package/dist/renderer/none/server.d.ts +3 -1
- package/dist/renderer/none/server.mjs +4 -0
- package/dist/renderer/react/server.cjs +6 -6
- package/dist/renderer/react/server.mjs +3 -3
- package/dist/renderer-client.cjs +79 -17
- package/dist/renderer-client.d.mts +13 -97
- package/dist/renderer-client.d.ts +13 -97
- package/dist/renderer-client.mjs +69 -7
- package/dist/renderer.cjs +4 -2
- package/dist/renderer.d.mts +43 -5
- package/dist/renderer.d.ts +43 -5
- package/dist/renderer.mjs +3 -1
- package/dist/{request.d-RCnCBuWq.d.mts → request.d-BhggxQf3.d.mts} +1 -1
- package/dist/{request.d-CE0FIkiM.d.ts → request.d-CyJS9bjm.d.ts} +1 -1
- package/dist/request.d.mts +3 -2
- package/dist/request.d.ts +3 -2
- package/dist/{route-rendering.d-BTPOM2nU.d.ts → route-rendering.d-BLPPmI5I.d.ts} +1 -1
- package/dist/{route-rendering.d-BZJnfKsp.d.mts → route-rendering.d-CUpG2mZJ.d.mts} +1 -1
- package/dist/{router.d-BU_WE6Ol.d.ts → router.d-0X2Ki6rf.d.ts} +1 -1
- package/dist/{router.d-D8Vvwl4i.d.mts → router.d-2NQM1Kgw.d.mts} +1 -1
- package/dist/routes.cjs +1 -1
- package/dist/routes.d.mts +2 -1
- package/dist/routes.d.ts +2 -1
- package/dist/routes.mjs +1 -1
- package/dist/{rsc-pipeline-A3R4U26C.cjs → rsc-pipeline-5AOF64FL.cjs} +19 -18
- package/dist/{rsc-pipeline-JZWVSHOR.mjs → rsc-pipeline-DNRLYOJ7.mjs} +18 -17
- package/dist/{runtime-SQFRHRGJ.mjs → runtime-EHG2FRXZ.mjs} +18 -17
- package/dist/{runtime-WZ3CHHGJ.cjs → runtime-ZVHG5SRB.cjs} +20 -19
- package/dist/{runtime.d-DJ6IIKcF.d.ts → runtime.d-CXuwkUgr.d.ts} +1 -1
- package/dist/{runtime.d-BnmuOXVD.d.mts → runtime.d-CaFXcu_Q.d.mts} +1 -1
- package/dist/server-action-security.cjs +1 -1
- package/dist/server-action-security.mjs +1 -1
- package/dist/{server-components-status.d-BeqSXcjM.d.ts → server-components-status.d-BdeFD8ZH.d.ts} +1 -1
- package/dist/{server-components-status.d-BzOg9M8g.d.mts → server-components-status.d-Cp7zvBm5.d.mts} +1 -1
- package/dist/server-fn.cjs +3 -3
- package/dist/server-fn.mjs +2 -2
- package/dist/server-plugins.cjs +1 -1
- package/dist/server-plugins.d.mts +4 -3
- package/dist/server-plugins.d.ts +4 -3
- package/dist/server-plugins.mjs +1 -1
- package/dist/server-query.cjs +4 -4
- package/dist/server-query.mjs +3 -3
- package/dist/server.cjs +82 -71
- package/dist/server.d.mts +12 -11
- package/dist/server.d.ts +12 -11
- package/dist/server.mjs +61 -50
- package/dist/{spa-router.d-BOwuVkMl.d.ts → spa-router.d-Bjgl-Osi.d.ts} +3 -3
- package/dist/{spa-router.d-CDpftSsk.d.mts → spa-router.d-l3G38xHa.d.mts} +3 -3
- package/dist/{ssg.d-BTVqyq8T.d.ts → ssg.d-DDca17Lc.d.ts} +2 -2
- package/dist/{ssg.d-Bx_WFuwg.d.mts → ssg.d-RnlHOqUL.d.mts} +2 -2
- package/dist/store-core.d-BZjuC6Zc.d.mts +309 -0
- package/dist/store-core.d-BaOUOPf7.d.ts +309 -0
- package/dist/testing.cjs +7 -6
- package/dist/testing.d.mts +2 -1
- package/dist/testing.d.ts +2 -1
- package/dist/testing.mjs +6 -5
- package/dist/{utils.d-_dvevm5s.d.ts → utils.d-D8TWmpWo.d.ts} +1 -1
- package/dist/{utils.d-JkrpS-NJ.d.mts → utils.d-tdzw0_zQ.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +43 -37
- package/dist/vite.d.mts +18 -7
- package/dist/vite.d.ts +18 -7
- package/dist/vite.mjs +42 -36
- package/dist/workflows.cjs +2 -2
- package/dist/workflows.mjs +1 -1
- package/package.json +17 -2
- package/dist/analyzer-I7RBBQ65.cjs +0 -16
- package/dist/chunk-CQL5ZGFU.cjs +0 -50
- package/dist/chunk-HONTCUK6.mjs +0 -203
- package/dist/chunk-K6PGK7DC.cjs +0 -203
- package/dist/chunk-NBIVGHAT.mjs +0 -50
- package/dist/island-value-protocol.d-BRayRghM.d.mts +0 -12
- package/dist/island-value-protocol.d-BRayRghM.d.ts +0 -12
- package/dist/layers-HMEGUEXM.cjs +0 -21
- package/dist/node-module-bundle-M6BISE2P.cjs +0 -13
- package/dist/{chunk-EY7ED5UW.mjs → chunk-3RVLJTFZ.mjs} +3 -3
- package/dist/{chunk-UJPE75GF.mjs → chunk-J2VUPCCR.mjs} +3 -3
- package/dist/{chunk-PBJ7MEOV.cjs → chunk-OZUINP2P.cjs} +2 -2
- package/dist/{chunk-7FQFK3OA.mjs → chunk-V7HNYR76.mjs} +3 -3
- package/dist/{chunk-2FK47RRZ.cjs → chunk-VGHDPEPQ.cjs} +2 -2
- package/dist/{chunk-CGIVCGH5.cjs → chunk-XOFJUSWC.cjs} +2 -2
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkW53Z4WDIcjs = require('./chunk-W53Z4WDI.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkRMPUEH5Tcjs = require('./chunk-RMPUEH5T.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkBTVDYS4Bcjs = require('./chunk-BTVDYS4B.cjs');
|
|
@@ -29,7 +29,7 @@ var _chunk2OF5RPVUcjs = require('./chunk-2OF5RPVU.cjs');
|
|
|
29
29
|
var _chunk7Q7UB4TLcjs = require('./chunk-7Q7UB4TL.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkJK26IMT7cjs = require('./chunk-JK26IMT7.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
|
|
@@ -288,7 +288,7 @@ function createFarmAppManifest(input, registered = []) {
|
|
|
288
288
|
return {
|
|
289
289
|
schemaVersion: 1,
|
|
290
290
|
app: app ? {
|
|
291
|
-
...app.version ? { farm:
|
|
291
|
+
...app.version ? { farm: _chunkJK26IMT7cjs.FARM_VERSION } : {},
|
|
292
292
|
...app.renderer ? { renderer: input.renderer } : {},
|
|
293
293
|
basePath: input.basePath,
|
|
294
294
|
...app.build ? { build: input.build } : {}
|
|
@@ -319,7 +319,7 @@ function resolveFarmSiteUrl() {
|
|
|
319
319
|
asUrl(read("RAILWAY_PUBLIC_DOMAIN"))
|
|
320
320
|
];
|
|
321
321
|
for (const candidate of candidates) {
|
|
322
|
-
const origin = candidate ?
|
|
322
|
+
const origin = candidate ? _chunkRMPUEH5Tcjs.normalizeFarmProductionSiteOrigin.call(void 0, candidate) : void 0;
|
|
323
323
|
if (origin) return origin;
|
|
324
324
|
}
|
|
325
325
|
return null;
|
|
@@ -15,9 +15,11 @@ var _chunkUUQNJDGHcjs = require('./chunk-UUQNJDGH.cjs');
|
|
|
15
15
|
var _chunk5DX3O6TTcjs = require('./chunk-5DX3O6TT.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
+
var _chunk3DE6RK7Kcjs = require('./chunk-3DE6RK7K.cjs');
|
|
18
19
|
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
|
|
22
|
+
var _chunkHUGPJFOCcjs = require('./chunk-HUGPJFOC.cjs');
|
|
21
23
|
|
|
22
24
|
|
|
23
25
|
|
|
@@ -1181,7 +1183,7 @@ async function validateIntegrationRouteInput(route, request, url) {
|
|
|
1181
1183
|
}
|
|
1182
1184
|
const bodyFormat = getIntegrationRouteBodyFormat(route);
|
|
1183
1185
|
if (schemas.body && bodyFormat === "json" && request.method !== "GET" && request.method !== "HEAD") {
|
|
1184
|
-
const rejection =
|
|
1186
|
+
const rejection = _chunkHUGPJFOCcjs.rejectCrossSiteNonJSONBody.call(void 0, request, CROSS_SITE_JSON_ROUTE_BODY_MESSAGE);
|
|
1185
1187
|
if (rejection) return { success: false, response: rejection };
|
|
1186
1188
|
}
|
|
1187
1189
|
const input = {};
|
|
@@ -1291,7 +1293,7 @@ function createIntegrationValidationResponse(issues) {
|
|
|
1291
1293
|
}
|
|
1292
1294
|
function normalizeIntegrationValidationIssues(source, error) {
|
|
1293
1295
|
if (Array.isArray(error.issues) && error.issues.length > 0) {
|
|
1294
|
-
return
|
|
1296
|
+
return _chunk3DE6RK7Kcjs.toPublicValidationIssues.call(void 0, error).map((issue) => ({ source, ...issue }));
|
|
1295
1297
|
}
|
|
1296
1298
|
return [
|
|
1297
1299
|
{
|
|
@@ -1336,7 +1338,7 @@ async function readIntegrationValidationBody(request, format) {
|
|
|
1336
1338
|
data: void 0
|
|
1337
1339
|
};
|
|
1338
1340
|
}
|
|
1339
|
-
if (!_optionalChain([request, 'access', _19 => _19.headers, 'access', _20 => _20.get, 'call', _21 => _21("content-type"), 'optionalAccess', _22 => _22.trim, 'call', _23 => _23()]) && !
|
|
1341
|
+
if (!_optionalChain([request, 'access', _19 => _19.headers, 'access', _20 => _20.get, 'call', _21 => _21("content-type"), 'optionalAccess', _22 => _22.trim, 'call', _23 => _23()]) && !_chunkHUGPJFOCcjs.validateIntegrationRequestOrigin.call(void 0, request, { requireOriginMetadata: false }).ok) {
|
|
1340
1342
|
return {
|
|
1341
1343
|
success: true,
|
|
1342
1344
|
data: void 0
|
|
@@ -0,0 +1,401 @@
|
|
|
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
|
+
|
|
3
|
+
var _chunkRK3YYUX6cjs = require('./chunk-RK3YYUX6.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkO4JYMU5Ncjs = require('./chunk-O4JYMU5N.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
var _chunk2PJVEL56cjs = require('./chunk-2PJVEL56.cjs');
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
var _chunkWKVYF2B5cjs = require('./chunk-WKVYF2B5.cjs');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
var _chunkDVJM55D2cjs = require('./chunk-DVJM55D2.cjs');
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
var _chunk3BIASUGRcjs = require('./chunk-3BIASUGR.cjs');
|
|
25
|
+
|
|
26
|
+
// src/store-core.ts
|
|
27
|
+
var RESERVED_STORE_KEYS = /* @__PURE__ */ new Set([
|
|
28
|
+
"use",
|
|
29
|
+
"get",
|
|
30
|
+
"getSnapshot",
|
|
31
|
+
"set",
|
|
32
|
+
"replace",
|
|
33
|
+
"reset",
|
|
34
|
+
"subscribe"
|
|
35
|
+
]);
|
|
36
|
+
function cloneState(state) {
|
|
37
|
+
return { ...state };
|
|
38
|
+
}
|
|
39
|
+
function pickStoreState(state, keys) {
|
|
40
|
+
const slice = {};
|
|
41
|
+
for (const key of keys) {
|
|
42
|
+
slice[key] = state[key];
|
|
43
|
+
}
|
|
44
|
+
return slice;
|
|
45
|
+
}
|
|
46
|
+
function getEnumerableKeys(state) {
|
|
47
|
+
return Reflect.ownKeys(state).filter(
|
|
48
|
+
(key) => Object.prototype.propertyIsEnumerable.call(state, key)
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
function getChangedKeys(state, previousState) {
|
|
52
|
+
const keys = /* @__PURE__ */ new Set([...getEnumerableKeys(state), ...getEnumerableKeys(previousState)]);
|
|
53
|
+
return [...keys].filter((key) => !Object.is(state[key], previousState[key]));
|
|
54
|
+
}
|
|
55
|
+
function normalizeStoreKeys(keys) {
|
|
56
|
+
return Array.from(new Set(keys));
|
|
57
|
+
}
|
|
58
|
+
function resolveValue(value, previousValue) {
|
|
59
|
+
return typeof value === "function" ? value(previousValue) : value;
|
|
60
|
+
}
|
|
61
|
+
function isStoreKey(value) {
|
|
62
|
+
return typeof value === "string" || typeof value === "number" || typeof value === "symbol";
|
|
63
|
+
}
|
|
64
|
+
function createStoreInstance(initialState, extend, bindUse) {
|
|
65
|
+
const initialSnapshot = cloneState(initialState);
|
|
66
|
+
let state = cloneState(initialState);
|
|
67
|
+
const subscriptions = /* @__PURE__ */ new Set();
|
|
68
|
+
const addSubscription = (keys, notify) => {
|
|
69
|
+
const subscription = {
|
|
70
|
+
// Object property enumeration returns numeric keys as strings.
|
|
71
|
+
keys: _nullishCoalesce(_optionalChain([keys, 'optionalAccess', _ => _.map, 'call', _2 => _2((key) => typeof key === "number" ? String(key) : key)]), () => ( null)),
|
|
72
|
+
notify
|
|
73
|
+
};
|
|
74
|
+
subscriptions.add(subscription);
|
|
75
|
+
return () => {
|
|
76
|
+
subscriptions.delete(subscription);
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
const emit = (nextState, previousState) => {
|
|
80
|
+
const changedKeys = getChangedKeys(nextState, previousState);
|
|
81
|
+
if (changedKeys.length === 0) {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
const changedKeySet = new Set(changedKeys);
|
|
85
|
+
for (const subscription of subscriptions) {
|
|
86
|
+
if (subscription.keys === null || subscription.keys.some((key) => changedKeySet.has(key))) {
|
|
87
|
+
subscription.notify(nextState, previousState);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
const getState = (key) => {
|
|
92
|
+
return key === void 0 ? state : state[key];
|
|
93
|
+
};
|
|
94
|
+
const replaceState = (nextState) => {
|
|
95
|
+
const previousState = state;
|
|
96
|
+
const resolvedState = typeof nextState === "function" ? nextState(previousState) : nextState;
|
|
97
|
+
state = resolvedState;
|
|
98
|
+
emit(state, previousState);
|
|
99
|
+
return state;
|
|
100
|
+
};
|
|
101
|
+
const setState = (keyOrPatch, value) => {
|
|
102
|
+
const previousState = state;
|
|
103
|
+
let nextState;
|
|
104
|
+
if (isStoreKey(keyOrPatch)) {
|
|
105
|
+
const key = keyOrPatch;
|
|
106
|
+
const nextValue = resolveValue(value, previousState[key]);
|
|
107
|
+
if (Object.is(previousState[key], nextValue)) {
|
|
108
|
+
return nextValue;
|
|
109
|
+
}
|
|
110
|
+
nextState = {
|
|
111
|
+
...previousState,
|
|
112
|
+
[key]: nextValue
|
|
113
|
+
};
|
|
114
|
+
state = nextState;
|
|
115
|
+
emit(nextState, previousState);
|
|
116
|
+
return nextValue;
|
|
117
|
+
}
|
|
118
|
+
const patch = typeof keyOrPatch === "function" ? keyOrPatch(previousState) : keyOrPatch;
|
|
119
|
+
nextState = {
|
|
120
|
+
...previousState,
|
|
121
|
+
...patch
|
|
122
|
+
};
|
|
123
|
+
state = nextState;
|
|
124
|
+
emit(nextState, previousState);
|
|
125
|
+
return nextState;
|
|
126
|
+
};
|
|
127
|
+
const subscribeState = (keyOrListener, listener) => {
|
|
128
|
+
if (typeof keyOrListener === "function") {
|
|
129
|
+
return addSubscription(null, (nextState, previousState) => {
|
|
130
|
+
keyOrListener(nextState, previousState);
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
if (Array.isArray(keyOrListener)) {
|
|
134
|
+
const keys = normalizeStoreKeys(keyOrListener);
|
|
135
|
+
return addSubscription(keys, (nextState, previousState) => {
|
|
136
|
+
listener(
|
|
137
|
+
pickStoreState(nextState, keys),
|
|
138
|
+
pickStoreState(previousState, keys)
|
|
139
|
+
);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
const key = keyOrListener;
|
|
143
|
+
return addSubscription([key], (nextState, previousState) => {
|
|
144
|
+
listener(nextState[key], previousState[key]);
|
|
145
|
+
});
|
|
146
|
+
};
|
|
147
|
+
const store = {
|
|
148
|
+
get: getState,
|
|
149
|
+
getSnapshot: () => state,
|
|
150
|
+
set: setState,
|
|
151
|
+
replace: replaceState,
|
|
152
|
+
reset: () => replaceState(cloneState(initialSnapshot)),
|
|
153
|
+
subscribe: subscribeState
|
|
154
|
+
};
|
|
155
|
+
const use = _optionalChain([bindUse, 'optionalCall', _3 => _3(store)]);
|
|
156
|
+
if (use) store.use = use;
|
|
157
|
+
for (const key of getEnumerableKeys(initialSnapshot)) {
|
|
158
|
+
if (RESERVED_STORE_KEYS.has(key)) {
|
|
159
|
+
throw new Error(
|
|
160
|
+
`createStore does not allow the reserved key "${String(key)}" in the initial state.`
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
const field = use ? () => use(key) : () => state[key];
|
|
164
|
+
field.get = () => state[key];
|
|
165
|
+
field.set = (value) => setState(key, value);
|
|
166
|
+
field.subscribe = (listener) => subscribeState(key, listener);
|
|
167
|
+
Object.defineProperty(store, key, {
|
|
168
|
+
configurable: false,
|
|
169
|
+
enumerable: true,
|
|
170
|
+
value: field,
|
|
171
|
+
writable: false
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
if (extend) {
|
|
175
|
+
const methods = extend(store);
|
|
176
|
+
for (const [name, method] of Object.entries(methods)) {
|
|
177
|
+
if (name in store) {
|
|
178
|
+
throw new Error(
|
|
179
|
+
`createStore cannot attach the method "${name}" because it already exists.`
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
if (RESERVED_STORE_KEYS.has(name)) {
|
|
183
|
+
throw new Error(`createStore cannot attach the method "${name}" because it is reserved.`);
|
|
184
|
+
}
|
|
185
|
+
Object.defineProperty(store, name, {
|
|
186
|
+
configurable: false,
|
|
187
|
+
enumerable: true,
|
|
188
|
+
value: method,
|
|
189
|
+
writable: false
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
return store;
|
|
194
|
+
}
|
|
195
|
+
function createStore(initialState, extend) {
|
|
196
|
+
return createStoreInstance(initialState, extend);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// src/client/link-attributes.ts
|
|
200
|
+
var FARM_LINK_OPTION_KEYS = [
|
|
201
|
+
"href",
|
|
202
|
+
"params",
|
|
203
|
+
"query",
|
|
204
|
+
"hash",
|
|
205
|
+
"trailingSlash",
|
|
206
|
+
"prefetch",
|
|
207
|
+
"prefetchDelay",
|
|
208
|
+
"replace",
|
|
209
|
+
"scroll",
|
|
210
|
+
"viewTransition",
|
|
211
|
+
"locale"
|
|
212
|
+
];
|
|
213
|
+
function resolveFarmLink({
|
|
214
|
+
href,
|
|
215
|
+
params,
|
|
216
|
+
query,
|
|
217
|
+
hash,
|
|
218
|
+
trailingSlash,
|
|
219
|
+
prefetch = true,
|
|
220
|
+
prefetchDelay = _chunkRK3YYUX6cjs.FARM_LINK_PREFETCH_DELAY,
|
|
221
|
+
replace = false,
|
|
222
|
+
scroll = true,
|
|
223
|
+
viewTransition = false,
|
|
224
|
+
locale
|
|
225
|
+
}, basePath = _chunkD22BUQKWcjs.getFarmBasePath.call(void 0, )) {
|
|
226
|
+
const prefetchModes = normalizePrefetch(prefetch);
|
|
227
|
+
const linkTrailingSlash = _nullishCoalesce(trailingSlash, () => ( _chunkDVJM55D2cjs.getFarmTrailingSlashPreference.call(void 0, )));
|
|
228
|
+
const baseHref = resolveLinkHref(href, params, {
|
|
229
|
+
query,
|
|
230
|
+
hash,
|
|
231
|
+
trailingSlash: linkTrailingSlash
|
|
232
|
+
});
|
|
233
|
+
const localizedHref = withLinkTrailingSlash(
|
|
234
|
+
_chunk2PJVEL56cjs.localizeActiveFarmHref.call(void 0, baseHref, locale),
|
|
235
|
+
linkTrailingSlash
|
|
236
|
+
);
|
|
237
|
+
const resolvedHref = isExternalUrl(localizedHref) ? localizedHref : _chunkD22BUQKWcjs.applyFarmBasePath.call(void 0, localizedHref, basePath);
|
|
238
|
+
const script = _chunk2PJVEL56cjs.isFarmScriptURL.call(void 0, resolvedHref);
|
|
239
|
+
return {
|
|
240
|
+
href: resolvedHref,
|
|
241
|
+
localizedHref,
|
|
242
|
+
external: isExternalUrl(resolvedHref),
|
|
243
|
+
script,
|
|
244
|
+
prefetch: prefetchModes,
|
|
245
|
+
prefetchDelay,
|
|
246
|
+
attributes: {
|
|
247
|
+
href: script ? void 0 : resolvedHref,
|
|
248
|
+
"data-farm-link": "",
|
|
249
|
+
"data-farm-locale": locale,
|
|
250
|
+
"data-farm-prefetch": prefetchAttribute(prefetchModes),
|
|
251
|
+
"data-farm-prefetch-delay": prefetchModes.intent && prefetchDelay !== _chunkRK3YYUX6cjs.FARM_LINK_PREFETCH_DELAY ? String(prefetchDelay) : void 0,
|
|
252
|
+
"data-replace": replace ? "" : void 0,
|
|
253
|
+
"data-no-scroll": !scroll ? "" : void 0,
|
|
254
|
+
"data-view-transition": viewTransition === "auto" ? "auto" : viewTransition ? "true" : void 0
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
function resolveLinkAttributes(options) {
|
|
259
|
+
return resolveFarmLink(options).attributes;
|
|
260
|
+
}
|
|
261
|
+
function isExternalUrl(href) {
|
|
262
|
+
return href.startsWith("//") || /^[a-zA-Z][a-zA-Z\d+.-]*:/.test(href);
|
|
263
|
+
}
|
|
264
|
+
function normalizePrefetch(prefetch) {
|
|
265
|
+
if (prefetch === false || prefetch === "none") {
|
|
266
|
+
return { intent: false, viewport: false, render: false };
|
|
267
|
+
}
|
|
268
|
+
if (prefetch === true) {
|
|
269
|
+
return { intent: true, viewport: true, render: false };
|
|
270
|
+
}
|
|
271
|
+
if (prefetch === "hover") {
|
|
272
|
+
return { intent: true, viewport: false, render: false };
|
|
273
|
+
}
|
|
274
|
+
if (prefetch === "intent") {
|
|
275
|
+
return { intent: true, viewport: false, render: false };
|
|
276
|
+
}
|
|
277
|
+
if (prefetch === "viewport") {
|
|
278
|
+
return { intent: false, viewport: true, render: false };
|
|
279
|
+
}
|
|
280
|
+
if (prefetch === "render") {
|
|
281
|
+
return { intent: false, viewport: false, render: true };
|
|
282
|
+
}
|
|
283
|
+
return { intent: false, viewport: false, render: false };
|
|
284
|
+
}
|
|
285
|
+
function prefetchAttribute(modes) {
|
|
286
|
+
if (modes.intent && modes.viewport) return void 0;
|
|
287
|
+
if (modes.render) return "render";
|
|
288
|
+
if (modes.viewport) return "viewport";
|
|
289
|
+
if (modes.intent) return "intent";
|
|
290
|
+
return "none";
|
|
291
|
+
}
|
|
292
|
+
function resolveLinkHref(href, params, options) {
|
|
293
|
+
if (isExternalUrl(href)) return href;
|
|
294
|
+
if (href.startsWith("#") && !params && !options.query && options.hash === void 0) return href;
|
|
295
|
+
const { pathname, query, hash } = splitInternalHref(href);
|
|
296
|
+
const resolvedHref = _chunkO4JYMU5Ncjs.buildFarmRoutePath.call(void 0, pathname, params, {
|
|
297
|
+
query: mergeQueryParams(query, options.query),
|
|
298
|
+
hash: _nullishCoalesce(options.hash, () => ( hash)),
|
|
299
|
+
trailingSlash: options.trailingSlash
|
|
300
|
+
});
|
|
301
|
+
return applyPreservedSearchParams(resolvedHref);
|
|
302
|
+
}
|
|
303
|
+
function withLinkTrailingSlash(href, trailingSlash) {
|
|
304
|
+
if (!trailingSlash || !href.startsWith("/") || href.startsWith("//")) return href;
|
|
305
|
+
const end = href.search(/[?#]/);
|
|
306
|
+
const pathname = end === -1 ? href : href.slice(0, end);
|
|
307
|
+
if (pathname === "/" || pathname.endsWith("/")) return href;
|
|
308
|
+
return `${pathname}/${end === -1 ? "" : href.slice(end)}`;
|
|
309
|
+
}
|
|
310
|
+
function splitInternalHref(href) {
|
|
311
|
+
try {
|
|
312
|
+
const url = new URL(href, "http://farm.local");
|
|
313
|
+
return {
|
|
314
|
+
pathname: url.pathname || "/",
|
|
315
|
+
query: url.searchParams,
|
|
316
|
+
hash: url.hash ? url.hash.slice(1) : void 0
|
|
317
|
+
};
|
|
318
|
+
} catch (e) {
|
|
319
|
+
const [withoutHash, rawHash] = href.split("#", 2);
|
|
320
|
+
const [pathname, rawQuery] = withoutHash.split("?", 2);
|
|
321
|
+
return {
|
|
322
|
+
pathname: pathname || "/",
|
|
323
|
+
query: new URLSearchParams(rawQuery || ""),
|
|
324
|
+
hash: rawHash
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
function mergeQueryParams(current, next) {
|
|
329
|
+
const merged = new URLSearchParams(current);
|
|
330
|
+
if (next instanceof URLSearchParams) {
|
|
331
|
+
for (const [key, value] of next.entries()) {
|
|
332
|
+
merged.append(key, value);
|
|
333
|
+
}
|
|
334
|
+
} else if (next) {
|
|
335
|
+
for (const [key, value] of Object.entries(next)) {
|
|
336
|
+
const values = Array.isArray(value) ? value : [value];
|
|
337
|
+
for (const item of values) {
|
|
338
|
+
if (item == null) continue;
|
|
339
|
+
merged.append(key, String(item));
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
return merged.toString() ? merged : void 0;
|
|
344
|
+
}
|
|
345
|
+
function applyPreservedSearchParams(href) {
|
|
346
|
+
const routes = _chunkWKVYF2B5cjs.getFarmSearchPreserveRoutes.call(void 0, );
|
|
347
|
+
if (routes.length === 0) return href;
|
|
348
|
+
const documentUrl = typeof window === "undefined" ? _optionalChain([_chunk3BIASUGRcjs._peekCurrentRequest.call(void 0, ), 'optionalAccess', _4 => _4.url]) : window.location.href;
|
|
349
|
+
if (!documentUrl) return href;
|
|
350
|
+
const url = _chunk2PJVEL56cjs.resolveFarmNavigationURL.call(void 0, href, documentUrl);
|
|
351
|
+
const route = routes.find((candidate) => matchManifestRoute(url.pathname, candidate));
|
|
352
|
+
const preserve = Array.isArray(_optionalChain([route, 'optionalAccess', _5 => _5.search, 'optionalAccess', _6 => _6.preserve])) ? route.search.preserve : [];
|
|
353
|
+
if (preserve.length === 0) return href;
|
|
354
|
+
const current = new URL(documentUrl).searchParams;
|
|
355
|
+
let changed = false;
|
|
356
|
+
for (const key of preserve) {
|
|
357
|
+
if (url.searchParams.has(key) || !current.has(key)) continue;
|
|
358
|
+
for (const value of current.getAll(key)) {
|
|
359
|
+
url.searchParams.append(key, value);
|
|
360
|
+
changed = true;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
if (!changed) return href;
|
|
364
|
+
return `${url.pathname}${url.search}${url.hash}`;
|
|
365
|
+
}
|
|
366
|
+
function matchManifestRoute(pathname, route) {
|
|
367
|
+
if (!route || !Array.isArray(route.segments)) return false;
|
|
368
|
+
const routeSegments = route.segments;
|
|
369
|
+
const normalized = pathname === "/" ? "" : pathname.replace(/^\/+/, "").replace(/\/+$/, "");
|
|
370
|
+
const pathSegments = normalized ? normalized.split("/") : [];
|
|
371
|
+
const hasCatchAll = routeSegments.some((segment) => segment.isCatchAll);
|
|
372
|
+
if (!hasCatchAll && pathSegments.length !== routeSegments.length) {
|
|
373
|
+
return false;
|
|
374
|
+
}
|
|
375
|
+
for (let index = 0; index < routeSegments.length; index++) {
|
|
376
|
+
const routeSegment = routeSegments[index];
|
|
377
|
+
const pathSegment = pathSegments[index];
|
|
378
|
+
if (routeSegment.isCatchAll) {
|
|
379
|
+
return true;
|
|
380
|
+
}
|
|
381
|
+
if (pathSegment === void 0) {
|
|
382
|
+
if (routeSegment.isOptional) continue;
|
|
383
|
+
return false;
|
|
384
|
+
}
|
|
385
|
+
if (!routeSegment.isDynamic && routeSegment.segment !== pathSegment) {
|
|
386
|
+
return false;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
return pathSegments.length === routeSegments.length || hasCatchAll;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
exports.pickStoreState = pickStoreState; exports.normalizeStoreKeys = normalizeStoreKeys; exports.isStoreKey = isStoreKey; exports.createStoreInstance = createStoreInstance; exports.createStore = createStore; exports.FARM_LINK_OPTION_KEYS = FARM_LINK_OPTION_KEYS; exports.resolveFarmLink = resolveFarmLink; exports.resolveLinkAttributes = resolveLinkAttributes;
|
|
@@ -90,7 +90,7 @@ function formatFarmRscBlockingMessage(blockingKeys) {
|
|
|
90
90
|
var warnedFallback = false;
|
|
91
91
|
async function resolveFarmRscCheckConfig(config, root, mode) {
|
|
92
92
|
if (!_optionalChain([config, 'optionalAccess', _8 => _8.extends])) return config;
|
|
93
|
-
const { resolveFarmLayers } = await import("./layers-
|
|
93
|
+
const { resolveFarmLayers } = await import("./layers-XLOMMQP7.cjs");
|
|
94
94
|
return (await resolveFarmLayers(config, { root, mode })).config;
|
|
95
95
|
}
|
|
96
96
|
function farmAppUsesRscPipeline(config, root) {
|
|
@@ -8,7 +8,8 @@ var DEFAULT_RENDERER_CAPABILITIES = Object.freeze({
|
|
|
8
8
|
// Conservative default: assume a re-render rebuilds until a renderer states
|
|
9
9
|
// otherwise, so callers do not silently rely on reconciliation.
|
|
10
10
|
reconcilesRerenders: false,
|
|
11
|
-
functionComponents: false
|
|
11
|
+
functionComponents: false,
|
|
12
|
+
hydrationFallback: false
|
|
12
13
|
});
|
|
13
14
|
function getFarmRendererCapabilities(renderer) {
|
|
14
15
|
const defaultStreaming = {
|
|
@@ -36,17 +37,43 @@ function getFarmRendererCapabilities(renderer) {
|
|
|
36
37
|
...Object.keys(runtimes).length > 0 ? { runtimes } : {}
|
|
37
38
|
},
|
|
38
39
|
reconcilesRerenders: _nullishCoalesce(_optionalChain([renderer, 'optionalAccess', _11 => _11.capabilities, 'optionalAccess', _12 => _12.reconcilesRerenders]), () => ( DEFAULT_RENDERER_CAPABILITIES.reconcilesRerenders)),
|
|
39
|
-
functionComponents: _nullishCoalesce(_optionalChain([renderer, 'optionalAccess', _13 => _13.capabilities, 'optionalAccess', _14 => _14.functionComponents]), () => ( DEFAULT_RENDERER_CAPABILITIES.functionComponents))
|
|
40
|
+
functionComponents: _nullishCoalesce(_optionalChain([renderer, 'optionalAccess', _13 => _13.capabilities, 'optionalAccess', _14 => _14.functionComponents]), () => ( DEFAULT_RENDERER_CAPABILITIES.functionComponents)),
|
|
41
|
+
hydrationFallback: _nullishCoalesce(_optionalChain([renderer, 'optionalAccess', _15 => _15.capabilities, 'optionalAccess', _16 => _16.hydrationFallback]), () => ( DEFAULT_RENDERER_CAPABILITIES.hydrationFallback))
|
|
40
42
|
};
|
|
41
43
|
}
|
|
42
44
|
function getFarmRendererStreamingCapabilitiesForRuntime(renderer, runtime) {
|
|
43
45
|
const streaming = getFarmRendererCapabilities(renderer).streaming;
|
|
44
46
|
if (runtime === "unknown") return { node: streaming.node, web: streaming.web };
|
|
45
|
-
return _nullishCoalesce(_optionalChain([streaming, 'access',
|
|
47
|
+
return _nullishCoalesce(_optionalChain([streaming, 'access', _17 => _17.runtimes, 'optionalAccess', _18 => _18[runtime]]), () => ( { node: streaming.node, web: streaming.web }));
|
|
48
|
+
}
|
|
49
|
+
var FARM_RENDERER_SERVER_EXPORTS = [
|
|
50
|
+
"name",
|
|
51
|
+
"createElement",
|
|
52
|
+
"isValidElement",
|
|
53
|
+
"Fragment",
|
|
54
|
+
"Suspense",
|
|
55
|
+
"renderToString"
|
|
56
|
+
];
|
|
57
|
+
function isMissingServerExport(key, value) {
|
|
58
|
+
if (key === "name") return typeof value !== "string" || value === "";
|
|
59
|
+
if (key === "Fragment" || key === "Suspense") return value === void 0 || value === null;
|
|
60
|
+
return typeof value !== "function";
|
|
61
|
+
}
|
|
62
|
+
function assertFarmRendererServerModule(runtime, renderer) {
|
|
63
|
+
const exports = _nullishCoalesce(runtime, () => ( {}));
|
|
64
|
+
const missing = FARM_RENDERER_SERVER_EXPORTS.filter(
|
|
65
|
+
(key) => isMissingServerExport(key, exports[key])
|
|
66
|
+
);
|
|
67
|
+
if (missing.length === 0) return;
|
|
68
|
+
const names = missing.map((key) => `\`${key}\``);
|
|
69
|
+
const list = names.length === 1 ? names[0] : `${names.slice(0, -1).join(", ")}${names.length > 2 ? "," : ""} and ${names[names.length - 1]}`;
|
|
70
|
+
throw new Error(
|
|
71
|
+
`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`
|
|
72
|
+
);
|
|
46
73
|
}
|
|
47
74
|
function assertFarmRendererStreamingRuntime(name, renderer, runtimeModule, runtime) {
|
|
48
75
|
const declared = getFarmRendererStreamingCapabilitiesForRuntime(renderer, runtime);
|
|
49
|
-
const runtimeDeclaration = _optionalChain([runtimeModule, 'access',
|
|
76
|
+
const runtimeDeclaration = _optionalChain([runtimeModule, 'access', _19 => _19.capabilities, 'optionalAccess', _20 => _20.streaming]);
|
|
50
77
|
if (runtimeDeclaration) {
|
|
51
78
|
const advertised = getFarmRendererStreamingCapabilitiesForRuntime(
|
|
52
79
|
{ capabilities: { streaming: runtimeDeclaration } },
|
|
@@ -82,7 +109,7 @@ function resolveFarmComponentExtensions(extensions = []) {
|
|
|
82
109
|
).filter((extension) => extension.length > 1);
|
|
83
110
|
}
|
|
84
111
|
function getFarmRendererComponentExtensions(renderer) {
|
|
85
|
-
return resolveFarmComponentExtensions(_optionalChain([renderer, 'optionalAccess',
|
|
112
|
+
return resolveFarmComponentExtensions(_optionalChain([renderer, 'optionalAccess', _21 => _21.componentExtensions]));
|
|
86
113
|
}
|
|
87
114
|
var REACT_RENDERER = Object.freeze({
|
|
88
115
|
name: "react",
|
|
@@ -120,7 +147,7 @@ var NO_RENDERER = Object.freeze({
|
|
|
120
147
|
}
|
|
121
148
|
});
|
|
122
149
|
function isFarmRendererDisabled(renderer) {
|
|
123
|
-
return renderer === false || _optionalChain([renderer, 'optionalAccess',
|
|
150
|
+
return renderer === false || _optionalChain([renderer, 'optionalAccess', _22 => _22.name]) === NO_RENDERER.name;
|
|
124
151
|
}
|
|
125
152
|
function defineRenderer(renderer) {
|
|
126
153
|
return renderer;
|
|
@@ -177,8 +204,8 @@ function createFarmReactJsxPlugin() {
|
|
|
177
204
|
return {
|
|
178
205
|
name: "farm:react-jsx",
|
|
179
206
|
config(config) {
|
|
180
|
-
if (this && _optionalChain([this, 'access',
|
|
181
|
-
if (config.esbuild === false || _optionalChain([config, 'access',
|
|
207
|
+
if (this && _optionalChain([this, 'access', _23 => _23.meta, 'optionalAccess', _24 => _24.rolldownVersion])) return;
|
|
208
|
+
if (config.esbuild === false || _optionalChain([config, 'access', _25 => _25.esbuild, 'optionalAccess', _26 => _26.jsx]) !== void 0) return;
|
|
182
209
|
return { esbuild: { jsx: "automatic" } };
|
|
183
210
|
}
|
|
184
211
|
};
|
|
@@ -218,4 +245,5 @@ async function loadFarmRendererVitePlugins(renderer, root, options = {}) {
|
|
|
218
245
|
|
|
219
246
|
|
|
220
247
|
|
|
221
|
-
|
|
248
|
+
|
|
249
|
+
exports.getFarmRendererCapabilities = getFarmRendererCapabilities; exports.getFarmRendererStreamingCapabilitiesForRuntime = getFarmRendererStreamingCapabilitiesForRuntime; exports.assertFarmRendererServerModule = assertFarmRendererServerModule; exports.assertFarmRendererStreamingRuntime = assertFarmRendererStreamingRuntime; exports.FARM_COMPONENT_EXTENSIONS = FARM_COMPONENT_EXTENSIONS; exports.resolveFarmComponentExtensions = resolveFarmComponentExtensions; exports.getFarmRendererComponentExtensions = getFarmRendererComponentExtensions; exports.REACT_RENDERER = REACT_RENDERER; exports.NO_RENDERER = NO_RENDERER; exports.isFarmRendererDisabled = isFarmRendererDisabled; exports.defineRenderer = defineRenderer; exports.resolveFarmRenderer = resolveFarmRenderer; exports.readFarmRendererWebStream = readFarmRendererWebStream; exports.isReactRenderer = isReactRenderer; exports.resolveFarmRendererAppSetup = resolveFarmRendererAppSetup; exports.resolveFarmRendererModule = resolveFarmRendererModule; exports.loadFarmRendererVitePlugins = loadFarmRendererVitePlugins;
|
|
@@ -345,7 +345,7 @@ async function loadWorkflowModule(filePath, root) {
|
|
|
345
345
|
outDir,
|
|
346
346
|
`workflow-${Date.now()}-${Math.random().toString(36).slice(2)}.mjs`
|
|
347
347
|
);
|
|
348
|
-
const { bundleNodeModule } = await import("./node-module-bundle-
|
|
348
|
+
const { bundleNodeModule } = await import("./node-module-bundle-TNSY5PAC.cjs");
|
|
349
349
|
await bundleNodeModule({
|
|
350
350
|
root,
|
|
351
351
|
entry: filePath,
|