@farm.js/core 0.1.80 → 0.1.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-mcp.d-BPa5n0ld.d.ts → agent-mcp.d-Cxi3214_.d.ts} +1 -1
- package/dist/{agent-mcp.d-DOP95Jxm.d.mts → agent-mcp.d-DMqOqnOA.d.mts} +1 -1
- package/dist/agent-runtime.d.mts +2 -1
- package/dist/agent-runtime.d.ts +2 -1
- package/dist/analyzer-435DCIQ6.cjs +17 -0
- package/dist/{analyzer-F7CWE5VA.mjs → analyzer-IC66UJCU.mjs} +3 -2
- package/dist/api/client.cjs +1 -1
- package/dist/api/client.mjs +1 -1
- package/dist/api/client.native.cjs +1 -1
- package/dist/api/client.native.mjs +1 -1
- package/dist/api/node.cjs +1 -1
- package/dist/api/node.d.mts +4 -3
- package/dist/api/node.d.ts +4 -3
- package/dist/api/node.mjs +1 -1
- package/dist/api/route-manager.cjs +4 -4
- package/dist/api/route-manager.d.mts +4 -3
- package/dist/api/route-manager.d.ts +4 -3
- package/dist/api/route-manager.mjs +3 -3
- package/dist/api/runtime.cjs +1 -1
- package/dist/api/runtime.d.mts +3 -2
- package/dist/api/runtime.d.ts +3 -2
- package/dist/api/runtime.mjs +1 -1
- package/dist/api.cjs +5 -5
- package/dist/api.d.mts +5 -4
- package/dist/api.d.ts +5 -4
- package/dist/api.mjs +4 -4
- package/dist/{app-manifest.d-9UD6BznX.d.mts → app-manifest.d-Bbxp5kes.d.mts} +1 -1
- package/dist/{app-manifest.d-CO6Iu0Hx.d.ts → app-manifest.d-C8Cswd31.d.ts} +1 -1
- package/dist/app-markdown.cjs +3 -3
- package/dist/app-markdown.d.mts +5 -4
- package/dist/app-markdown.d.ts +5 -4
- package/dist/app-markdown.mjs +2 -2
- package/dist/{app.d-DXeRWZK7.d.mts → app.d-BJuSurgy.d.mts} +13 -4
- package/dist/{app.d-DwX1ePhs.d.ts → app.d-DGIoFt5D.d.ts} +13 -4
- package/dist/{chunk-Q4TRGTO7.cjs → chunk-26WP75W5.cjs} +32 -16
- package/dist/{chunk-GCRT6GJG.mjs → chunk-2HMSSPCZ.mjs} +26 -0
- package/dist/{chunk-7KDCVSTR.mjs → chunk-2PFGA6PB.mjs} +2 -2
- package/dist/chunk-2UYYXSUS.mjs +401 -0
- package/dist/{chunk-G4SZC2WH.cjs → chunk-2Y2HRZQY.cjs} +431 -332
- package/dist/{chunk-PL7MCYYD.mjs → chunk-3AV4DCXY.mjs} +58 -358
- package/dist/{chunk-3GNHJ3RN.cjs → chunk-3BTN3NP7.cjs} +2 -2
- package/dist/{chunk-ZVSQN7NC.cjs → chunk-46UV2E7I.cjs} +40 -43
- package/dist/{chunk-QMR2TUVZ.cjs → chunk-52Q4OB4A.cjs} +4 -4
- package/dist/chunk-5MMKNW7Q.cjs +54 -0
- package/dist/{chunk-XZBBKZGW.mjs → chunk-5N526T7Q.mjs} +64 -33
- package/dist/{chunk-XY5OZQF6.cjs → chunk-ADQ2LATR.cjs} +2 -2
- package/dist/{chunk-7DD5TNPS.cjs → chunk-AHVF5GI2.cjs} +2 -2
- package/dist/{chunk-MGKWYPE3.mjs → chunk-AYDVUCXD.mjs} +1 -0
- package/dist/chunk-B7L24VPX.cjs +401 -0
- package/dist/{chunk-5VDJEKGK.cjs → chunk-BBVLOEND.cjs} +1 -1
- package/dist/{chunk-XF7MJSUS.mjs → chunk-BCQIXH7L.mjs} +1 -1
- package/dist/{chunk-44G4XHEL.mjs → chunk-BJWJP5A4.mjs} +9 -9
- package/dist/{chunk-GBESKA76.cjs → chunk-BSX5OGSD.cjs} +1 -1
- package/dist/{chunk-CNDBLUKI.mjs → chunk-BVJUFVCU.mjs} +1 -1
- package/dist/chunk-C5QHZ626.cjs +85 -0
- package/dist/{chunk-X4TSMQWF.cjs → chunk-CL7BUGVB.cjs} +465 -360
- package/dist/{chunk-RLCOWWE5.cjs → chunk-CN2JOTRO.cjs} +7 -7
- package/dist/{chunk-AXA2BSX3.cjs → chunk-CPZZBCPO.cjs} +22 -21
- package/dist/chunk-D2VAANBS.mjs +48 -0
- package/dist/{chunk-JGEN2FIT.mjs → chunk-D77OGI6X.mjs} +1 -1
- package/dist/{chunk-4H4ZXUNB.cjs → chunk-DJ3PVHTW.cjs} +3 -3
- package/dist/{chunk-ZPEZXQTM.cjs → chunk-E3HBD2K3.cjs} +2 -2
- package/dist/{chunk-Q4YEAWUK.mjs → chunk-ECVSRE4Y.mjs} +3 -2
- package/dist/chunk-EZYKV24V.mjs +385 -0
- package/dist/{chunk-TVCFY3KK.cjs → chunk-FB4CWSC2.cjs} +12 -12
- package/dist/{chunk-IYFBLWXU.cjs → chunk-FULX5RYX.cjs} +61 -361
- package/dist/{chunk-5OAN7BG5.cjs → chunk-FYZD7DUS.cjs} +4 -4
- package/dist/{chunk-RQBGHHOQ.mjs → chunk-GY63XD6K.mjs} +1 -1
- package/dist/{chunk-HNUBRUFQ.cjs → chunk-HQEYZSF3.cjs} +4 -3
- package/dist/{chunk-MDEFTF63.mjs → chunk-HTNJ7A4D.mjs} +25 -28
- package/dist/chunk-I4WZRG73.mjs +54 -0
- package/dist/{chunk-MUZHULW2.mjs → chunk-ICOJ2BC6.mjs} +23 -7
- package/dist/{chunk-V73Y4UBL.mjs → chunk-IM3UINTZ.mjs} +1 -1
- package/dist/{chunk-MNIR7I7B.mjs → chunk-INKVDO42.mjs} +1 -1
- package/dist/{chunk-ZDYYZX73.mjs → chunk-IPG6B25T.mjs} +194 -89
- package/dist/{chunk-HEDGTXXB.cjs → chunk-JB4BHRFK.cjs} +17 -17
- package/dist/{chunk-XKUKWMGX.cjs → chunk-JCYDWJVO.cjs} +3 -3
- package/dist/{chunk-SVCUSOEF.mjs → chunk-KR5DF7WK.mjs} +1 -1
- package/dist/{chunk-COTFX4GT.mjs → chunk-LTOT5KVJ.mjs} +1 -1
- package/dist/{chunk-67MZTLTF.cjs → chunk-M6DAIE4T.cjs} +27 -1
- package/dist/{chunk-LVGB5PYK.cjs → chunk-MOGRRZMW.cjs} +17 -17
- package/dist/{chunk-MZ5QGWRW.mjs → chunk-N3VMHPIY.mjs} +2 -2
- package/dist/{chunk-GBW5DU7V.mjs → chunk-NOYKBGUK.mjs} +376 -277
- package/dist/{chunk-CCMP4JD2.cjs → chunk-NSLRK5DK.cjs} +1 -1
- package/dist/{chunk-WJ2O2MPP.cjs → chunk-OIWDEDUO.cjs} +394 -363
- package/dist/{chunk-K3XKEZR6.mjs → chunk-ONSZP5JK.mjs} +1 -1
- package/dist/{chunk-SDICLSQU.cjs → chunk-OUDNUFVR.cjs} +10 -10
- package/dist/{chunk-3XTRT3MB.mjs → chunk-PO5MZIWK.mjs} +1 -1
- package/dist/{chunk-EG5YBYHO.mjs → chunk-POL5RCVU.mjs} +1 -1
- package/dist/{chunk-ASYOWPSR.cjs → chunk-PWDBWXQI.cjs} +2 -1
- package/dist/{chunk-7YLDUB4R.cjs → chunk-QCKSYYXK.cjs} +7 -7
- package/dist/{chunk-57QAQU4F.mjs → chunk-QRNYSISP.mjs} +1 -1
- package/dist/{chunk-PRL7FXG4.cjs → chunk-RDNKQ5MK.cjs} +12 -13
- package/dist/{chunk-3JQBQG7K.mjs → chunk-RZ6XUEQS.mjs} +2 -2
- package/dist/{chunk-QHAISITM.mjs → chunk-S3IWDDQ3.mjs} +1 -1
- package/dist/{chunk-EGHPFXPZ.cjs → chunk-SAPG45RA.cjs} +23 -23
- package/dist/{chunk-YN3YMSKD.mjs → chunk-TLSGRK7E.mjs} +3 -3
- package/dist/chunk-UDMBUTJD.mjs +85 -0
- package/dist/{chunk-NJ4OASLP.mjs → chunk-UF4BNKKJ.mjs} +1 -1
- package/dist/{chunk-WHEQJN4G.cjs → chunk-UGD53SNO.cjs} +2 -2
- package/dist/{chunk-WBPVLCNE.mjs → chunk-VPGEYX5Y.mjs} +4 -4
- package/dist/chunk-VS7HLH4S.cjs +385 -0
- package/dist/{chunk-ANZLZNNX.cjs → chunk-W6C3LEXX.cjs} +3 -3
- package/dist/chunk-WMRGIQTA.cjs +48 -0
- package/dist/{chunk-52LTENRE.cjs → chunk-WOAXQ5MZ.cjs} +9 -9
- package/dist/{chunk-C6HGUTXB.mjs → chunk-XBSIGZ4J.mjs} +2 -3
- package/dist/{chunk-TS3ZHJN5.cjs → chunk-XOGCNKB7.cjs} +3 -3
- package/dist/{chunk-KEU55O2D.mjs → chunk-XOXCQGAF.mjs} +7 -6
- package/dist/{chunk-4MIDUSIX.mjs → chunk-YH7ENV3K.mjs} +14 -14
- package/dist/{chunk-2RRTOKRZ.mjs → chunk-YHM4PXJY.mjs} +1 -1
- package/dist/{chunk-A5D3UMLJ.mjs → chunk-YSU3WCW6.mjs} +1 -1
- package/dist/{chunk-4STJ6LGR.mjs → chunk-Z3RM3VA2.mjs} +1 -1
- package/dist/{chunk-DVHFIETW.cjs → chunk-ZIYJWJV2.cjs} +13 -13
- package/dist/{chunk-Z4SMFUZ7.cjs → chunk-ZKNXCRUQ.cjs} +7 -7
- package/dist/{cli-runtime.d-DPNTN-JV.d.mts → cli-runtime.d-D8O1v2_X.d.mts} +5 -5
- package/dist/{cli-runtime.d-8BhZy_wr.d.ts → cli-runtime.d-hf4L1MNP.d.ts} +5 -5
- package/dist/{client-component.d-CkDcob6D.d.ts → client-component.d-CX8UCQh-.d.ts} +1 -1
- package/dist/{client-component.d-CMCdyAr8.d.mts → client-component.d-DFwUHlOz.d.mts} +1 -1
- package/dist/{client-plugins.d-WcMwOZGZ.d.mts → client-plugins.d-BflSNO-b.d.mts} +2 -13
- package/dist/{client-plugins.d-BYIovYqX.d.ts → client-plugins.d-qWp8hNwd.d.ts} +2 -13
- package/dist/client-plugins.d.mts +2 -1
- package/dist/client-plugins.d.ts +2 -1
- package/dist/client.cjs +9 -8
- package/dist/client.d.mts +20 -151
- package/dist/client.d.ts +20 -151
- package/dist/client.mjs +8 -7
- package/dist/config.d.mts +2 -1
- package/dist/config.d.ts +2 -1
- package/dist/desktop.d.mts +3 -2
- package/dist/desktop.d.ts +3 -2
- package/dist/{devtools-JJOYTIMS.cjs → devtools-EI5N366Z.cjs} +9 -9
- package/dist/{devtools-F3FDFV26.mjs → devtools-XJHODO5H.mjs} +7 -7
- package/dist/docs.cjs +9 -9
- package/dist/docs.d.mts +4 -3
- package/dist/docs.d.ts +4 -3
- package/dist/docs.mjs +8 -8
- package/dist/environment/vite.cjs +7 -6
- package/dist/environment/vite.mjs +6 -5
- package/dist/{handler.d-BwdOyc9x.d.ts → handler.d-C2oRihfa.d.ts} +1 -1
- package/dist/{handler.d-s3IM6pbJ.d.mts → handler.d-DoH5Krkq.d.mts} +1 -1
- package/dist/{headers.d-BR-OXrqQ.d.mts → headers.d-BrX53wFQ.d.mts} +1 -1
- package/dist/{headers.d-CAW4wPey.d.ts → headers.d-Dj0mfYpb.d.ts} +1 -1
- package/dist/index.cjs +58 -56
- package/dist/{index.d-ah2c89Wu.d.ts → index.d-Dhc2scRl.d.ts} +1 -1
- package/dist/{index.d-BEVK61zS.d.mts → index.d-DzDHOttz.d.mts} +1 -1
- package/dist/index.d.mts +25 -23
- package/dist/index.d.ts +25 -23
- package/dist/index.mjs +62 -60
- package/dist/instrumentation.cjs +3 -3
- package/dist/instrumentation.mjs +2 -2
- package/dist/integrations/orm.d.mts +2 -1
- package/dist/integrations/orm.d.ts +2 -1
- package/dist/integrations.d.mts +2 -1
- package/dist/integrations.d.ts +2 -1
- package/dist/internal/app-markdown-runtime.cjs +2 -2
- package/dist/internal/app-markdown-runtime.d.mts +12 -5
- package/dist/internal/app-markdown-runtime.d.ts +12 -5
- package/dist/internal/app-markdown-runtime.mjs +1 -1
- package/dist/internal/build-runtime.cjs +41 -40
- package/dist/internal/build-runtime.d.mts +5 -4
- package/dist/internal/build-runtime.d.ts +5 -4
- package/dist/internal/build-runtime.mjs +40 -39
- package/dist/internal/cli-runtime.cjs +19 -19
- package/dist/internal/cli-runtime.d.mts +8 -7
- package/dist/internal/cli-runtime.d.ts +8 -7
- package/dist/internal/cli-runtime.mjs +20 -20
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +76 -15
- package/dist/internal/client-runtime.d.mts +18 -7
- package/dist/internal/client-runtime.d.ts +18 -7
- package/dist/internal/client-runtime.mjs +67 -6
- package/dist/internal/compression-runtime.d.mts +2 -1
- package/dist/internal/compression-runtime.d.ts +2 -1
- package/dist/internal/config-runtime.cjs +9 -9
- package/dist/internal/config-runtime.d.mts +4 -3
- package/dist/internal/config-runtime.d.ts +4 -3
- package/dist/internal/config-runtime.mjs +8 -8
- package/dist/internal/docs-precompiled-runtime.cjs +1 -1
- package/dist/internal/docs-precompiled-runtime.mjs +1 -1
- package/dist/internal/form-actions.cjs +3 -3
- package/dist/internal/form-actions.mjs +2 -2
- package/dist/internal/infra-analytics-runtime.cjs +7 -7
- package/dist/internal/infra-analytics-runtime.mjs +5 -5
- package/dist/internal/island-codec.cjs +3 -3
- package/dist/internal/island-codec.mjs +2 -2
- package/dist/internal/island-value-store.d.mts +1 -1
- package/dist/internal/island-value-store.d.ts +1 -1
- package/dist/internal/islands-boot.cjs +9 -3
- package/dist/internal/islands-boot.mjs +9 -3
- package/dist/internal/islands-runtime.cjs +10 -56
- package/dist/internal/islands-runtime.mjs +6 -52
- package/dist/internal/islands-server.cjs +4 -4
- package/dist/internal/islands-server.mjs +3 -3
- package/dist/internal/islx-actions-client.cjs +36 -0
- package/dist/internal/islx-actions-client.d.mts +13 -0
- package/dist/internal/islx-actions-client.d.ts +13 -0
- package/dist/internal/islx-actions-client.mjs +36 -0
- package/dist/internal/islx-actions-server.cjs +8 -0
- package/dist/internal/islx-actions-server.d.mts +6 -0
- package/dist/internal/islx-actions-server.d.ts +6 -0
- package/dist/internal/islx-actions-server.mjs +8 -0
- package/dist/internal/islx-client.d.mts +0 -4
- package/dist/internal/islx-client.d.ts +0 -4
- package/dist/internal/isolated-boundary.cjs +3 -3
- package/dist/internal/isolated-boundary.d.mts +1 -1
- package/dist/internal/isolated-boundary.d.ts +1 -1
- package/dist/internal/isolated-boundary.mjs +2 -2
- package/dist/internal/metadata-image-runtime.cjs +4 -2
- package/dist/internal/metadata-image-runtime.d.mts +18 -2
- package/dist/internal/metadata-image-runtime.d.ts +18 -2
- package/dist/internal/metadata-image-runtime.mjs +5 -3
- package/dist/internal/native-server-fns.cjs +5 -4
- package/dist/internal/native-server-fns.mjs +4 -3
- package/dist/internal/navigation-neutral.cjs +36 -0
- package/dist/internal/navigation-neutral.d.mts +14 -0
- package/dist/internal/navigation-neutral.d.ts +14 -0
- package/dist/internal/navigation-neutral.mjs +36 -0
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +24 -24
- package/dist/internal/production-runtime.d.mts +11 -10
- package/dist/internal/production-runtime.d.ts +11 -10
- package/dist/internal/production-runtime.mjs +29 -29
- package/dist/internal/server-tree.cjs +5 -4
- package/dist/internal/server-tree.d.mts +3 -4
- package/dist/internal/server-tree.d.ts +3 -4
- package/dist/internal/server-tree.mjs +4 -3
- package/dist/internal/spa-router.cjs +3 -3
- package/dist/internal/spa-router.d.mts +4 -3
- package/dist/internal/spa-router.d.ts +4 -3
- package/dist/internal/spa-router.mjs +2 -2
- package/dist/internal/start-manifest.d.mts +2 -1
- package/dist/internal/start-manifest.d.ts +2 -1
- package/dist/internal/vercel-edge-middleware.cjs +1 -1
- package/dist/internal/vercel-edge-middleware.mjs +1 -1
- package/dist/island-value-protocol.d-fEoc1m8e.d.mts +27 -0
- package/dist/island-value-protocol.d-fEoc1m8e.d.ts +27 -0
- package/dist/{layers-5ZD4764G.mjs → layers-744BBUY5.mjs} +2 -2
- package/dist/layers-XLOMMQP7.cjs +21 -0
- package/dist/markdown.d.mts +2 -1
- package/dist/markdown.d.ts +2 -1
- package/dist/middleware.cjs +5 -5
- package/dist/middleware.d.mts +2 -1
- package/dist/middleware.d.ts +2 -1
- package/dist/middleware.mjs +4 -4
- package/dist/{mount.d-Ylo-CmzK.d.mts → mount.d-DOaeUoWq.d.mts} +1 -1
- package/dist/{mount.d-DcoPFqv5.d.ts → mount.d-DwXjaOHY.d.ts} +1 -1
- package/dist/{native-server-fn-handler-TNVFEQW3.cjs → native-server-fn-handler-57TCQPSM.cjs} +4 -4
- package/dist/{native-server-fn-handler-OXFTI6V5.mjs → native-server-fn-handler-PYK65A46.mjs} +3 -3
- package/dist/{navigation-delegate.d-BA5h0fbE.d.mts → navigation-delegate.d-BElGUMgt.d.mts} +1 -1
- package/dist/{navigation-delegate.d-2MK4YSlL.d.ts → navigation-delegate.d-o3pPd9VI.d.ts} +1 -1
- package/dist/navigation-errors.d-DwHtoMyR.d.mts +13 -0
- package/dist/navigation-errors.d-DwHtoMyR.d.ts +13 -0
- package/dist/navigation.cjs +6 -6
- package/dist/navigation.d.mts +7 -6
- package/dist/navigation.d.ts +7 -6
- package/dist/navigation.mjs +5 -5
- package/dist/{nitro-6UOJXJZ6.cjs → nitro-XGIO6EQN.cjs} +2 -2
- package/dist/{nitro-C3MYDX7V.mjs → nitro-YLTGVGK4.mjs} +1 -1
- package/dist/node-module-bundle-TNSY5PAC.cjs +15 -0
- package/dist/{node-module-bundle-XPLBMXRD.mjs → node-module-bundle-ZWCQJCKA.mjs} +3 -1
- package/dist/plugin.cjs +32 -30
- package/dist/plugin.d.mts +6 -5
- package/dist/plugin.d.ts +6 -5
- package/dist/plugin.mjs +31 -29
- package/dist/query/client.cjs +10 -10
- package/dist/query/client.mjs +5 -5
- package/dist/{render-plan.d-2o-AG-ot.d.ts → render-plan.d-BD06tqFA.d.ts} +1 -1
- package/dist/{render-plan.d-ChYBMhLu.d.mts → render-plan.d-xWCRAJeR.d.mts} +1 -1
- package/dist/renderer/none/server.cjs +5 -1
- package/dist/renderer/none/server.d.mts +3 -1
- package/dist/renderer/none/server.d.ts +3 -1
- package/dist/renderer/none/server.mjs +4 -0
- package/dist/renderer/react/server.cjs +6 -6
- package/dist/renderer/react/server.mjs +3 -3
- package/dist/renderer-client.cjs +34 -15
- package/dist/renderer-client.d.mts +13 -97
- package/dist/renderer-client.d.ts +13 -97
- package/dist/renderer-client.mjs +23 -4
- package/dist/renderer.cjs +4 -2
- package/dist/renderer.d.mts +33 -5
- package/dist/renderer.d.ts +33 -5
- package/dist/renderer.mjs +3 -1
- package/dist/{request.d-CE0FIkiM.d.ts → request.d-DUMuWxSN.d.ts} +1 -1
- package/dist/{request.d-RCnCBuWq.d.mts → request.d-Dx82V8bz.d.mts} +1 -1
- package/dist/request.d.mts +3 -2
- package/dist/request.d.ts +3 -2
- package/dist/{route-rendering.d-BTPOM2nU.d.ts → route-rendering.d-BwBVpLtD.d.ts} +1 -1
- package/dist/{route-rendering.d-BZJnfKsp.d.mts → route-rendering.d-DJh6GauM.d.mts} +1 -1
- package/dist/{router.d-D8Vvwl4i.d.mts → router.d-BtkKDxUB.d.mts} +1 -1
- package/dist/{router.d-BU_WE6Ol.d.ts → router.d-CJBSG5jr.d.ts} +1 -1
- package/dist/routes.cjs +1 -1
- package/dist/routes.d.mts +2 -1
- package/dist/routes.d.ts +2 -1
- package/dist/routes.mjs +1 -1
- package/dist/{rsc-pipeline-JZWVSHOR.mjs → rsc-pipeline-GD6KLOIG.mjs} +13 -13
- package/dist/{rsc-pipeline-A3R4U26C.cjs → rsc-pipeline-H5AXQA7A.cjs} +14 -14
- package/dist/{runtime-SQFRHRGJ.mjs → runtime-OJ7FXFUI.mjs} +13 -13
- package/dist/{runtime-WZ3CHHGJ.cjs → runtime-YWQVBC3V.cjs} +15 -15
- package/dist/{runtime.d-DJ6IIKcF.d.ts → runtime.d-BQnD0cfC.d.ts} +1 -1
- package/dist/{runtime.d-BnmuOXVD.d.mts → runtime.d-C4SuZXf6.d.mts} +1 -1
- package/dist/server-action-security.cjs +1 -1
- package/dist/server-action-security.mjs +1 -1
- package/dist/{server-components-status.d-BzOg9M8g.d.mts → server-components-status.d-9rH7ZoEq.d.mts} +1 -1
- package/dist/{server-components-status.d-BeqSXcjM.d.ts → server-components-status.d-rfKOcE0N.d.ts} +1 -1
- package/dist/server-fn.cjs +3 -3
- package/dist/server-fn.mjs +2 -2
- package/dist/server-plugins.cjs +1 -1
- package/dist/server-plugins.d.mts +4 -3
- package/dist/server-plugins.d.ts +4 -3
- package/dist/server-plugins.mjs +1 -1
- package/dist/server-query.cjs +4 -4
- package/dist/server-query.mjs +3 -3
- package/dist/server.cjs +64 -59
- package/dist/server.d.mts +12 -11
- package/dist/server.d.ts +12 -11
- package/dist/server.mjs +45 -40
- package/dist/{spa-router.d-BOwuVkMl.d.ts → spa-router.d-DMKiBsHH.d.ts} +3 -3
- package/dist/{spa-router.d-CDpftSsk.d.mts → spa-router.d-V6XLSTCy.d.mts} +3 -3
- package/dist/{ssg.d-Bx_WFuwg.d.mts → ssg.d-BnCKPQL0.d.mts} +2 -2
- package/dist/{ssg.d-BTVqyq8T.d.ts → ssg.d-MNedvvMB.d.ts} +2 -2
- package/dist/store-core.d-Ad5biajo.d.ts +301 -0
- package/dist/store-core.d-BqJI1-ix.d.mts +301 -0
- package/dist/testing.cjs +3 -3
- package/dist/testing.d.mts +2 -1
- package/dist/testing.d.ts +2 -1
- package/dist/testing.mjs +3 -3
- package/dist/{utils.d-JkrpS-NJ.d.mts → utils.d-BEKLWa0Z.d.mts} +1 -1
- package/dist/{utils.d-_dvevm5s.d.ts → utils.d-BdjHKDuT.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +34 -30
- package/dist/vite.d.mts +18 -7
- package/dist/vite.d.ts +18 -7
- package/dist/vite.mjs +33 -29
- package/dist/workflows.cjs +2 -2
- package/dist/workflows.mjs +1 -1
- package/package.json +17 -2
- package/dist/analyzer-I7RBBQ65.cjs +0 -16
- package/dist/chunk-CQL5ZGFU.cjs +0 -50
- package/dist/chunk-HONTCUK6.mjs +0 -203
- package/dist/chunk-K6PGK7DC.cjs +0 -203
- package/dist/chunk-NBIVGHAT.mjs +0 -50
- package/dist/island-value-protocol.d-BRayRghM.d.mts +0 -12
- package/dist/island-value-protocol.d-BRayRghM.d.ts +0 -12
- package/dist/layers-HMEGUEXM.cjs +0 -21
- package/dist/node-module-bundle-M6BISE2P.cjs +0 -13
- package/dist/{chunk-EY7ED5UW.mjs → chunk-3RVLJTFZ.mjs} +3 -3
- package/dist/{chunk-KKVRWNDH.mjs → chunk-6WVRVGKC.mjs} +3 -3
- package/dist/{chunk-UJPE75GF.mjs → chunk-J2VUPCCR.mjs} +3 -3
- package/dist/{chunk-MQOHYV6L.cjs → chunk-LKIG5SM6.cjs} +2 -2
- package/dist/{chunk-UWOCYINY.cjs → chunk-OFVCWV2D.cjs} +2 -2
- package/dist/{chunk-3K2E55BJ.mjs → chunk-OO4GVGM3.mjs} +3 -3
- package/dist/{chunk-PBJ7MEOV.cjs → chunk-OZUINP2P.cjs} +2 -2
- package/dist/{chunk-7FQFK3OA.mjs → chunk-V7HNYR76.mjs} +3 -3
- package/dist/{chunk-2FK47RRZ.cjs → chunk-VGHDPEPQ.cjs} +2 -2
- package/dist/{chunk-CGIVCGH5.cjs → chunk-XOFJUSWC.cjs} +2 -2
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkJB4BHRFKcjs = require('./chunk-JB4BHRFK.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkUGD53SNOcjs = require('./chunk-UGD53SNO.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
|
|
10
10
|
|
|
11
11
|
// src/navigation.ts
|
|
12
12
|
function useRouter2() {
|
|
13
|
-
const router =
|
|
13
|
+
const router = _chunkJB4BHRFKcjs.useRouter.call(void 0, );
|
|
14
14
|
return {
|
|
15
15
|
push: router.push,
|
|
16
16
|
replace: router.replace,
|
|
@@ -18,19 +18,19 @@ function useRouter2() {
|
|
|
18
18
|
forward: router.forward,
|
|
19
19
|
refresh() {
|
|
20
20
|
if (typeof window === "undefined") return Promise.resolve();
|
|
21
|
-
return
|
|
21
|
+
return _chunkUGD53SNOcjs.getRouter.call(void 0, ).refresh();
|
|
22
22
|
},
|
|
23
23
|
prefetch(href) {
|
|
24
24
|
if (typeof window === "undefined") return Promise.resolve();
|
|
25
|
-
return
|
|
25
|
+
return _chunkUGD53SNOcjs.getRouter.call(void 0, ).prefetch(_chunkD22BUQKWcjs.applyFarmBasePath.call(void 0, href));
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
function usePathname() {
|
|
30
|
-
return
|
|
30
|
+
return _chunkJB4BHRFKcjs.useRouter.call(void 0, ).pathname;
|
|
31
31
|
}
|
|
32
32
|
function useSearchParams() {
|
|
33
|
-
return
|
|
33
|
+
return _chunkJB4BHRFKcjs.useRouter.call(void 0, ).searchParams;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
|
|
@@ -15,14 +15,17 @@ var _chunkWBTHHTBOcjs = require('./chunk-WBTHHTBO.cjs');
|
|
|
15
15
|
var _chunkCCAUIBIScjs = require('./chunk-CCAUIBIS.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkWMRGIQTAcjs = require('./chunk-WMRGIQTA.cjs');
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
var _chunkNSLRK5DKcjs = require('./chunk-NSLRK5DK.cjs');
|
|
19
22
|
|
|
20
23
|
// src/mobile/analyzer.ts
|
|
21
24
|
var _crypto = require('crypto');
|
|
22
25
|
var _fs = require('fs');
|
|
23
26
|
var _promises = require('fs/promises');
|
|
24
27
|
var _path = require('path'); var path = _interopRequireWildcard(_path);
|
|
25
|
-
var ANALYZER_VERSION = `
|
|
28
|
+
var ANALYZER_VERSION = `8:${_chunkNSLRK5DKcjs.FARM_VERSION}`;
|
|
26
29
|
var INTRINSIC_KINDS = {};
|
|
27
30
|
for (const tag of "div section main article header footer nav aside figure hr li".split(" ")) {
|
|
28
31
|
INTRINSIC_KINDS[tag] = "View";
|
|
@@ -904,10 +907,8 @@ function analyzeComponentSource(file, source, parseSync) {
|
|
|
904
907
|
only: "react-native"
|
|
905
908
|
});
|
|
906
909
|
for (const script of _chunkWBTHHTBOcjs.farmComponentModuleScripts.call(void 0, blocks)) {
|
|
907
|
-
const hydrate =
|
|
908
|
-
|
|
909
|
-
);
|
|
910
|
-
if (hydrate) {
|
|
910
|
+
const hydrate = _chunkWMRGIQTAcjs.readFarmHydrateExport.call(void 0, source.slice(script.start, script.end));
|
|
911
|
+
if (_optionalChain([hydrate, 'optionalAccess', _44 => _44.value]) === true) {
|
|
911
912
|
block(
|
|
912
913
|
script.start + hydrate.index,
|
|
913
914
|
"client-logic",
|
|
@@ -935,7 +936,7 @@ function analyzeComponentSource(file, source, parseSync) {
|
|
|
935
936
|
}
|
|
936
937
|
for (const match of text.matchAll(/\bimport\s+(?:[\w$]+\s*,\s*)?\{([^}]*)\}/g)) {
|
|
937
938
|
for (const part of match[1].split(",")) {
|
|
938
|
-
const local = _optionalChain([part, 'access',
|
|
939
|
+
const local = _optionalChain([part, 'access', _45 => _45.trim, 'call', _46 => _46(), 'access', _47 => _47.split, 'call', _48 => _48(/\s+as\s+/), 'access', _49 => _49.pop, 'call', _50 => _50(), 'optionalAccess', _51 => _51.trim, 'call', _52 => _52()]);
|
|
939
940
|
if (local) imported.add(local);
|
|
940
941
|
}
|
|
941
942
|
}
|
|
@@ -991,7 +992,7 @@ function analyzeComponentSource(file, source, parseSync) {
|
|
|
991
992
|
cursor = closeBrace(markup, cursor);
|
|
992
993
|
continue;
|
|
993
994
|
}
|
|
994
|
-
const attrName = _nullishCoalesce(_optionalChain([/^[^\s=/>]+/, 'access',
|
|
995
|
+
const attrName = _nullishCoalesce(_optionalChain([/^[^\s=/>]+/, 'access', _53 => _53.exec, 'call', _54 => _54(markup.slice(cursor)), 'optionalAccess', _55 => _55[0]]), () => ( char));
|
|
995
996
|
const attrOffset = range.start + cursor;
|
|
996
997
|
cursor += attrName.length;
|
|
997
998
|
while (/\s/.test(_nullishCoalesce(markup[cursor], () => ( "")))) cursor += 1;
|
|
@@ -1011,7 +1012,7 @@ function analyzeComponentSource(file, source, parseSync) {
|
|
|
1011
1012
|
braced = true;
|
|
1012
1013
|
cursor = end;
|
|
1013
1014
|
} else {
|
|
1014
|
-
value2 = _nullishCoalesce(_optionalChain([/^[^\s>]+/, 'access',
|
|
1015
|
+
value2 = _nullishCoalesce(_optionalChain([/^[^\s>]+/, 'access', _56 => _56.exec, 'call', _57 => _57(markup.slice(cursor)), 'optionalAccess', _58 => _58[0]]), () => ( ""));
|
|
1015
1016
|
cursor += value2.length;
|
|
1016
1017
|
}
|
|
1017
1018
|
}
|
|
@@ -1068,7 +1069,7 @@ function analyzeComponentSource(file, source, parseSync) {
|
|
|
1068
1069
|
const classes = value("class");
|
|
1069
1070
|
if (boundAttribute("class")) {
|
|
1070
1071
|
block(at, "runtime-class-name", `<${tag}> builds its class names at runtime`);
|
|
1071
|
-
} else if (_optionalChain([classes, 'optionalAccess',
|
|
1072
|
+
} else if (_optionalChain([classes, 'optionalAccess', _59 => _59.value])) {
|
|
1072
1073
|
for (const token of classes.value.split(/\s+/).filter(Boolean)) {
|
|
1073
1074
|
const problem = classifyClass(token);
|
|
1074
1075
|
if (problem && /^class ".*" is not in the native Tailwind subset$/.test(problem)) {
|
|
@@ -1083,7 +1084,7 @@ function analyzeComponentSource(file, source, parseSync) {
|
|
|
1083
1084
|
const style = value("style");
|
|
1084
1085
|
if (boundAttribute("style")) {
|
|
1085
1086
|
block(at, "runtime-style", `<${tag}> style is computed at runtime`);
|
|
1086
|
-
} else if (_optionalChain([style, 'optionalAccess',
|
|
1087
|
+
} else if (_optionalChain([style, 'optionalAccess', _60 => _60.value])) {
|
|
1087
1088
|
for (const declaration of _chunkCCAUIBIScjs.resolveFarmNativeInlineStyle.call(void 0, style.value).unsupported) {
|
|
1088
1089
|
block(
|
|
1089
1090
|
style.offset,
|
|
@@ -1095,7 +1096,7 @@ function analyzeComponentSource(file, source, parseSync) {
|
|
|
1095
1096
|
}
|
|
1096
1097
|
const type = value("type");
|
|
1097
1098
|
if (tag === "input") {
|
|
1098
|
-
const inputType = _optionalChain([type, 'optionalAccess',
|
|
1099
|
+
const inputType = _optionalChain([type, 'optionalAccess', _61 => _61.dynamic]) ? void 0 : (_nullishCoalesce(_optionalChain([type, 'optionalAccess', _62 => _62.value]), () => ( "text"))).toLowerCase();
|
|
1099
1100
|
const formType = formDepth > 0 && (inputType === "hidden" || inputType === "submit");
|
|
1100
1101
|
if (!formType && (inputType === void 0 || !INPUT_TYPES.has(inputType))) {
|
|
1101
1102
|
block(
|
|
@@ -1107,7 +1108,7 @@ function analyzeComponentSource(file, source, parseSync) {
|
|
|
1107
1108
|
}
|
|
1108
1109
|
if (inputType === "hidden") continue;
|
|
1109
1110
|
}
|
|
1110
|
-
const buttonType = tag === "button" ? (_nullishCoalesce(_optionalChain([type, 'optionalAccess',
|
|
1111
|
+
const buttonType = tag === "button" ? (_nullishCoalesce(_optionalChain([type, 'optionalAccess', _63 => _63.value]), () => ( "submit"))).toLowerCase() : void 0;
|
|
1111
1112
|
if ((tag === "button" || kind === "TextInput") && !value("action") && !value("formaction") && (formDepth === 0 || buttonType !== void 0 && buttonType !== "submit")) {
|
|
1112
1113
|
block(
|
|
1113
1114
|
at,
|
|
@@ -1118,9 +1119,9 @@ function analyzeComponentSource(file, source, parseSync) {
|
|
|
1118
1119
|
}
|
|
1119
1120
|
if (tag === "form") {
|
|
1120
1121
|
const method = value("method");
|
|
1121
|
-
const methodValue = (_nullishCoalesce(_optionalChain([method, 'optionalAccess',
|
|
1122
|
-
if (_optionalChain([method, 'optionalAccess',
|
|
1123
|
-
block(at, "form-action", `<form method="${_nullishCoalesce(_optionalChain([method, 'optionalAccess',
|
|
1122
|
+
const methodValue = (_nullishCoalesce(_optionalChain([method, 'optionalAccess', _64 => _64.value]), () => ( "get"))).toLowerCase();
|
|
1123
|
+
if (_optionalChain([method, 'optionalAccess', _65 => _65.dynamic]) || methodValue !== "get" && methodValue !== "post") {
|
|
1124
|
+
block(at, "form-action", `<form method="${_nullishCoalesce(_optionalChain([method, 'optionalAccess', _66 => _66.value]), () => ( "{expr}"))}">`, "native");
|
|
1124
1125
|
}
|
|
1125
1126
|
}
|
|
1126
1127
|
}
|
|
@@ -1199,7 +1200,7 @@ function classifyPackage(fact, serverBoundary) {
|
|
|
1199
1200
|
}
|
|
1200
1201
|
if (specifier.startsWith("@farm.js/core")) {
|
|
1201
1202
|
const portable = CORE_PORTABLE[specifier];
|
|
1202
|
-
const unmapped = fact.names.filter((name2) => !_optionalChain([portable, 'optionalAccess',
|
|
1203
|
+
const unmapped = fact.names.filter((name2) => !_optionalChain([portable, 'optionalAccess', _67 => _67.has, 'call', _68 => _68(name2)]));
|
|
1203
1204
|
if (unmapped.length > 0 || !portable) {
|
|
1204
1205
|
return {
|
|
1205
1206
|
...at,
|
|
@@ -1413,7 +1414,7 @@ async function analyzeFarmMobileRoutes(options) {
|
|
|
1413
1414
|
const allStylesheets = /* @__PURE__ */ new Set();
|
|
1414
1415
|
const unreadStylesheets = /* @__PURE__ */ new Set();
|
|
1415
1416
|
for (const [route, { page, layouts }] of entries) {
|
|
1416
|
-
if (!page && _optionalChain([options, 'access',
|
|
1417
|
+
if (!page && _optionalChain([options, 'access', _69 => _69.nativeOnlyRoutes, 'optionalAccess', _70 => _70.has, 'call', _71 => _71(route)])) continue;
|
|
1417
1418
|
const blockers = [];
|
|
1418
1419
|
const wins = /* @__PURE__ */ new Set();
|
|
1419
1420
|
const elements = { total: 0, mapped: 0, byKind: {} };
|
|
@@ -1476,8 +1477,8 @@ async function analyzeFarmMobileRoutes(options) {
|
|
|
1476
1477
|
if (moduleFacts.serverBoundary && !entry) return;
|
|
1477
1478
|
for (const blocker of moduleFacts.blockers) add({ file: label, ...blocker });
|
|
1478
1479
|
for (const action of _nullishCoalesce(moduleFacts.formActions, () => ( []))) {
|
|
1479
|
-
const target = action.source === void 0 ? void 0 : _optionalChain([(_nullishCoalesce(resolved.get(file), () => ( []))), 'access',
|
|
1480
|
-
const server = options.serverComponents === true && (action.source === void 0 || target !== void 0 && _optionalChain([settled, 'access',
|
|
1480
|
+
const target = action.source === void 0 ? void 0 : _optionalChain([(_nullishCoalesce(resolved.get(file), () => ( []))), 'access', _72 => _72.find, 'call', _73 => _73((entry2) => entry2.fact.source === action.source), 'optionalAccess', _74 => _74.file]);
|
|
1481
|
+
const server = options.serverComponents === true && (action.source === void 0 || target !== void 0 && _optionalChain([settled, 'access', _75 => _75.get, 'call', _76 => _76(target), 'optionalAccess', _77 => _77.serverBoundary]) === true);
|
|
1481
1482
|
if (!server) {
|
|
1482
1483
|
add({
|
|
1483
1484
|
file: label,
|
|
@@ -1509,7 +1510,7 @@ async function analyzeFarmMobileRoutes(options) {
|
|
|
1509
1510
|
if (entryImport.stylesheet) {
|
|
1510
1511
|
stylesheets.add(entryImport.stylesheet);
|
|
1511
1512
|
allStylesheets.add(entryImport.stylesheet);
|
|
1512
|
-
} else if (_optionalChain([entryImport, 'access',
|
|
1513
|
+
} else if (_optionalChain([entryImport, 'access', _78 => _78.blocker, 'optionalAccess', _79 => _79.rule]) === "css-import") {
|
|
1513
1514
|
unreadStylesheets.add(entryImport.fact.source);
|
|
1514
1515
|
}
|
|
1515
1516
|
if (entryImport.blocker) add({ file: label, ...entryImport.blocker });
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// src/utils/hydrate-export.ts
|
|
2
|
+
var COMMENT_LINE = /^[ \t]*\/\/.*$/gm;
|
|
3
|
+
var DECLARATION = /\bexport\s+(?:(?:const|let|var)\s+hydrate(?![\w$])(?:\s*:[^=;\n]+)?\s*=\s*([^,;\n]*)|(?:async\s+)?(function|class)\b\s*\*?\s*hydrate(?![\w$]))/g;
|
|
4
|
+
var EXPORT_LIST = /\bexport\s*(type\s*)?\{([^}]*)\}(?:\s*from\s*(["'])([^"'\n]*)\3)?/g;
|
|
5
|
+
var BOOLEAN_LITERAL = /^(true|false)(?:\s+(?:as\s+const|satisfies\s+[\w$.]+))?$/;
|
|
6
|
+
function readFarmHydrateExport(content) {
|
|
7
|
+
if (!content || !content.includes("hydrate")) return null;
|
|
8
|
+
const source = content.replace(COMMENT_LINE, (line) => " ".repeat(line.length));
|
|
9
|
+
for (const match of source.matchAll(DECLARATION)) {
|
|
10
|
+
if (match[2]) return { value: null, found: `a ${match[2]} declaration`, index: match.index };
|
|
11
|
+
return readLiteral(match[1], match.index);
|
|
12
|
+
}
|
|
13
|
+
for (const match of source.matchAll(EXPORT_LIST)) {
|
|
14
|
+
if (match[1]) continue;
|
|
15
|
+
for (const specifier of match[2].split(",")) {
|
|
16
|
+
const [local = "", exported = local] = specifier.trim().split(/\s+as\s+/).map((name) => name.trim().replace(/^(["'])(.*)\1$/, "$2"));
|
|
17
|
+
if (exported !== "hydrate" || /^type\s/.test(local)) continue;
|
|
18
|
+
if (match[4] !== void 0) {
|
|
19
|
+
return { value: null, found: `a re-export from "${match[4]}"`, index: match.index };
|
|
20
|
+
}
|
|
21
|
+
const declaration = new RegExp(
|
|
22
|
+
`\\b(?:const|let|var)\\s+${local.replace(/\$/g, "\\$")}(?![\\w$])(?:\\s*:[^=;\\n]+)?\\s*=\\s*([^,;\\n]*)`
|
|
23
|
+
).exec(source);
|
|
24
|
+
if (!declaration) {
|
|
25
|
+
return {
|
|
26
|
+
value: null,
|
|
27
|
+
found: `\`${local}\`, which isn't declared with a literal value in this file`,
|
|
28
|
+
index: match.index
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
return readLiteral(declaration[1], match.index);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
function readLiteral(text, index) {
|
|
37
|
+
const found = text.replace(/\s*(?:\/\/.*|\/\*.*?\*\/)\s*$/, "").trim();
|
|
38
|
+
const literal = BOOLEAN_LITERAL.exec(found);
|
|
39
|
+
return { value: literal ? literal[1] === "true" : null, found: `\`${found}\``, index };
|
|
40
|
+
}
|
|
41
|
+
function formatFarmHydrateExportError(hydrate, sourcePath) {
|
|
42
|
+
return `\`hydrate\`${sourcePath ? ` in ${sourcePath}` : ""} must be \`true\` or \`false\` written in the file, but Farm found ${hydrate.found}. Farm reads it from the source, before bundling, to decide whether the route ships JavaScript, so it can't evaluate expressions, imports or re-exports. Set it to the literal \`true\` or \`false\`.`;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export {
|
|
46
|
+
readFarmHydrateExport,
|
|
47
|
+
formatFarmHydrateExportError
|
|
48
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await 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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkVGHDPEPQcjs = require('./chunk-VGHDPEPQ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk5DX3O6TTcjs = require('./chunk-5DX3O6TT.cjs');
|
|
@@ -142,7 +142,7 @@ function getCountedRateLimitKeys(ctx) {
|
|
|
142
142
|
return counted;
|
|
143
143
|
}
|
|
144
144
|
function requireRateLimitClientAddress(ctx) {
|
|
145
|
-
const address =
|
|
145
|
+
const address = _chunkVGHDPEPQcjs.getFarmMiddlewareClientAddress.call(void 0, ctx.request);
|
|
146
146
|
if (address) return address;
|
|
147
147
|
throw new Error(
|
|
148
148
|
"Rate limiting could not identify the caller: this runtime reports no client address. Set `server.trustProxy` so a proxy's x-forwarded-for is trusted, or pass a `keyGenerator` that derives the bucket from something you do have, such as a session or an API key."
|
|
@@ -413,7 +413,7 @@ function farmMiddlewarePlugin(options = {}) {
|
|
|
413
413
|
mode: server.config.mode === "production" ? "production" : "development",
|
|
414
414
|
basePath: _nullishCoalesce(options.basePath, () => ( "/"))
|
|
415
415
|
});
|
|
416
|
-
manager = new (0,
|
|
416
|
+
manager = new (0, _chunkVGHDPEPQcjs.MiddlewareManager)(
|
|
417
417
|
getMiddlewareAppDirectory(server.config.root, srcDir),
|
|
418
418
|
server,
|
|
419
419
|
options.middleware,
|
|
@@ -18,7 +18,7 @@ var _chunkHR5GU4UUcjs = require('./chunk-HR5GU4UU.cjs');
|
|
|
18
18
|
var _chunkNDOE76QCcjs = require('./chunk-NDOE76QC.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkMOGRRZMWcjs = require('./chunk-MOGRRZMW.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -593,7 +593,7 @@ async function resolveAPIContext(options) {
|
|
|
593
593
|
config: options.config,
|
|
594
594
|
configPath: options.configPath
|
|
595
595
|
}));
|
|
596
|
-
const docs = isResolvedDocsConfig(docsInput) ? docsInput : await
|
|
596
|
+
const docs = isResolvedDocsConfig(docsInput) ? docsInput : await _chunkMOGRRZMWcjs.resolveDocsConfig.call(void 0, docsInput, { root, srcDir });
|
|
597
597
|
const guardedPaths = new Set(_nullishCoalesce(_optionalChain([runtimeConfig, 'optionalAccess', _28 => _28.guardedPaths]), () => ( [])));
|
|
598
598
|
return {
|
|
599
599
|
root,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createFarmMarkdownRouteModule
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ICOJ2BC6.mjs";
|
|
4
4
|
|
|
5
5
|
// src/app-markdown.ts
|
|
6
6
|
import { readFile } from "fs/promises";
|
|
@@ -12,7 +12,8 @@ async function createFarmMarkdownRouteModuleFromFile(filePath, options = {}) {
|
|
|
12
12
|
source,
|
|
13
13
|
filePath,
|
|
14
14
|
components: options.components,
|
|
15
|
-
config: options.config
|
|
15
|
+
config: options.config,
|
|
16
|
+
renderer: options.renderer
|
|
16
17
|
});
|
|
17
18
|
}
|
|
18
19
|
async function loadFarmMdxComponents(config, options) {
|