@farm.js/core 0.1.86 → 0.2.0-beta.0
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-7uKdOttc.d.ts → agent-mcp.d-BdM0pIrD.d.ts} +1 -1
- package/dist/{agent-mcp.d-LChlR2au.d.mts → agent-mcp.d-CMGqpUbk.d.mts} +1 -1
- package/dist/agent-runtime.d.mts +1 -1
- package/dist/agent-runtime.d.ts +1 -1
- package/dist/analyzer-B2TRJT3B.cjs +17 -0
- package/dist/{analyzer-I5S5YKHM.mjs → analyzer-PWHYGER6.mjs} +2 -2
- package/dist/api/node.d.mts +3 -3
- package/dist/api/node.d.ts +3 -3
- package/dist/api/route-manager.cjs +4 -4
- package/dist/api/route-manager.d.mts +3 -3
- package/dist/api/route-manager.d.ts +3 -3
- package/dist/api/route-manager.mjs +3 -3
- package/dist/api/runtime.d.mts +2 -2
- package/dist/api/runtime.d.ts +2 -2
- package/dist/api.cjs +5 -5
- package/dist/api.d.mts +4 -4
- package/dist/api.d.ts +4 -4
- package/dist/api.mjs +4 -4
- package/dist/{app-manifest.d-QMdmqqCr.d.mts → app-manifest.d-BeDB2OVm.d.mts} +1 -1
- package/dist/{app-manifest.d-CRp21oAz.d.ts → app-manifest.d-COhjPgHn.d.ts} +1 -1
- package/dist/app-markdown.d.mts +2 -2
- package/dist/app-markdown.d.ts +2 -2
- package/dist/{app.d-Bvpc2eJq.d.mts → app.d-AVZXCfcO.d.mts} +5 -4
- package/dist/{app.d-DEKpJEp4.d.ts → app.d-b3A4cca5.d.ts} +5 -4
- package/dist/{chunk-B7L24VPX.cjs → chunk-22KXTL3I.cjs} +6 -4
- package/dist/chunk-2HTNASSB.cjs +134 -0
- package/dist/{chunk-FULX5RYX.cjs → chunk-2OR5WAD5.cjs} +19 -13
- package/dist/{chunk-5P65LXGU.cjs → chunk-3MY6TNNE.cjs} +15 -14
- package/dist/{chunk-A4WWKG2B.cjs → chunk-5ZWXTIGE.cjs} +2 -2
- package/dist/{chunk-2NKNP4AH.cjs → chunk-6266WH6X.cjs} +1 -1
- package/dist/chunk-65LZRVCZ.mjs +18 -0
- package/dist/{chunk-L2IULWKV.cjs → chunk-7LBNWL3L.cjs} +3 -3
- package/dist/{chunk-KHIEGVG7.mjs → chunk-BGEA4K7C.mjs} +10 -4
- package/dist/{chunk-CVKTYG4L.mjs → chunk-BJHXFEAF.mjs} +2 -2
- package/dist/chunk-BQHIJOZM.cjs +13 -0
- package/dist/{chunk-IAERD73G.cjs → chunk-CFLRUCN7.cjs} +384 -339
- package/dist/{chunk-NXOZRI3B.cjs → chunk-CNGGEHXY.cjs} +2 -2
- package/dist/{chunk-3RVLJTFZ.mjs → chunk-D7LXBLUW.mjs} +1 -1
- package/dist/{chunk-B5QRNCIE.mjs → chunk-DATICPTO.mjs} +1 -1
- package/dist/{chunk-XMVZXZ32.cjs → chunk-ERV422FO.cjs} +2 -2
- package/dist/{chunk-BAD6T5NU.cjs → chunk-FEWCWBOF.cjs} +4 -4
- package/dist/{chunk-FLMALEY2.mjs → chunk-GGD57DJA.mjs} +3 -25
- package/dist/{chunk-HQ2VAJLW.mjs → chunk-GV5D5EM6.mjs} +1 -1
- package/dist/{chunk-6MZSTPD2.mjs → chunk-H47EH24T.mjs} +1 -1
- package/dist/{chunk-OBVBII5K.cjs → chunk-HU4R2PPW.cjs} +2 -2
- package/dist/{chunk-7H2TXT2K.mjs → chunk-HX5HLFBZ.mjs} +7 -0
- package/dist/{chunk-N3VMHPIY.mjs → chunk-HZY63K5C.mjs} +2 -2
- package/dist/{chunk-25JGHAGH.cjs → chunk-I2RBHZF7.cjs} +15 -8
- package/dist/{chunk-FDU4Q4QP.cjs → chunk-IRPXOTEN.cjs} +10 -4
- package/dist/{chunk-NAHDG6UX.mjs → chunk-JDO3X7RB.mjs} +6 -5
- package/dist/{chunk-TQJ35BBW.cjs → chunk-JGUMFTZT.cjs} +4 -4
- package/dist/chunk-JIGWHFA5.mjs +32 -0
- package/dist/{chunk-YBXIVQCE.cjs → chunk-JP5TWUK2.cjs} +4 -4
- package/dist/chunk-K6RMOB25.mjs +134 -0
- package/dist/{chunk-UGD53SNO.cjs → chunk-KQ6TYQU7.cjs} +16 -12
- package/dist/{chunk-6QYPP5KC.mjs → chunk-L6ZL35ZJ.mjs} +7 -5
- package/dist/{chunk-7UTRNV6R.mjs → chunk-LUGQUU4S.mjs} +1 -1
- package/dist/{chunk-QYWP5KDY.mjs → chunk-M4CNAZMS.mjs} +74 -29
- package/dist/{chunk-3TKGMIPX.mjs → chunk-MM4U2NNI.mjs} +91 -12
- package/dist/{chunk-CFKAYV7B.mjs → chunk-MRULVIH3.mjs} +1 -1
- package/dist/{chunk-UAQQUQWE.mjs → chunk-MZPPT5NA.mjs} +1 -1
- package/dist/{chunk-2UYYXSUS.mjs → chunk-N5NRXLCX.mjs} +4 -2
- package/dist/chunk-NDMPGFKL.cjs +47 -0
- package/dist/{chunk-YHM4PXJY.mjs → chunk-O5YM6GU3.mjs} +1 -1
- package/dist/{chunk-QYDGIXQ5.cjs → chunk-PA3VZNWU.cjs} +9 -9
- package/dist/{chunk-2PJVEL56.cjs → chunk-PCAEJNQF.cjs} +5 -27
- package/dist/{chunk-P253SZJF.cjs → chunk-PQ6DBVJ2.cjs} +360 -281
- package/dist/chunk-PTAGDZ7I.mjs +13 -0
- package/dist/{chunk-3AV4DCXY.mjs → chunk-PWTBXYJY.mjs} +12 -6
- package/dist/{chunk-PO5MZIWK.mjs → chunk-QBXS4TNG.mjs} +6 -2
- package/dist/chunk-QZUCVJZJ.cjs +18 -0
- package/dist/{chunk-45ANSCTO.mjs → chunk-SCOKBXHS.mjs} +98 -56
- package/dist/{chunk-BLZCAFGJ.cjs → chunk-SG5RFGV6.cjs} +2 -2
- package/dist/{chunk-U54REWMJ.cjs → chunk-SUACCCZG.cjs} +18 -16
- package/dist/chunk-TCGPBSVY.mjs +47 -0
- package/dist/{chunk-CN2JOTRO.cjs → chunk-THGSPDFD.cjs} +7 -7
- package/dist/{chunk-FWLXYNWA.cjs → chunk-TQFIZRON.cjs} +387 -345
- package/dist/{chunk-VGHDPEPQ.cjs → chunk-UA77C2ZA.cjs} +2 -2
- package/dist/{chunk-Q3YWQEUS.cjs → chunk-VMGQOP7X.cjs} +2 -2
- package/dist/{chunk-4SJ22WTT.mjs → chunk-W3ZBLFLU.mjs} +1 -1
- package/dist/{chunk-SB74WCKC.mjs → chunk-WOTAU3BN.mjs} +4 -4
- package/dist/{chunk-JB4BHRFK.cjs → chunk-WP77JDKI.cjs} +16 -16
- package/dist/{chunk-YMAE32O7.mjs → chunk-WPB6HJC7.mjs} +1 -1
- package/dist/{chunk-VPGEYX5Y.mjs → chunk-WX752VMN.mjs} +2 -2
- package/dist/{chunk-VTEAUQMT.mjs → chunk-X2SMVPLH.mjs} +19 -3
- package/dist/{chunk-DJ3PVHTW.cjs → chunk-XGPRM7OK.cjs} +3 -3
- package/dist/{chunk-GWPANDW3.mjs → chunk-XJJQAFZX.mjs} +1 -1
- package/dist/{chunk-UDWBTABT.cjs → chunk-XRYLMTYF.cjs} +3 -3
- package/dist/{chunk-PAENAKTC.mjs → chunk-YCHIR3X6.mjs} +1 -1
- package/dist/chunk-YIGUFJMR.cjs +32 -0
- package/dist/{chunk-CPSFDQKJ.cjs → chunk-Z43CIBUR.cjs} +20 -4
- package/dist/{chunk-RA5OUXOJ.mjs → chunk-ZOD6EYWE.mjs} +2 -2
- package/dist/{cli-runtime.d-DaElKjaL.d.ts → cli-runtime.d-jqZ7YCsm.d.ts} +5 -5
- package/dist/{cli-runtime.d-C7aMfoTq.d.mts → cli-runtime.d-qL44rqYO.d.mts} +5 -5
- package/dist/{client-component.d-miqIXyQv.d.mts → client-component.d-B2L2LyAr.d.mts} +1 -1
- package/dist/{client-component.d-CZG02pIh.d.ts → client-component.d-BDD5aiUb.d.ts} +1 -1
- package/dist/{client-plugins.d-BVXjyIkY.d.ts → client-plugins.d-Crct3m_r.d.ts} +14 -5
- package/dist/{client-plugins.d-BwKwuO_0.d.mts → client-plugins.d-Dzc3vOw_.d.mts} +14 -5
- package/dist/client-plugins.d.mts +1 -1
- package/dist/client-plugins.d.ts +1 -1
- package/dist/client.cjs +8 -6
- package/dist/client.d.mts +8 -7
- package/dist/client.d.ts +8 -7
- package/dist/client.mjs +7 -5
- package/dist/config.d.mts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/desktop.d.mts +2 -2
- package/dist/desktop.d.ts +2 -2
- package/dist/{devtools-DGC2247E.mjs → devtools-2CRVXV7E.mjs} +4 -2
- package/dist/{devtools-A3L7WNTB.cjs → devtools-RL4AU5KD.cjs} +5 -3
- package/dist/docs.cjs +6 -4
- package/dist/docs.d.mts +3 -3
- package/dist/docs.d.ts +3 -3
- package/dist/docs.mjs +5 -3
- package/dist/environment/vite.cjs +4 -4
- package/dist/environment/vite.mjs +3 -3
- package/dist/font.cjs +4 -2
- package/dist/font.d.mts +13 -1
- package/dist/font.d.ts +13 -1
- package/dist/font.mjs +3 -1
- package/dist/{handler.d-BKTWzzNA.d.mts → handler.d-B1S1ZBqS.d.mts} +1 -1
- package/dist/{handler.d-Dzpyg3-N.d.ts → handler.d-ZweCBJD4.d.ts} +1 -1
- package/dist/{headers.d-PZyXcDAH.d.ts → headers.d-BgBdQN8x.d.ts} +1 -1
- package/dist/{headers.d-5opjyhXw.d.mts → headers.d-C-yGl_f6.d.mts} +1 -1
- package/dist/i18n/client.cjs +11 -10
- package/dist/i18n/client.mjs +3 -2
- package/dist/image-attributes.d-BMPDQO1q.d.mts +55 -0
- package/dist/image-attributes.d-BMPDQO1q.d.ts +55 -0
- package/dist/image.cjs +5 -127
- package/dist/image.d.mts +3 -13
- package/dist/image.d.ts +3 -13
- package/dist/image.mjs +5 -127
- package/dist/index.cjs +40 -36
- package/dist/{index.d-C0Mie66f.d.mts → index.d-13h3oDu7.d.mts} +1 -1
- package/dist/{index.d-DV2q-0mE.d.ts → index.d-CtoniAXT.d.ts} +1 -1
- package/dist/index.d.mts +24 -23
- package/dist/index.d.ts +24 -23
- package/dist/index.mjs +35 -31
- package/dist/integrations/orm.d.mts +1 -1
- package/dist/integrations/orm.d.ts +1 -1
- package/dist/integrations.d.mts +1 -1
- package/dist/integrations.d.ts +1 -1
- package/dist/internal/app-markdown-runtime.d.mts +2 -2
- package/dist/internal/app-markdown-runtime.d.ts +2 -2
- package/dist/internal/build-runtime.cjs +22 -22
- package/dist/internal/build-runtime.d.mts +4 -4
- package/dist/internal/build-runtime.d.ts +4 -4
- package/dist/internal/build-runtime.mjs +21 -21
- package/dist/internal/cli-runtime.cjs +8 -6
- package/dist/internal/cli-runtime.d.mts +7 -7
- package/dist/internal/cli-runtime.d.ts +7 -7
- package/dist/internal/cli-runtime.mjs +7 -5
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +77 -52
- package/dist/internal/client-runtime.d.mts +9 -7
- package/dist/internal/client-runtime.d.ts +9 -7
- package/dist/internal/client-runtime.mjs +64 -39
- package/dist/internal/compression-runtime.d.mts +1 -1
- package/dist/internal/compression-runtime.d.ts +1 -1
- package/dist/internal/config-runtime.cjs +6 -4
- package/dist/internal/config-runtime.d.mts +3 -3
- package/dist/internal/config-runtime.d.ts +3 -3
- package/dist/internal/config-runtime.mjs +5 -3
- package/dist/internal/infra-analytics-runtime.cjs +6 -6
- package/dist/internal/infra-analytics-runtime.mjs +4 -4
- package/dist/internal/islands-boot.cjs +51 -18
- package/dist/internal/islands-boot.d.mts +3 -1
- package/dist/internal/islands-boot.d.ts +3 -1
- package/dist/internal/islands-boot.mjs +34 -1
- package/dist/internal/native-server-fns.cjs +4 -4
- package/dist/internal/native-server-fns.mjs +3 -3
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +6 -6
- package/dist/internal/production-runtime.d.mts +10 -10
- package/dist/internal/production-runtime.d.ts +10 -10
- package/dist/internal/production-runtime.mjs +5 -5
- package/dist/internal/renderer-islands.cjs +35 -8
- package/dist/internal/renderer-islands.d.mts +9 -1
- package/dist/internal/renderer-islands.d.ts +9 -1
- package/dist/internal/renderer-islands.mjs +35 -8
- package/dist/internal/spa-router.cjs +4 -3
- package/dist/internal/spa-router.d.mts +3 -3
- package/dist/internal/spa-router.d.ts +3 -3
- package/dist/internal/spa-router.mjs +3 -2
- package/dist/internal/start-manifest.d.mts +1 -1
- package/dist/internal/start-manifest.d.ts +1 -1
- package/dist/{island-runtime.d-BA7EPo1v.d.ts → island-runtime.d-D2Mh5eTU.d.ts} +5 -1
- package/dist/{island-runtime.d-BBS_YUSX.d.mts → island-runtime.d-lrpEJlgg.d.mts} +5 -1
- package/dist/{manager-PX4QN4HK.cjs → manager-D4DZRBRS.cjs} +4 -4
- package/dist/{manager-OMTC5FOJ.mjs → manager-PKPQGBAE.mjs} +3 -3
- package/dist/markdown.d.mts +1 -1
- package/dist/markdown.d.ts +1 -1
- package/dist/middleware.cjs +4 -4
- package/dist/middleware.d.mts +1 -1
- package/dist/middleware.d.ts +1 -1
- package/dist/middleware.mjs +3 -3
- package/dist/{mount.d-gWul1GA1.d.ts → mount.d-DyKlRR6z.d.ts} +1 -1
- package/dist/{mount.d-CZ_qL1iS.d.mts → mount.d-_6Un9wdK.d.mts} +1 -1
- package/dist/{navigation-delegate.d-BBTzhJLj.d.mts → navigation-delegate.d-B9GjWbov.d.mts} +1 -1
- package/dist/{navigation-delegate.d-BZsYEAet.d.ts → navigation-delegate.d-BbW1_pf_.d.ts} +1 -1
- package/dist/navigation.cjs +6 -5
- package/dist/navigation.d.mts +4 -4
- package/dist/navigation.d.ts +4 -4
- package/dist/navigation.mjs +5 -4
- package/dist/{plugin-QOTAPTVV.mjs → plugin-EVKQZBNW.mjs} +1 -1
- package/dist/{plugin-3PT7I26P.cjs → plugin-MWO3G2XM.cjs} +2 -2
- package/dist/plugin.cjs +19 -19
- package/dist/plugin.d.mts +5 -5
- package/dist/plugin.d.ts +5 -5
- package/dist/plugin.mjs +18 -18
- package/dist/query/client.cjs +8 -7
- package/dist/query/client.mjs +3 -2
- package/dist/{render-plan.d-AaJsYPX-.d.ts → render-plan.d-D0FV9lDT.d.ts} +1 -1
- package/dist/{render-plan.d-bnWxS12w.d.mts → render-plan.d-DaM1NPnm.d.mts} +1 -1
- package/dist/renderer-client.cjs +19 -13
- package/dist/renderer-client.d.mts +6 -5
- package/dist/renderer-client.d.ts +6 -5
- package/dist/renderer-client.mjs +10 -4
- package/dist/renderer.cjs +3 -3
- package/dist/renderer.mjs +2 -2
- package/dist/{request.d-CAeitOG1.d.ts → request.d-CrXC7voZ.d.ts} +1 -1
- package/dist/{request.d-C2HOn3Hi.d.mts → request.d-DVSLilGx.d.mts} +1 -1
- package/dist/request.d.mts +2 -2
- package/dist/request.d.ts +2 -2
- package/dist/{route-rendering.d-CYA-ulnX.d.mts → route-rendering.d-CWi3UYtR.d.mts} +1 -1
- package/dist/{route-rendering.d-A1dIkUK5.d.ts → route-rendering.d-OfbM_rj8.d.ts} +1 -1
- package/dist/{router.d-A_Yt6jYz.d.ts → router.d-Bm9FNSu3.d.ts} +1 -1
- package/dist/{router.d-8lxnzlkr.d.mts → router.d-YKVirmj4.d.mts} +1 -1
- package/dist/routes.d.mts +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/{rsc-pipeline-SNGPAXGW.cjs → rsc-pipeline-3DYC5ZXW.cjs} +6 -4
- package/dist/{rsc-pipeline-BROS3NEB.mjs → rsc-pipeline-LRB4ZG6I.mjs} +5 -3
- package/dist/{runtime-SLJLW37A.mjs → runtime-3WJNNAAR.mjs} +5 -3
- package/dist/{runtime-7T5TRAWL.cjs → runtime-CRFF32H6.cjs} +7 -5
- package/dist/{runtime.d-C_rZ9_DD.d.mts → runtime.d-BVj6apd0.d.mts} +1 -1
- package/dist/{runtime.d-BPyvWrgQ.d.ts → runtime.d-D7QYVJGO.d.ts} +1 -1
- package/dist/{server-components-status.d-BpxiEMQE.d.mts → server-components-status.d-BDVcxi0z.d.mts} +1 -1
- package/dist/{server-components-status.d-C2UEKJn7.d.ts → server-components-status.d-CfKDpmCH.d.ts} +1 -1
- package/dist/server-plugins.d.mts +3 -3
- package/dist/server-plugins.d.ts +3 -3
- package/dist/server.cjs +54 -40
- package/dist/server.d.mts +11 -11
- package/dist/server.d.ts +11 -11
- package/dist/server.mjs +34 -20
- package/dist/{spa-router.d-BD-6WX1R.d.mts → spa-router.d-DGmropfK.d.mts} +5 -3
- package/dist/{spa-router.d-Cw5i_15e.d.ts → spa-router.d-nE1jHNGt.d.ts} +5 -3
- package/dist/{ssg.d-CCE9aob5.d.mts → ssg.d-DS-gXUbf.d.mts} +2 -2
- package/dist/{ssg.d-Bifiq0EL.d.ts → ssg.d-jXlUAKzg.d.ts} +2 -2
- package/dist/{store-core.d-5tVn5vi1.d.ts → store-core.d-B5cwOd8g.d.ts} +3 -2
- package/dist/{store-core.d-BN2MxSG9.d.mts → store-core.d-C-gATBwd.d.mts} +3 -2
- package/dist/testing.cjs +3 -3
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.mjs +3 -3
- package/dist/{utils.d-BUjpSNIO.d.ts → utils.d-BODwBtkz.d.ts} +1 -1
- package/dist/{utils.d-wGPLeVbq.d.mts → utils.d-Cmj-fzds.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +24 -22
- package/dist/vite.d.mts +21 -7
- package/dist/vite.d.ts +21 -7
- package/dist/vite.mjs +23 -21
- package/package.json +3 -3
- package/dist/analyzer-OEMQSLYT.cjs +0 -17
- package/dist/chunk-7EPYN7GW.cjs +0 -30
- package/dist/chunk-HZOMT5DY.mjs +0 -30
- package/dist/chunk-SBDWCDS6.cjs +0 -8
- package/dist/chunk-YX6AFPXC.mjs +0 -8
- package/dist/{chunk-4B6YJ5DS.cjs → chunk-4ZVKDHS6.cjs} +3 -3
- package/dist/{chunk-4EEAPBNV.mjs → chunk-PEQJ4UUT.mjs} +3 -3
|
@@ -28,7 +28,7 @@ var _chunkJRGR5Z4Kcjs = require('./chunk-JRGR5Z4K.cjs');
|
|
|
28
28
|
var _chunkSNP33A33cjs = require('./chunk-SNP33A33.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkI2RBHZF7cjs = require('./chunk-I2RBHZF7.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunk7U4XF76Rcjs = require('./chunk-7U4XF76R.cjs');
|
|
@@ -314,7 +314,7 @@ var MiddlewareManager = class {
|
|
|
314
314
|
try {
|
|
315
315
|
let module;
|
|
316
316
|
if (this.viteServer) {
|
|
317
|
-
module = await
|
|
317
|
+
module = await _chunkI2RBHZF7cjs.loadFarmDevModule.call(void 0, this.viteServer, filePath);
|
|
318
318
|
} else {
|
|
319
319
|
module = await import(
|
|
320
320
|
/* @vite-ignore */
|
|
@@ -18,14 +18,14 @@ var _chunkCCAUIBIScjs = require('./chunk-CCAUIBIS.cjs');
|
|
|
18
18
|
var _chunkWMRGIQTAcjs = require('./chunk-WMRGIQTA.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunk6266WH6Xcjs = require('./chunk-6266WH6X.cjs');
|
|
22
22
|
|
|
23
23
|
// src/mobile/analyzer.ts
|
|
24
24
|
var _crypto = require('crypto');
|
|
25
25
|
var _fs = require('fs');
|
|
26
26
|
var _promises = require('fs/promises');
|
|
27
27
|
var _path = require('path'); var path = _interopRequireWildcard(_path);
|
|
28
|
-
var ANALYZER_VERSION = `8:${
|
|
28
|
+
var ANALYZER_VERSION = `8:${_chunk6266WH6Xcjs.FARM_VERSION}`;
|
|
29
29
|
var INTRINSIC_KINDS = {};
|
|
30
30
|
for (const tag of "div section main article header footer nav aside figure hr li".split(" ")) {
|
|
31
31
|
INTRINSIC_KINDS[tag] = "View";
|
|
@@ -2,9 +2,6 @@ import {
|
|
|
2
2
|
formatFarmHydrateExportError,
|
|
3
3
|
readFarmHydrateExport
|
|
4
4
|
} from "./chunk-D2VAANBS.mjs";
|
|
5
|
-
import {
|
|
6
|
-
isFarmIslandStrategy
|
|
7
|
-
} from "./chunk-S32PDOLO.mjs";
|
|
8
5
|
import {
|
|
9
6
|
getFarmProjectSourceDir
|
|
10
7
|
} from "./chunk-RJBUI5AN.mjs";
|
|
@@ -18,6 +15,9 @@ import {
|
|
|
18
15
|
readFarmRendererHydration,
|
|
19
16
|
resolveFarmServerComponentsMode
|
|
20
17
|
} from "./chunk-HV6CYSMF.mjs";
|
|
18
|
+
import {
|
|
19
|
+
isFarmIslandStrategy
|
|
20
|
+
} from "./chunk-S32PDOLO.mjs";
|
|
21
21
|
import {
|
|
22
22
|
PROGRAMMATIC_ROUTE_FILE_NAMES,
|
|
23
23
|
getProgrammaticRouteDefinitionSource,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./chunk-U6GMCDRS.mjs";
|
|
29
29
|
import {
|
|
30
30
|
FARM_VERSION
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-XJJQAFZX.mjs";
|
|
32
32
|
|
|
33
33
|
// src/environment-vite.ts
|
|
34
34
|
import { existsSync, readFileSync, realpathSync } from "fs";
|
|
@@ -7,14 +7,14 @@ var _chunkO4JYMU5Ncjs = require('./chunk-O4JYMU5N.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkKQ6TYQU7cjs = require('./chunk-KQ6TYQU7.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
var _chunkJIBEFLQ7cjs = require('./chunk-JIBEFLQ7.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkPCAEJNQFcjs = require('./chunk-PCAEJNQF.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunkGYJT2U7Jcjs = require('./chunk-GYJT2U7J.cjs');
|
|
@@ -52,7 +52,7 @@ function shouldBlockUnload(options) {
|
|
|
52
52
|
function navigateViaRouter(href, basePath, replace, options = {}) {
|
|
53
53
|
if (typeof window === "undefined") return;
|
|
54
54
|
const url = _chunkD22BUQKWcjs.applyFarmBasePath.call(void 0, href, basePath);
|
|
55
|
-
const spaRouter =
|
|
55
|
+
const spaRouter = _chunkKQ6TYQU7cjs.getInstalledFarmSPARouter.call(void 0, );
|
|
56
56
|
if (spaRouter) {
|
|
57
57
|
void spaRouter.navigate(url, {
|
|
58
58
|
replace,
|
|
@@ -72,7 +72,7 @@ function writeHistory(url, replace) {
|
|
|
72
72
|
} else {
|
|
73
73
|
window.history.pushState(null, "", url);
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
_chunkKQ6TYQU7cjs.notifyHistoryChange.call(void 0, "url-search");
|
|
76
76
|
}
|
|
77
77
|
async function writeHistoryUnlessDelegated(url, replace) {
|
|
78
78
|
const target = new URL(url, window.location.href);
|
|
@@ -105,7 +105,7 @@ function useRouter(options = {}) {
|
|
|
105
105
|
setState(readRouterState(basePath, routeMatcher));
|
|
106
106
|
};
|
|
107
107
|
handlePopState();
|
|
108
|
-
const unsubscribe =
|
|
108
|
+
const unsubscribe = _chunkKQ6TYQU7cjs.subscribeHistoryChange.call(void 0, handlePopState);
|
|
109
109
|
return unsubscribe;
|
|
110
110
|
}, [basePath, routeMatcher]);
|
|
111
111
|
const push = (href, navigateOptions) => {
|
|
@@ -116,11 +116,11 @@ function useRouter(options = {}) {
|
|
|
116
116
|
};
|
|
117
117
|
const pushState = (pageState, href) => {
|
|
118
118
|
if (typeof window === "undefined") return;
|
|
119
|
-
|
|
119
|
+
_chunkKQ6TYQU7cjs.getRouter.call(void 0, ).pushState(pageState, resolveClientHref(href, basePath));
|
|
120
120
|
};
|
|
121
121
|
const replaceState = (pageState, href) => {
|
|
122
122
|
if (typeof window === "undefined") return;
|
|
123
|
-
|
|
123
|
+
_chunkKQ6TYQU7cjs.getRouter.call(void 0, ).replaceState(pageState, resolveClientHref(href, basePath));
|
|
124
124
|
};
|
|
125
125
|
const back = () => {
|
|
126
126
|
if (typeof window !== "undefined") {
|
|
@@ -143,24 +143,24 @@ function useRouter(options = {}) {
|
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
145
|
function usePageState() {
|
|
146
|
-
const [state, setState] = _react.useState.call(void 0, () =>
|
|
146
|
+
const [state, setState] = _react.useState.call(void 0, () => _chunkKQ6TYQU7cjs.readPageState.call(void 0, ));
|
|
147
147
|
_react.useEffect.call(void 0, () => {
|
|
148
148
|
if (typeof window === "undefined") return;
|
|
149
149
|
const handlePopState = () => {
|
|
150
|
-
setState(
|
|
150
|
+
setState(_chunkKQ6TYQU7cjs.readPageState.call(void 0, ));
|
|
151
151
|
};
|
|
152
152
|
handlePopState();
|
|
153
|
-
return
|
|
153
|
+
return _chunkKQ6TYQU7cjs.subscribeHistoryChange.call(void 0, handlePopState);
|
|
154
154
|
}, []);
|
|
155
155
|
return state;
|
|
156
156
|
}
|
|
157
157
|
function useNavigation() {
|
|
158
158
|
const [state, setState] = _react.useState.call(void 0,
|
|
159
|
-
() =>
|
|
159
|
+
() => _chunkKQ6TYQU7cjs.getRouter.call(void 0, ).getNavigationState()
|
|
160
160
|
);
|
|
161
161
|
_react.useEffect.call(void 0, () => {
|
|
162
162
|
if (typeof window === "undefined") return;
|
|
163
|
-
return
|
|
163
|
+
return _chunkKQ6TYQU7cjs.getRouter.call(void 0, ).subscribeNavigation(setState);
|
|
164
164
|
}, []);
|
|
165
165
|
return state;
|
|
166
166
|
}
|
|
@@ -172,7 +172,7 @@ function useBlocker(options) {
|
|
|
172
172
|
if (typeof window === "undefined" || !active) {
|
|
173
173
|
return;
|
|
174
174
|
}
|
|
175
|
-
return
|
|
175
|
+
return _chunkKQ6TYQU7cjs.getRouter.call(void 0, ).addBlocker(
|
|
176
176
|
async (context) => {
|
|
177
177
|
const current = optionsRef.current;
|
|
178
178
|
const when = typeof current.when === "function" ? current.when(context) : current.when;
|
|
@@ -195,7 +195,7 @@ function useScrollRestoration(key) {
|
|
|
195
195
|
_react.useEffect.call(void 0, () => {
|
|
196
196
|
const element = ref.current;
|
|
197
197
|
if (!element) return;
|
|
198
|
-
return
|
|
198
|
+
return _chunkKQ6TYQU7cjs.getRouter.call(void 0, ).registerScrollElement(key, element);
|
|
199
199
|
}, [key]);
|
|
200
200
|
return ref;
|
|
201
201
|
}
|
|
@@ -210,13 +210,13 @@ function readRouterState(basePath, routeMatcher) {
|
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
212
|
const pathname = normalizeClientPathname(url.pathname, basePath);
|
|
213
|
-
const i18n =
|
|
213
|
+
const i18n = _chunkPCAEJNQFcjs.getFarmI18nClientState.call(void 0, );
|
|
214
214
|
const routePathname = i18n ? _chunkGYJT2U7Jcjs.stripFarmLocaleFromPathname.call(void 0, pathname, { ...i18n, basePath: "/" }) : pathname;
|
|
215
215
|
return {
|
|
216
216
|
pathname,
|
|
217
217
|
searchParams: url.searchParams,
|
|
218
218
|
params: _optionalChain([routeMatcher, 'optionalAccess', _5 => _5.match, 'call', _6 => _6(routePathname), 'optionalAccess', _7 => _7.params]) || {},
|
|
219
|
-
pageState: typeof window === "undefined" ? null :
|
|
219
|
+
pageState: typeof window === "undefined" ? null : _chunkKQ6TYQU7cjs.readPageState.call(void 0, )
|
|
220
220
|
};
|
|
221
221
|
}
|
|
222
222
|
function readCurrentUrl() {
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
notifyHistoryChange,
|
|
8
8
|
readPageState,
|
|
9
9
|
subscribeHistoryChange
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QBXS4TNG.mjs";
|
|
11
11
|
import {
|
|
12
12
|
hasFarmNavigationDelegates,
|
|
13
13
|
runFarmNavigationDelegates
|
|
14
14
|
} from "./chunk-RSEAX5MW.mjs";
|
|
15
15
|
import {
|
|
16
16
|
getFarmI18nClientState
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-GGD57DJA.mjs";
|
|
18
18
|
import {
|
|
19
19
|
stripFarmLocaleFromPathname
|
|
20
20
|
} from "./chunk-4QBFYEDC.mjs";
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
isFarmIslandStrategy
|
|
3
|
-
} from "./chunk-S32PDOLO.mjs";
|
|
4
1
|
import {
|
|
5
2
|
getFarmRendererCapabilities,
|
|
3
|
+
isFarmRendererDisabled,
|
|
6
4
|
isReactRenderer,
|
|
7
5
|
resolveFarmRenderer,
|
|
8
6
|
resolveFarmServerComponentsMode
|
|
9
7
|
} from "./chunk-HV6CYSMF.mjs";
|
|
8
|
+
import {
|
|
9
|
+
isFarmIslandStrategy
|
|
10
|
+
} from "./chunk-S32PDOLO.mjs";
|
|
10
11
|
import {
|
|
11
12
|
_peekCurrentRequest
|
|
12
13
|
} from "./chunk-VIXTAVEA.mjs";
|
|
@@ -87,6 +88,20 @@ function resolveFarmIsland(props, reference) {
|
|
|
87
88
|
return void 0;
|
|
88
89
|
}
|
|
89
90
|
}
|
|
91
|
+
function resolveFarmRendererServerComponentsIslands(config) {
|
|
92
|
+
if (resolveFarmServerComponentsMode(config.experimental?.serverComponents) !== "islands") {
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
if (config.renderer === void 0 || isFarmRendererDisabled(config.renderer)) return false;
|
|
96
|
+
const renderer = resolveFarmRenderer(config.renderer);
|
|
97
|
+
if (isReactRenderer(renderer)) return false;
|
|
98
|
+
if (!getFarmRendererCapabilities(renderer).islands) {
|
|
99
|
+
throw new Error(
|
|
100
|
+
`[Farm.js] \`experimental.serverComponents: { mode: "islands" }\` needs a renderer that supports islands, and \`${renderer.name}\` doesn't declare \`capabilities.islands\`. Remove \`experimental.serverComponents\` to hydrate each route whole, or add islands to the renderer: https://farmjs.dev/docs/renderers/custom#islands`
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
return true;
|
|
104
|
+
}
|
|
90
105
|
function usesFarmRendererIslands(config) {
|
|
91
106
|
const renderer = resolveFarmRenderer(config.renderer);
|
|
92
107
|
return !isReactRenderer(renderer) && getFarmRendererCapabilities(renderer).islands && config.experimental?.isolatedClientHydration === "enabled" && resolveFarmServerComponentsMode(config.experimental?.serverComponents) === void 0;
|
|
@@ -94,5 +109,6 @@ function usesFarmRendererIslands(config) {
|
|
|
94
109
|
|
|
95
110
|
export {
|
|
96
111
|
resolveFarmIsland,
|
|
112
|
+
resolveFarmRendererServerComponentsIslands,
|
|
97
113
|
usesFarmRendererIslands
|
|
98
114
|
};
|
|
@@ -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 _chunkUA77C2ZAcjs = require('./chunk-UA77C2ZA.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 = _chunkUA77C2ZAcjs.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, _chunkUA77C2ZAcjs.MiddlewareManager)(
|
|
417
417
|
getMiddlewareAppDirectory(server.config.root, srcDir),
|
|
418
418
|
server,
|
|
419
419
|
options.middleware,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkVMGQOP7Xcjs = require('./chunk-VMGQOP7X.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkPIUTGRDIcjs = require('./chunk-PIUTGRDI.cjs');
|
|
@@ -64,7 +64,7 @@ function findFarmNativeScreenFiles(appDirs) {
|
|
|
64
64
|
}
|
|
65
65
|
function collectFarmNativeServerFns(options) {
|
|
66
66
|
const { root, srcDir } = options;
|
|
67
|
-
const aliases =
|
|
67
|
+
const aliases = _chunkVMGQOP7Xcjs.readAliases.call(void 0, root, srcDir);
|
|
68
68
|
const seen = /* @__PURE__ */ new Set();
|
|
69
69
|
const found = /* @__PURE__ */ new Map();
|
|
70
70
|
const queue = [...options.entries];
|
|
@@ -98,7 +98,7 @@ function collectFarmNativeServerFns(options) {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
for (const candidate of _nullishCoalesce(candidates, () => ( []))) {
|
|
101
|
-
const resolved =
|
|
101
|
+
const resolved = _chunkVMGQOP7Xcjs.resolveFile.call(void 0, candidate);
|
|
102
102
|
if (resolved && SCRIPT.test(resolved) && !resolved.includes(`${_path2.default.sep}node_modules${_path2.default.sep}`)) {
|
|
103
103
|
queue.push(resolved);
|
|
104
104
|
break;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/client/navigation-url.ts
|
|
2
|
+
var FARM_NAVIGATION_PROTOCOLS = /* @__PURE__ */ new Set(["http:", "https:", "mailto:", "tel:"]);
|
|
3
|
+
function isFarmBlockedNavigationURL(url) {
|
|
4
|
+
if (FARM_NAVIGATION_PROTOCOLS.has(url.protocol)) return false;
|
|
5
|
+
console.error(`[Farm.js] Blocked navigation to a ${url.protocol} URL as a security precaution.`);
|
|
6
|
+
return true;
|
|
7
|
+
}
|
|
8
|
+
function isFarmScriptURL(href) {
|
|
9
|
+
try {
|
|
10
|
+
return new URL(href, "http://farm.invalid").protocol === "javascript:";
|
|
11
|
+
} catch (e) {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
function isFarmSameDocumentFragment(href, currentHref) {
|
|
16
|
+
const fragment = href.indexOf("#");
|
|
17
|
+
return fragment >= 0 && href.slice(0, fragment) === currentHref.split("#", 1)[0];
|
|
18
|
+
}
|
|
19
|
+
function isFarmExternalNavigationURL(url, currentOrigin) {
|
|
20
|
+
return url.protocol !== "http:" && url.protocol !== "https:" || url.origin !== currentOrigin;
|
|
21
|
+
}
|
|
22
|
+
function resolveFarmNavigationURL(href, documentUrl) {
|
|
23
|
+
return new URL(href, documentUrl);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
exports.isFarmBlockedNavigationURL = isFarmBlockedNavigationURL; exports.isFarmScriptURL = isFarmScriptURL; exports.isFarmSameDocumentFragment = isFarmSameDocumentFragment; exports.isFarmExternalNavigationURL = isFarmExternalNavigationURL; exports.resolveFarmNavigationURL = resolveFarmNavigationURL;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var _chunk7KJJ4SBScjs = require('./chunk-7KJJ4SBS.cjs');
|
|
4
|
-
|
|
5
3
|
|
|
6
4
|
|
|
7
5
|
|
|
@@ -9,6 +7,9 @@ var _chunk7KJJ4SBScjs = require('./chunk-7KJJ4SBS.cjs');
|
|
|
9
7
|
var _chunkT7UC2ORAcjs = require('./chunk-T7UC2ORA.cjs');
|
|
10
8
|
|
|
11
9
|
|
|
10
|
+
var _chunk7KJJ4SBScjs = require('./chunk-7KJJ4SBS.cjs');
|
|
11
|
+
|
|
12
|
+
|
|
12
13
|
var _chunk3BIASUGRcjs = require('./chunk-3BIASUGR.cjs');
|
|
13
14
|
|
|
14
15
|
// src/renderer-islands.ts
|
|
@@ -87,12 +88,27 @@ function resolveFarmIsland(props, reference) {
|
|
|
87
88
|
return void 0;
|
|
88
89
|
}
|
|
89
90
|
}
|
|
91
|
+
function resolveFarmRendererServerComponentsIslands(config) {
|
|
92
|
+
if (_chunkT7UC2ORAcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _2 => _2.experimental, 'optionalAccess', _3 => _3.serverComponents])) !== "islands") {
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
if (config.renderer === void 0 || _chunkT7UC2ORAcjs.isFarmRendererDisabled.call(void 0, config.renderer)) return false;
|
|
96
|
+
const renderer = _chunkT7UC2ORAcjs.resolveFarmRenderer.call(void 0, config.renderer);
|
|
97
|
+
if (_chunkT7UC2ORAcjs.isReactRenderer.call(void 0, renderer)) return false;
|
|
98
|
+
if (!_chunkT7UC2ORAcjs.getFarmRendererCapabilities.call(void 0, renderer).islands) {
|
|
99
|
+
throw new Error(
|
|
100
|
+
`[Farm.js] \`experimental.serverComponents: { mode: "islands" }\` needs a renderer that supports islands, and \`${renderer.name}\` doesn't declare \`capabilities.islands\`. Remove \`experimental.serverComponents\` to hydrate each route whole, or add islands to the renderer: https://farmjs.dev/docs/renderers/custom#islands`
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
return true;
|
|
104
|
+
}
|
|
90
105
|
function usesFarmRendererIslands(config) {
|
|
91
106
|
const renderer = _chunkT7UC2ORAcjs.resolveFarmRenderer.call(void 0, config.renderer);
|
|
92
|
-
return !_chunkT7UC2ORAcjs.isReactRenderer.call(void 0, renderer) && _chunkT7UC2ORAcjs.getFarmRendererCapabilities.call(void 0, renderer).islands && _optionalChain([config, 'access',
|
|
107
|
+
return !_chunkT7UC2ORAcjs.isReactRenderer.call(void 0, renderer) && _chunkT7UC2ORAcjs.getFarmRendererCapabilities.call(void 0, renderer).islands && _optionalChain([config, 'access', _4 => _4.experimental, 'optionalAccess', _5 => _5.isolatedClientHydration]) === "enabled" && _chunkT7UC2ORAcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _6 => _6.experimental, 'optionalAccess', _7 => _7.serverComponents])) === void 0;
|
|
93
108
|
}
|
|
94
109
|
|
|
95
110
|
|
|
96
111
|
|
|
97
112
|
|
|
98
|
-
|
|
113
|
+
|
|
114
|
+
exports.resolveFarmIsland = resolveFarmIsland; exports.resolveFarmRendererServerComponentsIslands = resolveFarmRendererServerComponentsIslands; exports.usesFarmRendererIslands = usesFarmRendererIslands;
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-RLEAVG6G.mjs";
|
|
4
4
|
import {
|
|
5
5
|
resolveDeployOutputPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BGEA4K7C.mjs";
|
|
7
7
|
import {
|
|
8
8
|
farmDesktopDevGuardPlugin,
|
|
9
9
|
loadFarmReactPlugin
|
|
@@ -217,7 +217,7 @@ async function resolveFarmRscServerPlugins(userConfig, config, root) {
|
|
|
217
217
|
}
|
|
218
218
|
async function configureFarmRscPlugins(config, command) {
|
|
219
219
|
if (config.plugins.length === 0) return config;
|
|
220
|
-
const { PluginManager } = await import("./plugin-
|
|
220
|
+
const { PluginManager } = await import("./plugin-EVKQZBNW.mjs");
|
|
221
221
|
const manager = new PluginManager({
|
|
222
222
|
config,
|
|
223
223
|
isDev: command === "serve",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import './utils.d-
|
|
2
|
-
import { F as FarmPlugin } from './client-plugins.d-
|
|
1
|
+
import './utils.d-BODwBtkz.js';
|
|
2
|
+
import { F as FarmPlugin } from './client-plugins.d-Crct3m_r.js';
|
|
3
3
|
import { R as ResolvedFarmLayer } from './layers.d-CH0bC4QL.js';
|
|
4
4
|
import { FarmRenderer } from './renderer.js';
|
|
5
|
-
import './ssg.d-
|
|
5
|
+
import './ssg.d-jXlUAKzg.js';
|
|
6
6
|
import './deployment.js';
|
|
7
|
-
import './handler.d-
|
|
7
|
+
import './handler.d-ZweCBJD4.js';
|
|
8
8
|
import { R as ResolvedFarmI18nConfig } from './types.d-euATAbE4.js';
|
|
9
9
|
import { F as FarmStorageUserConfig } from './types.d-C5hlNbHa.js';
|
|
10
10
|
import { d as FarmSchemaField, F as FarmSchema, R as ResolvedSchemaField, m as FarmSqlDialect, n as FarmSqlStatement, C as CollectedSchemaModel, f as FarmSchemaMigrationStep, k as FarmSchemaReference, l as FarmSchemaTablesDeclaration, j as FarmSchemaOwnerConfig } from './schema.d-BM-uVGpx.js';
|
|
11
11
|
import './routes.js';
|
|
12
|
-
import './server-components-status.d-
|
|
12
|
+
import './server-components-status.d-CfKDpmCH.js';
|
|
13
13
|
import './storage.js';
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import './utils.d-
|
|
2
|
-
import { F as FarmPlugin } from './client-plugins.d-
|
|
1
|
+
import './utils.d-Cmj-fzds.mjs';
|
|
2
|
+
import { F as FarmPlugin } from './client-plugins.d-Dzc3vOw_.mjs';
|
|
3
3
|
import { R as ResolvedFarmLayer } from './layers.d-CH0bC4QL.mjs';
|
|
4
4
|
import { FarmRenderer } from './renderer.mjs';
|
|
5
|
-
import './ssg.d-
|
|
5
|
+
import './ssg.d-DS-gXUbf.mjs';
|
|
6
6
|
import './deployment.mjs';
|
|
7
|
-
import './handler.d-
|
|
7
|
+
import './handler.d-B1S1ZBqS.mjs';
|
|
8
8
|
import { R as ResolvedFarmI18nConfig } from './types.d-euATAbE4.mjs';
|
|
9
9
|
import { F as FarmStorageUserConfig } from './types.d-C5hlNbHa.mjs';
|
|
10
10
|
import { d as FarmSchemaField, F as FarmSchema, R as ResolvedSchemaField, m as FarmSqlDialect, n as FarmSqlStatement, C as CollectedSchemaModel, f as FarmSchemaMigrationStep, k as FarmSchemaReference, l as FarmSchemaTablesDeclaration, j as FarmSchemaOwnerConfig } from './schema.d-BM-uVGpx.mjs';
|
|
11
11
|
import './routes.mjs';
|
|
12
|
-
import './server-components-status.d-
|
|
12
|
+
import './server-components-status.d-BDVcxi0z.mjs';
|
|
13
13
|
import './storage.mjs';
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { F as FarmIslandStrategy } from './island.d-CfGru1MO.mjs';
|
|
2
|
-
import { aR as FarmIsolatedClientHydrationMode } from './client-plugins.d-
|
|
2
|
+
import { aR as FarmIsolatedClientHydrationMode } from './client-plugins.d-Dzc3vOw_.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The browser copy of a programmatic page or layout imports only the module that defines its
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { F as FarmIslandStrategy } from './island.d-CfGru1MO.js';
|
|
2
|
-
import { aR as FarmIsolatedClientHydrationMode } from './client-plugins.d-
|
|
2
|
+
import { aR as FarmIsolatedClientHydrationMode } from './client-plugins.d-Crct3m_r.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The browser copy of a programmatic page or layout imports only the module that defines its
|
|
@@ -68,7 +68,8 @@ declare function describeIntegrationOriginRejection(reason: IntegrationOriginRej
|
|
|
68
68
|
/**
|
|
69
69
|
* `experimental.serverComponents`: which engine renders server components.
|
|
70
70
|
*
|
|
71
|
-
* - `"islands"`: Farm's own engine (RFC 0003), on Farm's pipeline. Experimental. The default.
|
|
71
|
+
* - `"islands"`: Farm's own engine (RFC 0003), on Farm's pipeline. Experimental. The default. On a
|
|
72
|
+
* renderer besides React, that renderer's islands (`capabilities.islands`), without the engine.
|
|
72
73
|
* - `"rsc"`: React's Flight pipeline (`@farm.js/plugin/rsc` on `@vitejs/plugin-rsc`).
|
|
73
74
|
*
|
|
74
75
|
* `true` means `{ mode: "islands" }`; `{ mode: "rsc" }` opts into React's pipeline. Both modes share
|
|
@@ -2732,9 +2733,16 @@ interface FarmConfig {
|
|
|
2732
2733
|
suppressLintOnLink?: boolean;
|
|
2733
2734
|
experimental?: {
|
|
2734
2735
|
/**
|
|
2735
|
-
*
|
|
2736
|
-
*
|
|
2737
|
-
*
|
|
2736
|
+
* Server components: pages and layouts render on the server only, and `"use client"` marks
|
|
2737
|
+
* what runs in the browser.
|
|
2738
|
+
*
|
|
2739
|
+
* - `{ mode: "islands" }`, or `true`: each client component hydrates on its own, as an island.
|
|
2740
|
+
* React runs pages on Farm's own engine (RFC 0003). Another renderer needs
|
|
2741
|
+
* `capabilities.islands`, and its islands hydrate through its `withIsland`.
|
|
2742
|
+
* - `{ mode: "rsc" }`: React's Flight pipeline from `@farm.js/plugin/rsc`. React only.
|
|
2743
|
+
*
|
|
2744
|
+
* @experimental
|
|
2745
|
+
* @default false
|
|
2738
2746
|
*/
|
|
2739
2747
|
serverComponents?: FarmServerComponentsConfig;
|
|
2740
2748
|
serverActions?: boolean;
|
|
@@ -2759,7 +2767,8 @@ interface FarmConfig {
|
|
|
2759
2767
|
* back to route-wide hydration for unsupported module graphs.
|
|
2760
2768
|
*
|
|
2761
2769
|
* This does not enable React Server Components. `"use client"` remains a
|
|
2762
|
-
* valid client-boundary declaration in normal SSR applications.
|
|
2770
|
+
* valid client-boundary declaration in normal SSR applications. On a renderer
|
|
2771
|
+
* besides React, turn islands on with `serverComponents: { mode: "islands" }`.
|
|
2763
2772
|
*
|
|
2764
2773
|
* @experimental
|
|
2765
2774
|
* @default "off"
|
|
@@ -68,7 +68,8 @@ declare function describeIntegrationOriginRejection(reason: IntegrationOriginRej
|
|
|
68
68
|
/**
|
|
69
69
|
* `experimental.serverComponents`: which engine renders server components.
|
|
70
70
|
*
|
|
71
|
-
* - `"islands"`: Farm's own engine (RFC 0003), on Farm's pipeline. Experimental. The default.
|
|
71
|
+
* - `"islands"`: Farm's own engine (RFC 0003), on Farm's pipeline. Experimental. The default. On a
|
|
72
|
+
* renderer besides React, that renderer's islands (`capabilities.islands`), without the engine.
|
|
72
73
|
* - `"rsc"`: React's Flight pipeline (`@farm.js/plugin/rsc` on `@vitejs/plugin-rsc`).
|
|
73
74
|
*
|
|
74
75
|
* `true` means `{ mode: "islands" }`; `{ mode: "rsc" }` opts into React's pipeline. Both modes share
|
|
@@ -2732,9 +2733,16 @@ interface FarmConfig {
|
|
|
2732
2733
|
suppressLintOnLink?: boolean;
|
|
2733
2734
|
experimental?: {
|
|
2734
2735
|
/**
|
|
2735
|
-
*
|
|
2736
|
-
*
|
|
2737
|
-
*
|
|
2736
|
+
* Server components: pages and layouts render on the server only, and `"use client"` marks
|
|
2737
|
+
* what runs in the browser.
|
|
2738
|
+
*
|
|
2739
|
+
* - `{ mode: "islands" }`, or `true`: each client component hydrates on its own, as an island.
|
|
2740
|
+
* React runs pages on Farm's own engine (RFC 0003). Another renderer needs
|
|
2741
|
+
* `capabilities.islands`, and its islands hydrate through its `withIsland`.
|
|
2742
|
+
* - `{ mode: "rsc" }`: React's Flight pipeline from `@farm.js/plugin/rsc`. React only.
|
|
2743
|
+
*
|
|
2744
|
+
* @experimental
|
|
2745
|
+
* @default false
|
|
2738
2746
|
*/
|
|
2739
2747
|
serverComponents?: FarmServerComponentsConfig;
|
|
2740
2748
|
serverActions?: boolean;
|
|
@@ -2759,7 +2767,8 @@ interface FarmConfig {
|
|
|
2759
2767
|
* back to route-wide hydration for unsupported module graphs.
|
|
2760
2768
|
*
|
|
2761
2769
|
* This does not enable React Server Components. `"use client"` remains a
|
|
2762
|
-
* valid client-boundary declaration in normal SSR applications.
|
|
2770
|
+
* valid client-boundary declaration in normal SSR applications. On a renderer
|
|
2771
|
+
* besides React, turn islands on with `serverComponents: { mode: "islands" }`.
|
|
2763
2772
|
*
|
|
2764
2773
|
* @experimental
|
|
2765
2774
|
* @default "off"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { d as FarmClientHydrationCompleteEvent, e as FarmClientHydrationEvent, f as FarmClientHydrationMode, g as FarmClientHydrationSession, h as FarmClientLocation, i as FarmClientNavigationAction, j as FarmClientNavigationErrorEvent, k as FarmClientNavigationEvent, l as FarmClientNavigationLoadedEvent, m as FarmClientNavigationResolvedEvent, a as FarmClientNavigationSession, n as FarmClientPerformanceEvent, b as FarmClientPlugin, o as FarmClientPluginCloseEvent, p as FarmClientPluginEnforce, q as FarmClientPluginErrorEvent, r as FarmClientPluginErrorPhase, F as FarmClientPluginManager, s as FarmClientPluginManagerOptions, t as FarmClientPluginMetadata, u as FarmClientPluginRegistration, v as FarmClientPluginRouter, w as FarmClientPluginSetupEvent, x as FarmClientPluginStateEvent, c as createClientPluginManager } from './lifecycle.d-OtGWAvJT.mjs';
|
|
2
|
-
export { F as FarmPlugin, I as FarmPluginContext, ao as FarmRequestPluginContext, ap as FarmRequestStore } from './client-plugins.d-
|
|
2
|
+
export { F as FarmPlugin, I as FarmPluginContext, ao as FarmRequestPluginContext, ap as FarmRequestStore } from './client-plugins.d-Dzc3vOw_.mjs';
|
|
3
3
|
import './route.d-ShmtqqVQ.mjs';
|
|
4
4
|
import './endpoint.d-BXbBpKoh.mjs';
|
|
5
5
|
import './cache.mjs';
|
package/dist/client-plugins.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { d as FarmClientHydrationCompleteEvent, e as FarmClientHydrationEvent, f as FarmClientHydrationMode, g as FarmClientHydrationSession, h as FarmClientLocation, i as FarmClientNavigationAction, j as FarmClientNavigationErrorEvent, k as FarmClientNavigationEvent, l as FarmClientNavigationLoadedEvent, m as FarmClientNavigationResolvedEvent, a as FarmClientNavigationSession, n as FarmClientPerformanceEvent, b as FarmClientPlugin, o as FarmClientPluginCloseEvent, p as FarmClientPluginEnforce, q as FarmClientPluginErrorEvent, r as FarmClientPluginErrorPhase, F as FarmClientPluginManager, s as FarmClientPluginManagerOptions, t as FarmClientPluginMetadata, u as FarmClientPluginRegistration, v as FarmClientPluginRouter, w as FarmClientPluginSetupEvent, x as FarmClientPluginStateEvent, c as createClientPluginManager } from './lifecycle.d-OtGWAvJT.js';
|
|
2
|
-
export { F as FarmPlugin, I as FarmPluginContext, ao as FarmRequestPluginContext, ap as FarmRequestStore } from './client-plugins.d-
|
|
2
|
+
export { F as FarmPlugin, I as FarmPluginContext, ao as FarmRequestPluginContext, ap as FarmRequestStore } from './client-plugins.d-Crct3m_r.js';
|
|
3
3
|
import './route.d-Cd4Fi6BA.js';
|
|
4
4
|
import './endpoint.d-Dx_1k6Du.js';
|
|
5
5
|
import './cache.js';
|