@farm.js/core 0.1.78 → 0.1.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-mcp-handler-EDJNU224.mjs → agent-mcp-handler-GDY5CPPW.mjs} +5 -5
- package/dist/{agent-mcp-handler-LNBYLRTZ.cjs → agent-mcp-handler-IUL6OPC3.cjs} +6 -6
- package/dist/{agent-mcp.d-BErtnhV2.d.ts → agent-mcp.d-Cxi3214_.d.ts} +1 -1
- package/dist/{agent-mcp.d-CYHfcjur.d.mts → agent-mcp.d-DMqOqnOA.d.mts} +1 -1
- package/dist/agent-runtime.cjs +2 -2
- package/dist/agent-runtime.d.mts +5 -4
- package/dist/agent-runtime.d.ts +5 -4
- package/dist/agent-runtime.mjs +1 -1
- package/dist/analyzer-435DCIQ6.cjs +17 -0
- package/dist/{analyzer-M2BG6QYU.mjs → analyzer-IC66UJCU.mjs} +3 -2
- package/dist/api/client.cjs +1 -1
- package/dist/api/client.mjs +1 -1
- package/dist/api/client.native.cjs +1 -1
- package/dist/api/client.native.mjs +1 -1
- package/dist/api/node.cjs +7 -7
- package/dist/api/node.d.mts +7 -6
- package/dist/api/node.d.ts +7 -6
- package/dist/api/node.mjs +6 -6
- package/dist/api/route-manager.cjs +10 -10
- package/dist/api/route-manager.d.mts +7 -6
- package/dist/api/route-manager.d.ts +7 -6
- package/dist/api/route-manager.mjs +9 -9
- package/dist/api/runtime.cjs +6 -6
- package/dist/api/runtime.d.mts +6 -5
- package/dist/api/runtime.d.ts +6 -5
- package/dist/api/runtime.mjs +5 -5
- package/dist/api.cjs +12 -12
- package/dist/api.d.mts +8 -7
- package/dist/api.d.ts +8 -7
- package/dist/api.mjs +11 -11
- package/dist/{app-manifest.d-6NCkLQ1y.d.mts → app-manifest.d-Bbxp5kes.d.mts} +1 -1
- package/dist/{app-manifest.d-DuqLBcmi.d.ts → app-manifest.d-C8Cswd31.d.ts} +1 -1
- package/dist/app-markdown.cjs +5 -5
- package/dist/app-markdown.d.mts +8 -7
- package/dist/app-markdown.d.ts +8 -7
- package/dist/app-markdown.mjs +4 -4
- package/dist/{app.d-Dk2HkvPh.d.mts → app.d-BJuSurgy.d.mts} +13 -4
- package/dist/{app.d-Bz6vYBFF.d.ts → app.d-DGIoFt5D.d.ts} +13 -4
- package/dist/cache.cjs +3 -3
- package/dist/cache.mjs +2 -2
- package/dist/{chunk-PG7J7XYT.cjs → chunk-26WP75W5.cjs} +38 -22
- package/dist/{chunk-QYOAGT3E.cjs → chunk-2BEGVSDF.cjs} +6 -5
- package/dist/{chunk-GCRT6GJG.mjs → chunk-2HMSSPCZ.mjs} +26 -0
- package/dist/{chunk-2YJ4DHTD.cjs → chunk-2NOHVIJ3.cjs} +2 -2
- package/dist/{chunk-GDM3ZD2O.cjs → chunk-2OFP3IVA.cjs} +5 -1
- package/dist/{chunk-7KDCVSTR.mjs → chunk-2PFGA6PB.mjs} +2 -2
- package/dist/chunk-2UYYXSUS.mjs +401 -0
- package/dist/{chunk-DD2ANOEF.cjs → chunk-2Y2HRZQY.cjs} +843 -627
- package/dist/{chunk-PL7MCYYD.mjs → chunk-3AV4DCXY.mjs} +58 -358
- package/dist/{chunk-3GNHJ3RN.cjs → chunk-3BTN3NP7.cjs} +2 -2
- package/dist/{chunk-XT2CHTDN.mjs → chunk-3RVLJTFZ.mjs} +6 -6
- package/dist/{chunk-VJ6L7TII.cjs → chunk-3SPECQXI.cjs} +31 -20
- package/dist/{chunk-ODYKCC6W.cjs → chunk-46UV2E7I.cjs} +156 -104
- package/dist/{chunk-F4ID7BGO.cjs → chunk-4OFWG4IK.cjs} +7 -7
- package/dist/{chunk-VRI43FDN.mjs → chunk-4WXNTAOM.mjs} +1 -1
- package/dist/{chunk-QMR2TUVZ.cjs → chunk-52Q4OB4A.cjs} +4 -4
- package/dist/chunk-5MMKNW7Q.cjs +54 -0
- package/dist/{chunk-RIMEFQYO.mjs → chunk-5N526T7Q.mjs} +116 -86
- package/dist/{chunk-CYNQPKA4.cjs → chunk-5ZHC6QGD.cjs} +2 -2
- package/dist/{chunk-ALEUMLJN.mjs → chunk-67JTJCAS.mjs} +3 -2
- package/dist/{chunk-CBP7AKZH.mjs → chunk-6GJZJAED.mjs} +1 -1
- package/dist/{chunk-5REIO5DT.mjs → chunk-6WVRVGKC.mjs} +6 -6
- package/dist/{chunk-GC5ROI3A.cjs → chunk-7U4XF76R.cjs} +1 -1
- package/dist/{chunk-FOULIN4S.cjs → chunk-ADQ2LATR.cjs} +2 -2
- package/dist/{chunk-K3ZELA6U.cjs → chunk-AHVF5GI2.cjs} +10 -10
- package/dist/{chunk-CSAIIMY3.mjs → chunk-ATISIC6G.mjs} +1 -1
- package/dist/{chunk-MGKWYPE3.mjs → chunk-AYDVUCXD.mjs} +1 -0
- package/dist/chunk-B7L24VPX.cjs +401 -0
- package/dist/{chunk-DPBQRDWW.cjs → chunk-BBVLOEND.cjs} +4 -4
- package/dist/{chunk-DASQJ5UD.mjs → chunk-BCQIXH7L.mjs} +1 -1
- package/dist/{chunk-BNCKXPCU.cjs → chunk-BIAGSYIZ.cjs} +30 -30
- package/dist/{chunk-R77D7TCZ.mjs → chunk-BJWJP5A4.mjs} +20 -13
- package/dist/{chunk-X2SEYK7I.mjs → chunk-BPWTSPK6.mjs} +3 -3
- package/dist/{chunk-CKNZJFK5.cjs → chunk-BSX5OGSD.cjs} +4 -4
- package/dist/{chunk-ERT6HQAI.mjs → chunk-BVJUFVCU.mjs} +2 -2
- package/dist/chunk-C5QHZ626.cjs +85 -0
- package/dist/{chunk-HVMQAVZK.cjs → chunk-CL7BUGVB.cjs} +656 -521
- package/dist/{chunk-TZ2YPXLB.cjs → chunk-CN2JOTRO.cjs} +7 -7
- package/dist/{chunk-ZCYGYIC2.cjs → chunk-CPZZBCPO.cjs} +22 -21
- package/dist/{chunk-RK4MGL6Q.mjs → chunk-CYRO3WP4.mjs} +4 -3
- package/dist/chunk-D2VAANBS.mjs +48 -0
- package/dist/{chunk-VRJAMU34.mjs → chunk-D77OGI6X.mjs} +1 -1
- package/dist/{chunk-6XDDE7M6.cjs → chunk-DJ3PVHTW.cjs} +3 -3
- package/dist/{chunk-XGS76V7L.cjs → chunk-E3HBD2K3.cjs} +22 -22
- package/dist/{chunk-F35C3TJZ.mjs → chunk-E4E4Y5FD.mjs} +1 -1
- package/dist/{chunk-KUXEII7V.mjs → chunk-ECVSRE4Y.mjs} +3 -2
- package/dist/{chunk-2DA7CLY7.mjs → chunk-EILUVBKS.mjs} +14 -0
- package/dist/chunk-EZYKV24V.mjs +385 -0
- package/dist/{chunk-TVCFY3KK.cjs → chunk-FB4CWSC2.cjs} +12 -12
- package/dist/{chunk-ZO6TOLHL.mjs → chunk-FS55CNTC.mjs} +1 -1
- package/dist/{chunk-IYFBLWXU.cjs → chunk-FULX5RYX.cjs} +61 -361
- package/dist/{chunk-5KISFWD2.cjs → chunk-FYZD7DUS.cjs} +12 -12
- package/dist/{chunk-H5OVJHXY.cjs → chunk-GAWSWJJ2.cjs} +27 -27
- package/dist/{chunk-A37D6LOS.mjs → chunk-GY63XD6K.mjs} +1 -1
- package/dist/{chunk-OVUU2RCQ.mjs → chunk-HD5FLXP2.mjs} +1 -1
- package/dist/{chunk-5QZT2EQN.cjs → chunk-HQEYZSF3.cjs} +4 -3
- package/dist/{chunk-JA6RML7C.mjs → chunk-HR4N2K4V.mjs} +2 -2
- package/dist/{chunk-6D3CJFNU.cjs → chunk-HR5GU4UU.cjs} +7 -7
- package/dist/{chunk-7RQ5KAK6.mjs → chunk-HTNJ7A4D.mjs} +88 -36
- package/dist/chunk-I4WZRG73.mjs +54 -0
- package/dist/{chunk-BGUTIQII.mjs → chunk-ICOJ2BC6.mjs} +24 -8
- package/dist/{chunk-SX535SU5.cjs → chunk-IJPRCQHW.cjs} +10 -10
- package/dist/{chunk-E7V2GYBP.mjs → chunk-IM3UINTZ.mjs} +67 -9
- package/dist/{chunk-MNIR7I7B.mjs → chunk-INKVDO42.mjs} +1 -1
- package/dist/{chunk-AHGOHPRN.mjs → chunk-IPG6B25T.mjs} +235 -100
- package/dist/{chunk-PE2LEWXA.mjs → chunk-J2VUPCCR.mjs} +4 -4
- package/dist/{chunk-Q2EKSSEG.cjs → chunk-JB4BHRFK.cjs} +17 -17
- package/dist/{chunk-YN7G22MP.cjs → chunk-JCYDWJVO.cjs} +3 -3
- package/dist/{chunk-LPXJEZJK.mjs → chunk-KCJBIWBM.mjs} +2 -2
- package/dist/{chunk-NSNQLBHR.cjs → chunk-KMGHXIDA.cjs} +2 -2
- package/dist/{chunk-SVCUSOEF.mjs → chunk-KR5DF7WK.mjs} +1 -1
- package/dist/{chunk-5DREJN4G.cjs → chunk-LKIG5SM6.cjs} +17 -17
- package/dist/{chunk-OGVOKAQU.mjs → chunk-LTOT5KVJ.mjs} +2 -2
- package/dist/{chunk-Z2FFLTF5.mjs → chunk-LTXKRIST.mjs} +2 -2
- package/dist/{chunk-67MZTLTF.cjs → chunk-M6DAIE4T.cjs} +27 -1
- package/dist/{chunk-IWGGRXD2.cjs → chunk-MHKPXX3J.cjs} +2 -2
- package/dist/{chunk-F7PKUP6P.cjs → chunk-MOGRRZMW.cjs} +38 -38
- package/dist/{chunk-DZZHTMWM.cjs → chunk-N3H7UPBM.cjs} +3 -2
- package/dist/{chunk-WGNGM6MJ.mjs → chunk-N3VMHPIY.mjs} +2 -2
- package/dist/{chunk-EBFTAVGD.mjs → chunk-NOYKBGUK.mjs} +672 -456
- package/dist/{chunk-LMXGCFAM.cjs → chunk-NSLRK5DK.cjs} +1 -1
- package/dist/{chunk-EVVV2XZ2.cjs → chunk-NW3DL2PM.cjs} +53 -7
- package/dist/{chunk-6ZFGWB75.cjs → chunk-OFVCWV2D.cjs} +5 -5
- package/dist/{chunk-NB2ZEBIS.cjs → chunk-OIWDEDUO.cjs} +540 -510
- package/dist/{chunk-WRWJ7IWT.cjs → chunk-OLKYHTLN.cjs} +5 -5
- package/dist/{chunk-QES76U42.mjs → chunk-ONSZP5JK.mjs} +4 -4
- package/dist/{chunk-H76C5AOU.mjs → chunk-OO4GVGM3.mjs} +4 -4
- package/dist/{chunk-BZJYPIFZ.cjs → chunk-OUDNUFVR.cjs} +12 -12
- package/dist/{chunk-EVIWKPJV.cjs → chunk-PLJMEUAN.cjs} +15 -1
- package/dist/{chunk-GFXKO4UW.mjs → chunk-PO5MZIWK.mjs} +49 -49
- package/dist/{chunk-VCW6BR6U.mjs → chunk-POL5RCVU.mjs} +2 -2
- package/dist/{chunk-EMTN5ABC.mjs → chunk-POVHO46S.mjs} +1 -1
- package/dist/{chunk-ASYOWPSR.cjs → chunk-PWDBWXQI.cjs} +2 -1
- package/dist/{chunk-X3Y6JWJG.cjs → chunk-PWMJBCAN.cjs} +3 -3
- package/dist/{chunk-IGE5BAWK.mjs → chunk-QBJ6N5MT.mjs} +53 -7
- package/dist/{chunk-62DZHPDK.cjs → chunk-QCKSYYXK.cjs} +10 -10
- package/dist/{chunk-PKXGFQZS.mjs → chunk-QD34VE4N.mjs} +1 -1
- package/dist/{chunk-57QAQU4F.mjs → chunk-QRNYSISP.mjs} +1 -1
- package/dist/{chunk-PRL7FXG4.cjs → chunk-RDNKQ5MK.cjs} +12 -13
- package/dist/{chunk-VJI2LWTL.cjs → chunk-RFNQTQ44.cjs} +2 -2
- package/dist/{chunk-IG2JE6WJ.mjs → chunk-RLEAVG6G.mjs} +1 -1
- package/dist/{chunk-VO5XDZHK.mjs → chunk-RPA45OQS.mjs} +2 -2
- package/dist/{chunk-PNWRH6TR.mjs → chunk-RZ6XUEQS.mjs} +4 -4
- package/dist/{chunk-S6RUJRWI.mjs → chunk-S3IWDDQ3.mjs} +1 -1
- package/dist/{chunk-EGHPFXPZ.cjs → chunk-SAPG45RA.cjs} +23 -23
- package/dist/{chunk-FE6KYDHC.cjs → chunk-SHDCKRP4.cjs} +3 -3
- package/dist/{chunk-DUSTJ6A5.mjs → chunk-SLEHAGGV.mjs} +2 -2
- package/dist/{chunk-26CNCIFI.cjs → chunk-T3SMMLSB.cjs} +2 -2
- package/dist/{chunk-K6DXKHFE.mjs → chunk-TE7AX6HB.mjs} +1 -1
- package/dist/{chunk-A7EJATEW.mjs → chunk-TLSGRK7E.mjs} +4 -4
- package/dist/{chunk-KHS3T3E5.mjs → chunk-TYHWZOA2.mjs} +1 -1
- package/dist/{chunk-Z3QXQN4U.mjs → chunk-U6GMCDRS.mjs} +1 -1
- package/dist/{chunk-URQW27KO.mjs → chunk-UBLKPREL.mjs} +1 -1
- package/dist/chunk-UDMBUTJD.mjs +85 -0
- package/dist/{chunk-WJ4NUY2H.mjs → chunk-UF4BNKKJ.mjs} +4 -4
- package/dist/{chunk-L7Y65BQU.cjs → chunk-UGD53SNO.cjs} +50 -50
- package/dist/{chunk-DD22NQFX.cjs → chunk-UGLTOLTJ.cjs} +2 -2
- package/dist/{chunk-G7B6NU4X.cjs → chunk-VFMHE5D3.cjs} +3 -3
- package/dist/{chunk-4SLHSODZ.cjs → chunk-VGHDPEPQ.cjs} +15 -15
- package/dist/{chunk-IXO6O2EL.cjs → chunk-VGVRGGP4.cjs} +2 -2
- package/dist/{chunk-47R7CX4A.mjs → chunk-VPGEYX5Y.mjs} +4 -4
- package/dist/chunk-VS7HLH4S.cjs +385 -0
- package/dist/{chunk-YRXPDKMM.cjs → chunk-W53Z4WDI.cjs} +8 -8
- package/dist/{chunk-NNGBTJCX.cjs → chunk-W6C3LEXX.cjs} +83 -25
- package/dist/{chunk-4VLXQ55O.cjs → chunk-WIZRYFB2.cjs} +3 -3
- package/dist/chunk-WMRGIQTA.cjs +48 -0
- package/dist/{chunk-52LTENRE.cjs → chunk-WOAXQ5MZ.cjs} +9 -9
- package/dist/{chunk-C6HGUTXB.mjs → chunk-XBSIGZ4J.mjs} +2 -3
- package/dist/{chunk-S7QEQCVV.mjs → chunk-XGL42MQ7.mjs} +1 -1
- package/dist/{chunk-JHZ6HULQ.cjs → chunk-XOFJUSWC.cjs} +4 -4
- package/dist/{chunk-LJKTJNOF.cjs → chunk-XOGCNKB7.cjs} +3 -3
- package/dist/{chunk-7JTVN6IJ.mjs → chunk-XOXCQGAF.mjs} +7 -6
- package/dist/{chunk-LIC6CMLB.mjs → chunk-YH7ENV3K.mjs} +18 -18
- package/dist/{chunk-ZJGFAW5U.mjs → chunk-YHHOTKUT.mjs} +5 -1
- package/dist/{chunk-B3IRRANH.mjs → chunk-YHM4PXJY.mjs} +1 -1
- package/dist/{chunk-PDACTAVX.mjs → chunk-YOVSWY2E.mjs} +1 -1
- package/dist/{chunk-ZEWIWAS2.mjs → chunk-YSU3WCW6.mjs} +2 -2
- package/dist/{chunk-R5X7FDOG.mjs → chunk-YU2MNIIY.mjs} +1 -1
- package/dist/{chunk-42EUEYW6.cjs → chunk-YUQUGVSV.cjs} +8 -8
- package/dist/{chunk-4STJ6LGR.mjs → chunk-Z3RM3VA2.mjs} +1 -1
- package/dist/{chunk-MBD34AS5.cjs → chunk-Z5BANEQD.cjs} +6 -6
- package/dist/{chunk-4PWGLPL6.mjs → chunk-ZIEO3DQ3.mjs} +26 -15
- package/dist/{chunk-2G6JPLSL.cjs → chunk-ZIYJWJV2.cjs} +27 -20
- package/dist/{chunk-KZ5BOWJS.cjs → chunk-ZKNXCRUQ.cjs} +28 -28
- package/dist/{cli-runtime.d-CGMGs1Zz.d.mts → cli-runtime.d-D8O1v2_X.d.mts} +7 -6
- package/dist/{cli-runtime.d-BG9q2_vC.d.ts → cli-runtime.d-hf4L1MNP.d.ts} +7 -6
- package/dist/client/lifecycle.d.mts +1 -1
- package/dist/client/lifecycle.d.ts +1 -1
- package/dist/{client-component.d-B84GPb_u.d.ts → client-component.d-CX8UCQh-.d.ts} +1 -1
- package/dist/{client-component.d-CdsG1E7p.d.mts → client-component.d-DFwUHlOz.d.mts} +1 -1
- package/dist/{client-plugins.d-DX-iCJWE.d.mts → client-plugins.d-BflSNO-b.d.mts} +5 -16
- package/dist/{client-plugins.d-FptsHgls.d.ts → client-plugins.d-qWp8hNwd.d.ts} +5 -16
- package/dist/client-plugins.d.mts +5 -4
- package/dist/client-plugins.d.ts +5 -4
- package/dist/client.cjs +9 -8
- package/dist/client.d.mts +23 -154
- package/dist/client.d.ts +23 -154
- package/dist/client.mjs +8 -7
- package/dist/config.d.mts +5 -4
- package/dist/config.d.ts +5 -4
- package/dist/cron.cjs +3 -3
- package/dist/cron.mjs +2 -2
- package/dist/desktop.d.mts +6 -5
- package/dist/desktop.d.ts +6 -5
- package/dist/{devtools-TMATFNUY.cjs → devtools-EI5N366Z.cjs} +17 -17
- package/dist/{devtools-7P3OUNLV.mjs → devtools-XJHODO5H.mjs} +14 -14
- package/dist/docs.cjs +18 -18
- package/dist/docs.d.mts +7 -6
- package/dist/docs.d.ts +7 -6
- package/dist/docs.mjs +17 -17
- package/dist/environment/vite.cjs +8 -7
- package/dist/environment/vite.d.mts +9 -0
- package/dist/environment/vite.d.ts +9 -0
- package/dist/environment/vite.mjs +7 -6
- package/dist/{handler.d-Cy3XbY_W.d.ts → handler.d-C2oRihfa.d.ts} +1 -1
- package/dist/{handler.d-DSwLTpa5.d.mts → handler.d-DoH5Krkq.d.mts} +1 -1
- package/dist/{headers.d-DiL9YTH3.d.mts → headers.d-BrX53wFQ.d.mts} +1 -1
- package/dist/{headers.d-Qbjo38a0.d.ts → headers.d-Dj0mfYpb.d.ts} +1 -1
- package/dist/index.cjs +90 -82
- package/dist/{index.d-OccJoC6I.d.ts → index.d-Dhc2scRl.d.ts} +1 -1
- package/dist/{index.d-CqQKX3s6.d.mts → index.d-DzDHOttz.d.mts} +1 -1
- package/dist/index.d.mts +29 -27
- package/dist/index.d.ts +29 -27
- package/dist/index.mjs +92 -84
- package/dist/instrumentation.cjs +3 -3
- package/dist/instrumentation.mjs +2 -2
- package/dist/integrations/orm.cjs +3 -3
- package/dist/integrations/orm.d.mts +5 -4
- package/dist/integrations/orm.d.ts +5 -4
- package/dist/integrations/orm.mjs +2 -2
- package/dist/integrations.cjs +2 -2
- package/dist/integrations.d.mts +5 -4
- package/dist/integrations.d.ts +5 -4
- package/dist/integrations.mjs +1 -1
- package/dist/internal/app-markdown-runtime.cjs +4 -4
- package/dist/internal/app-markdown-runtime.d.mts +15 -8
- package/dist/internal/app-markdown-runtime.d.ts +15 -8
- package/dist/internal/app-markdown-runtime.mjs +3 -3
- package/dist/internal/build-runtime.cjs +63 -62
- package/dist/internal/build-runtime.d.mts +8 -7
- package/dist/internal/build-runtime.d.ts +8 -7
- package/dist/internal/build-runtime.mjs +62 -61
- package/dist/internal/cli-runtime.cjs +37 -34
- package/dist/internal/cli-runtime.d.mts +12 -11
- package/dist/internal/cli-runtime.d.ts +12 -11
- package/dist/internal/cli-runtime.mjs +39 -36
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +112 -14
- package/dist/internal/client-runtime.d.mts +29 -22
- package/dist/internal/client-runtime.d.ts +29 -22
- package/dist/internal/client-runtime.mjs +104 -6
- package/dist/internal/compression-runtime.d.mts +5 -4
- package/dist/internal/compression-runtime.d.ts +5 -4
- package/dist/internal/config-runtime.cjs +16 -16
- package/dist/internal/config-runtime.d.mts +7 -6
- package/dist/internal/config-runtime.d.ts +7 -6
- package/dist/internal/config-runtime.mjs +15 -15
- 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 +11 -11
- package/dist/internal/infra-analytics-runtime.mjs +9 -9
- 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 +39 -5
- package/dist/internal/islands-boot.d.mts +19 -1
- package/dist/internal/islands-boot.d.ts +19 -1
- package/dist/internal/islands-boot.mjs +38 -4
- 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 +36 -36
- package/dist/internal/production-runtime.d.mts +15 -13
- package/dist/internal/production-runtime.d.ts +15 -13
- package/dist/internal/production-runtime.mjs +46 -46
- 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 +44 -0
- package/dist/internal/spa-router.d.mts +42 -0
- package/dist/internal/spa-router.d.ts +42 -0
- package/dist/internal/spa-router.mjs +44 -0
- package/dist/internal/start-manifest.d.mts +5 -4
- package/dist/internal/start-manifest.d.ts +5 -4
- package/dist/internal/vercel-edge-middleware.cjs +4 -4
- package/dist/internal/vercel-edge-middleware.mjs +3 -3
- 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/{lifecycle.d-VzcXyEyn.d.ts → lifecycle.d-OtGWAvJT.d.mts} +1 -1
- package/dist/{lifecycle.d-VzcXyEyn.d.mts → lifecycle.d-OtGWAvJT.d.ts} +1 -1
- package/dist/markdown.cjs +3 -3
- package/dist/markdown.d.mts +5 -4
- package/dist/markdown.d.ts +5 -4
- package/dist/markdown.mjs +2 -2
- package/dist/middleware.cjs +10 -10
- package/dist/middleware.d.mts +5 -4
- package/dist/middleware.d.ts +5 -4
- package/dist/middleware.mjs +9 -9
- package/dist/{mount.d-AcJaUtHF.d.mts → mount.d-DOaeUoWq.d.mts} +1 -1
- package/dist/{mount.d-CPzqOm-a.d.ts → mount.d-DwXjaOHY.d.ts} +1 -1
- package/dist/{native-server-fn-handler-XRTZR7SZ.cjs → native-server-fn-handler-57TCQPSM.cjs} +6 -6
- package/dist/{native-server-fn-handler-WYYY4YBN.mjs → native-server-fn-handler-PYK65A46.mjs} +5 -5
- package/dist/{native-tree-MNUFN5G6.cjs → native-tree-5TENEQ7Y.cjs} +4 -4
- package/dist/{native-tree-JDI3LJSH.mjs → native-tree-LNO7K6JR.mjs} +3 -3
- package/dist/{navigation-delegate.d-C4i5Y39E.d.mts → navigation-delegate.d-BElGUMgt.d.mts} +1 -1
- package/dist/{navigation-delegate.d-_Df9DnPY.d.ts → navigation-delegate.d-o3pPd9VI.d.ts} +1 -1
- package/dist/navigation-errors.d-DwHtoMyR.d.mts +13 -0
- package/dist/navigation-errors.d-DwHtoMyR.d.ts +13 -0
- package/dist/navigation.cjs +6 -6
- package/dist/navigation.d.mts +10 -9
- package/dist/navigation.d.ts +10 -9
- package/dist/navigation.mjs +5 -5
- package/dist/{nitro-NUCTYEKJ.cjs → nitro-XGIO6EQN.cjs} +7 -7
- package/dist/{nitro-VCJ6QQSI.mjs → nitro-YLTGVGK4.mjs} +3 -3
- 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/observability.cjs +8 -2
- package/dist/{observability.d-DdJRiaIX.d.mts → observability.d-mXSbp4jc.d.mts} +17 -1
- package/dist/{observability.d-DdJRiaIX.d.ts → observability.d-mXSbp4jc.d.ts} +17 -1
- package/dist/observability.d.mts +1 -1
- package/dist/observability.d.ts +1 -1
- package/dist/observability.mjs +7 -1
- package/dist/{plugin-TV6W7YNK.mjs → plugin-33I3V42N.mjs} +1 -1
- package/dist/{plugin-AGEFSU7K.cjs → plugin-LN3JBZRR.cjs} +2 -2
- package/dist/plugin.cjs +50 -48
- package/dist/plugin.d.mts +9 -8
- package/dist/plugin.d.ts +9 -8
- package/dist/plugin.mjs +49 -47
- package/dist/query/client.cjs +10 -10
- package/dist/query/client.mjs +5 -5
- package/dist/{render-plan.d-CslZE7o7.d.ts → render-plan.d-BD06tqFA.d.ts} +1 -1
- package/dist/{render-plan.d-4V_NmaA6.d.mts → render-plan.d-xWCRAJeR.d.mts} +1 -1
- package/dist/renderer/none/server.cjs +5 -1
- package/dist/renderer/none/server.d.mts +3 -1
- package/dist/renderer/none/server.d.ts +3 -1
- package/dist/renderer/none/server.mjs +4 -0
- package/dist/renderer/react/server.cjs +6 -6
- package/dist/renderer/react/server.mjs +3 -3
- package/dist/renderer-client.cjs +34 -15
- package/dist/renderer-client.d.mts +16 -100
- package/dist/renderer-client.d.ts +16 -100
- package/dist/renderer-client.mjs +23 -4
- package/dist/renderer.cjs +4 -2
- package/dist/renderer.d.mts +49 -6
- package/dist/renderer.d.ts +49 -6
- package/dist/renderer.mjs +3 -1
- package/dist/{request.d-CbV3y7j3.d.ts → request.d-DUMuWxSN.d.ts} +1 -1
- package/dist/{request.d-CmLTxEgS.d.mts → request.d-Dx82V8bz.d.mts} +1 -1
- package/dist/request.d.mts +6 -5
- package/dist/request.d.ts +6 -5
- package/dist/{route-rendering.d-CETnXNez.d.ts → route-rendering.d-BwBVpLtD.d.ts} +1 -1
- package/dist/{route-rendering.d-CmoqfOmj.d.mts → route-rendering.d-DJh6GauM.d.mts} +1 -1
- package/dist/{router.d-ktz7pwYm.d.mts → router.d-BtkKDxUB.d.mts} +1 -1
- package/dist/{router.d-Dga3N5YO.d.ts → router.d-CJBSG5jr.d.ts} +1 -1
- package/dist/routes.cjs +5 -5
- package/dist/routes.d.mts +5 -4
- package/dist/routes.d.ts +5 -4
- package/dist/routes.mjs +4 -4
- package/dist/{rsc-pipeline-N7CWJW7T.mjs → rsc-pipeline-GD6KLOIG.mjs} +20 -20
- package/dist/{rsc-pipeline-JLYD26AR.cjs → rsc-pipeline-H5AXQA7A.cjs} +21 -21
- package/dist/{runtime-QXX2A4TS.mjs → runtime-OJ7FXFUI.mjs} +22 -22
- package/dist/{runtime-F5NSS4DD.cjs → runtime-YWQVBC3V.cjs} +32 -32
- package/dist/{runtime.d-BWLZUOfA.d.ts → runtime.d-BQnD0cfC.d.ts} +1 -1
- package/dist/{runtime.d-DuaXEM0p.d.mts → runtime.d-C4SuZXf6.d.mts} +1 -1
- package/dist/{schema-dev-notice-2GN5V7Y2.mjs → schema-dev-notice-EUPAUJVN.mjs} +2 -2
- package/dist/{schema-dev-notice-6VCOZGG2.cjs → schema-dev-notice-ZSCL47CT.cjs} +5 -5
- package/dist/search-client-A7YJT7JZ.cjs +15 -0
- package/dist/{search-client-W4PEFAQB.mjs → search-client-GIXIEU75.mjs} +1 -1
- package/dist/server-action-security.cjs +1 -1
- package/dist/server-action-security.mjs +1 -1
- package/dist/{server-components-status.d-CqxtJmqP.d.mts → server-components-status.d-9rH7ZoEq.d.mts} +1 -1
- package/dist/{server-components-status.d-C5JpC7_Y.d.ts → server-components-status.d-rfKOcE0N.d.ts} +1 -1
- package/dist/server-fn.cjs +5 -5
- package/dist/server-fn.mjs +4 -4
- package/dist/server-plugins.cjs +1 -1
- package/dist/server-plugins.d.mts +7 -6
- package/dist/server-plugins.d.ts +7 -6
- package/dist/server-plugins.mjs +1 -1
- package/dist/server-query.cjs +6 -6
- package/dist/server-query.mjs +5 -5
- package/dist/server.cjs +95 -90
- package/dist/server.d.mts +16 -15
- package/dist/server.d.ts +16 -15
- package/dist/server.mjs +61 -56
- package/dist/{session-AK2OA5UZ.mjs → session-4IB34X35.mjs} +2 -2
- package/dist/session-MOYQJ7E6.cjs +24 -0
- package/dist/{spa-router.d-C3LzwTlY.d.ts → spa-router.d-DMKiBsHH.d.ts} +20 -4
- package/dist/{spa-router.d-BLE188EL.d.mts → spa-router.d-V6XLSTCy.d.mts} +20 -4
- package/dist/{ssg.d-QrFyU6T4.d.mts → ssg.d-BnCKPQL0.d.mts} +2 -2
- package/dist/{ssg.d-DisOfj0I.d.ts → ssg.d-MNedvvMB.d.ts} +2 -2
- package/dist/storage.cjs +2 -2
- package/dist/storage.d.mts +112 -96
- package/dist/storage.d.ts +112 -96
- package/dist/storage.mjs +1 -1
- package/dist/store-core.d-Ad5biajo.d.ts +301 -0
- package/dist/store-core.d-BqJI1-ix.d.mts +301 -0
- package/dist/testing.cjs +13 -13
- package/dist/testing.d.mts +5 -4
- package/dist/testing.d.ts +5 -4
- package/dist/testing.mjs +10 -10
- package/dist/{types.d-DW2vyaUq.d.mts → types.d-C5hlNbHa.d.mts} +8 -1
- package/dist/{types.d-DW2vyaUq.d.ts → types.d-C5hlNbHa.d.ts} +8 -1
- package/dist/{utils.d-BlWZFgdL.d.mts → utils.d-BEKLWa0Z.d.mts} +1 -1
- package/dist/{utils.d-7YcgfTCK.d.ts → utils.d-BdjHKDuT.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +55 -49
- package/dist/vite.d.mts +26 -10
- package/dist/vite.d.ts +26 -10
- package/dist/vite.mjs +54 -48
- package/dist/workflows.cjs +3 -3
- package/dist/workflows.mjs +2 -2
- package/package.json +23 -2
- package/types/images.d.ts +9 -0
- package/dist/analyzer-KVTUYGTT.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/search-client-6NVC6HM2.cjs +0 -15
- package/dist/session-H4TWP73H.cjs +0 -24
- package/dist/{chunk-JKFN3YVG.mjs → chunk-6JWXHPVR.mjs} +0 -0
- package/dist/{chunk-522K362I.mjs → chunk-C2OLXVUC.mjs} +0 -0
- package/dist/{chunk-MALGIHIC.cjs → chunk-HS4JPIGR.cjs} +0 -0
- package/dist/{chunk-PBJ7MEOV.cjs → chunk-OZUINP2P.cjs} +2 -2
- package/dist/{chunk-CUZT7474.cjs → chunk-TCMRLW3K.cjs} +0 -0
- package/dist/{chunk-Q3DO7MVK.mjs → chunk-URBP6DLH.mjs} +0 -0
- package/dist/{chunk-7FQFK3OA.mjs → chunk-V7HNYR76.mjs} +3 -3
- /package/dist/{chunk-AOTD2N5P.cjs → chunk-WGWWRV2M.cjs} +0 -0
|
@@ -7,7 +7,7 @@ var _chunk2KMIJDY6cjs = require('./chunk-2KMIJDY6.cjs');
|
|
|
7
7
|
var _chunkSHIWRBFIcjs = require('./chunk-SHIWRBFI.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk7U4XF76Rcjs = require('./chunk-7U4XF76R.cjs');
|
|
11
11
|
|
|
12
12
|
// src/cron.ts
|
|
13
13
|
var DEFAULT_FARM_CRON_SECRET_ENV = "CRON_SECRET";
|
|
@@ -94,7 +94,7 @@ async function prepareFarmCronForNitro(config) {
|
|
|
94
94
|
const wrapperNames = resolveCronWrapperFileNames(cron.jobs.map((job) => job.name));
|
|
95
95
|
for (const job of cron.jobs) {
|
|
96
96
|
const taskName = getFarmCronTaskName(job.name);
|
|
97
|
-
const wrapperPath =
|
|
97
|
+
const wrapperPath = _chunk7U4XF76Rcjs.toPosixPath.call(void 0, path.join(generatedDir, `${wrapperNames.get(job.name)}.mjs`));
|
|
98
98
|
await fs.writeFile(wrapperPath, createNitroCronTaskWrapper(job, cron.secretEnv), "utf8");
|
|
99
99
|
tasks[taskName] = {
|
|
100
100
|
handler: wrapperPath,
|
|
@@ -28,7 +28,7 @@ function resolveFarmDocsSearchFrameworkModule(searchModule) {
|
|
|
28
28
|
function generateFarmDocsSearchBootstrapRuntime() {
|
|
29
29
|
return `(()=>{if(window.__farmDocsSearchBootstrap)return;window.__farmDocsSearchBootstrap=true;const queue=(trigger,event)=>{if(window.__FARM_DOCS_SEARCH_BRIDGE_ACTIVE__)return;event.preventDefault();event.stopPropagation();event.stopImmediatePropagation();window.__FARM_DOCS_SEARCH_PENDING__=trigger;window.__FARM_MOUNT_DOCS_SEARCH__?.()};document.addEventListener("click",(event)=>{const target=event.target instanceof Element?event.target.closest("[data-search-full]"):null;if(target)queue("button",event)},true);document.addEventListener("keydown",(event)=>{if((event.metaKey||event.ctrlKey)&&event.key.toLowerCase()==="k")queue("keyboard",event)},true)})();`;
|
|
30
30
|
}
|
|
31
|
-
function generateFarmDocsSearchClientRuntime(enabled, moduleId, frameworkModuleId = moduleId ? resolveFarmDocsSearchFrameworkModule(moduleId) : void 0) {
|
|
31
|
+
function generateFarmDocsSearchClientRuntime(enabled, moduleId, frameworkModuleId = moduleId ? resolveFarmDocsSearchFrameworkModule(moduleId) : void 0, loadRenderer) {
|
|
32
32
|
if (!enabled || !moduleId) {
|
|
33
33
|
return `
|
|
34
34
|
function isFarmDocsSearchPage() {
|
|
@@ -148,7 +148,8 @@ async function mountFarmDocsSearch() {
|
|
|
148
148
|
try {
|
|
149
149
|
farmDocsSearchModulePromise ||= Promise.all([
|
|
150
150
|
import(${JSON.stringify(moduleId)}),
|
|
151
|
-
${frameworkModuleId ? `import(${JSON.stringify(frameworkModuleId)})` : "null"}
|
|
151
|
+
${frameworkModuleId ? `import(${JSON.stringify(frameworkModuleId)})` : "null"},${loadRenderer ? `
|
|
152
|
+
${loadRenderer}(),` : ""}
|
|
152
153
|
]);
|
|
153
154
|
const [{ DocsCommandSearch }, framework] = await farmDocsSearchModulePromise;
|
|
154
155
|
if (!container.isConnected) return false;
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-NRWEY2CM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
findProgrammaticRouteFilesInDir
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-URBP6DLH.mjs";
|
|
7
7
|
import {
|
|
8
8
|
isFarmAPIRouteFileName
|
|
9
9
|
} from "./chunk-YX6AFPXC.mjs";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
matchAPIRouteAtBasePath,
|
|
22
22
|
mergePluginAPIRoutes,
|
|
23
23
|
resolveAPIRouteEndpoint
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-TYHWZOA2.mjs";
|
|
25
25
|
import {
|
|
26
26
|
registerAPIRouteShape
|
|
27
27
|
} from "./chunk-2LKUR5QJ.mjs";
|
|
@@ -32,15 +32,15 @@ import {
|
|
|
32
32
|
getFarmRouteRuntimeConfig,
|
|
33
33
|
normalizeFarmRouteRuntimeConfig
|
|
34
34
|
} from "./chunk-PKMUQ7LM.mjs";
|
|
35
|
-
import {
|
|
36
|
-
loadFarmDevModule
|
|
37
|
-
} from "./chunk-7H2TXT2K.mjs";
|
|
38
35
|
import {
|
|
39
36
|
toFileModuleUrl
|
|
40
37
|
} from "./chunk-VHIXGZYH.mjs";
|
|
38
|
+
import {
|
|
39
|
+
loadFarmDevModule
|
|
40
|
+
} from "./chunk-7H2TXT2K.mjs";
|
|
41
41
|
import {
|
|
42
42
|
logger
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-U6GMCDRS.mjs";
|
|
44
44
|
import {
|
|
45
45
|
AmbiguousRouteError,
|
|
46
46
|
NonTerminalCatchAllRouteError
|
|
@@ -57,7 +57,7 @@ function parseRoutePath(filePath) {
|
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
function getRouteType(fileName) {
|
|
60
|
-
const baseName = fileName.replace(/\.
|
|
60
|
+
const baseName = fileName.replace(/\.[^./]+$/, "");
|
|
61
61
|
switch (baseName) {
|
|
62
62
|
case "page":
|
|
63
63
|
return "page";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkNSLRK5DKcjs = require('./chunk-NSLRK5DK.cjs');
|
|
4
4
|
|
|
5
5
|
// src/deployment-environment.ts
|
|
6
6
|
function isFarmProductionDeploymentEnvironment(env = process.env) {
|
|
@@ -90,7 +90,7 @@ function createFarmProductionSiteReporter(options) {
|
|
|
90
90
|
schemaVersion: FARM_PRODUCTION_SITE_TELEMETRY_SCHEMA_VERSION,
|
|
91
91
|
eventType: FARM_PRODUCTION_SITE_ATTESTATION_EVENT_TYPE,
|
|
92
92
|
packageName: FARM_PRODUCTION_SITE_TELEMETRY_PACKAGE_NAME,
|
|
93
|
-
packageVersion: sanitizeDetail(
|
|
93
|
+
packageVersion: sanitizeDetail(_chunkNSLRK5DKcjs.FARM_VERSION, "unknown"),
|
|
94
94
|
renderer: sanitizeDetail(options.renderer, "custom"),
|
|
95
95
|
deployTarget: sanitizeDetail(options.deployTarget, "custom")
|
|
96
96
|
};
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
var _chunkAQIRXBBYcjs = require('./chunk-AQIRXBBY.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkM6DAIE4Tcjs = require('./chunk-M6DAIE4T.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk2BEGVSDFcjs = require('./chunk-2BEGVSDF.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkHS4JPIGRcjs = require('./chunk-HS4JPIGR.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk7U4XF76Rcjs = require('./chunk-7U4XF76R.cjs');
|
|
16
16
|
|
|
17
17
|
// src/routing/generate-route-types.ts
|
|
18
18
|
var _path = require('path'); var path = _interopRequireWildcard(_path);
|
|
@@ -136,7 +136,7 @@ var PLATFORM_FILE = /^(?:(page|layout)\.(native|ios|android)\.(?:tsx|ts|jsx|js)|
|
|
|
136
136
|
async function scanRoutePatterns(options) {
|
|
137
137
|
const { root, srcDir = "src" } = options;
|
|
138
138
|
const sourceRoots = _nullishCoalesce(options.sourceRoots, () => ( [{ name: "project", root, srcDir, layer: false }]));
|
|
139
|
-
const componentExtensions =
|
|
139
|
+
const componentExtensions = _chunkM6DAIE4Tcjs.resolveFarmComponentExtensions.call(void 0, options.componentExtensions).map(
|
|
140
140
|
(extension) => extension.slice(1)
|
|
141
141
|
);
|
|
142
142
|
const pages = /* @__PURE__ */ new Set();
|
|
@@ -153,8 +153,8 @@ async function scanRoutePatterns(options) {
|
|
|
153
153
|
{ cwd: appDir, expandDirectories: false }
|
|
154
154
|
);
|
|
155
155
|
for (const file of routeModuleFiles) {
|
|
156
|
-
if (
|
|
157
|
-
const route =
|
|
156
|
+
if (_chunk2BEGVSDFcjs.parseRouteSlotFile.call(void 0, file)) continue;
|
|
157
|
+
const route = _chunk7U4XF76Rcjs.parseRoutePath.call(void 0, file);
|
|
158
158
|
const pattern = createRoutePattern(route);
|
|
159
159
|
modules.add(pattern);
|
|
160
160
|
if (route.type === "page") {
|
|
@@ -174,7 +174,7 @@ async function scanRoutePatterns(options) {
|
|
|
174
174
|
);
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
for (const route of await
|
|
177
|
+
for (const route of await _chunkHS4JPIGRcjs.discoverProgrammaticRoutePaths.call(void 0, source.root, source.srcDir)) {
|
|
178
178
|
pages.add(route);
|
|
179
179
|
modules.add(route);
|
|
180
180
|
}
|
|
@@ -204,9 +204,9 @@ function scanPlatformRouteFiles(appDir, files, nativePages, nativeLayouts) {
|
|
|
204
204
|
const kind = _nullishCoalesce(match[1], () => ( "page"));
|
|
205
205
|
const platform = _nullishCoalesce(match[2], () => ( match[3]));
|
|
206
206
|
const twin = path.posix.join(path.posix.dirname(normalized), `${kind}.tsx`);
|
|
207
|
-
if (kind === "page" &&
|
|
207
|
+
if (kind === "page" && _chunk2BEGVSDFcjs.parseRouteSlotFile.call(void 0, twin)) continue;
|
|
208
208
|
const dir = path.posix.dirname(normalized);
|
|
209
|
-
const pattern = kind === "page" ? createRoutePattern(
|
|
209
|
+
const pattern = kind === "page" ? createRoutePattern(_chunk7U4XF76Rcjs.parseRoutePath.call(void 0, twin)) : dir === "." ? "/" : `/${dir}`;
|
|
210
210
|
const key = `${kind}\0${pattern}\0${platform}`;
|
|
211
211
|
const previous = seen.get(key);
|
|
212
212
|
if (previous) {
|
|
@@ -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;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkRE5E2G5Scjs = require('./chunk-RE5E2G5S.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk7U4XF76Rcjs = require('./chunk-7U4XF76R.cjs');
|
|
8
8
|
|
|
9
9
|
// src/server-components-status.ts
|
|
10
10
|
var _fs = require('fs');
|
|
@@ -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) {
|
|
@@ -100,7 +100,7 @@ function farmAppUsesRscPipeline(config, root) {
|
|
|
100
100
|
if (status.fallback) {
|
|
101
101
|
if (!warnedFallback) {
|
|
102
102
|
warnedFallback = true;
|
|
103
|
-
|
|
103
|
+
_chunk7U4XF76Rcjs.logger.warn(
|
|
104
104
|
`[Farm.js] ${formatFarmRscFallbackMessage(status.missingPackages, status.blockingKeys)}`
|
|
105
105
|
);
|
|
106
106
|
}
|
|
@@ -110,7 +110,7 @@ function farmAppUsesRscPipeline(config, root) {
|
|
|
110
110
|
throw new Error(`[Farm.js] ${formatFarmRscBlockingMessage(status.blockingKeys)}`);
|
|
111
111
|
}
|
|
112
112
|
if (status.ignoredKeys.length > 0) {
|
|
113
|
-
|
|
113
|
+
_chunk7U4XF76Rcjs.logger.warn(`[Farm.js] ${formatFarmRscIgnoredMessage(status.ignoredKeys)}`);
|
|
114
114
|
}
|
|
115
115
|
return true;
|
|
116
116
|
}
|