@farm.js/core 0.1.49 → 0.1.50
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-Bb8hnnqd.d.ts → agent-mcp-9BMbRgg_.d.ts} +1 -1
- package/dist/{agent-mcp-ir3v4fHf.d.mts → agent-mcp-CIMH324y.d.mts} +1 -1
- package/dist/agent-runtime.cjs +3 -3
- package/dist/agent-runtime.d.mts +6 -6
- package/dist/agent-runtime.d.ts +6 -6
- package/dist/agent-runtime.mjs +2 -2
- package/dist/analyzer-CN7C74WX.cjs +1066 -0
- package/dist/analyzer-DDW34OMC.mjs +1066 -0
- package/dist/api/client.d.mts +0 -1
- package/dist/api/client.d.ts +0 -1
- package/dist/api/route-manager.cjs +5 -5
- package/dist/api/route-manager.d.mts +10 -10
- package/dist/api/route-manager.d.ts +10 -10
- package/dist/api/route-manager.mjs +4 -4
- package/dist/api/runtime.cjs +3 -3
- package/dist/api/runtime.d.mts +7 -7
- package/dist/api/runtime.d.ts +7 -7
- package/dist/api/runtime.mjs +2 -2
- package/dist/api.cjs +6 -6
- package/dist/api.d.mts +10 -10
- package/dist/api.d.ts +10 -10
- package/dist/api.mjs +5 -5
- package/dist/{app-y649szYm.d.ts → app-BWibTHVT.d.ts} +7 -7
- package/dist/{app-DLzz02du.d.mts → app-DVJ13FPA.d.mts} +7 -7
- package/dist/{app-manifest-Crn8Qd3U.d.mts → app-manifest-CQDJOKL2.d.mts} +1 -1
- package/dist/{app-manifest-DNeTKMRL.d.ts → app-manifest-D0kaXdwu.d.ts} +1 -1
- package/dist/app-markdown.d.mts +7 -7
- package/dist/app-markdown.d.ts +7 -7
- package/dist/cache.d.mts +4 -3
- package/dist/cache.d.ts +4 -3
- package/dist/{chunk-VJXLUTBM.mjs → chunk-2DEPNLXK.mjs} +7 -7
- package/dist/chunk-2G63BIRL.mjs +227 -0
- package/dist/chunk-2GLQSIZD.mjs +55 -0
- package/dist/{chunk-ACI52TCN.mjs → chunk-2VCC3GVC.mjs} +1 -1
- package/dist/chunk-3ATXWZPH.cjs +227 -0
- package/dist/{chunk-C5S457CK.cjs → chunk-474FO3UE.cjs} +68 -54
- package/dist/{chunk-QNQEK3OF.cjs → chunk-4T25YCZ5.cjs} +14 -14
- package/dist/{chunk-ATHPRVP2.mjs → chunk-5V4KZOZO.mjs} +1 -1
- package/dist/{chunk-FGJQS4EC.cjs → chunk-6QA2SXVH.cjs} +2 -2
- package/dist/{chunk-XLYXG73A.mjs → chunk-75WWOZ5C.mjs} +22 -0
- package/dist/{chunk-QFQDRJKJ.mjs → chunk-76R5GJER.mjs} +2 -2
- package/dist/{chunk-NG44F7AH.mjs → chunk-7ONZDKVY.mjs} +2 -2
- package/dist/{chunk-4IICUBQX.cjs → chunk-A5BJKSZE.cjs} +2 -2
- package/dist/{chunk-TTYXOAB7.mjs → chunk-ANHZ6SUL.mjs} +1 -1
- package/dist/{chunk-ZBS3GOQZ.cjs → chunk-AQLHD6HZ.cjs} +35 -61
- package/dist/{chunk-4HM5B5RR.cjs → chunk-B5S2JS6M.cjs} +117 -115
- package/dist/{chunk-AXRNEVCS.cjs → chunk-B6PREBN6.cjs} +8 -8
- package/dist/{chunk-JOHXK4BB.mjs → chunk-BW6SCVYX.mjs} +1 -1
- package/dist/{chunk-LZBM35DH.mjs → chunk-C73RIAEF.mjs} +4 -4
- package/dist/chunk-CGCJ2TJU.cjs +55 -0
- package/dist/{chunk-UYQOIPXE.mjs → chunk-CPXDDWGL.mjs} +1 -1
- package/dist/{chunk-JPAVNDZH.cjs → chunk-CY7H5KS4.cjs} +25 -25
- package/dist/{chunk-4S7M63WX.cjs → chunk-DGOLAZLV.cjs} +22 -1
- package/dist/{chunk-73XBJRZW.cjs → chunk-E2BMCNMJ.cjs} +2 -2
- package/dist/{chunk-FR4HJDI6.cjs → chunk-F5LERVY3.cjs} +21 -24
- package/dist/{chunk-A7DK663W.cjs → chunk-FACTMUPI.cjs} +27 -27
- package/dist/chunk-G2KTRMWA.mjs +40 -0
- package/dist/{chunk-C6U66WWF.mjs → chunk-GFT5AHAT.mjs} +13 -0
- package/dist/{chunk-NPPT4RWF.cjs → chunk-GOOK2J2W.cjs} +7 -7
- package/dist/{chunk-NW2BKDVT.mjs → chunk-HHFMECFO.mjs} +1 -1
- package/dist/{chunk-J27BZO67.mjs → chunk-HWCHIBJZ.mjs} +21 -24
- package/dist/{chunk-HTLCLOXQ.cjs → chunk-HYN3LLG7.cjs} +3 -3
- package/dist/{chunk-HELQXYVI.cjs → chunk-I2DQGS56.cjs} +11 -9
- package/dist/{chunk-SSNN55Q6.cjs → chunk-IQXGHGZF.cjs} +5 -5
- package/dist/{chunk-ZSIGEHSE.cjs → chunk-IUBDMDZZ.cjs} +21 -180
- package/dist/{chunk-Z3BXMMFF.mjs → chunk-IWJKJDNW.mjs} +38 -24
- package/dist/{chunk-DGVVVYKD.mjs → chunk-JJOWY3XD.mjs} +2 -2
- package/dist/{chunk-6XFGJBYX.cjs → chunk-JYNNIGQO.cjs} +16 -7
- package/dist/{chunk-XO6WL6NL.mjs → chunk-KGP76FSV.mjs} +1 -1
- package/dist/{chunk-GXSMF7UR.mjs → chunk-KO2NWUKN.mjs} +1 -1
- package/dist/{chunk-AIHD6VME.cjs → chunk-KZH6YLND.cjs} +154 -126
- package/dist/{chunk-5566GNEG.cjs → chunk-LIFUPCXW.cjs} +13 -0
- package/dist/{chunk-I2SWKWO7.mjs → chunk-LJDIFIJ2.mjs} +1 -1
- package/dist/{chunk-KZT2VHRQ.cjs → chunk-LYWAGXXW.cjs} +11 -11
- package/dist/{chunk-RYDDUCNJ.mjs → chunk-M7LKA632.mjs} +1 -1
- package/dist/{chunk-6LH33DLL.cjs → chunk-NJVFPJ2Y.cjs} +2 -2
- package/dist/{chunk-JWP56HCP.mjs → chunk-OD6WM3I7.mjs} +2 -2
- package/dist/{chunk-MJ6IC4K2.mjs → chunk-OTOOJIUB.mjs} +1 -1
- package/dist/{chunk-R2SEZEBC.cjs → chunk-OYNNA4DD.cjs} +4 -4
- package/dist/{chunk-GBPDSUFE.mjs → chunk-OZK2DS44.mjs} +1 -1
- package/dist/chunk-QXJADAQB.cjs +40 -0
- package/dist/{chunk-J5VCA45K.cjs → chunk-RHOR2J6V.cjs} +1 -1
- package/dist/{chunk-YQGZLCT4.cjs → chunk-RWT2BTJT.cjs} +6 -6
- package/dist/{chunk-3HBFI373.cjs → chunk-S5AQ7CAC.cjs} +14 -14
- package/dist/{chunk-HNAUK3SC.mjs → chunk-SHJJM6OG.mjs} +40 -199
- package/dist/{chunk-LL7TDMOM.mjs → chunk-SMUW7UST.mjs} +33 -59
- package/dist/{chunk-VCFBQFOV.mjs → chunk-SN5VSO3Q.mjs} +9 -7
- package/dist/{chunk-DM3TFCC2.cjs → chunk-SUV6YO4Q.cjs} +5 -5
- package/dist/{chunk-JUMPFVMK.mjs → chunk-TUOO6IK3.mjs} +9 -0
- package/dist/chunk-UB7RVEMX.mjs +73 -0
- package/dist/{chunk-CDTIXBKN.mjs → chunk-UN6N623E.mjs} +2 -2
- package/dist/{chunk-BEXYFR2R.cjs → chunk-UY6HS5PF.cjs} +2 -2
- package/dist/{chunk-HAH4FBTA.mjs → chunk-VAHBCI6X.mjs} +1 -1
- package/dist/{chunk-N25RPPO5.cjs → chunk-WAPQWAE6.cjs} +10 -10
- package/dist/{chunk-Z4LTSH7D.mjs → chunk-WVBUXNBX.mjs} +71 -43
- package/dist/{chunk-ALD2WMLA.mjs → chunk-WXHDVXJE.mjs} +2 -2
- package/dist/{chunk-EVCQX243.cjs → chunk-X2EL3BLH.cjs} +2 -2
- package/dist/{chunk-EA5PMJDU.mjs → chunk-X3HOVNHI.mjs} +1 -1
- package/dist/{chunk-XXB37YET.cjs → chunk-XLRLSTJ6.cjs} +7 -7
- package/dist/{chunk-DRFADSKY.mjs → chunk-XXXRRVY6.mjs} +4 -4
- package/dist/{chunk-EXHEPWFJ.cjs → chunk-YAXOEAND.cjs} +10 -10
- package/dist/{chunk-PEHL3IZL.cjs → chunk-YB44NKC2.cjs} +2 -2
- package/dist/chunk-YKHRCY4T.cjs +73 -0
- package/dist/{chunk-IVHPRF4W.mjs → chunk-ZLOQQ2UF.mjs} +32 -30
- package/dist/client/lifecycle.d.mts +1 -1
- package/dist/client/lifecycle.d.ts +1 -1
- package/dist/{client-plugins-DFDQUI9Q.d.ts → client-plugins-BPfltM5m.d.ts} +15 -8
- package/dist/{client-plugins-BNBeyLMi.d.mts → client-plugins-D4RO59f0.d.mts} +15 -8
- package/dist/client-plugins.d.mts +6 -6
- package/dist/client-plugins.d.ts +6 -6
- package/dist/client.cjs +11 -8
- package/dist/client.d.mts +11 -10
- package/dist/client.d.ts +11 -10
- package/dist/client.mjs +12 -9
- package/dist/client.react-server.mjs +1 -1
- package/dist/config-CnhyvvmT.d.mts +188 -0
- package/dist/config-CnhyvvmT.d.ts +188 -0
- package/dist/config.d.mts +6 -6
- package/dist/config.d.ts +6 -6
- package/dist/desktop.d.mts +7 -7
- package/dist/desktop.d.ts +7 -7
- package/dist/{dev-guard-YO6KPIOQ.mjs → dev-guard-4PFQNXQX.mjs} +2 -1
- package/dist/{dev-guard-PLHL6OTJ.cjs → dev-guard-YLO5DE3H.cjs} +4 -3
- package/dist/{devtools-A37WWJZL.cjs → devtools-N5XTOECL.cjs} +8 -8
- package/dist/{devtools-BLKHPY3C.mjs → devtools-STG7HPRV.mjs} +7 -7
- package/dist/docs.cjs +10 -10
- package/dist/docs.d.mts +7 -7
- package/dist/docs.d.ts +7 -7
- package/dist/docs.mjs +9 -9
- package/dist/environment/vite.d.mts +1 -1
- package/dist/environment/vite.d.ts +1 -1
- package/dist/generate-route-types-DQP0cUzk.d.ts +33 -0
- package/dist/generate-route-types-TF5Wwtvz.d.mts +33 -0
- package/dist/i18n/client.d.mts +2 -2
- package/dist/i18n/client.d.ts +2 -2
- package/dist/i18n/index.d.mts +3 -3
- package/dist/i18n/index.d.ts +3 -3
- package/dist/i18n/server.d.mts +5 -5
- package/dist/i18n/server.d.ts +5 -5
- package/dist/image/server.cjs +3 -3
- package/dist/image/server.mjs +2 -2
- package/dist/image/sharp.cjs +10 -10
- package/dist/image/sharp.mjs +2 -2
- package/dist/{index-CeJ9_s9p.d.mts → index-C-N3Pwg-.d.ts} +2 -2
- package/dist/{index-MocnSP3a.d.ts → index-D3l4tREW.d.ts} +2 -2
- package/dist/{index-Cl3akY5U.d.mts → index-DPUAPho_.d.mts} +2 -2
- package/dist/{index-DBdiTkNc.d.ts → index-k8o8eUOd.d.mts} +2 -2
- package/dist/index.cjs +72 -65
- package/dist/index.d.mts +29 -45
- package/dist/index.d.ts +29 -45
- package/dist/index.mjs +77 -70
- package/dist/integrations.cjs +3 -3
- package/dist/integrations.d.mts +6 -6
- package/dist/integrations.d.ts +6 -6
- package/dist/integrations.mjs +2 -2
- package/dist/internal/app-markdown-runtime.d.mts +7 -7
- package/dist/internal/app-markdown-runtime.d.ts +7 -7
- package/dist/internal/build-runtime.cjs +35 -32
- package/dist/internal/build-runtime.d.mts +9 -9
- package/dist/internal/build-runtime.d.ts +9 -9
- package/dist/internal/build-runtime.mjs +34 -31
- package/dist/internal/cli-runtime.cjs +16 -15
- package/dist/internal/cli-runtime.mjs +16 -15
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +19 -2
- package/dist/internal/client-runtime.d.mts +45 -3
- package/dist/internal/client-runtime.d.ts +45 -3
- package/dist/internal/client-runtime.mjs +19 -2
- package/dist/internal/compression-runtime.d.mts +6 -6
- package/dist/internal/compression-runtime.d.ts +6 -6
- package/dist/internal/config-runtime.cjs +17 -10
- package/dist/internal/config-runtime.d.mts +259 -18
- package/dist/internal/config-runtime.d.ts +259 -18
- package/dist/internal/config-runtime.mjs +15 -8
- package/dist/internal/form-actions.cjs +4 -4
- package/dist/internal/form-actions.mjs +3 -3
- package/dist/internal/infra-analytics-runtime.cjs +6 -6
- package/dist/internal/infra-analytics-runtime.mjs +4 -4
- package/dist/internal/metadata-image-runtime.cjs +3 -3
- package/dist/internal/metadata-image-runtime.mjs +2 -2
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +12 -12
- package/dist/internal/production-runtime.d.mts +19 -19
- package/dist/internal/production-runtime.d.ts +19 -19
- package/dist/internal/production-runtime.mjs +14 -14
- package/dist/{layers-D9fbe-rz.d.ts → layers-CcS42OGR.d.mts} +1 -1
- package/dist/{layers-D9fbe-rz.d.mts → layers-CcS42OGR.d.ts} +1 -1
- package/dist/{lifecycle-DK06VuKP.d.ts → lifecycle-C2aLBOwu.d.mts} +1 -1
- package/dist/{lifecycle-DK06VuKP.d.mts → lifecycle-C2aLBOwu.d.ts} +1 -1
- package/dist/markdown.d.mts +6 -6
- package/dist/markdown.d.ts +6 -6
- package/dist/middleware.cjs +7 -7
- package/dist/middleware.d.mts +8 -8
- package/dist/middleware.d.ts +8 -8
- package/dist/middleware.mjs +6 -6
- package/dist/mobile.cjs +9 -0
- package/dist/mobile.d.mts +67 -0
- package/dist/mobile.d.ts +67 -0
- package/dist/mobile.mjs +9 -0
- package/dist/navigation-delegate-8xg3Zvp4.d.ts +29 -0
- package/dist/navigation-delegate-ji6elCKy.d.mts +29 -0
- package/dist/navigation.cjs +5 -5
- package/dist/navigation.d.mts +9 -9
- package/dist/navigation.d.ts +9 -9
- package/dist/navigation.mjs +4 -4
- package/dist/{nitro-UT2J5A5D.mjs → nitro-2Q5NVY7L.mjs} +2 -2
- package/dist/{nitro-BIXIKJZS.cjs → nitro-YPSZBYDK.cjs} +3 -3
- package/dist/platform.cjs +2 -1
- package/dist/platform.d.mts +4 -3
- package/dist/platform.d.ts +4 -3
- package/dist/platform.mjs +2 -1
- package/dist/{plugin-4KYXV7BB.mjs → plugin-53SY5YBS.mjs} +1 -1
- package/dist/{plugin-WBANOZQM.cjs → plugin-HZIBL3DW.cjs} +2 -2
- package/dist/plugin.cjs +30 -28
- package/dist/plugin.d.mts +13 -8
- package/dist/plugin.d.ts +13 -8
- package/dist/plugin.mjs +29 -27
- package/dist/{production-runtime-DcD-GRAv.d.mts → production-runtime-DXnQQkQf.d.mts} +3 -3
- package/dist/{production-runtime-B3qFFtKF.d.ts → production-runtime-TdKaYRj0.d.ts} +3 -3
- package/dist/production-vite-BQFAlG7n.d.mts +13 -0
- package/dist/production-vite-BQFAlG7n.d.ts +13 -0
- package/dist/{programmatic-routes-client-fD9f4XqU.d.ts → programmatic-routes-client-BwiTndEC.d.ts} +2 -2
- package/dist/{programmatic-routes-client-DzbYGiZQ.d.mts → programmatic-routes-client-Dh1SDLSM.d.mts} +2 -2
- package/dist/query/client.cjs +6 -6
- package/dist/query/client.mjs +2 -2
- package/dist/{render-plan-B6cfssrr.d.ts → render-plan-BPbwRbuN.d.ts} +1 -1
- package/dist/{render-plan-DqJ51ufr.d.mts → render-plan-BvCGXF6K.d.mts} +1 -1
- package/dist/renderer-client.cjs +9 -6
- package/dist/renderer-client.d.mts +9 -8
- package/dist/renderer-client.d.ts +9 -8
- package/dist/renderer-client.mjs +6 -3
- package/dist/{request-jhvUMXRx.d.ts → request-B8PGTZNR.d.ts} +1 -1
- package/dist/{request-UuAxHn8h.d.mts → request-C_xTkJib.d.mts} +1 -1
- package/dist/request.d.mts +7 -7
- package/dist/request.d.ts +7 -7
- package/dist/{resolver-DC57A4vz.d.ts → resolver-CJ-D9nP-.d.ts} +1 -1
- package/dist/{resolver-C2G-3Tm6.d.mts → resolver-TDyZKgKI.d.mts} +1 -1
- package/dist/{route-rendering-Cou00t1X.d.mts → route-rendering-DlddURL1.d.mts} +1 -1
- package/dist/{route-rendering-Sn50cYZf.d.ts → route-rendering-RNtcj607.d.ts} +1 -1
- package/dist/{router-0X9DCTcm.d.mts → router-B97eB0Mq.d.mts} +1 -1
- package/dist/{router-xwLvi48p.d.ts → router-qUVaoEN8.d.ts} +1 -1
- package/dist/routes-8PT9cl60.d.ts +121 -0
- package/dist/routes-kEUsXHx3.d.mts +121 -0
- package/dist/routes.d.mts +6 -6
- package/dist/routes.d.ts +6 -6
- package/dist/{rsc-pipeline-VKHMABDJ.cjs → rsc-pipeline-L4XOZ2TE.cjs} +13 -11
- package/dist/{rsc-pipeline-F6ZPH5MU.mjs → rsc-pipeline-T3775JUA.mjs} +12 -10
- package/dist/runtime-BIBGJO7V.cjs +1005 -0
- package/dist/{runtime-B9HmxiZc.d.ts → runtime-C4CmlOOh.d.ts} +2 -2
- package/dist/{runtime-tkSXZiqO.d.ts → runtime-C8GUnNeP.d.ts} +1 -1
- package/dist/{runtime-CMrsyChI.d.mts → runtime-CaDswfWi.d.mts} +1 -1
- package/dist/{runtime-CCxTmGuf.d.mts → runtime-CihDZ2Rn.d.mts} +2 -2
- package/dist/runtime-HRSFC4ZC.mjs +1005 -0
- package/dist/{schema-dev-notice-O3I5HLXK.mjs → schema-dev-notice-LZ5NXGLN.mjs} +2 -2
- package/dist/{schema-dev-notice-Z73J3NJ6.cjs → schema-dev-notice-XV7GZ3QJ.cjs} +4 -4
- package/dist/server-action-security.cjs +3 -3
- package/dist/server-action-security.mjs +2 -2
- package/dist/server-fn-client.d.mts +0 -1
- package/dist/server-fn-client.d.ts +0 -1
- package/dist/server-fn.cjs +4 -4
- package/dist/server-fn.d.mts +0 -1
- package/dist/server-fn.d.ts +0 -1
- package/dist/server-fn.mjs +3 -3
- package/dist/server-plugins.cjs +1 -1
- package/dist/server-plugins.d.mts +7 -7
- package/dist/server-plugins.d.ts +7 -7
- package/dist/server-plugins.mjs +1 -1
- package/dist/server-query-client.d.mts +0 -1
- package/dist/server-query-client.d.ts +0 -1
- package/dist/server-query.cjs +5 -5
- package/dist/server-query.d.mts +0 -1
- package/dist/server-query.d.ts +0 -1
- package/dist/server-query.mjs +4 -4
- package/dist/server.cjs +88 -65
- package/dist/server.d.mts +22 -17
- package/dist/server.d.ts +22 -17
- package/dist/server.mjs +63 -40
- package/dist/{spa-router-B48EjsS1.d.mts → spa-router-Dlv5ofg0.d.mts} +4 -4
- package/dist/{spa-router-B06APnGK.d.ts → spa-router-qapSboKz.d.ts} +4 -4
- package/dist/testing.cjs +7 -7
- package/dist/testing.d.mts +6 -6
- package/dist/testing.d.ts +6 -6
- package/dist/testing.mjs +5 -5
- package/dist/{types--Wh02r5_.d.mts → types-C41ePjvP.d.mts} +1 -1
- package/dist/{types--Wh02r5_.d.ts → types-C41ePjvP.d.ts} +1 -1
- package/dist/{utils-C5fyK2tE.d.ts → utils-A-cYF81u.d.ts} +1 -1
- package/dist/{utils-hyAwmcN6.d.mts → utils-DyvlSxFk.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +30 -28
- package/dist/vite.d.mts +9 -9
- package/dist/vite.d.ts +9 -9
- package/dist/vite.mjs +29 -27
- package/dist/{workflows-Df1C_7OG.d.mts → workflows-CRMzQZ3k.d.mts} +2 -1
- package/dist/{workflows-Df1C_7OG.d.ts → workflows-CRMzQZ3k.d.ts} +2 -1
- package/dist/workflows.cjs +3 -3
- package/dist/workflows.d.mts +1 -1
- package/dist/workflows.d.ts +1 -1
- package/dist/workflows.mjs +2 -2
- package/package.json +10 -2
- package/dist/cache-invalidation-BD0z_lfu.d.mts +0 -4
- package/dist/cache-invalidation-BD0z_lfu.d.ts +0 -4
- package/dist/chunk-45EUIICW.mjs +0 -15
- package/dist/chunk-V7KTQR4C.cjs +0 -15
- package/dist/{chunk-BR5FSKZ5.cjs → chunk-EQWWOQTK.cjs} +0 -0
- package/dist/{chunk-5OJVKXFV.cjs → chunk-N7JQXQAV.cjs} +2 -2
- package/dist/{chunk-VR4SEDEM.mjs → chunk-VOZ5DI7D.mjs} +0 -0
- package/dist/{chunk-72KABRWN.mjs → chunk-WSDKXV4E.mjs} +4 -4
package/dist/server.cjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
+
var _chunkCGCJ2TJUcjs = require('./chunk-CGCJ2TJU.cjs');
|
|
4
|
+
require('./chunk-3376ZTRC.cjs');
|
|
3
5
|
|
|
4
|
-
|
|
6
|
+
|
|
7
|
+
var _chunkHYN3LLG7cjs = require('./chunk-HYN3LLG7.cjs');
|
|
5
8
|
|
|
6
9
|
|
|
7
10
|
|
|
@@ -18,8 +21,8 @@ var _chunkOCS3PSYRcjs = require('./chunk-OCS3PSYR.cjs');
|
|
|
18
21
|
|
|
19
22
|
|
|
20
23
|
|
|
21
|
-
var
|
|
22
|
-
require('./chunk-
|
|
24
|
+
var _chunkB6PREBN6cjs = require('./chunk-B6PREBN6.cjs');
|
|
25
|
+
require('./chunk-RWT2BTJT.cjs');
|
|
23
26
|
|
|
24
27
|
|
|
25
28
|
var _chunkV3UOEWCBcjs = require('./chunk-V3UOEWCB.cjs');
|
|
@@ -29,7 +32,7 @@ var _chunkV3UOEWCBcjs = require('./chunk-V3UOEWCB.cjs');
|
|
|
29
32
|
|
|
30
33
|
|
|
31
34
|
|
|
32
|
-
var
|
|
35
|
+
var _chunkLYWAGXXWcjs = require('./chunk-LYWAGXXW.cjs');
|
|
33
36
|
require('./chunk-OZC2JPW6.cjs');
|
|
34
37
|
require('./chunk-MPU5DOXX.cjs');
|
|
35
38
|
|
|
@@ -37,15 +40,13 @@ require('./chunk-MPU5DOXX.cjs');
|
|
|
37
40
|
|
|
38
41
|
|
|
39
42
|
|
|
40
|
-
var
|
|
41
|
-
|
|
43
|
+
var _chunkB5S2JS6Mcjs = require('./chunk-B5S2JS6M.cjs');
|
|
42
44
|
|
|
43
|
-
var _chunk4S7M63WXcjs = require('./chunk-4S7M63WX.cjs');
|
|
44
45
|
|
|
45
46
|
|
|
47
|
+
var _chunkDGOLAZLVcjs = require('./chunk-DGOLAZLV.cjs');
|
|
48
|
+
require('./chunk-A5BJKSZE.cjs');
|
|
46
49
|
|
|
47
|
-
var _chunkZBS3GOQZcjs = require('./chunk-ZBS3GOQZ.cjs');
|
|
48
|
-
require('./chunk-4IICUBQX.cjs');
|
|
49
50
|
|
|
50
51
|
|
|
51
52
|
|
|
@@ -55,8 +56,7 @@ require('./chunk-4IICUBQX.cjs');
|
|
|
55
56
|
|
|
56
57
|
|
|
57
58
|
|
|
58
|
-
|
|
59
|
-
var _chunkC5S457CKcjs = require('./chunk-C5S457CK.cjs');
|
|
59
|
+
var _chunk474FO3UEcjs = require('./chunk-474FO3UE.cjs');
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
var _chunkIXSMFKZ2cjs = require('./chunk-IXSMFKZ2.cjs');
|
|
@@ -64,23 +64,29 @@ var _chunkIXSMFKZ2cjs = require('./chunk-IXSMFKZ2.cjs');
|
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
var _chunk3EEET2Q5cjs = require('./chunk-3EEET2Q5.cjs');
|
|
67
|
-
require('./chunk-
|
|
68
|
-
require('./chunk-
|
|
67
|
+
require('./chunk-IUBDMDZZ.cjs');
|
|
68
|
+
require('./chunk-N7JQXQAV.cjs');
|
|
69
|
+
require('./chunk-3ATXWZPH.cjs');
|
|
70
|
+
require('./chunk-SHD265HW.cjs');
|
|
69
71
|
|
|
70
72
|
|
|
71
73
|
var _chunkSYW346ZNcjs = require('./chunk-SYW346ZN.cjs');
|
|
72
|
-
require('./chunk-QISW423S.cjs');
|
|
73
|
-
require('./chunk-SHD265HW.cjs');
|
|
74
74
|
require('./chunk-GBMWLDCC.cjs');
|
|
75
|
-
require('./chunk-
|
|
75
|
+
require('./chunk-QISW423S.cjs');
|
|
76
|
+
require('./chunk-YB44NKC2.cjs');
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
var _chunkAQLHD6HZcjs = require('./chunk-AQLHD6HZ.cjs');
|
|
81
|
+
require('./chunk-YKHRCY4T.cjs');
|
|
76
82
|
require('./chunk-VCKGOXFI.cjs');
|
|
77
83
|
require('./chunk-47JV57DA.cjs');
|
|
78
84
|
require('./chunk-EZTKXD6P.cjs');
|
|
79
|
-
require('./chunk-
|
|
85
|
+
require('./chunk-SGBNF56S.cjs');
|
|
86
|
+
require('./chunk-GOOK2J2W.cjs');
|
|
80
87
|
require('./chunk-SBABQKPT.cjs');
|
|
81
88
|
require('./chunk-XGJVRPYL.cjs');
|
|
82
|
-
require('./chunk-
|
|
83
|
-
require('./chunk-SGBNF56S.cjs');
|
|
89
|
+
require('./chunk-NJVFPJ2Y.cjs');
|
|
84
90
|
require('./chunk-7KJJ4SBS.cjs');
|
|
85
91
|
require('./chunk-OWOUTKIJ.cjs');
|
|
86
92
|
require('./chunk-TVCFY3KK.cjs');
|
|
@@ -90,6 +96,9 @@ require('./chunk-7EPYN7GW.cjs');
|
|
|
90
96
|
|
|
91
97
|
|
|
92
98
|
var _chunkJ37KTQIAcjs = require('./chunk-J37KTQIA.cjs');
|
|
99
|
+
require('./chunk-BOVGCUDZ.cjs');
|
|
100
|
+
require('./chunk-JATTVAHA.cjs');
|
|
101
|
+
require('./chunk-UNJZGVPU.cjs');
|
|
93
102
|
|
|
94
103
|
|
|
95
104
|
|
|
@@ -123,8 +132,9 @@ var _chunk3EIPOTZVcjs = require('./chunk-3EIPOTZV.cjs');
|
|
|
123
132
|
|
|
124
133
|
|
|
125
134
|
var _chunk5Y2P454Ocjs = require('./chunk-5Y2P454O.cjs');
|
|
135
|
+
require('./chunk-2HW5LWAH.cjs');
|
|
126
136
|
require('./chunk-DQJ2CIH7.cjs');
|
|
127
|
-
require('./chunk-
|
|
137
|
+
require('./chunk-IQXGHGZF.cjs');
|
|
128
138
|
require('./chunk-C7425KDG.cjs');
|
|
129
139
|
require('./chunk-2KMIJDY6.cjs');
|
|
130
140
|
|
|
@@ -139,12 +149,8 @@ require('./chunk-2KMIJDY6.cjs');
|
|
|
139
149
|
|
|
140
150
|
|
|
141
151
|
|
|
142
|
-
var
|
|
152
|
+
var _chunk6QA2SXVHcjs = require('./chunk-6QA2SXVH.cjs');
|
|
143
153
|
require('./chunk-WT6RAN2I.cjs');
|
|
144
|
-
require('./chunk-BOVGCUDZ.cjs');
|
|
145
|
-
require('./chunk-JATTVAHA.cjs');
|
|
146
|
-
require('./chunk-UNJZGVPU.cjs');
|
|
147
|
-
require('./chunk-2HW5LWAH.cjs');
|
|
148
154
|
require('./chunk-WJFFPXCV.cjs');
|
|
149
155
|
|
|
150
156
|
|
|
@@ -178,11 +184,11 @@ require('./chunk-WJFFPXCV.cjs');
|
|
|
178
184
|
var _chunkJMYXO572cjs = require('./chunk-JMYXO572.cjs');
|
|
179
185
|
require('./chunk-SHIWRBFI.cjs');
|
|
180
186
|
require('./chunk-X333W5KV.cjs');
|
|
181
|
-
require('./chunk-
|
|
187
|
+
require('./chunk-WAPQWAE6.cjs');
|
|
182
188
|
require('./chunk-DUIP64BF.cjs');
|
|
183
189
|
require('./chunk-PFV2KPDZ.cjs');
|
|
184
190
|
require('./chunk-ZXK2EYQW.cjs');
|
|
185
|
-
require('./chunk-
|
|
191
|
+
require('./chunk-UY6HS5PF.cjs');
|
|
186
192
|
require('./chunk-L6QDME5Z.cjs');
|
|
187
193
|
require('./chunk-J2ZEVDEK.cjs');
|
|
188
194
|
require('./chunk-UPYIFH2H.cjs');
|
|
@@ -196,13 +202,13 @@ require('./chunk-KBGZ5FD6.cjs');
|
|
|
196
202
|
|
|
197
203
|
|
|
198
204
|
var _chunkP2355C6Ecjs = require('./chunk-P2355C6E.cjs');
|
|
199
|
-
require('./chunk-
|
|
205
|
+
require('./chunk-YAXOEAND.cjs');
|
|
200
206
|
require('./chunk-JZMZKABS.cjs');
|
|
201
207
|
require('./chunk-SBDWCDS6.cjs');
|
|
202
208
|
require('./chunk-RVGLYMJM.cjs');
|
|
203
209
|
require('./chunk-BBPDJGCU.cjs');
|
|
204
210
|
require('./chunk-KORZ6PRE.cjs');
|
|
205
|
-
require('./chunk-
|
|
211
|
+
require('./chunk-OYNNA4DD.cjs');
|
|
206
212
|
require('./chunk-5C7XMKQ4.cjs');
|
|
207
213
|
require('./chunk-JXIYH2NO.cjs');
|
|
208
214
|
require('./chunk-4DCWVSL2.cjs');
|
|
@@ -234,7 +240,7 @@ require('./chunk-FEFCISOX.cjs');
|
|
|
234
240
|
|
|
235
241
|
var _chunkY3WG64CPcjs = require('./chunk-Y3WG64CP.cjs');
|
|
236
242
|
require('./chunk-SNP33A33.cjs');
|
|
237
|
-
require('./chunk-
|
|
243
|
+
require('./chunk-JYNNIGQO.cjs');
|
|
238
244
|
require('./chunk-LNVGXUL3.cjs');
|
|
239
245
|
|
|
240
246
|
|
|
@@ -258,12 +264,12 @@ require('./chunk-EVIWKPJV.cjs');
|
|
|
258
264
|
|
|
259
265
|
|
|
260
266
|
var _chunkZ5MZDFX4cjs = require('./chunk-Z5MZDFX4.cjs');
|
|
261
|
-
require('./chunk-
|
|
267
|
+
require('./chunk-LIFUPCXW.cjs');
|
|
262
268
|
require('./chunk-JYT7AN37.cjs');
|
|
263
269
|
require('./chunk-B5BBTPJQ.cjs');
|
|
264
270
|
|
|
265
271
|
|
|
266
|
-
var
|
|
272
|
+
var _chunkRHOR2J6Vcjs = require('./chunk-RHOR2J6V.cjs');
|
|
267
273
|
require('./chunk-JGAE5XPL.cjs');
|
|
268
274
|
require('./chunk-OOZEU5KK.cjs');
|
|
269
275
|
require('./chunk-HA7YRO53.cjs');
|
|
@@ -300,8 +306,8 @@ var _chunkCL2ONP73cjs = require('./chunk-CL2ONP73.cjs');
|
|
|
300
306
|
var _chunkUYTAP4FQcjs = require('./chunk-UYTAP4FQ.cjs');
|
|
301
307
|
require('./chunk-HXNLKCWH.cjs');
|
|
302
308
|
require('./chunk-6XQSPIN6.cjs');
|
|
303
|
-
require('./chunk-A25FXJ7D.cjs');
|
|
304
309
|
require('./chunk-7JUIK547.cjs');
|
|
310
|
+
require('./chunk-A25FXJ7D.cjs');
|
|
305
311
|
|
|
306
312
|
|
|
307
313
|
var _chunkHNAISJFDcjs = require('./chunk-HNAISJFD.cjs');
|
|
@@ -486,13 +492,21 @@ function createBrandingPlugin() {
|
|
|
486
492
|
const pc = _chunkY3WG64CPcjs.createCliColors.call(void 0, );
|
|
487
493
|
console.log("");
|
|
488
494
|
console.log(
|
|
489
|
-
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${
|
|
495
|
+
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${_chunkRHOR2J6Vcjs.FARM_VERSION}`)} ${pc.dim(`ready in ${elapsed}ms`)}`
|
|
490
496
|
);
|
|
491
497
|
console.log("");
|
|
492
498
|
console.log(
|
|
493
499
|
` ${pc.dim("\u279C")} ${pc.bold("Local:")} ${pc.cyan(`http://localhost:${resolvedPort}/`)}`
|
|
494
500
|
);
|
|
495
|
-
|
|
501
|
+
const network = _nullishCoalesce(_optionalChain([server, 'access', _15 => _15.resolvedUrls, 'optionalAccess', _16 => _16.network]), () => ( []));
|
|
502
|
+
for (const url of network) {
|
|
503
|
+
console.log(` ${pc.dim("\u279C")} ${pc.bold("Network:")} ${pc.cyan(url)}`);
|
|
504
|
+
}
|
|
505
|
+
if (network.length === 0) {
|
|
506
|
+
console.log(
|
|
507
|
+
` ${pc.dim("\u279C")} ${pc.bold("Network:")} ${pc.dim("use --host to expose")}`
|
|
508
|
+
);
|
|
509
|
+
}
|
|
496
510
|
console.log("");
|
|
497
511
|
}
|
|
498
512
|
return result;
|
|
@@ -539,7 +553,10 @@ function createDevDependencyStubsPlugin() {
|
|
|
539
553
|
};
|
|
540
554
|
}
|
|
541
555
|
function withPortFlag(vite, port) {
|
|
542
|
-
return port === void 0 ? vite : { ...vite, server: { ..._optionalChain([vite, 'optionalAccess',
|
|
556
|
+
return port === void 0 ? vite : { ...vite, server: { ..._optionalChain([vite, 'optionalAccess', _17 => _17.server]), port } };
|
|
557
|
+
}
|
|
558
|
+
function withHostFlag(vite, host) {
|
|
559
|
+
return host === void 0 ? vite : { ...vite, server: { ..._optionalChain([vite, 'optionalAccess', _18 => _18.server]), host } };
|
|
543
560
|
}
|
|
544
561
|
function inlineEnvScope(scope) {
|
|
545
562
|
return Object.fromEntries(
|
|
@@ -550,7 +567,7 @@ function inlineEnvScope(scope) {
|
|
|
550
567
|
);
|
|
551
568
|
}
|
|
552
569
|
async function resolveInlineConfig(config, mode) {
|
|
553
|
-
if (
|
|
570
|
+
if (_chunkLYWAGXXWcjs.isResolvedFarmConfig.call(void 0, config)) {
|
|
554
571
|
_chunk3EIPOTZVcjs.setEnv.call(void 0, config.env);
|
|
555
572
|
return { ...config };
|
|
556
573
|
}
|
|
@@ -560,7 +577,7 @@ async function resolveInlineConfig(config, mode) {
|
|
|
560
577
|
const resolvedI18n = i18n && "enabled" in i18n ? i18n : void 0;
|
|
561
578
|
const auth = config.auth;
|
|
562
579
|
const resolvedAuth = auth && typeof auth === "object" && typeof auth.emailAndPassword === "object" && "enabled" in auth.emailAndPassword ? auth : void 0;
|
|
563
|
-
const resolved = await
|
|
580
|
+
const resolved = await _chunkLYWAGXXWcjs.resolveConfig.call(void 0,
|
|
564
581
|
{
|
|
565
582
|
...config,
|
|
566
583
|
...resolvedDocs ? { docs: false } : {},
|
|
@@ -587,7 +604,7 @@ async function resolveInlineConfig(config, mode) {
|
|
|
587
604
|
}
|
|
588
605
|
function checkWebDesktopBlock(desktop) {
|
|
589
606
|
if (desktop === void 0 || typeof desktop === "function") return;
|
|
590
|
-
if (
|
|
607
|
+
if (_chunkAQLHD6HZcjs.resolveFarmPlatform.call(void 0, ) === "web") _chunkAQLHD6HZcjs.validateFarmDesktopConfig.call(void 0, desktop);
|
|
591
608
|
}
|
|
592
609
|
async function createServer2(config = {}, options = {}) {
|
|
593
610
|
let pluginManager = null;
|
|
@@ -597,17 +614,21 @@ async function createServer2(config = {}, options = {}) {
|
|
|
597
614
|
try {
|
|
598
615
|
const root = config.root || process.cwd();
|
|
599
616
|
const mode = process.env.NODE_ENV === "production" ? "production" : "development";
|
|
600
|
-
const userConfig = await
|
|
601
|
-
checkWebDesktopBlock(_optionalChain([userConfig, 'optionalAccess',
|
|
617
|
+
const userConfig = await _chunkLYWAGXXWcjs.loadConfig.call(void 0, root, void 0, mode);
|
|
618
|
+
checkWebDesktopBlock(_optionalChain([userConfig, 'optionalAccess', _19 => _19.desktop]));
|
|
602
619
|
const rscConfig = _nullishCoalesce(userConfig, () => ( config));
|
|
603
|
-
if (_chunkBPNOYILCcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([rscConfig, 'access',
|
|
604
|
-
const { createFarmRscDevServer, farmAppUsesRscPipeline, resolveFarmRscCheckConfig } = await import("./rsc-pipeline-
|
|
605
|
-
await _optionalChain([options, 'access',
|
|
620
|
+
if (_chunkBPNOYILCcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([rscConfig, 'access', _20 => _20.experimental, 'optionalAccess', _21 => _21.serverComponents]))) {
|
|
621
|
+
const { createFarmRscDevServer, farmAppUsesRscPipeline, resolveFarmRscCheckConfig } = await import("./rsc-pipeline-L4XOZ2TE.cjs");
|
|
622
|
+
await _optionalChain([options, 'access', _22 => _22.ensureServerComponentsPackages, 'optionalCall', _23 => _23(rscConfig, root)]);
|
|
606
623
|
if (farmAppUsesRscPipeline(await resolveFarmRscCheckConfig(rscConfig, root, mode), root)) {
|
|
607
|
-
return await createFarmRscDevServer(rscConfig, {
|
|
624
|
+
return await createFarmRscDevServer(rscConfig, {
|
|
625
|
+
root,
|
|
626
|
+
port: options.port,
|
|
627
|
+
host: options.host
|
|
628
|
+
});
|
|
608
629
|
}
|
|
609
630
|
}
|
|
610
|
-
const resolvedConfig = userConfig ? await
|
|
631
|
+
const resolvedConfig = userConfig ? await _chunkLYWAGXXWcjs.resolveConfig.call(void 0, userConfig, mode) : await resolveInlineConfig(config, mode);
|
|
611
632
|
const instrumentationRoot = resolvedConfig.root;
|
|
612
633
|
const instrumentationFile = _chunkBRWIVOV4cjs.resolveFarmInstrumentationFile.call(void 0,
|
|
613
634
|
instrumentationRoot,
|
|
@@ -644,7 +665,7 @@ async function createServer2(config = {}, options = {}) {
|
|
|
644
665
|
pluginManager.addPlugin(_chunkCL2ONP73cjs.createCompressionPlugin.call(void 0, ));
|
|
645
666
|
}
|
|
646
667
|
pluginManager.addPlugins(resolvedConfig.plugins);
|
|
647
|
-
const infraAnalytics = resolvedConfig.analytics !== false ?
|
|
668
|
+
const infraAnalytics = resolvedConfig.analytics !== false ? _chunkHYN3LLG7cjs.createFarmInfraAnalyticsPlugin.call(void 0, ) : null;
|
|
648
669
|
if (infraAnalytics) pluginManager.addPlugin(infraAnalytics);
|
|
649
670
|
if (mode === "development") {
|
|
650
671
|
const hasLogger = pluginManager.getPlugins().some((p) => p.name === "farm:logger");
|
|
@@ -657,7 +678,7 @@ async function createServer2(config = {}, options = {}) {
|
|
|
657
678
|
finalConfig = await pluginManager.runHookSerial("config", finalConfig);
|
|
658
679
|
finalConfig.renderer = _chunkRD623KW4cjs.resolveFarmRenderer.call(void 0, finalConfig.renderer);
|
|
659
680
|
const projectRoot = finalConfig.root || process.cwd();
|
|
660
|
-
finalConfig.images =
|
|
681
|
+
finalConfig.images = _chunk474FO3UEcjs.resolveFarmImageProviderForRuntime.call(void 0, finalConfig.images, {
|
|
661
682
|
root: projectRoot,
|
|
662
683
|
dev: true
|
|
663
684
|
});
|
|
@@ -669,7 +690,7 @@ async function createServer2(config = {}, options = {}) {
|
|
|
669
690
|
projectRoot,
|
|
670
691
|
{ ssr: true }
|
|
671
692
|
);
|
|
672
|
-
const reactRefreshPlugins = _chunkRD623KW4cjs.isReactRenderer.call(void 0, finalConfig.renderer) ? await
|
|
693
|
+
const reactRefreshPlugins = _chunkRD623KW4cjs.isReactRenderer.call(void 0, finalConfig.renderer) ? await _chunkDGOLAZLVcjs.createFarmReactRefreshPlugins.call(void 0, ) : [];
|
|
673
694
|
let tailwindVitePlugin = void 0;
|
|
674
695
|
const shouldUseProjectPostcss = hasProjectPostcssConfig(projectRoot);
|
|
675
696
|
if (shouldUseProjectPostcss) {
|
|
@@ -678,21 +699,23 @@ async function createServer2(config = {}, options = {}) {
|
|
|
678
699
|
tailwindVitePlugin = await _chunkIXSMFKZ2cjs.loadTailwindVitePlugin.call(void 0, );
|
|
679
700
|
}
|
|
680
701
|
server = await createViteDevServer(
|
|
681
|
-
|
|
702
|
+
_chunk474FO3UEcjs.mergeFarmViteConfig.call(void 0,
|
|
682
703
|
{
|
|
683
704
|
root: projectRoot,
|
|
684
705
|
css: shouldUseProjectPostcss ? void 0 : { postcss: { plugins: [] } },
|
|
685
706
|
plugins: [
|
|
686
|
-
|
|
707
|
+
_chunkDGOLAZLVcjs.farmDesktopDevGuardPlugin.call(void 0, finalConfig.basePath),
|
|
708
|
+
_chunk474FO3UEcjs.createFarmThemeCssPlugin.call(void 0, finalConfig.theme, finalConfig.basePath),
|
|
687
709
|
...tailwindVitePlugin ? [tailwindVitePlugin] : [],
|
|
688
710
|
...rendererVitePlugins,
|
|
689
711
|
...reactRefreshPlugins,
|
|
690
712
|
createDevDependencyStubsPlugin(),
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
713
|
+
_chunkB5S2JS6Mcjs.farmI18nClientBridgePlugin.call(void 0, ),
|
|
714
|
+
_chunkB5S2JS6Mcjs.farmServerOnlyEntriesPlugin.call(void 0, ),
|
|
715
|
+
_chunkB5S2JS6Mcjs.farmPlugin.call(void 0, finalConfig, pluginManager),
|
|
694
716
|
_chunkJ37KTQIAcjs.farmEnvironmentFunctionsPlugin.call(void 0, finalConfig),
|
|
695
717
|
createBrandingPlugin(),
|
|
718
|
+
_chunkCGCJ2TJUcjs.createFarmDevLoopbackPlugin.call(void 0, ),
|
|
696
719
|
createFarmDevLifecyclePlugin(pluginManager, instrumentation)
|
|
697
720
|
],
|
|
698
721
|
server: {
|
|
@@ -705,8 +728,8 @@ async function createServer2(config = {}, options = {}) {
|
|
|
705
728
|
dedupe: [...finalConfig.renderer.dedupe || []]
|
|
706
729
|
},
|
|
707
730
|
optimizeDeps: {
|
|
708
|
-
...
|
|
709
|
-
|
|
731
|
+
..._chunk474FO3UEcjs.createFarmClientOptimizeDepsConfig.call(void 0,
|
|
732
|
+
_chunk474FO3UEcjs.createFarmClientOptimizeDepsEntries.call(void 0, projectRoot, _chunk5Y2P454Ocjs.getFarmAppDirectories.call(void 0, finalConfig)),
|
|
710
733
|
finalConfig.renderer
|
|
711
734
|
),
|
|
712
735
|
exclude: [
|
|
@@ -749,7 +772,7 @@ async function createServer2(config = {}, options = {}) {
|
|
|
749
772
|
hasWarned: false
|
|
750
773
|
}
|
|
751
774
|
},
|
|
752
|
-
withPortFlag(finalConfig.vite, options.port)
|
|
775
|
+
withHostFlag(withPortFlag(finalConfig.vite, options.port), options.host)
|
|
753
776
|
),
|
|
754
777
|
(candidate) => {
|
|
755
778
|
pendingViteServer = candidate;
|
|
@@ -775,7 +798,7 @@ async function createServer2(config = {}, options = {}) {
|
|
|
775
798
|
};
|
|
776
799
|
await attempt(
|
|
777
800
|
"run plugin error hooks",
|
|
778
|
-
() => _optionalChain([pluginManager, 'optionalAccess',
|
|
801
|
+
() => _optionalChain([pluginManager, 'optionalAccess', _24 => _24.runHookParallel, 'call', _25 => _25("onError", {
|
|
779
802
|
phase: "createServer",
|
|
780
803
|
error
|
|
781
804
|
})])
|
|
@@ -792,9 +815,9 @@ async function createServer2(config = {}, options = {}) {
|
|
|
792
815
|
}
|
|
793
816
|
await attempt(
|
|
794
817
|
"close the plugin runtime",
|
|
795
|
-
() => _optionalChain([pluginManager, 'optionalAccess',
|
|
818
|
+
() => _optionalChain([pluginManager, 'optionalAccess', _26 => _26.closeRuntime, 'call', _27 => _27("dev-server-creation-failed")])
|
|
796
819
|
);
|
|
797
|
-
await attempt("shut down instrumentation", () => _optionalChain([instrumentation, 'optionalAccess',
|
|
820
|
+
await attempt("shut down instrumentation", () => _optionalChain([instrumentation, 'optionalAccess', _28 => _28.shutdown, 'call', _29 => _29()]));
|
|
798
821
|
}
|
|
799
822
|
_chunkXN2MB4QZcjs.logger.error(`Failed to create server: ${error}`);
|
|
800
823
|
throw error;
|
|
@@ -807,7 +830,7 @@ function noticeSchemaChangesInBackground(config) {
|
|
|
807
830
|
...Object.values(_nullishCoalesce(config.integrations, () => ( {})))
|
|
808
831
|
];
|
|
809
832
|
if (!candidates.some((candidate) => _chunkSYW346ZNcjs.readSchemaTables.call(void 0, candidate))) return false;
|
|
810
|
-
void import("./schema-dev-notice-
|
|
833
|
+
void import("./schema-dev-notice-XV7GZ3QJ.cjs").then(({ noticePendingSchemaChanges }) => noticePendingSchemaChanges(config)).catch(() => {
|
|
811
834
|
});
|
|
812
835
|
return true;
|
|
813
836
|
}
|
|
@@ -816,11 +839,11 @@ async function startDevServer(config = {}, port, options = {}) {
|
|
|
816
839
|
const pluginManager = server.__farmPluginManager;
|
|
817
840
|
try {
|
|
818
841
|
await server.listen(port);
|
|
819
|
-
await _optionalChain([pluginManager, 'optionalAccess',
|
|
842
|
+
await _optionalChain([pluginManager, 'optionalAccess', _30 => _30.startRuntime, 'call', _31 => _31()]);
|
|
820
843
|
noticeSchemaChangesInBackground(server.__farmResolvedConfig);
|
|
821
844
|
} catch (error) {
|
|
822
845
|
try {
|
|
823
|
-
await _optionalChain([pluginManager, 'optionalAccess',
|
|
846
|
+
await _optionalChain([pluginManager, 'optionalAccess', _32 => _32.runHookParallel, 'call', _33 => _33("onError", { phase: "startDevServer", error })]);
|
|
824
847
|
} catch (reportError) {
|
|
825
848
|
console.error(
|
|
826
849
|
"Failed to run plugin error hooks after a dev server start failure:",
|
|
@@ -942,4 +965,4 @@ async function startDevServer(config = {}, port, options = {}) {
|
|
|
942
965
|
|
|
943
966
|
|
|
944
967
|
|
|
945
|
-
exports.DEFAULT_FARM_DEV_SERVER_PORT = DEFAULT_FARM_DEV_SERVER_PORT; exports.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT =
|
|
968
|
+
exports.DEFAULT_FARM_DEV_SERVER_PORT = DEFAULT_FARM_DEV_SERVER_PORT; exports.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT = _chunk6QA2SXVHcjs.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT; exports.FARM_SERVER_QUERY_SYMBOL = _chunkB6PREBN6cjs.FARM_SERVER_QUERY_SYMBOL; exports.FarmApp = _chunk474FO3UEcjs.FarmApp; exports.FarmDataCache = _chunkDMAP4RNDcjs.FarmDataCache; exports.FarmEnvironmentError = _chunkVXCFJWK5cjs.FarmEnvironmentError; exports.PPR_SHELL_ADAPTER_TTL_SECONDS = _chunkDMAP4RNDcjs.PPR_SHELL_ADAPTER_TTL_SECONDS; exports.RouteManager = _chunk474FO3UEcjs.RouteManager; exports.ServerActionRequestError = _chunk6QA2SXVHcjs.ServerActionRequestError; exports.ServerRenderer = _chunk474FO3UEcjs.ServerRenderer; exports._collectFarmStorageModules = _chunkJMYXO572cjs._collectFarmStorageModules; exports._registerFarmStorageModules = _chunkJMYXO572cjs._registerFarmStorageModules; exports._runWithAfterNodeResponse = _chunkP2355C6Ecjs._runWithAfterNodeResponse; exports._runWithAfterRequest = _chunkP2355C6Ecjs._runWithAfterRequest; exports._withAfterNodeMiddleware = _chunkP2355C6Ecjs._withAfterNodeMiddleware; exports.after = _chunkP2355C6Ecjs.after; exports.applyFarmCacheInvalidationTargets = _chunkDMAP4RNDcjs.applyFarmCacheInvalidationTargets; exports.applyFarmCacheInvalidations = _chunkUZCMMJJTcjs.applyFarmCacheInvalidations; exports.configureFarmCache = _chunkDMAP4RNDcjs.configureFarmCache; exports.createClientOnlyFn = _chunkVXCFJWK5cjs.createClientOnlyFn; exports.createFarmApp = _chunk474FO3UEcjs.createFarmApp; exports.createFarmCacheInvalidationStream = _chunkDMAP4RNDcjs.createFarmCacheInvalidationStream; exports.createFarmCacheKey = _chunkDXUXQP2Tcjs.createFarmCacheKey; exports.createFarmConfigResolutionPlugin = _chunk5Y2P454Ocjs.createFarmConfigResolutionPlugin; exports.createFarmStorage = _chunkJMYXO572cjs.createFarmStorage; exports.createIsomorphicFn = _chunkVXCFJWK5cjs.createIsomorphicFn; exports.createPathCacheTag = _chunkDMAP4RNDcjs.createPathCacheTag; exports.createRouteDataCacheKey = _chunkDXUXQP2Tcjs.createRouteDataCacheKey; exports.createRouteDataCacheTag = _chunkDMAP4RNDcjs.createRouteDataCacheTag; exports.createServer = createServer2; exports.createServerActionRequestErrorResponse = _chunk6QA2SXVHcjs.createServerActionRequestErrorResponse; exports.createServerOnlyFn = _chunkVXCFJWK5cjs.createServerOnlyFn; exports.createServerQuery = _chunkB6PREBN6cjs.createServerQuery; exports.createStorageClient = _chunkJMYXO572cjs.createStorageClient; exports.databaseStorage = _chunkJMYXO572cjs.databaseStorage; exports.defineCacheKey = _chunkDMAP4RNDcjs.defineCacheKey; exports.defineConfig = _chunkB5S2JS6Mcjs.defineConfig; exports.defineStorageClient = _chunkJMYXO572cjs.defineStorageClient; exports.disposeStorage = _chunkJMYXO572cjs.disposeStorage; exports.driverStorage = _chunkJMYXO572cjs.driverStorage; exports.farmPlugin = _chunkB5S2JS6Mcjs.farmPlugin; exports.fileExists = _chunkXN2MB4QZcjs.fileExists; exports.getCurrentRequest = _chunkHNAISJFDcjs.getCurrentRequest; exports.getFarmAppDirectories = _chunk5Y2P454Ocjs.getFarmAppDirectories; exports.getFarmDataCache = _chunkDMAP4RNDcjs.getFarmDataCache; exports.getFarmLayerAliases = _chunk5Y2P454Ocjs.getFarmLayerAliases; exports.getFarmSourceRoots = _chunk5Y2P454Ocjs.getFarmSourceRoots; exports.getServerActionExecutionContext = _chunk6QA2SXVHcjs.getServerActionExecutionContext; exports.getServerActionInvalidations = _chunk6QA2SXVHcjs.getServerActionInvalidations; exports.getServerActionSignal = _chunk6QA2SXVHcjs.getServerActionSignal; exports.getStorage = _chunkJMYXO572cjs.getStorage; exports.getTheme = _chunk4ZJ5C7UJcjs.getTheme; exports.getThemeSnapshot = _chunk4ZJ5C7UJcjs.getThemeSnapshot; exports.globFiles = _chunkXN2MB4QZcjs.globFiles; exports.initStorage = _chunkJMYXO572cjs.initStorage; exports.invalidate = _chunkDMAP4RNDcjs.invalidate; exports.invalidateRouteData = _chunkDMAP4RNDcjs.invalidateRouteData; exports.libsqlStorage = _chunkJMYXO572cjs.libsqlStorage; exports.loadFarmConfigFile = _chunk5Y2P454Ocjs.loadFarmConfigFile; exports.localStorage = _chunkJMYXO572cjs.localStorage; exports.logger = _chunkXN2MB4QZcjs.logger; exports.matchRoute = _chunkXN2MB4QZcjs.matchRoute; exports.matchRouteParts = _chunkXN2MB4QZcjs.matchRouteParts; exports.matchRoutePrefix = _chunkXN2MB4QZcjs.matchRoutePrefix; exports.matchRoutePrefixParts = _chunkXN2MB4QZcjs.matchRoutePrefixParts; exports.memoryStorage = _chunkJMYXO572cjs.memoryStorage; exports.mongodbStorage = _chunkJMYXO572cjs.mongodbStorage; exports.mysql2Storage = _chunkJMYXO572cjs.mysql2Storage; exports.mysqlStorage = _chunkJMYXO572cjs.mysqlStorage; exports.netlifyBlobsStorage = _chunkJMYXO572cjs.netlifyBlobsStorage; exports.normalizeRevalidatePath = _chunkDMAP4RNDcjs.normalizeRevalidatePath; exports.parseRoutePath = _chunkXN2MB4QZcjs.parseRoutePath; exports.parseSearchParams = _chunkXN2MB4QZcjs.parseSearchParams; exports.pgStorage = _chunkJMYXO572cjs.pgStorage; exports.pgliteStorage = _chunkJMYXO572cjs.pgliteStorage; exports.planetscaleStorage = _chunkJMYXO572cjs.planetscaleStorage; exports.postgresStorage = _chunkJMYXO572cjs.postgresStorage; exports.prepareServerActionRequest = _chunk6QA2SXVHcjs.prepareServerActionRequest; exports.redisStorage = _chunkJMYXO572cjs.redisStorage; exports.resolveAppPath = _chunkXN2MB4QZcjs.resolveAppPath; exports.resolveFarmLayers = _chunk5Y2P454Ocjs.resolveFarmLayers; exports.resolveFarmMCPConfig = _chunkLYWAGXXWcjs.resolveFarmMCPConfig; exports.resolveFarmMCPPlugin = _chunkLYWAGXXWcjs.resolveFarmMCPPlugin; exports.resolveServerActionsConfig = _chunk6QA2SXVHcjs.resolveServerActionsConfig; exports.resolveStorageRuntimeClient = _chunkJMYXO572cjs.resolveStorageRuntimeClient; exports.revalidatePath = _chunkDMAP4RNDcjs.revalidatePath; exports.revalidateTag = _chunkDMAP4RNDcjs.revalidateTag; exports.runWithServerActionRequest = _chunk6QA2SXVHcjs.runWithServerActionRequest; exports.s3Storage = _chunkJMYXO572cjs.s3Storage; exports.sanitizeServerActionError = _chunk6QA2SXVHcjs.sanitizeServerActionError; exports.segmentsToPattern = _chunkXN2MB4QZcjs.segmentsToPattern; exports.sendWebResponse = _chunkZ5MZDFX4cjs.sendWebResponse; exports.splitRoutePath = _chunkXN2MB4QZcjs.splitRoutePath; exports.sqliteStorage = _chunkJMYXO572cjs.sqliteStorage; exports.startDevServer = startDevServer; exports.storageCacheAdapter = _chunkDMAP4RNDcjs.storageCacheAdapter; exports.toPosixPath = _chunkXN2MB4QZcjs.toPosixPath; exports.toRootRelativeUrlPath = _chunkXN2MB4QZcjs.toRootRelativeUrlPath; exports.toViteModuleId = _chunkXN2MB4QZcjs.toViteModuleId; exports.unstable_cache = _chunkDMAP4RNDcjs.unstable_cache; exports.updateTag = _chunkDMAP4RNDcjs.updateTag; exports.upstashStorage = _chunkJMYXO572cjs.upstashStorage; exports.validateServerActionRequest = _chunk6QA2SXVHcjs.validateServerActionRequest; exports.vercelBlobStorage = _chunkJMYXO572cjs.vercelBlobStorage; exports.vercelKVStorage = _chunkJMYXO572cjs.vercelKVStorage;
|
package/dist/server.d.mts
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
export { F as FarmApp, R as RouteManager, S as ServerRenderer, c as createFarmApp } from './app-
|
|
1
|
+
export { F as FarmApp, R as RouteManager, S as ServerRenderer, c as createFarmApp } from './app-DVJ13FPA.mjs';
|
|
2
2
|
export { defineConfig, farmPlugin } from './vite.mjs';
|
|
3
|
-
import { aU as FarmConfig, p as FarmUserConfig } from './client-plugins-
|
|
4
|
-
export { aV as AppRoutePattern, aW as BuildOptions, aX as ErrorBoundary, aY as ErrorProps, v as FarmAppContext, aZ as FarmComponentType, aF as FarmContextFactory, a_ as FarmContextFactoryInput, a$ as FarmIsolatedClientHydrationMode, b0 as FarmMCPUserConfig, b1 as FarmMigrationCommand, b2 as FarmMigrationsConfig, b3 as FarmMigrationsUserConfig, s as FarmRequest, t as FarmResponse, b4 as GenerateStaticParams, b5 as Layout, b6 as LayoutMetadataProps, b7 as LayoutModule, L as LayoutProps, b8 as Loading, b9 as LoadingProps, M as Metadata, ba as MetadataJsonLd, bb as MetadataProps, bc as MetadataRobots, bd as MetadataRobotsDirectives, aE as MiddlewareProps, be as NitroPreset, bf as Page, w as PageProps, bg as PagePropsWithMiddleware, bh as PageRouteParams, P as ParsedRoute, x as PluginContextProps, bi as ResolvedFarmMigrationsConfig, i as RouteModule, q as RouteSegment, aP as SSGCollectionResult, aQ as SSGPage, bj as ServerAction, bk as StaticPathParams, bl as StaticPathPrimitive, bm as StaticRouteParams, bn as ThemeColorDescriptor, bo as Viewport, bp as resolveFarmMCPConfig, bq as resolveFarmMCPPlugin } from './client-plugins-
|
|
5
|
-
export { f as fileExists, g as globFiles, l as logger, m as matchRoute, a as matchRouteParts, b as matchRoutePrefix, c as matchRoutePrefixParts, p as parseRoutePath, d as parseSearchParams, r as resolveAppPath, s as segmentsToPattern, e as splitRoutePath, t as toPosixPath, h as toRootRelativeUrlPath, i as toViteModuleId } from './utils-
|
|
3
|
+
import { aU as FarmConfig, p as FarmUserConfig } from './client-plugins-D4RO59f0.mjs';
|
|
4
|
+
export { aV as AppRoutePattern, aW as BuildOptions, aX as ErrorBoundary, aY as ErrorProps, v as FarmAppContext, aZ as FarmComponentType, aF as FarmContextFactory, a_ as FarmContextFactoryInput, a$ as FarmIsolatedClientHydrationMode, b0 as FarmMCPUserConfig, b1 as FarmMigrationCommand, b2 as FarmMigrationsConfig, b3 as FarmMigrationsUserConfig, s as FarmRequest, t as FarmResponse, b4 as GenerateStaticParams, b5 as Layout, b6 as LayoutMetadataProps, b7 as LayoutModule, L as LayoutProps, b8 as Loading, b9 as LoadingProps, M as Metadata, ba as MetadataJsonLd, bb as MetadataProps, bc as MetadataRobots, bd as MetadataRobotsDirectives, aE as MiddlewareProps, be as NitroPreset, bf as Page, w as PageProps, bg as PagePropsWithMiddleware, bh as PageRouteParams, P as ParsedRoute, x as PluginContextProps, bi as ResolvedFarmMigrationsConfig, i as RouteModule, q as RouteSegment, aP as SSGCollectionResult, aQ as SSGPage, bj as ServerAction, bk as StaticPathParams, bl as StaticPathPrimitive, bm as StaticRouteParams, bn as ThemeColorDescriptor, bo as Viewport, bp as resolveFarmMCPConfig, bq as resolveFarmMCPPlugin } from './client-plugins-D4RO59f0.mjs';
|
|
5
|
+
export { f as fileExists, g as globFiles, l as logger, m as matchRoute, a as matchRouteParts, b as matchRoutePrefix, c as matchRoutePrefixParts, p as parseRoutePath, d as parseSearchParams, r as resolveAppPath, s as segmentsToPattern, e as splitRoutePath, t as toPosixPath, h as toRootRelativeUrlPath, i as toViteModuleId } from './utils-DyvlSxFk.mjs';
|
|
6
6
|
export { _collectFarmStorageModules, _registerFarmStorageModules, createFarmStorage, createStorageClient, databaseStorage, defineStorageClient, disposeStorage, driverStorage, getStorage, initStorage, libsqlStorage, localStorage, memoryStorage, mongodbStorage, mysql2Storage, mysqlStorage, netlifyBlobsStorage, pgStorage, pgliteStorage, planetscaleStorage, postgresStorage, redisStorage, resolveStorageRuntimeClient, s3Storage, sqliteStorage, upstashStorage, vercelBlobStorage, vercelKVStorage } from './storage.mjs';
|
|
7
|
-
export { CacheKeyFactory, DefinedCacheKey, FarmCacheAdapter, FarmCacheEntry, FarmCacheInvalidationStreamOptions, FarmCacheInvalidationTarget, FarmCacheOptions, FarmCacheSetOptions, FarmCacheStorage, FarmCacheUserConfig, FarmClientCacheUserConfig, FarmDataCache, GetFarmCacheEntryOptions, InferCacheKeyData, PPR_SHELL_ADAPTER_TTL_SECONDS, RevalidateTagProfile, RouteDataCacheKey, StorageFarmCacheAdapterOptions, applyFarmCacheInvalidationTargets, configureFarmCache, createFarmCacheInvalidationStream, createFarmCacheKey, createPathCacheTag, createRouteDataCacheKey, createRouteDataCacheTag, defineCacheKey, getFarmDataCache, invalidate, invalidateRouteData, normalizeRevalidatePath, revalidatePath, revalidateTag, storageCacheAdapter, unstable_cache, updateTag } from './cache.mjs';
|
|
7
|
+
export { CacheKeyFactory, DefinedCacheKey, FarmCacheAdapter, FarmCacheEntry, FarmCacheInvalidationStreamOptions, FarmCacheInvalidationTarget, FarmCacheOptions, FarmCacheSetOptions, FarmCacheStorage, FarmCacheUserConfig, FarmClientCacheUserConfig, FarmDataCache, GetFarmCacheEntryOptions, InferCacheKeyData, PPR_SHELL_ADAPTER_TTL_SECONDS, RevalidateTagProfile, RouteDataCacheKey, StorageFarmCacheAdapterOptions, applyFarmCacheInvalidationTargets, applyFarmCacheInvalidations, configureFarmCache, createFarmCacheInvalidationStream, createFarmCacheKey, createPathCacheTag, createRouteDataCacheKey, createRouteDataCacheTag, defineCacheKey, getFarmDataCache, invalidate, invalidateRouteData, normalizeRevalidatePath, revalidatePath, revalidateTag, storageCacheAdapter, unstable_cache, updateTag } from './cache.mjs';
|
|
8
8
|
export { AfterCallback, FarmAfterPlatformContext, _runWithAfterNodeResponse, _runWithAfterRequest, _withAfterNodeMiddleware, after } from './after.mjs';
|
|
9
9
|
export { FARM_SERVER_QUERY_SYMBOL, ServerQuery, ServerQueryKey, ServerQueryOptions, ServerQueryOutputOptions, ServerQueryStaleTime, createServerQuery } from './server-query.mjs';
|
|
10
10
|
import { ViteDevServer } from 'vite';
|
|
11
|
-
export { g as getCurrentRequest } from './request-
|
|
11
|
+
export { g as getCurrentRequest } from './request-C_xTkJib.mjs';
|
|
12
12
|
import { ServerResponse } from 'node:http';
|
|
13
13
|
export { getTheme, getThemeSnapshot } from './theme/server.mjs';
|
|
14
14
|
export { DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT, FarmServerActionsConfig, PreparedServerActionRequest, ResolvedFarmServerActionsConfig, SanitizedServerActionError, ServerActionRequestError, ServerActionRequestKind, createServerActionRequestErrorResponse, getServerActionExecutionContext, getServerActionInvalidations, getServerActionSignal, prepareServerActionRequest, resolveServerActionsConfig, runWithServerActionRequest, sanitizeServerActionError, validateServerActionRequest } from './server-action-security.mjs';
|
|
15
|
-
export {
|
|
15
|
+
export { a as FarmLayerEntry, b as FarmLayerResolution, F as FarmSourceRoot, c as ResolveFarmLayersOptions, R as ResolvedFarmLayer, d as createFarmConfigResolutionPlugin, g as getFarmAppDirectories, e as getFarmLayerAliases, f as getFarmSourceRoots, l as loadFarmConfigFile, r as resolveFarmLayers } from './layers-CcS42OGR.mjs';
|
|
16
16
|
export { FarmEnvironment, FarmEnvironmentError, FarmIsomorphicFnOptions, createClientOnlyFn, createIsomorphicFn, createServerOnlyFn } from './environment.mjs';
|
|
17
17
|
export { BuiltinDriverName, BuiltinDriverOptions, Driver, Storage, StorageMeta, StorageValue, TransactionOptions } from 'unstorage';
|
|
18
18
|
export { ConnectorName, ConnectorOptions, Database } from 'db0';
|
|
19
19
|
export { e as FarmStorageBuiltinDriverConfig, b as FarmStorageClient, a as FarmStorageClientConfig, f as FarmStorageConfigObject, g as FarmStorageCustomDriverConfig, c as FarmStorageDatabaseConfig, h as FarmStorageDatabaseDriverName, d as FarmStorageLocalDriverConfig, i as FarmStorageMountConfig, j as FarmStorageMounts, k as FarmStorageRuntimeClient, F as FarmStorageUserConfig } from './types-BnIqOn9w.mjs';
|
|
20
|
-
|
|
21
|
-
import './workflows-Df1C_7OG.mjs';
|
|
20
|
+
import './workflows-CRMzQZ3k.mjs';
|
|
22
21
|
import './cron.mjs';
|
|
23
22
|
import './image-config-CeDgNyX4.mjs';
|
|
24
23
|
import './routes.mjs';
|
|
@@ -28,7 +27,7 @@ import './server-fn-error-DrcH9cc1.mjs';
|
|
|
28
27
|
import './endpoint-BkMSCRf6.mjs';
|
|
29
28
|
import './renderer.mjs';
|
|
30
29
|
import './deployment.mjs';
|
|
31
|
-
import './lifecycle-
|
|
30
|
+
import './lifecycle-C2aLBOwu.mjs';
|
|
32
31
|
import './route-2_yXC6gv.mjs';
|
|
33
32
|
import 'http';
|
|
34
33
|
import './schema.mjs';
|
|
@@ -39,16 +38,17 @@ import '@opentelemetry/api';
|
|
|
39
38
|
import './env.mjs';
|
|
40
39
|
import 'rolldown/utils';
|
|
41
40
|
import 'rolldown';
|
|
42
|
-
import './types
|
|
41
|
+
import './types-C41ePjvP.mjs';
|
|
42
|
+
import './config-CnhyvvmT.mjs';
|
|
43
43
|
import './types-DQnyD3VD.mjs';
|
|
44
44
|
import './font.mjs';
|
|
45
|
-
import './programmatic-routes-client-
|
|
46
|
-
import './route-rendering-
|
|
45
|
+
import './programmatic-routes-client-Dh1SDLSM.mjs';
|
|
46
|
+
import './route-rendering-DlddURL1.mjs';
|
|
47
47
|
import './island-CfGru1MO.mjs';
|
|
48
|
-
import './agent-mcp-
|
|
49
|
-
import './render-plan-
|
|
50
|
-
import './runtime-
|
|
51
|
-
import './resolver-
|
|
48
|
+
import './agent-mcp-CIMH324y.mjs';
|
|
49
|
+
import './render-plan-BvCGXF6K.mjs';
|
|
50
|
+
import './runtime-CihDZ2Rn.mjs';
|
|
51
|
+
import './resolver-TDyZKgKI.mjs';
|
|
52
52
|
import './server-client-bridge-DKWDl5NB.mjs';
|
|
53
53
|
|
|
54
54
|
declare const DEFAULT_FARM_DEV_SERVER_PORT = 3000;
|
|
@@ -57,6 +57,11 @@ declare const DEFAULT_FARM_DEV_SERVER_PORT = 3000;
|
|
|
57
57
|
*/
|
|
58
58
|
declare function createServer(config?: FarmConfig | FarmUserConfig, options?: {
|
|
59
59
|
port?: number;
|
|
60
|
+
/**
|
|
61
|
+
* Vite's `server.host`: `true` or `"0.0.0.0"` listens on every interface, for an emulator or a
|
|
62
|
+
* device on the LAN. Unset, the server stays on loopback (`127.0.0.1` and `::1`).
|
|
63
|
+
*/
|
|
64
|
+
host?: string | boolean;
|
|
60
65
|
/**
|
|
61
66
|
* Installs what `experimental.serverComponents` needs before the server starts. The CLI passes
|
|
62
67
|
* it; core stays free of package-manager orchestration.
|
package/dist/server.d.ts
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
export { F as FarmApp, R as RouteManager, S as ServerRenderer, c as createFarmApp } from './app-
|
|
1
|
+
export { F as FarmApp, R as RouteManager, S as ServerRenderer, c as createFarmApp } from './app-BWibTHVT.js';
|
|
2
2
|
export { defineConfig, farmPlugin } from './vite.js';
|
|
3
|
-
import { aU as FarmConfig, p as FarmUserConfig } from './client-plugins-
|
|
4
|
-
export { aV as AppRoutePattern, aW as BuildOptions, aX as ErrorBoundary, aY as ErrorProps, v as FarmAppContext, aZ as FarmComponentType, aF as FarmContextFactory, a_ as FarmContextFactoryInput, a$ as FarmIsolatedClientHydrationMode, b0 as FarmMCPUserConfig, b1 as FarmMigrationCommand, b2 as FarmMigrationsConfig, b3 as FarmMigrationsUserConfig, s as FarmRequest, t as FarmResponse, b4 as GenerateStaticParams, b5 as Layout, b6 as LayoutMetadataProps, b7 as LayoutModule, L as LayoutProps, b8 as Loading, b9 as LoadingProps, M as Metadata, ba as MetadataJsonLd, bb as MetadataProps, bc as MetadataRobots, bd as MetadataRobotsDirectives, aE as MiddlewareProps, be as NitroPreset, bf as Page, w as PageProps, bg as PagePropsWithMiddleware, bh as PageRouteParams, P as ParsedRoute, x as PluginContextProps, bi as ResolvedFarmMigrationsConfig, i as RouteModule, q as RouteSegment, aP as SSGCollectionResult, aQ as SSGPage, bj as ServerAction, bk as StaticPathParams, bl as StaticPathPrimitive, bm as StaticRouteParams, bn as ThemeColorDescriptor, bo as Viewport, bp as resolveFarmMCPConfig, bq as resolveFarmMCPPlugin } from './client-plugins-
|
|
5
|
-
export { f as fileExists, g as globFiles, l as logger, m as matchRoute, a as matchRouteParts, b as matchRoutePrefix, c as matchRoutePrefixParts, p as parseRoutePath, d as parseSearchParams, r as resolveAppPath, s as segmentsToPattern, e as splitRoutePath, t as toPosixPath, h as toRootRelativeUrlPath, i as toViteModuleId } from './utils-
|
|
3
|
+
import { aU as FarmConfig, p as FarmUserConfig } from './client-plugins-BPfltM5m.js';
|
|
4
|
+
export { aV as AppRoutePattern, aW as BuildOptions, aX as ErrorBoundary, aY as ErrorProps, v as FarmAppContext, aZ as FarmComponentType, aF as FarmContextFactory, a_ as FarmContextFactoryInput, a$ as FarmIsolatedClientHydrationMode, b0 as FarmMCPUserConfig, b1 as FarmMigrationCommand, b2 as FarmMigrationsConfig, b3 as FarmMigrationsUserConfig, s as FarmRequest, t as FarmResponse, b4 as GenerateStaticParams, b5 as Layout, b6 as LayoutMetadataProps, b7 as LayoutModule, L as LayoutProps, b8 as Loading, b9 as LoadingProps, M as Metadata, ba as MetadataJsonLd, bb as MetadataProps, bc as MetadataRobots, bd as MetadataRobotsDirectives, aE as MiddlewareProps, be as NitroPreset, bf as Page, w as PageProps, bg as PagePropsWithMiddleware, bh as PageRouteParams, P as ParsedRoute, x as PluginContextProps, bi as ResolvedFarmMigrationsConfig, i as RouteModule, q as RouteSegment, aP as SSGCollectionResult, aQ as SSGPage, bj as ServerAction, bk as StaticPathParams, bl as StaticPathPrimitive, bm as StaticRouteParams, bn as ThemeColorDescriptor, bo as Viewport, bp as resolveFarmMCPConfig, bq as resolveFarmMCPPlugin } from './client-plugins-BPfltM5m.js';
|
|
5
|
+
export { f as fileExists, g as globFiles, l as logger, m as matchRoute, a as matchRouteParts, b as matchRoutePrefix, c as matchRoutePrefixParts, p as parseRoutePath, d as parseSearchParams, r as resolveAppPath, s as segmentsToPattern, e as splitRoutePath, t as toPosixPath, h as toRootRelativeUrlPath, i as toViteModuleId } from './utils-A-cYF81u.js';
|
|
6
6
|
export { _collectFarmStorageModules, _registerFarmStorageModules, createFarmStorage, createStorageClient, databaseStorage, defineStorageClient, disposeStorage, driverStorage, getStorage, initStorage, libsqlStorage, localStorage, memoryStorage, mongodbStorage, mysql2Storage, mysqlStorage, netlifyBlobsStorage, pgStorage, pgliteStorage, planetscaleStorage, postgresStorage, redisStorage, resolveStorageRuntimeClient, s3Storage, sqliteStorage, upstashStorage, vercelBlobStorage, vercelKVStorage } from './storage.js';
|
|
7
|
-
export { CacheKeyFactory, DefinedCacheKey, FarmCacheAdapter, FarmCacheEntry, FarmCacheInvalidationStreamOptions, FarmCacheInvalidationTarget, FarmCacheOptions, FarmCacheSetOptions, FarmCacheStorage, FarmCacheUserConfig, FarmClientCacheUserConfig, FarmDataCache, GetFarmCacheEntryOptions, InferCacheKeyData, PPR_SHELL_ADAPTER_TTL_SECONDS, RevalidateTagProfile, RouteDataCacheKey, StorageFarmCacheAdapterOptions, applyFarmCacheInvalidationTargets, configureFarmCache, createFarmCacheInvalidationStream, createFarmCacheKey, createPathCacheTag, createRouteDataCacheKey, createRouteDataCacheTag, defineCacheKey, getFarmDataCache, invalidate, invalidateRouteData, normalizeRevalidatePath, revalidatePath, revalidateTag, storageCacheAdapter, unstable_cache, updateTag } from './cache.js';
|
|
7
|
+
export { CacheKeyFactory, DefinedCacheKey, FarmCacheAdapter, FarmCacheEntry, FarmCacheInvalidationStreamOptions, FarmCacheInvalidationTarget, FarmCacheOptions, FarmCacheSetOptions, FarmCacheStorage, FarmCacheUserConfig, FarmClientCacheUserConfig, FarmDataCache, GetFarmCacheEntryOptions, InferCacheKeyData, PPR_SHELL_ADAPTER_TTL_SECONDS, RevalidateTagProfile, RouteDataCacheKey, StorageFarmCacheAdapterOptions, applyFarmCacheInvalidationTargets, applyFarmCacheInvalidations, configureFarmCache, createFarmCacheInvalidationStream, createFarmCacheKey, createPathCacheTag, createRouteDataCacheKey, createRouteDataCacheTag, defineCacheKey, getFarmDataCache, invalidate, invalidateRouteData, normalizeRevalidatePath, revalidatePath, revalidateTag, storageCacheAdapter, unstable_cache, updateTag } from './cache.js';
|
|
8
8
|
export { AfterCallback, FarmAfterPlatformContext, _runWithAfterNodeResponse, _runWithAfterRequest, _withAfterNodeMiddleware, after } from './after.js';
|
|
9
9
|
export { FARM_SERVER_QUERY_SYMBOL, ServerQuery, ServerQueryKey, ServerQueryOptions, ServerQueryOutputOptions, ServerQueryStaleTime, createServerQuery } from './server-query.js';
|
|
10
10
|
import { ViteDevServer } from 'vite';
|
|
11
|
-
export { g as getCurrentRequest } from './request-
|
|
11
|
+
export { g as getCurrentRequest } from './request-B8PGTZNR.js';
|
|
12
12
|
import { ServerResponse } from 'node:http';
|
|
13
13
|
export { getTheme, getThemeSnapshot } from './theme/server.js';
|
|
14
14
|
export { DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT, FarmServerActionsConfig, PreparedServerActionRequest, ResolvedFarmServerActionsConfig, SanitizedServerActionError, ServerActionRequestError, ServerActionRequestKind, createServerActionRequestErrorResponse, getServerActionExecutionContext, getServerActionInvalidations, getServerActionSignal, prepareServerActionRequest, resolveServerActionsConfig, runWithServerActionRequest, sanitizeServerActionError, validateServerActionRequest } from './server-action-security.js';
|
|
15
|
-
export {
|
|
15
|
+
export { a as FarmLayerEntry, b as FarmLayerResolution, F as FarmSourceRoot, c as ResolveFarmLayersOptions, R as ResolvedFarmLayer, d as createFarmConfigResolutionPlugin, g as getFarmAppDirectories, e as getFarmLayerAliases, f as getFarmSourceRoots, l as loadFarmConfigFile, r as resolveFarmLayers } from './layers-CcS42OGR.js';
|
|
16
16
|
export { FarmEnvironment, FarmEnvironmentError, FarmIsomorphicFnOptions, createClientOnlyFn, createIsomorphicFn, createServerOnlyFn } from './environment.js';
|
|
17
17
|
export { BuiltinDriverName, BuiltinDriverOptions, Driver, Storage, StorageMeta, StorageValue, TransactionOptions } from 'unstorage';
|
|
18
18
|
export { ConnectorName, ConnectorOptions, Database } from 'db0';
|
|
19
19
|
export { e as FarmStorageBuiltinDriverConfig, b as FarmStorageClient, a as FarmStorageClientConfig, f as FarmStorageConfigObject, g as FarmStorageCustomDriverConfig, c as FarmStorageDatabaseConfig, h as FarmStorageDatabaseDriverName, d as FarmStorageLocalDriverConfig, i as FarmStorageMountConfig, j as FarmStorageMounts, k as FarmStorageRuntimeClient, F as FarmStorageUserConfig } from './types-BnIqOn9w.js';
|
|
20
|
-
|
|
21
|
-
import './workflows-Df1C_7OG.js';
|
|
20
|
+
import './workflows-CRMzQZ3k.js';
|
|
22
21
|
import './cron.js';
|
|
23
22
|
import './image-config-CeDgNyX4.js';
|
|
24
23
|
import './routes.js';
|
|
@@ -28,7 +27,7 @@ import './server-fn-error-DrcH9cc1.js';
|
|
|
28
27
|
import './endpoint-BgHn0lhl.js';
|
|
29
28
|
import './renderer.js';
|
|
30
29
|
import './deployment.js';
|
|
31
|
-
import './lifecycle-
|
|
30
|
+
import './lifecycle-C2aLBOwu.js';
|
|
32
31
|
import './route-DFhZj6jN.js';
|
|
33
32
|
import 'http';
|
|
34
33
|
import './schema.js';
|
|
@@ -39,16 +38,17 @@ import '@opentelemetry/api';
|
|
|
39
38
|
import './env.js';
|
|
40
39
|
import 'rolldown/utils';
|
|
41
40
|
import 'rolldown';
|
|
42
|
-
import './types
|
|
41
|
+
import './types-C41ePjvP.js';
|
|
42
|
+
import './config-CnhyvvmT.js';
|
|
43
43
|
import './types-DQnyD3VD.js';
|
|
44
44
|
import './font.js';
|
|
45
|
-
import './programmatic-routes-client-
|
|
46
|
-
import './route-rendering-
|
|
45
|
+
import './programmatic-routes-client-BwiTndEC.js';
|
|
46
|
+
import './route-rendering-RNtcj607.js';
|
|
47
47
|
import './island-CfGru1MO.js';
|
|
48
|
-
import './agent-mcp-
|
|
49
|
-
import './render-plan-
|
|
50
|
-
import './runtime-
|
|
51
|
-
import './resolver-
|
|
48
|
+
import './agent-mcp-9BMbRgg_.js';
|
|
49
|
+
import './render-plan-BPbwRbuN.js';
|
|
50
|
+
import './runtime-C4CmlOOh.js';
|
|
51
|
+
import './resolver-CJ-D9nP-.js';
|
|
52
52
|
import './server-client-bridge-DKWDl5NB.js';
|
|
53
53
|
|
|
54
54
|
declare const DEFAULT_FARM_DEV_SERVER_PORT = 3000;
|
|
@@ -57,6 +57,11 @@ declare const DEFAULT_FARM_DEV_SERVER_PORT = 3000;
|
|
|
57
57
|
*/
|
|
58
58
|
declare function createServer(config?: FarmConfig | FarmUserConfig, options?: {
|
|
59
59
|
port?: number;
|
|
60
|
+
/**
|
|
61
|
+
* Vite's `server.host`: `true` or `"0.0.0.0"` listens on every interface, for an emulator or a
|
|
62
|
+
* device on the LAN. Unset, the server stays on loopback (`127.0.0.1` and `::1`).
|
|
63
|
+
*/
|
|
64
|
+
host?: string | boolean;
|
|
60
65
|
/**
|
|
61
66
|
* Installs what `experimental.serverComponents` needs before the server starts. The CLI passes
|
|
62
67
|
* it; core stays free of package-manager orchestration.
|