@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
|
@@ -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,
|
|
@@ -25,7 +25,7 @@ var _chunk2OFP3IVAcjs = require('./chunk-2OFP3IVA.cjs');
|
|
|
25
25
|
var _chunk2LHZD3OPcjs = require('./chunk-2LHZD3OP.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkB3HQTGXScjs = require('./chunk-B3HQTGXS.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
var _chunkGBMWLDCCcjs = require('./chunk-GBMWLDCC.cjs');
|
|
@@ -117,7 +117,7 @@ async function withTimeout(work, timeoutMs) {
|
|
|
117
117
|
var formatSeconds = (ms) => ms < 1e3 ? `${ms}ms` : `${Number((ms / 1e3).toFixed(1))}s`;
|
|
118
118
|
function collectSchemaOwners(config) {
|
|
119
119
|
const owners = [];
|
|
120
|
-
const integrationSchemas =
|
|
120
|
+
const integrationSchemas = _chunkB3HQTGXScjs.getIntegrationSchemas.call(void 0, config.integrations);
|
|
121
121
|
let integrationClient;
|
|
122
122
|
for (const [name, schema] of Object.entries(integrationSchemas)) {
|
|
123
123
|
owners.push({
|
|
@@ -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;
|
|
@@ -15,14 +15,17 @@ var _chunkWBTHHTBOcjs = require('./chunk-WBTHHTBO.cjs');
|
|
|
15
15
|
var _chunkCCAUIBIScjs = require('./chunk-CCAUIBIS.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkWMRGIQTAcjs = require('./chunk-WMRGIQTA.cjs');
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
var _chunkJK26IMT7cjs = require('./chunk-JK26IMT7.cjs');
|
|
19
22
|
|
|
20
23
|
// src/mobile/analyzer.ts
|
|
21
24
|
var _crypto = require('crypto');
|
|
22
25
|
var _fs = require('fs');
|
|
23
26
|
var _promises = require('fs/promises');
|
|
24
27
|
var _path = require('path'); var path = _interopRequireWildcard(_path);
|
|
25
|
-
var ANALYZER_VERSION = `
|
|
28
|
+
var ANALYZER_VERSION = `8:${_chunkJK26IMT7cjs.FARM_VERSION}`;
|
|
26
29
|
var INTRINSIC_KINDS = {};
|
|
27
30
|
for (const tag of "div section main article header footer nav aside figure hr li".split(" ")) {
|
|
28
31
|
INTRINSIC_KINDS[tag] = "View";
|
|
@@ -904,10 +907,8 @@ function analyzeComponentSource(file, source, parseSync) {
|
|
|
904
907
|
only: "react-native"
|
|
905
908
|
});
|
|
906
909
|
for (const script of _chunkWBTHHTBOcjs.farmComponentModuleScripts.call(void 0, blocks)) {
|
|
907
|
-
const hydrate =
|
|
908
|
-
|
|
909
|
-
);
|
|
910
|
-
if (hydrate) {
|
|
910
|
+
const hydrate = _chunkWMRGIQTAcjs.readFarmHydrateExport.call(void 0, source.slice(script.start, script.end));
|
|
911
|
+
if (_optionalChain([hydrate, 'optionalAccess', _44 => _44.value]) === true) {
|
|
911
912
|
block(
|
|
912
913
|
script.start + hydrate.index,
|
|
913
914
|
"client-logic",
|
|
@@ -935,7 +936,7 @@ function analyzeComponentSource(file, source, parseSync) {
|
|
|
935
936
|
}
|
|
936
937
|
for (const match of text.matchAll(/\bimport\s+(?:[\w$]+\s*,\s*)?\{([^}]*)\}/g)) {
|
|
937
938
|
for (const part of match[1].split(",")) {
|
|
938
|
-
const local = _optionalChain([part, 'access',
|
|
939
|
+
const local = _optionalChain([part, 'access', _45 => _45.trim, 'call', _46 => _46(), 'access', _47 => _47.split, 'call', _48 => _48(/\s+as\s+/), 'access', _49 => _49.pop, 'call', _50 => _50(), 'optionalAccess', _51 => _51.trim, 'call', _52 => _52()]);
|
|
939
940
|
if (local) imported.add(local);
|
|
940
941
|
}
|
|
941
942
|
}
|
|
@@ -991,7 +992,7 @@ function analyzeComponentSource(file, source, parseSync) {
|
|
|
991
992
|
cursor = closeBrace(markup, cursor);
|
|
992
993
|
continue;
|
|
993
994
|
}
|
|
994
|
-
const attrName = _nullishCoalesce(_optionalChain([/^[^\s=/>]+/, 'access',
|
|
995
|
+
const attrName = _nullishCoalesce(_optionalChain([/^[^\s=/>]+/, 'access', _53 => _53.exec, 'call', _54 => _54(markup.slice(cursor)), 'optionalAccess', _55 => _55[0]]), () => ( char));
|
|
995
996
|
const attrOffset = range.start + cursor;
|
|
996
997
|
cursor += attrName.length;
|
|
997
998
|
while (/\s/.test(_nullishCoalesce(markup[cursor], () => ( "")))) cursor += 1;
|
|
@@ -1011,7 +1012,7 @@ function analyzeComponentSource(file, source, parseSync) {
|
|
|
1011
1012
|
braced = true;
|
|
1012
1013
|
cursor = end;
|
|
1013
1014
|
} else {
|
|
1014
|
-
value2 = _nullishCoalesce(_optionalChain([/^[^\s>]+/, 'access',
|
|
1015
|
+
value2 = _nullishCoalesce(_optionalChain([/^[^\s>]+/, 'access', _56 => _56.exec, 'call', _57 => _57(markup.slice(cursor)), 'optionalAccess', _58 => _58[0]]), () => ( ""));
|
|
1015
1016
|
cursor += value2.length;
|
|
1016
1017
|
}
|
|
1017
1018
|
}
|
|
@@ -1068,7 +1069,7 @@ function analyzeComponentSource(file, source, parseSync) {
|
|
|
1068
1069
|
const classes = value("class");
|
|
1069
1070
|
if (boundAttribute("class")) {
|
|
1070
1071
|
block(at, "runtime-class-name", `<${tag}> builds its class names at runtime`);
|
|
1071
|
-
} else if (_optionalChain([classes, 'optionalAccess',
|
|
1072
|
+
} else if (_optionalChain([classes, 'optionalAccess', _59 => _59.value])) {
|
|
1072
1073
|
for (const token of classes.value.split(/\s+/).filter(Boolean)) {
|
|
1073
1074
|
const problem = classifyClass(token);
|
|
1074
1075
|
if (problem && /^class ".*" is not in the native Tailwind subset$/.test(problem)) {
|
|
@@ -1083,7 +1084,7 @@ function analyzeComponentSource(file, source, parseSync) {
|
|
|
1083
1084
|
const style = value("style");
|
|
1084
1085
|
if (boundAttribute("style")) {
|
|
1085
1086
|
block(at, "runtime-style", `<${tag}> style is computed at runtime`);
|
|
1086
|
-
} else if (_optionalChain([style, 'optionalAccess',
|
|
1087
|
+
} else if (_optionalChain([style, 'optionalAccess', _60 => _60.value])) {
|
|
1087
1088
|
for (const declaration of _chunkCCAUIBIScjs.resolveFarmNativeInlineStyle.call(void 0, style.value).unsupported) {
|
|
1088
1089
|
block(
|
|
1089
1090
|
style.offset,
|
|
@@ -1095,7 +1096,7 @@ function analyzeComponentSource(file, source, parseSync) {
|
|
|
1095
1096
|
}
|
|
1096
1097
|
const type = value("type");
|
|
1097
1098
|
if (tag === "input") {
|
|
1098
|
-
const inputType = _optionalChain([type, 'optionalAccess',
|
|
1099
|
+
const inputType = _optionalChain([type, 'optionalAccess', _61 => _61.dynamic]) ? void 0 : (_nullishCoalesce(_optionalChain([type, 'optionalAccess', _62 => _62.value]), () => ( "text"))).toLowerCase();
|
|
1099
1100
|
const formType = formDepth > 0 && (inputType === "hidden" || inputType === "submit");
|
|
1100
1101
|
if (!formType && (inputType === void 0 || !INPUT_TYPES.has(inputType))) {
|
|
1101
1102
|
block(
|
|
@@ -1107,7 +1108,7 @@ function analyzeComponentSource(file, source, parseSync) {
|
|
|
1107
1108
|
}
|
|
1108
1109
|
if (inputType === "hidden") continue;
|
|
1109
1110
|
}
|
|
1110
|
-
const buttonType = tag === "button" ? (_nullishCoalesce(_optionalChain([type, 'optionalAccess',
|
|
1111
|
+
const buttonType = tag === "button" ? (_nullishCoalesce(_optionalChain([type, 'optionalAccess', _63 => _63.value]), () => ( "submit"))).toLowerCase() : void 0;
|
|
1111
1112
|
if ((tag === "button" || kind === "TextInput") && !value("action") && !value("formaction") && (formDepth === 0 || buttonType !== void 0 && buttonType !== "submit")) {
|
|
1112
1113
|
block(
|
|
1113
1114
|
at,
|
|
@@ -1118,9 +1119,9 @@ function analyzeComponentSource(file, source, parseSync) {
|
|
|
1118
1119
|
}
|
|
1119
1120
|
if (tag === "form") {
|
|
1120
1121
|
const method = value("method");
|
|
1121
|
-
const methodValue = (_nullishCoalesce(_optionalChain([method, 'optionalAccess',
|
|
1122
|
-
if (_optionalChain([method, 'optionalAccess',
|
|
1123
|
-
block(at, "form-action", `<form method="${_nullishCoalesce(_optionalChain([method, 'optionalAccess',
|
|
1122
|
+
const methodValue = (_nullishCoalesce(_optionalChain([method, 'optionalAccess', _64 => _64.value]), () => ( "get"))).toLowerCase();
|
|
1123
|
+
if (_optionalChain([method, 'optionalAccess', _65 => _65.dynamic]) || methodValue !== "get" && methodValue !== "post") {
|
|
1124
|
+
block(at, "form-action", `<form method="${_nullishCoalesce(_optionalChain([method, 'optionalAccess', _66 => _66.value]), () => ( "{expr}"))}">`, "native");
|
|
1124
1125
|
}
|
|
1125
1126
|
}
|
|
1126
1127
|
}
|
|
@@ -1199,7 +1200,7 @@ function classifyPackage(fact, serverBoundary) {
|
|
|
1199
1200
|
}
|
|
1200
1201
|
if (specifier.startsWith("@farm.js/core")) {
|
|
1201
1202
|
const portable = CORE_PORTABLE[specifier];
|
|
1202
|
-
const unmapped = fact.names.filter((name2) => !_optionalChain([portable, 'optionalAccess',
|
|
1203
|
+
const unmapped = fact.names.filter((name2) => !_optionalChain([portable, 'optionalAccess', _67 => _67.has, 'call', _68 => _68(name2)]));
|
|
1203
1204
|
if (unmapped.length > 0 || !portable) {
|
|
1204
1205
|
return {
|
|
1205
1206
|
...at,
|
|
@@ -1413,7 +1414,7 @@ async function analyzeFarmMobileRoutes(options) {
|
|
|
1413
1414
|
const allStylesheets = /* @__PURE__ */ new Set();
|
|
1414
1415
|
const unreadStylesheets = /* @__PURE__ */ new Set();
|
|
1415
1416
|
for (const [route, { page, layouts }] of entries) {
|
|
1416
|
-
if (!page && _optionalChain([options, 'access',
|
|
1417
|
+
if (!page && _optionalChain([options, 'access', _69 => _69.nativeOnlyRoutes, 'optionalAccess', _70 => _70.has, 'call', _71 => _71(route)])) continue;
|
|
1417
1418
|
const blockers = [];
|
|
1418
1419
|
const wins = /* @__PURE__ */ new Set();
|
|
1419
1420
|
const elements = { total: 0, mapped: 0, byKind: {} };
|
|
@@ -1476,8 +1477,8 @@ async function analyzeFarmMobileRoutes(options) {
|
|
|
1476
1477
|
if (moduleFacts.serverBoundary && !entry) return;
|
|
1477
1478
|
for (const blocker of moduleFacts.blockers) add({ file: label, ...blocker });
|
|
1478
1479
|
for (const action of _nullishCoalesce(moduleFacts.formActions, () => ( []))) {
|
|
1479
|
-
const target = action.source === void 0 ? void 0 : _optionalChain([(_nullishCoalesce(resolved.get(file), () => ( []))), 'access',
|
|
1480
|
-
const server = options.serverComponents === true && (action.source === void 0 || target !== void 0 && _optionalChain([settled, 'access',
|
|
1480
|
+
const target = action.source === void 0 ? void 0 : _optionalChain([(_nullishCoalesce(resolved.get(file), () => ( []))), 'access', _72 => _72.find, 'call', _73 => _73((entry2) => entry2.fact.source === action.source), 'optionalAccess', _74 => _74.file]);
|
|
1481
|
+
const server = options.serverComponents === true && (action.source === void 0 || target !== void 0 && _optionalChain([settled, 'access', _75 => _75.get, 'call', _76 => _76(target), 'optionalAccess', _77 => _77.serverBoundary]) === true);
|
|
1481
1482
|
if (!server) {
|
|
1482
1483
|
add({
|
|
1483
1484
|
file: label,
|
|
@@ -1509,7 +1510,7 @@ async function analyzeFarmMobileRoutes(options) {
|
|
|
1509
1510
|
if (entryImport.stylesheet) {
|
|
1510
1511
|
stylesheets.add(entryImport.stylesheet);
|
|
1511
1512
|
allStylesheets.add(entryImport.stylesheet);
|
|
1512
|
-
} else if (_optionalChain([entryImport, 'access',
|
|
1513
|
+
} else if (_optionalChain([entryImport, 'access', _78 => _78.blocker, 'optionalAccess', _79 => _79.rule]) === "css-import") {
|
|
1513
1514
|
unreadStylesheets.add(entryImport.fact.source);
|
|
1514
1515
|
}
|
|
1515
1516
|
if (entryImport.blocker) add({ file: label, ...entryImport.blocker });
|
|
@@ -21,7 +21,7 @@ var _chunkKORZ6PREcjs = require('./chunk-KORZ6PRE.cjs');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkJYQ6DGPWcjs = require('./chunk-JYQ6DGPW.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
var _chunkGCJ4GNMCcjs = require('./chunk-GCJ4GNMC.cjs');
|
|
@@ -34,10 +34,10 @@ var _chunkYUCU6XB4cjs = require('./chunk-YUCU6XB4.cjs');
|
|
|
34
34
|
var _chunkIUKBPBM7cjs = require('./chunk-IUKBPBM7.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkSNP33A33cjs = require('./chunk-SNP33A33.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunk25JGHAGHcjs = require('./chunk-25JGHAGH.cjs');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
var _chunk7U4XF76Rcjs = require('./chunk-7U4XF76R.cjs');
|
|
@@ -122,7 +122,7 @@ var APIRouteManager = class _APIRouteManager {
|
|
|
122
122
|
await this.loadProgrammaticApiRoutes(appDir);
|
|
123
123
|
}
|
|
124
124
|
this.routes = new Map(
|
|
125
|
-
|
|
125
|
+
_chunkJYQ6DGPWcjs.mergePluginAPIRoutes.call(void 0, [...this.routes.values()], this.plugins, void 0, {
|
|
126
126
|
bodySizeLimit: this.bodySizeLimit,
|
|
127
127
|
dispatch: this.dispatch
|
|
128
128
|
}).map((route) => [route.path, route])
|
|
@@ -164,7 +164,7 @@ var APIRouteManager = class _APIRouteManager {
|
|
|
164
164
|
const routeModule = await this.loadModule(filePath);
|
|
165
165
|
const endpoints = {};
|
|
166
166
|
const availableMethods = [];
|
|
167
|
-
for (const method of
|
|
167
|
+
for (const method of _chunkJYQ6DGPWcjs.API_ROUTE_METHODS) {
|
|
168
168
|
if (routeModule[method]) {
|
|
169
169
|
endpoints[method] = routeModule[method];
|
|
170
170
|
availableMethods.push(method);
|
|
@@ -356,7 +356,7 @@ var APIRouteManager = class _APIRouteManager {
|
|
|
356
356
|
const url = new URL(request.url);
|
|
357
357
|
const pathname = url.pathname;
|
|
358
358
|
const method = request.method.toUpperCase();
|
|
359
|
-
const match =
|
|
359
|
+
const match = _chunkJYQ6DGPWcjs.matchAPIRouteAtBasePath.call(void 0, this.routes, pathname, this.basePath);
|
|
360
360
|
if (!match) {
|
|
361
361
|
return new Response(JSON.stringify({ error: "Not Found" }), {
|
|
362
362
|
status: 404,
|
|
@@ -364,23 +364,23 @@ var APIRouteManager = class _APIRouteManager {
|
|
|
364
364
|
});
|
|
365
365
|
}
|
|
366
366
|
const { route, params } = match;
|
|
367
|
-
const endpoint =
|
|
367
|
+
const endpoint = _chunkJYQ6DGPWcjs.resolveAPIRouteEndpoint.call(void 0, route, method);
|
|
368
368
|
if (!endpoint) {
|
|
369
369
|
return new Response(JSON.stringify({ error: "Method Not Allowed" }), {
|
|
370
370
|
status: 405,
|
|
371
371
|
headers: {
|
|
372
|
-
Allow:
|
|
372
|
+
Allow: _chunkJYQ6DGPWcjs.getAllowedAPIRouteMethods.call(void 0, route).join(", "),
|
|
373
373
|
"Content-Type": "application/json"
|
|
374
374
|
}
|
|
375
375
|
});
|
|
376
376
|
}
|
|
377
377
|
const invoke = async () => {
|
|
378
378
|
try {
|
|
379
|
-
return await
|
|
379
|
+
return await _chunkJYQ6DGPWcjs.invokeAPIRouteEndpoint.call(void 0, endpoint, request, params, this.bodySizeLimit);
|
|
380
380
|
} catch (error) {
|
|
381
381
|
if (options.throwOnError) throw error;
|
|
382
382
|
console.error(`[API Error] ${pathname}:`, error);
|
|
383
|
-
return
|
|
383
|
+
return _chunkJYQ6DGPWcjs.createFarmInternalServerErrorResponse.call(void 0, );
|
|
384
384
|
}
|
|
385
385
|
};
|
|
386
386
|
return _optionalChain([this, 'access', _13 => _13.i18n, 'optionalAccess', _14 => _14.config, 'access', _15 => _15.enabled]) ? _chunkSXXSQVKKcjs._runWithFarmI18nRequest.call(void 0, this.i18n, request, invoke, {
|
|
@@ -395,7 +395,7 @@ var APIRouteManager = class _APIRouteManager {
|
|
|
395
395
|
return Boolean(this.matchRoute(pathname));
|
|
396
396
|
}
|
|
397
397
|
matchRoute(pathname) {
|
|
398
|
-
return
|
|
398
|
+
return _chunkJYQ6DGPWcjs.matchAPIRouteAtBasePath.call(void 0, this.routes, pathname, this.basePath);
|
|
399
399
|
}
|
|
400
400
|
/**
|
|
401
401
|
* Get all routes for client type generation
|
|
@@ -13,16 +13,19 @@ import {
|
|
|
13
13
|
resolveFarmNativeClasses,
|
|
14
14
|
resolveFarmNativeInlineStyle
|
|
15
15
|
} from "./chunk-423SSBYQ.mjs";
|
|
16
|
+
import {
|
|
17
|
+
readFarmHydrateExport
|
|
18
|
+
} from "./chunk-D2VAANBS.mjs";
|
|
16
19
|
import {
|
|
17
20
|
FARM_VERSION
|
|
18
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-OP5VI4TP.mjs";
|
|
19
22
|
|
|
20
23
|
// src/mobile/analyzer.ts
|
|
21
24
|
import { createHash } from "crypto";
|
|
22
25
|
import { existsSync, readFileSync, statSync } from "fs";
|
|
23
26
|
import { mkdir, readFile, writeFile } from "fs/promises";
|
|
24
27
|
import * as path from "path";
|
|
25
|
-
var ANALYZER_VERSION = `
|
|
28
|
+
var ANALYZER_VERSION = `8:${FARM_VERSION}`;
|
|
26
29
|
var INTRINSIC_KINDS = {};
|
|
27
30
|
for (const tag of "div section main article header footer nav aside figure hr li".split(" ")) {
|
|
28
31
|
INTRINSIC_KINDS[tag] = "View";
|
|
@@ -904,10 +907,8 @@ function analyzeComponentSource(file, source, parseSync) {
|
|
|
904
907
|
only: "react-native"
|
|
905
908
|
});
|
|
906
909
|
for (const script of farmComponentModuleScripts(blocks)) {
|
|
907
|
-
const hydrate =
|
|
908
|
-
|
|
909
|
-
);
|
|
910
|
-
if (hydrate) {
|
|
910
|
+
const hydrate = readFarmHydrateExport(source.slice(script.start, script.end));
|
|
911
|
+
if (hydrate?.value === true) {
|
|
911
912
|
block(
|
|
912
913
|
script.start + hydrate.index,
|
|
913
914
|
"client-logic",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk5MUFW5UUcjs = require('./chunk-5MUFW5UU.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkPIUTGRDIcjs = require('./chunk-PIUTGRDI.cjs');
|
|
@@ -64,7 +64,7 @@ function findFarmNativeScreenFiles(appDirs) {
|
|
|
64
64
|
}
|
|
65
65
|
function collectFarmNativeServerFns(options) {
|
|
66
66
|
const { root, srcDir } = options;
|
|
67
|
-
const aliases =
|
|
67
|
+
const aliases = _chunk5MUFW5UUcjs.readAliases.call(void 0, root, srcDir);
|
|
68
68
|
const seen = /* @__PURE__ */ new Set();
|
|
69
69
|
const found = /* @__PURE__ */ new Map();
|
|
70
70
|
const queue = [...options.entries];
|
|
@@ -98,7 +98,7 @@ function collectFarmNativeServerFns(options) {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
for (const candidate of _nullishCoalesce(candidates, () => ( []))) {
|
|
101
|
-
const resolved =
|
|
101
|
+
const resolved = _chunk5MUFW5UUcjs.resolveFile.call(void 0, candidate);
|
|
102
102
|
if (resolved && SCRIPT.test(resolved) && !resolved.includes(`${_path2.default.sep}node_modules${_path2.default.sep}`)) {
|
|
103
103
|
queue.push(resolved);
|
|
104
104
|
break;
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-IYEY3JWJ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
APIRouteConflictError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NAHDG6UX.mjs";
|
|
13
13
|
import {
|
|
14
14
|
findProgrammaticRouteFilesInDir
|
|
15
15
|
} from "./chunk-URBP6DLH.mjs";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
matchAPIRouteAtBasePath,
|
|
27
27
|
mergePluginAPIRoutes,
|
|
28
28
|
resolveAPIRouteEndpoint
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-KWI3SQFX.mjs";
|
|
30
30
|
import {
|
|
31
31
|
isProgrammaticRoutesFileName
|
|
32
32
|
} from "./chunk-DZXD6CYJ.mjs";
|
|
@@ -9,6 +9,9 @@ import {
|
|
|
9
9
|
toPosixPath
|
|
10
10
|
} from "./chunk-U6GMCDRS.mjs";
|
|
11
11
|
|
|
12
|
+
// src/preview-request.ts
|
|
13
|
+
var FARM_PREVIEW_REQUEST_HEADER = "x-farm-preview";
|
|
14
|
+
|
|
12
15
|
// src/cron.ts
|
|
13
16
|
var DEFAULT_FARM_CRON_SECRET_ENV = "CRON_SECRET";
|
|
14
17
|
var FARM_CRON_MANIFEST = "cron-manifest.json";
|
|
@@ -200,7 +203,9 @@ function isCronRequestAuthorized(request, options = {}) {
|
|
|
200
203
|
const secretEnv = options.secretEnv || DEFAULT_FARM_CRON_SECRET_ENV;
|
|
201
204
|
const secret = options.secret || readFarmEnvironmentValue(secretEnv);
|
|
202
205
|
if (!secret) {
|
|
203
|
-
return options.allowUnsecured === true || !getFarmRuntimeBindings() && isExplicitDevelopmentEnv()
|
|
206
|
+
return options.allowUnsecured === true || !getFarmRuntimeBindings() && isExplicitDevelopmentEnv() && // Development stays open for the developer's own machine, not for visitors to a
|
|
207
|
+
// `farm preview` URL. The preview marks every request it tunnels in.
|
|
208
|
+
!request.headers.get(FARM_PREVIEW_REQUEST_HEADER);
|
|
204
209
|
}
|
|
205
210
|
const authorization = request.headers.get("authorization") || "";
|
|
206
211
|
const bearer = /^Bearer (.*)$/i.exec(authorization)?.[1] || "";
|
|
@@ -658,6 +663,7 @@ function safeFileName(value) {
|
|
|
658
663
|
}
|
|
659
664
|
|
|
660
665
|
export {
|
|
666
|
+
FARM_PREVIEW_REQUEST_HEADER,
|
|
661
667
|
DEFAULT_FARM_CRON_SECRET_ENV,
|
|
662
668
|
FARM_CRON_MANIFEST,
|
|
663
669
|
resolveCronConfig,
|