@farm.js/core 0.2.0-beta.2 → 0.2.0-beta.4
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/THIRD-PARTY-LICENSES.md +3220 -0
- package/dist/after.cjs +3 -3
- package/dist/after.mjs +1 -1
- package/dist/{agent-mcp-handler-VX4NDDHR.mjs → agent-mcp-handler-BY7VJQ4W.mjs} +1 -1
- package/dist/agent-mcp-handler-S4UTE7NO.cjs +21 -0
- package/dist/{agent-mcp.d-DhCEzIfu.d.mts → agent-mcp.d-BdFnjlAT.d.mts} +1 -1
- package/dist/{agent-mcp.d-DBaonhLg.d.ts → agent-mcp.d-CAwDC9y4.d.ts} +1 -1
- package/dist/agent-runtime.cjs +25 -22
- package/dist/agent-runtime.d.mts +1 -1
- package/dist/agent-runtime.d.ts +1 -1
- package/dist/agent-runtime.mjs +2 -2
- package/dist/analyzer-3AMJK27J.cjs +17 -0
- package/dist/{analyzer-T2U345WL.mjs → analyzer-K3S4YRAH.mjs} +3 -3
- package/dist/api/client.cjs +16 -16
- package/dist/api/client.mjs +1 -1
- package/dist/api/client.native.cjs +21 -18
- package/dist/api/client.native.mjs +1 -1
- package/dist/api/node.cjs +29 -26
- package/dist/api/node.d.mts +3 -3
- package/dist/api/node.d.ts +3 -3
- package/dist/api/node.mjs +1 -1
- package/dist/api/route-manager.cjs +45 -45
- package/dist/api/route-manager.d.mts +3 -3
- package/dist/api/route-manager.d.ts +3 -3
- package/dist/api/route-manager.mjs +4 -4
- package/dist/api/runtime.cjs +25 -25
- package/dist/api/runtime.d.mts +2 -2
- package/dist/api/runtime.d.ts +2 -2
- package/dist/api/runtime.mjs +1 -1
- package/dist/api.cjs +57 -57
- package/dist/api.d.mts +4 -4
- package/dist/api.d.ts +4 -4
- package/dist/api.mjs +5 -5
- package/dist/{app-manifest.d-uE0JGZKN.d.mts → app-manifest.d-COs1wBGz.d.mts} +1 -1
- package/dist/{app-manifest.d-nLVFFd7N.d.ts → app-manifest.d-Dczk-fwt.d.ts} +1 -1
- package/dist/app-markdown-compiler-4RCCOTTF.cjs +33007 -0
- package/dist/app-markdown-compiler-OM2AMFRK.mjs +32402 -0
- package/dist/app-markdown.cjs +16 -16
- package/dist/app-markdown.d.mts +2 -2
- package/dist/app-markdown.d.ts +2 -2
- package/dist/app-markdown.mjs +3 -3
- package/dist/{app.d-CwVkAUEU.d.ts → app.d-DREl_yXh.d.ts} +17 -7
- package/dist/{app.d-DGGcNXV7.d.mts → app.d-LepnxO-5.d.mts} +17 -7
- package/dist/cache.cjs +8 -8
- package/dist/cache.mjs +1 -1
- package/dist/{chunk-DA432P2F.cjs → chunk-25CHWAZY.cjs} +14 -10
- package/dist/{chunk-JDT733EW.cjs → chunk-27IPPPCV.cjs} +16 -19
- package/dist/{chunk-PHCJJJZV.cjs → chunk-2HC46EGU.cjs} +6 -2
- package/dist/{chunk-MF3IA2AW.cjs → chunk-2L4M6YUG.cjs} +6 -1
- package/dist/{chunk-P2TGLGRR.mjs → chunk-2ORWY3SE.mjs} +2 -2
- package/dist/{chunk-VGZIIOU6.cjs → chunk-2PSN2PUJ.cjs} +12 -8
- package/dist/{chunk-CIY74JLV.cjs → chunk-2RA2VIKN.cjs} +9 -5
- package/dist/{chunk-NZRAUCUL.cjs → chunk-2UV765GT.cjs} +26 -20
- package/dist/{chunk-A3LNXQJJ.cjs → chunk-2VLW3HWJ.cjs} +9 -2
- package/dist/{chunk-4EBC7EMW.cjs → chunk-323JTLXR.cjs} +6 -1
- package/dist/{chunk-7KJJ4SBS.cjs → chunk-32HGOX3M.cjs} +6 -1
- package/dist/{chunk-RKQOMG2X.cjs → chunk-3ACTVXZG.cjs} +9 -5
- package/dist/{chunk-N3H7UPBM.cjs → chunk-3EZHMZGD.cjs} +6 -1
- package/dist/{chunk-LQWIIBI2.cjs → chunk-3KLDTMIC.cjs} +6 -1
- package/dist/{chunk-OO7DYIJD.cjs → chunk-3YT7DIIS.cjs} +7 -1
- package/dist/{chunk-ILQSRLKK.cjs → chunk-4A6WSOZH.cjs} +55 -49
- package/dist/{chunk-E5UN4OWX.cjs → chunk-4JARM2QQ.cjs} +6 -1
- package/dist/{chunk-VGVRGGP4.cjs → chunk-4JCX33RZ.cjs} +13 -8
- package/dist/chunk-4RLFAN7T.cjs +6 -0
- package/dist/{chunk-OZUINP2P.cjs → chunk-4USE4SEU.cjs} +19 -15
- package/dist/{chunk-PENBZAHJ.cjs → chunk-57OAZCWQ.cjs} +6 -1
- package/dist/{chunk-TWFJJPE7.cjs → chunk-5BZ7PR3T.cjs} +42 -38
- package/dist/{chunk-JYQ6DGPW.cjs → chunk-5P3TZGS3.cjs} +52 -45
- package/dist/{chunk-UWDFH3ZV.mjs → chunk-5UMPMVNF.mjs} +1 -1
- package/dist/{chunk-OZC2JPW6.cjs → chunk-5XYJ5KRN.cjs} +6 -1
- package/dist/{chunk-QKW6DLDT.cjs → chunk-5YT2ZSWS.cjs} +17 -13
- package/dist/{chunk-QCKSYYXK.cjs → chunk-63S7DAEG.cjs} +21 -17
- package/dist/{chunk-FDGYDQGL.cjs → chunk-66WIOZXX.cjs} +7 -1
- package/dist/{chunk-MHKPXX3J.cjs → chunk-6AUPJYHF.cjs} +13 -9
- package/dist/{chunk-DVJM55D2.cjs → chunk-6FIY4KBC.cjs} +6 -1
- package/dist/{chunk-TIZJYHB7.mjs → chunk-6IUWKO2Q.mjs} +15 -0
- package/dist/{chunk-VWIW47FW.cjs → chunk-6K7LEL2T.cjs} +6 -1
- package/dist/{chunk-UZCMMJJT.cjs → chunk-6NQ63L6N.cjs} +6 -1
- package/dist/{chunk-BTVDYS4B.cjs → chunk-6QCZWAGO.cjs} +6 -1
- package/dist/{chunk-RDADQG5S.cjs → chunk-6QWCFVGL.cjs} +14 -7
- package/dist/{chunk-JRGR5Z4K.cjs → chunk-6VC7NUY3.cjs} +6 -1
- package/dist/{chunk-CKPTIEDX.cjs → chunk-7BFFBYLN.cjs} +6 -1
- package/dist/{chunk-7Q7UB4TL.cjs → chunk-7GKZDRY2.cjs} +9 -5
- package/dist/{chunk-UCJCU2IL.cjs → chunk-7JI7W2MD.cjs} +34 -30
- package/dist/{chunk-C7LCTVJ2.cjs → chunk-7JZVCHNF.cjs} +10 -6
- package/dist/{chunk-QZUCVJZJ.cjs → chunk-7M3X4CBY.cjs} +6 -1
- package/dist/{chunk-7JUIK547.cjs → chunk-7MQMWGTL.cjs} +6 -1
- package/dist/{chunk-PIUTGRDI.cjs → chunk-7O3YJ6NP.cjs} +6 -1
- package/dist/{chunk-SXCL2MIN.cjs → chunk-7V5MQSBL.cjs} +9 -1
- package/dist/{chunk-7U4XF76R.cjs → chunk-7ZDLE77P.cjs} +12 -8
- package/dist/{chunk-NU5XLYRN.cjs → chunk-A2ELHZBZ.cjs} +10 -1
- package/dist/{chunk-RZI6436F.cjs → chunk-ADCVSTFV.cjs} +18 -11
- package/dist/{chunk-COK4IXOO.mjs → chunk-AGEBFYHF.mjs} +1 -1
- package/dist/{chunk-SWPLGPYF.cjs → chunk-AGT633OM.cjs} +27 -23
- package/dist/{chunk-WEZTGM7N.cjs → chunk-APKULXZV.cjs} +11 -9
- package/dist/chunk-AZJEQ5CR.cjs +6 -0
- package/dist/{chunk-ZMSVKVI3.cjs → chunk-B2VSX33T.cjs} +6 -1
- package/dist/{chunk-AQIRXBBY.cjs → chunk-B6JPBPBQ.cjs} +6 -1
- package/dist/{chunk-W76C7TCW.cjs → chunk-BNVQSUZK.cjs} +6 -2
- package/dist/{chunk-MNUYXZV7.cjs → chunk-BNWADCG2.cjs} +6 -1
- package/dist/{chunk-CCAUIBIS.cjs → chunk-BRWSQDKO.cjs} +10 -1
- package/dist/{chunk-SCE7VWPN.cjs → chunk-C4DZAEVT.cjs} +48 -41
- package/dist/{chunk-KQS27YN7.cjs → chunk-C6DR4JAR.cjs} +14 -10
- package/dist/{chunk-Y3WG64CP.cjs → chunk-CH2JX3CM.cjs} +6 -1
- package/dist/{chunk-KDQKTX3Q.cjs → chunk-COMBIEAP.cjs} +44 -36
- package/dist/{chunk-YUQUGVSV.cjs → chunk-CTTXHHZG.cjs} +50 -46
- package/dist/{chunk-FDZZ6K3N.cjs → chunk-CUW7K4AU.cjs} +14 -10
- package/dist/chunk-CWSUKW2H.cjs +6 -0
- package/dist/{chunk-HVGINJTO.mjs → chunk-D5OY5OKA.mjs} +60 -29
- package/dist/{chunk-T3SMMLSB.cjs → chunk-DB4NOIQC.cjs} +12 -8
- package/dist/{chunk-SSFAPTRD.mjs → chunk-DFLCEMQ3.mjs} +1 -1
- package/dist/{chunk-OWOUTKIJ.cjs → chunk-DQYMTSF3.cjs} +6 -1
- package/dist/{chunk-7V5M43ND.mjs → chunk-DVL3UVYT.mjs} +2 -2
- package/dist/{chunk-ZSVFI7JM.cjs → chunk-DVXT7RLV.cjs} +23 -18
- package/dist/{chunk-UNOXV37V.cjs → chunk-DYGHX2UR.cjs} +6 -1
- package/dist/{chunk-OLIWLN4I.cjs → chunk-E5AC7E25.cjs} +24 -20
- package/dist/{chunk-LSHX2H5G.cjs → chunk-EBE6BK54.cjs} +6 -1
- package/dist/{chunk-YNPVG2GG.mjs → chunk-EBVKVDQA.mjs} +1 -1
- package/dist/{chunk-WT6RAN2I.cjs → chunk-EGMJ5KEU.cjs} +6 -1
- package/dist/{chunk-22KXTL3I.cjs → chunk-EJLMRNSV.cjs} +24 -19
- package/dist/{chunk-RDNKQ5MK.cjs → chunk-EMM3YXXI.cjs} +19 -15
- package/dist/{chunk-EZUTDTFM.cjs → chunk-ERSLQ4C7.cjs} +18 -11
- package/dist/{chunk-4WXNTAOM.mjs → chunk-EUVHELJL.mjs} +1 -1
- package/dist/{chunk-J6TZRYCO.cjs → chunk-F5JTXLS7.cjs} +6 -1
- package/dist/{chunk-UOMSGJHK.cjs → chunk-F5T55PYX.cjs} +103 -95
- package/dist/{chunk-N2ZMSSPP.cjs → chunk-FYVSAWJP.cjs} +77 -70
- package/dist/{chunk-HUGPJFOC.cjs → chunk-G22QP2MX.cjs} +9 -5
- package/dist/{chunk-PMJSG4JS.cjs → chunk-G5KGLMPN.cjs} +6 -1
- package/dist/{chunk-R5U7OIPI.cjs → chunk-GAII22G2.cjs} +6 -1
- package/dist/{chunk-6CTFVBAT.cjs → chunk-GKYOFMPQ.cjs} +6 -1
- package/dist/{chunk-JYT7AN37.cjs → chunk-GLP3ID53.cjs} +6 -1
- package/dist/{chunk-QBJ6N5MT.mjs → chunk-GN2RXH72.mjs} +1 -1
- package/dist/{chunk-RQRTH57V.cjs → chunk-GQONHUMI.cjs} +6 -1
- package/dist/{chunk-EOXPRC2C.cjs → chunk-GQQID5IB.cjs} +7 -1
- package/dist/{chunk-IUKBPBM7.cjs → chunk-GUDYDNKU.cjs} +6 -1
- package/dist/{chunk-6GJZJAED.mjs → chunk-GUNPDMSX.mjs} +1 -1
- package/dist/{chunk-QO24II6C.mjs → chunk-GXWCR7PP.mjs} +7 -3
- package/dist/{chunk-VS7HLH4S.cjs → chunk-GYH2B4YQ.cjs} +12 -8
- package/dist/{chunk-RGMUS3HO.cjs → chunk-H3TYWCMG.cjs} +18 -14
- package/dist/{chunk-2OF5RPVU.cjs → chunk-H5AC3XSE.cjs} +18 -14
- package/dist/{chunk-ZIOFRBIU.cjs → chunk-H7INTSUK.cjs} +15 -9
- package/dist/{chunk-RFNQTQ44.cjs → chunk-HBRCMX24.cjs} +10 -5
- package/dist/{chunk-UA77C2ZA.cjs → chunk-HF3JJPH4.cjs} +58 -50
- package/dist/{chunk-4Q263EQI.mjs → chunk-HFOME6I2.mjs} +7 -7
- package/dist/{chunk-T7UC2ORA.cjs → chunk-HP7QYVST.cjs} +7 -1
- package/dist/{chunk-JP5TWUK2.cjs → chunk-HSAHQBMG.cjs} +8 -4
- package/dist/{chunk-3BTN3NP7.cjs → chunk-I5PDHLKE.cjs} +6 -2
- package/dist/{chunk-J2EKGR6E.cjs → chunk-IASZIYNM.cjs} +611 -529
- package/dist/{chunk-2RSVYJT6.cjs → chunk-IBZW57NW.cjs} +9 -5
- package/dist/{chunk-KORZ6PRE.cjs → chunk-IDUGG7VR.cjs} +6 -1
- package/dist/{chunk-6JHZPB52.cjs → chunk-IEZFFXSC.cjs} +10 -6
- package/dist/{chunk-VACYUMXW.cjs → chunk-IGA3OTFY.cjs} +37 -29
- package/dist/{chunk-YSRZSKQB.cjs → chunk-IGBQSUT5.cjs} +55 -40
- package/dist/{chunk-OQOII62L.mjs → chunk-II4ENBE4.mjs} +1 -1
- package/dist/{chunk-JIBEFLQ7.cjs → chunk-IKYNDANT.cjs} +7 -1
- package/dist/{chunk-Z43CIBUR.cjs → chunk-IU4YTFFQ.cjs} +16 -12
- package/dist/{chunk-KBGZ5FD6.cjs → chunk-IVEV44O2.cjs} +6 -2
- package/dist/{chunk-MCSRMEQV.cjs → chunk-J2JMESBJ.cjs} +6 -1
- package/dist/{chunk-WMRGIQTA.cjs → chunk-J3RIMCBD.cjs} +6 -1
- package/dist/{chunk-N4AQNEXR.cjs → chunk-JIBZ6SCC.cjs} +6 -1
- package/dist/{chunk-IZYFP7IN.cjs → chunk-JOSR2E2C.cjs} +17 -13
- package/dist/{chunk-AOKXITZ6.cjs → chunk-JOZDAIKZ.cjs} +6 -1
- package/dist/{chunk-EODGIFI7.cjs → chunk-JYQMGMKT.cjs} +16 -4
- package/dist/{chunk-J6RFB324.cjs → chunk-JZCUDAH2.cjs} +6 -1
- package/dist/{chunk-N2BRIN7I.mjs → chunk-K44IR6WC.mjs} +1 -1
- package/dist/{chunk-SUCDVKUB.cjs → chunk-K6LZMZNB.cjs} +6 -1
- package/dist/{chunk-GYJT2U7J.cjs → chunk-KAD5WBY4.cjs} +9 -5
- package/dist/{chunk-52Q4OB4A.cjs → chunk-KBURN62Z.cjs} +10 -6
- package/dist/{chunk-O4JYMU5N.cjs → chunk-KDUVIJSZ.cjs} +22 -18
- package/dist/{chunk-2LHZD3OP.cjs → chunk-KEBD377T.cjs} +6 -2
- package/dist/{chunk-3DE6RK7K.cjs → chunk-KHTJVI6B.cjs} +6 -1
- package/dist/{chunk-OY5XDG24.cjs → chunk-KI3B3H5K.cjs} +9 -5
- package/dist/{chunk-EXPVSFAG.cjs → chunk-KM7ZRKCH.cjs} +50 -41
- package/dist/{chunk-P2355C6E.cjs → chunk-KSRWTQ6J.cjs} +6 -1
- package/dist/{chunk-SHIWRBFI.cjs → chunk-KUG3P3GY.cjs} +6 -1
- package/dist/{chunk-T7HGXF7D.cjs → chunk-KXCPX3HE.cjs} +11 -7
- package/dist/{chunk-C5QHZ626.cjs → chunk-KXXZDS7C.cjs} +6 -1
- package/dist/{chunk-DUIP64BF.cjs → chunk-KYFTDHNN.cjs} +6 -1
- package/dist/{chunk-VXCFJWK5.cjs → chunk-L6CW5AWM.cjs} +6 -1
- package/dist/{chunk-XGPRM7OK.cjs → chunk-LEK3P2ZD.cjs} +16 -7
- package/dist/{chunk-HA7YRO53.cjs → chunk-LF7HAALM.cjs} +6 -1
- package/dist/{chunk-2KMIJDY6.cjs → chunk-LG62AYPQ.cjs} +6 -1
- package/dist/{chunk-SMUW7UST.mjs → chunk-LO5BNR6Y.mjs} +7 -2
- package/dist/{chunk-4A6A6P4T.mjs → chunk-LOQVWATF.mjs} +2 -2
- package/dist/{chunk-PWDBWXQI.cjs → chunk-LVYUTMW4.cjs} +6 -1
- package/dist/{chunk-I5KPOXUE.mjs → chunk-LWQ6IESX.mjs} +1 -1
- package/dist/{chunk-XRRHPBG2.cjs → chunk-M6W3AN57.cjs} +6 -1
- package/dist/{chunk-PZXYAWYG.cjs → chunk-M7RS7HSB.cjs} +13 -8
- package/dist/{chunk-UGWKNZ4U.cjs → chunk-MBDDLYT5.cjs} +25 -21
- package/dist/{chunk-CEVXKJKF.cjs → chunk-MMSCWTJT.cjs} +6 -1
- package/dist/{chunk-26ZTI2ZO.mjs → chunk-MRDI6MTL.mjs} +5 -5
- package/dist/{chunk-DVAZ53X6.cjs → chunk-N4AM7Q34.cjs} +77 -73
- package/dist/{chunk-DXUXQP2T.cjs → chunk-N4C72FCD.cjs} +6 -1
- package/dist/{chunk-H7REG7OX.cjs → chunk-NKW4JEOH.cjs} +13 -9
- package/dist/{chunk-XRFGOYXG.cjs → chunk-NMMCBJZM.cjs} +17 -12
- package/dist/{chunk-EA5HVG45.cjs → chunk-NNHIV3O2.cjs} +9 -2
- package/dist/{chunk-SHDCKRP4.cjs → chunk-NQUZDXKJ.cjs} +7 -3
- package/dist/{chunk-EUZFBHPP.cjs → chunk-O7B6LJWE.cjs} +7 -3
- package/dist/{chunk-SAUGKNCF.cjs → chunk-OBERQH7M.cjs} +42 -37
- package/dist/{chunk-NW3DL2PM.cjs → chunk-OCQSYDMG.cjs} +11 -4
- package/dist/{chunk-ZNXU4E6A.cjs → chunk-OSLI2SCA.cjs} +83 -72
- package/dist/{chunk-HLYRXN2I.cjs → chunk-OUOUPA37.cjs} +6 -1
- package/dist/{chunk-YIGUFJMR.cjs → chunk-OVSK47CZ.cjs} +6 -1
- package/dist/{chunk-ATYTLVSI.cjs → chunk-OX63SW6N.cjs} +7 -1
- package/dist/{chunk-YKHRCY4T.cjs → chunk-P2LSRUQB.cjs} +6 -1
- package/dist/{chunk-XJDB564A.cjs → chunk-P4ZLFUNB.cjs} +7 -2
- package/dist/{chunk-2OFP3IVA.cjs → chunk-P5RNGH52.cjs} +32 -18
- package/dist/{chunk-BW563VZZ.mjs → chunk-P67RLOMO.mjs} +1 -1
- package/dist/{chunk-6FXBJPF5.cjs → chunk-PCF54MSR.cjs} +6 -1
- package/dist/{chunk-GVYZCJZH.cjs → chunk-PHYSFHJK.cjs} +6 -1
- package/dist/{chunk-4DCWVSL2.cjs → chunk-PHZ7MLRQ.cjs} +6 -1
- package/dist/{chunk-PCAEJNQF.cjs → chunk-PNMRXZS5.cjs} +13 -9
- package/dist/{chunk-HS4JPIGR.cjs → chunk-PRKFECGT.cjs} +7 -3
- package/dist/{chunk-RTAWQXME.cjs → chunk-PSALMEHJ.cjs} +239 -145
- package/dist/{chunk-YUCU6XB4.cjs → chunk-PYPHM7AS.cjs} +9 -4
- package/dist/{chunk-CBB7I6HW.cjs → chunk-QBCR2EHA.cjs} +9 -5
- package/dist/{chunk-H7OFZJCV.cjs → chunk-QBMMQS25.cjs} +14 -8
- package/dist/{chunk-Y2FEFQAY.cjs → chunk-QCVP22KW.cjs} +8 -5
- package/dist/{chunk-J3GFOQOL.cjs → chunk-QGJL7EPX.cjs} +13 -9
- package/dist/{chunk-2PE5STAR.cjs → chunk-QHHEL4ZO.cjs} +6 -2
- package/dist/{chunk-LTOT5KVJ.mjs → chunk-QKXQFBNL.mjs} +1 -1
- package/dist/{chunk-L6E5BSNU.cjs → chunk-QT7MJL5E.cjs} +7 -3
- package/dist/{chunk-ERMUL73L.cjs → chunk-QTGYT2DF.cjs} +6 -1
- package/dist/{chunk-WBTHHTBO.cjs → chunk-QW5I5D5T.cjs} +6 -1
- package/dist/{chunk-IIHZ2BEE.cjs → chunk-QZRFEHMS.cjs} +15 -11
- package/dist/{chunk-HXNLKCWH.cjs → chunk-QZVPBDF7.cjs} +6 -1
- package/dist/{chunk-JH4CDG4G.cjs → chunk-R6GOH5CH.cjs} +18 -14
- package/dist/{chunk-2BEGVSDF.cjs → chunk-RBDAW6IZ.cjs} +7 -3
- package/dist/{chunk-PLJMEUAN.cjs → chunk-RFKPIAOF.cjs} +9 -1
- package/dist/{chunk-WPURVYXT.cjs → chunk-RGIHE6YL.cjs} +6 -2
- package/dist/{chunk-6B44ZU5P.cjs → chunk-RHORD2K2.cjs} +19 -15
- package/dist/{chunk-7MMDEIVC.mjs → chunk-RKWZ6F5D.mjs} +2 -2
- package/dist/{chunk-OCS3PSYR.cjs → chunk-RLC7NNTA.cjs} +6 -1
- package/dist/{chunk-STF6VDYQ.cjs → chunk-RQSPBWXJ.cjs} +6 -1
- package/dist/{chunk-RWR7SMD7.cjs → chunk-S2QSTMBE.cjs} +7 -3
- package/dist/{chunk-GCJ4GNMC.cjs → chunk-SGBEJBBB.cjs} +8 -4
- package/dist/chunk-SGRWZEQC.cjs +44 -0
- package/dist/{chunk-NDMPGFKL.cjs → chunk-SIQPXYBB.cjs} +6 -1
- package/dist/{chunk-2HTNASSB.cjs → chunk-SM4Y7CL4.cjs} +10 -6
- package/dist/{chunk-UNJZGVPU.cjs → chunk-SQ5O5EDN.cjs} +6 -1
- package/dist/{chunk-A25FXJ7D.cjs → chunk-SWOJU7LI.cjs} +6 -1
- package/dist/{chunk-BNH53KOT.cjs → chunk-SZBBBLLS.cjs} +6 -1
- package/dist/{chunk-HNB5JHBO.mjs → chunk-T4NOMZTS.mjs} +3 -3
- package/dist/{chunk-ML4TOUZP.cjs → chunk-T4YCWRCJ.cjs} +6 -1
- package/dist/{chunk-NDOE76QC.cjs → chunk-TDAH76RR.cjs} +8 -4
- package/dist/{chunk-D22BUQKW.cjs → chunk-TFCBJFP7.cjs} +6 -1
- package/dist/{chunk-NWF2FTFV.mjs → chunk-TP3ISVRU.mjs} +2 -9
- package/dist/{chunk-3EIPOTZV.cjs → chunk-TP7JAC3T.cjs} +6 -2
- package/dist/{chunk-4IE3YK7U.mjs → chunk-TQCDN4DV.mjs} +1 -1
- package/dist/{chunk-FB4CWSC2.cjs → chunk-TSLXAEGM.cjs} +16 -12
- package/dist/{chunk-5LJF4KUZ.cjs → chunk-U2HFXURZ.cjs} +19 -9
- package/dist/{chunk-SHD265HW.cjs → chunk-U3NUGF2E.cjs} +7 -1
- package/dist/{chunk-SVXOCTQ2.cjs → chunk-UARKTC55.cjs} +6 -1
- package/dist/{chunk-M4YXD6MD.cjs → chunk-UBH2OARS.cjs} +678 -616
- package/dist/{chunk-UZM3PDKK.cjs → chunk-UGL4BDNB.cjs} +27 -3
- package/dist/{chunk-GBMWLDCC.cjs → chunk-UHTXBC4Q.cjs} +7 -1
- package/dist/{chunk-47JV57DA.cjs → chunk-UOFTT6S4.cjs} +6 -1
- package/dist/{chunk-NNNMFSXG.mjs → chunk-V36K4TSU.mjs} +2 -2
- package/dist/{chunk-SPKZCFPH.mjs → chunk-V5F6HN7E.mjs} +4 -4
- package/dist/{chunk-I2RBHZF7.cjs → chunk-VB7P66Q4.cjs} +6 -1
- package/dist/{chunk-BIAGSYIZ.cjs → chunk-VD7ENQP2.cjs} +54 -47
- package/dist/{chunk-Q637AXGZ.mjs → chunk-VGX75645.mjs} +96 -16
- package/dist/{chunk-NLBHLPEO.cjs → chunk-VIDUNAQE.cjs} +6 -1
- package/dist/{chunk-MWAWMFG3.cjs → chunk-VMIR4SUL.cjs} +552 -527
- package/dist/{chunk-VM57CK74.cjs → chunk-VNWKJOJF.cjs} +6 -1
- package/dist/{chunk-RBSGFS5X.cjs → chunk-VQYGXWCS.cjs} +62 -54
- package/dist/{chunk-V5FEFFHV.mjs → chunk-VS4ABIJJ.mjs} +1 -1
- package/dist/{chunk-MPU5DOXX.cjs → chunk-VUCDMV3Q.cjs} +6 -1
- package/dist/{chunk-XOLYZZDX.mjs → chunk-VVIO7QGN.mjs} +93 -42
- package/dist/{chunk-L2GUEYHR.cjs → chunk-VZ2P6GRC.cjs} +8 -1
- package/dist/{chunk-3SPECQXI.cjs → chunk-W4KSV6GX.cjs} +13 -9
- package/dist/{chunk-CHOOBTDD.cjs → chunk-W4WFKRLR.cjs} +17 -13
- package/dist/chunk-W7BMZI3I.cjs +6 -0
- package/dist/{chunk-SNP33A33.cjs → chunk-WCPGU6J6.cjs} +6 -1
- package/dist/{chunk-2OR5WAD5.cjs → chunk-WFNL24R6.cjs} +58 -43
- package/dist/{chunk-XOFJUSWC.cjs → chunk-WJ5ADUI2.cjs} +18 -14
- package/dist/{chunk-LQ3FISSD.mjs → chunk-WLOIUPV2.mjs} +53 -43
- package/dist/{chunk-JCYDWJVO.cjs → chunk-WZSLDPVZ.cjs} +13 -9
- package/dist/{chunk-O5YM6GU3.mjs → chunk-X2TC6PBK.mjs} +1 -1
- package/dist/{chunk-BSX5OGSD.cjs → chunk-XE3E4MER.cjs} +24 -20
- package/dist/{chunk-3BIASUGR.cjs → chunk-XEPUUTGC.cjs} +6 -1
- package/dist/{chunk-HQKCSJEH.cjs → chunk-XH4GQ7MT.cjs} +17 -10
- package/dist/{chunk-SIECKBNK.cjs → chunk-XJEOHDPN.cjs} +6 -1
- package/dist/{chunk-5AMH6AFA.cjs → chunk-XK7SRVHC.cjs} +15 -11
- package/dist/chunk-XPVS4HKU.cjs +16 -0
- package/dist/{chunk-WKVYF2B5.cjs → chunk-XSJYXUY6.cjs} +6 -1
- package/dist/{chunk-5DX3O6TT.cjs → chunk-XSLYRNNA.cjs} +8 -4
- package/dist/{chunk-UUQNJDGH.cjs → chunk-XTQPYWQW.cjs} +6 -1
- package/dist/{chunk-3HLQTOVU.cjs → chunk-XVD5Y6S4.cjs} +6 -1
- package/dist/{chunk-7Q2YWZF7.cjs → chunk-XXBWKAJF.cjs} +14 -10
- package/dist/{chunk-YDXLC4DW.cjs → chunk-XZ6L3FUU.cjs} +6 -1
- package/dist/{chunk-FZ7OUN5M.cjs → chunk-Y3HLU2XL.cjs} +6 -2
- package/dist/{chunk-I2BYNELA.cjs → chunk-Y6WRVFD6.cjs} +9 -5
- package/dist/{chunk-OOZEU5KK.cjs → chunk-YC3LKWJO.cjs} +6 -1
- package/dist/{chunk-SXXSQVKK.cjs → chunk-YCIFGYBY.cjs} +13 -8
- package/dist/{chunk-CYOTNHDF.cjs → chunk-YHALJBYT.cjs} +6 -2
- package/dist/{chunk-WOAXQ5MZ.cjs → chunk-YLEL4ZRQ.cjs} +18 -14
- package/dist/{chunk-WEGAVN37.cjs → chunk-YMJK6VWQ.cjs} +6 -1
- package/dist/{chunk-2HW5LWAH.cjs → chunk-YQ5NVEFS.cjs} +6 -1
- package/dist/{chunk-AQLHD6HZ.cjs → chunk-YQXLBYY2.cjs} +20 -11
- package/dist/{chunk-IBEHVSU4.cjs → chunk-YUV5XXDC.cjs} +6 -1
- package/dist/{chunk-PWMJBCAN.cjs → chunk-YV47TSSB.cjs} +7 -3
- package/dist/{chunk-X333W5KV.cjs → chunk-YZMSJRM5.cjs} +6 -1
- package/dist/{chunk-VFMHE5D3.cjs → chunk-Z23OCU33.cjs} +29 -25
- package/dist/{chunk-DBYNZIIQ.cjs → chunk-Z2JQR56W.cjs} +6 -1
- package/dist/{chunk-RK3YYUX6.cjs → chunk-ZKVA2TV6.cjs} +6 -1
- package/dist/{chunk-SAPG45RA.cjs → chunk-ZPZGC6OD.cjs} +31 -27
- package/dist/{chunk-DV52ZS53.cjs → chunk-ZRRNF26T.cjs} +6 -2
- package/dist/{chunk-PO5MXV5X.cjs → chunk-ZSSBEPN4.cjs} +6 -1
- package/dist/{cli-runtime.d-oUiNuspW.d.mts → cli-runtime.d-BGaFPum1.d.mts} +5 -5
- package/dist/{cli-runtime.d-Dbl-gIoz.d.ts → cli-runtime.d-Bvfxt4uo.d.ts} +5 -5
- package/dist/client/lifecycle.cjs +8 -3
- package/dist/client/lifecycle.mjs +1 -1
- package/dist/{client-component.d-DaUqOhZT.d.mts → client-component.d-BA6kXI5L.d.mts} +1 -1
- package/dist/{client-component.d-CT4q7tmy.d.ts → client-component.d-LSEmRhuI.d.ts} +1 -1
- package/dist/client-plugins.cjs +8 -3
- package/dist/{client-plugins.d-24qhjX8c.d.ts → client-plugins.d-CQ6AGHP0.d.ts} +14 -0
- package/dist/{client-plugins.d-BfGTqbAH.d.mts → client-plugins.d-CVUMc2ai.d.mts} +14 -0
- package/dist/client-plugins.d.mts +1 -1
- package/dist/client-plugins.d.ts +1 -1
- package/dist/client-plugins.mjs +1 -1
- package/dist/client.cjs +51 -51
- package/dist/client.d.mts +7 -7
- package/dist/client.d.ts +7 -7
- package/dist/client.mjs +1 -1
- package/dist/config.cjs +3 -3
- package/dist/config.d.mts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.mjs +1 -1
- package/dist/cron.cjs +9 -9
- package/dist/cron.mjs +1 -1
- package/dist/deferred.cjs +3 -3
- package/dist/deferred.mjs +1 -1
- package/dist/deployment.cjs +3 -3
- package/dist/deployment.mjs +1 -1
- package/dist/desktop.cjs +4 -1
- package/dist/desktop.d.mts +2 -2
- package/dist/desktop.d.ts +2 -2
- package/dist/desktop.mjs +1 -1
- package/dist/{dev-guard-VIEEA4LS.cjs → dev-guard-M3ZCDWCK.cjs} +14 -11
- package/dist/{dev-guard-K3GJDPEQ.mjs → dev-guard-TFVWJNIB.mjs} +2 -2
- package/dist/{devtools-5WDQQDTA.cjs → devtools-OBQY3XOY.cjs} +72 -69
- package/dist/{devtools-DPYIYHTI.mjs → devtools-RYTO2V7G.mjs} +4 -4
- package/dist/{devtools-client-BKBCCORT.cjs → devtools-client-3K67NMWA.cjs} +7 -4
- package/dist/{devtools-client-L4MUWD6K.mjs → devtools-client-WAMA6Q77.mjs} +1 -1
- package/dist/{devtools-ui-C2EMF2SO.cjs → devtools-ui-TPBPQEEB.cjs} +4 -1
- package/dist/{devtools-ui-BOG33MT5.mjs → devtools-ui-UYEVDADD.mjs} +1 -1
- package/dist/docs.cjs +72 -72
- package/dist/docs.d.mts +3 -3
- package/dist/docs.d.ts +3 -3
- package/dist/docs.mjs +5 -5
- package/dist/env-types.cjs +4 -4
- package/dist/env-types.mjs +1 -1
- package/dist/env.cjs +4 -4
- package/dist/env.mjs +1 -1
- package/dist/environment/vite.cjs +16 -16
- package/dist/environment/vite.mjs +3 -3
- package/dist/environment.cjs +3 -3
- package/dist/environment.mjs +1 -1
- package/dist/font.cjs +3 -3
- package/dist/font.mjs +1 -1
- package/dist/{handler.d-GfNuz57p.d.mts → handler.d-DLKZDAYR.d.mts} +1 -1
- package/dist/{handler.d-Oca5kNSz.d.ts → handler.d-nkrNn_0M.d.ts} +1 -1
- package/dist/headers.cjs +6 -6
- package/dist/{headers.d-C_lsQIWA.d.mts → headers.d-C3k520Fc.d.mts} +1 -1
- package/dist/{headers.d-b8gHJDvu.d.ts → headers.d-DVBrYnqP.d.ts} +1 -1
- package/dist/headers.mjs +1 -1
- package/dist/i18n/client.cjs +23 -20
- package/dist/i18n/client.mjs +1 -1
- package/dist/i18n/index.cjs +12 -7
- package/dist/i18n/index.mjs +1 -1
- package/dist/i18n/server.cjs +11 -11
- package/dist/i18n/server.mjs +1 -1
- package/dist/image/server.cjs +8 -8
- package/dist/image/server.mjs +1 -1
- package/dist/image/sharp.cjs +21 -18
- package/dist/image/sharp.mjs +1 -1
- package/dist/image.cjs +7 -4
- package/dist/image.mjs +1 -1
- package/dist/index.cjs +228 -216
- package/dist/{index.d-BLtjh1aS.d.mts → index.d-5PDB032w.d.mts} +1 -1
- package/dist/{index.d-Ckv6kHFm.d.ts → index.d-e5WhoB07.d.ts} +1 -1
- package/dist/index.d.mts +22 -22
- package/dist/index.d.ts +22 -22
- package/dist/index.mjs +37 -37
- package/dist/instrumentation.cjs +5 -5
- package/dist/instrumentation.mjs +1 -1
- package/dist/integrations/orm.cjs +7 -7
- package/dist/integrations/orm.d.mts +1 -1
- package/dist/integrations/orm.d.ts +1 -1
- package/dist/integrations/orm.mjs +3 -3
- package/dist/integrations.cjs +22 -22
- package/dist/integrations.d.mts +1 -1
- package/dist/integrations.d.ts +1 -1
- package/dist/integrations.mjs +2 -2
- package/dist/internal/app-markdown-runtime.cjs +14 -14
- package/dist/internal/app-markdown-runtime.d.mts +2 -2
- package/dist/internal/app-markdown-runtime.d.ts +2 -2
- package/dist/internal/app-markdown-runtime.mjs +2 -2
- package/dist/internal/build-runtime.cjs +186 -181
- package/dist/internal/build-runtime.d.mts +4 -4
- package/dist/internal/build-runtime.d.ts +4 -4
- package/dist/internal/build-runtime.mjs +31 -31
- package/dist/internal/cli-runtime.cjs +105 -100
- package/dist/internal/cli-runtime.d.mts +7 -7
- package/dist/internal/cli-runtime.d.ts +7 -7
- package/dist/internal/cli-runtime.mjs +13 -13
- package/dist/internal/client-error-overlay.cjs +12 -9
- package/dist/internal/client-error-overlay.mjs +2 -2
- package/dist/internal/client-runtime.cjs +37 -26
- package/dist/internal/client-runtime.d.mts +5 -5
- package/dist/internal/client-runtime.d.ts +5 -5
- package/dist/internal/client-runtime.mjs +1 -1
- package/dist/internal/compression-runtime.cjs +4 -4
- package/dist/internal/compression-runtime.d.mts +1 -1
- package/dist/internal/compression-runtime.d.ts +1 -1
- package/dist/internal/compression-runtime.mjs +1 -1
- package/dist/internal/config-runtime.cjs +85 -82
- package/dist/internal/config-runtime.d.mts +3 -3
- package/dist/internal/config-runtime.d.ts +3 -3
- package/dist/internal/config-runtime.mjs +6 -6
- package/dist/internal/desktop-guard.cjs +5 -5
- package/dist/internal/desktop-guard.mjs +1 -1
- package/dist/internal/docs-precompiled-runtime.cjs +10 -7
- package/dist/internal/docs-precompiled-runtime.mjs +1 -1
- package/dist/internal/form-actions-client.cjs +4 -1
- package/dist/internal/form-actions-client.mjs +1 -1
- package/dist/internal/form-actions.cjs +13 -13
- package/dist/internal/form-actions.mjs +1 -1
- package/dist/internal/infra-analytics-runtime.cjs +32 -29
- package/dist/internal/infra-analytics-runtime.mjs +5 -5
- package/dist/internal/island-codec.cjs +4 -4
- package/dist/internal/island-codec.mjs +1 -1
- package/dist/internal/island-value-store.cjs +4 -1
- package/dist/internal/island-value-store.mjs +1 -1
- package/dist/internal/islands-action-client.cjs +10 -10
- package/dist/internal/islands-action-client.mjs +1 -1
- package/dist/internal/islands-boot.cjs +6 -3
- package/dist/internal/islands-boot.mjs +1 -1
- package/dist/internal/islands-runtime.cjs +12 -9
- package/dist/internal/islands-runtime.mjs +2 -2
- package/dist/internal/islands-server-tree.cjs +4 -1
- package/dist/internal/islands-server-tree.mjs +1 -1
- package/dist/internal/islands-server.cjs +9 -6
- package/dist/internal/islands-server.mjs +1 -1
- package/dist/internal/islx-actions-client.cjs +13 -10
- package/dist/internal/islx-actions-client.mjs +1 -1
- package/dist/internal/islx-actions-server.cjs +4 -1
- package/dist/internal/islx-actions-server.mjs +1 -1
- package/dist/internal/islx-client.cjs +7 -4
- package/dist/internal/islx-client.mjs +2 -2
- package/dist/internal/islx-react.cjs +4 -1
- package/dist/internal/islx-server.cjs +4 -1
- package/dist/internal/isolated-boundary.cjs +5 -5
- package/dist/internal/isolated-boundary.mjs +1 -1
- package/dist/internal/metadata-image-runtime.cjs +8 -8
- package/dist/internal/metadata-image-runtime.mjs +1 -1
- package/dist/internal/native-server-fns.cjs +10 -10
- package/dist/internal/native-server-fns.mjs +4 -4
- package/dist/internal/navigation-neutral.cjs +6 -3
- package/dist/internal/navigation-neutral.mjs +1 -1
- package/dist/internal/product-telemetry-runtime.cjs +4 -4
- package/dist/internal/product-telemetry-runtime.mjs +3 -3
- package/dist/internal/production-node-env.cjs +3 -3
- package/dist/internal/production-node-env.mjs +2 -2
- package/dist/internal/production-runtime.cjs +97 -89
- package/dist/internal/production-runtime.d.mts +10 -10
- package/dist/internal/production-runtime.d.ts +10 -10
- package/dist/internal/production-runtime.mjs +6 -6
- package/dist/internal/react-cache.cjs +10 -7
- package/dist/internal/react-cache.mjs +1 -1
- package/dist/internal/renderer-islands.cjs +4 -1
- package/dist/internal/renderer-islands.mjs +1 -1
- package/dist/internal/request-cookies.cjs +3 -3
- package/dist/internal/request-cookies.mjs +1 -1
- package/dist/internal/server-fn-transform.cjs +3 -3
- package/dist/internal/server-fn-transform.mjs +1 -1
- package/dist/internal/server-tree.cjs +5 -5
- package/dist/internal/server-tree.mjs +1 -1
- package/dist/internal/spa-router.cjs +20 -20
- package/dist/internal/spa-router.d.mts +3 -3
- package/dist/internal/spa-router.d.ts +3 -3
- package/dist/internal/spa-router.mjs +1 -1
- package/dist/internal/start-manifest.cjs +4 -1
- package/dist/internal/start-manifest.d.mts +1 -1
- package/dist/internal/start-manifest.d.ts +1 -1
- package/dist/internal/start-manifest.mjs +1 -1
- package/dist/internal/vercel-edge-middleware.cjs +23 -20
- package/dist/internal/vercel-edge-middleware.mjs +1 -1
- package/dist/json-ld.cjs +4 -1
- package/dist/json-ld.mjs +1 -1
- package/dist/layers-GP57TBE2.cjs +21 -0
- package/dist/{layers-744BBUY5.mjs → layers-IMRXNZRB.mjs} +1 -1
- package/dist/{libsql-http-M6LMNXCN.cjs → libsql-http-5GYGFVGC.cjs} +94 -87
- package/dist/{libsql-http-2QD224YS.mjs → libsql-http-PBJXNEOX.mjs} +1 -1
- package/dist/manager-3DFQDKJ6.cjs +18 -0
- package/dist/{manager-7BNSJKME.mjs → manager-GZUTAN5Q.mjs} +2 -2
- package/dist/markdown.cjs +12 -12
- package/dist/markdown.d.mts +1 -1
- package/dist/markdown.d.ts +1 -1
- package/dist/markdown.mjs +1 -1
- package/dist/middleware.cjs +32 -32
- package/dist/middleware.d.mts +1 -1
- package/dist/middleware.d.ts +1 -1
- package/dist/middleware.mjs +4 -4
- package/dist/mobile.cjs +4 -1
- package/dist/mobile.mjs +1 -1
- package/dist/{modules-3Q2ZCY4Q.mjs → modules-IVJXVV4W.mjs} +1 -1
- package/dist/modules-JDPCBWND.cjs +13 -0
- package/dist/{mount.d-BCS8mD4E.d.mts → mount.d-COIrFH0i.d.mts} +1 -1
- package/dist/{mount.d-DEX8eref.d.ts → mount.d-Cbz8vsSZ.d.ts} +1 -1
- package/dist/{native-server-fn-handler-PYK65A46.mjs → native-server-fn-handler-IMLQMSIR.mjs} +1 -1
- package/dist/native-server-fn-handler-U7I6H6MM.cjs +30 -0
- package/dist/{native-specs-A7YOL463.mjs → native-specs-4DOPYSOJ.mjs} +1 -1
- package/dist/native-specs-IXHEIZCD.cjs +15 -0
- package/dist/{native-tree-AO7PQ7FR.mjs → native-tree-2GQMSOLV.mjs} +1 -1
- package/dist/native-tree-PHCV43W4.cjs +28 -0
- package/dist/native.cjs +4 -1
- package/dist/native.mjs +1 -1
- package/dist/{navigation-delegate.d-Cgi28e5Q.d.ts → navigation-delegate.d-dlnYTX-Y.d.ts} +1 -1
- package/dist/{navigation-delegate.d-F83ugsZW.d.mts → navigation-delegate.d-yulG9Dp5.d.mts} +1 -1
- package/dist/navigation.cjs +26 -26
- package/dist/navigation.d.mts +4 -4
- package/dist/navigation.d.ts +4 -4
- package/dist/navigation.mjs +1 -1
- package/dist/{nitro-FK3SZM4H.mjs → nitro-6HSEGMWJ.mjs} +2 -2
- package/dist/{nitro-YDFMH5PY.cjs → nitro-K4MCBBB6.cjs} +31 -28
- package/dist/{node-module-bundle-ZWCQJCKA.mjs → node-module-bundle-4IN4YCDV.mjs} +1 -1
- package/dist/node-module-bundle-PHKRIHI6.cjs +15 -0
- package/dist/observability.cjs +3 -3
- package/dist/observability.mjs +1 -1
- package/dist/og.cjs +4 -1
- package/dist/og.mjs +1 -1
- package/dist/platform.cjs +4 -1
- package/dist/platform.mjs +1 -1
- package/dist/{plugin-EVKQZBNW.mjs → plugin-B7I5QVBE.mjs} +2 -2
- package/dist/plugin-QYBJSGHG.cjs +33 -0
- package/dist/plugin.cjs +175 -170
- package/dist/plugin.d.mts +5 -5
- package/dist/plugin.d.ts +5 -5
- package/dist/plugin.mjs +25 -25
- package/dist/{port-STMSGUVU.cjs → port-2YV5GBDN.cjs} +13 -10
- package/dist/{port-CEZTV776.mjs → port-4ZIDLV4Z.mjs} +1 -1
- package/dist/query/client.cjs +38 -34
- package/dist/query/client.mjs +1 -1
- package/dist/query/index.cjs +5 -5
- package/dist/query/index.mjs +1 -1
- package/dist/query/parsers.cjs +3 -3
- package/dist/query/parsers.mjs +1 -1
- package/dist/query/server.cjs +8 -5
- package/dist/query/server.mjs +1 -1
- package/dist/{render-plan.d-BkVY4aFb.d.mts → render-plan.d-BW56oxMP.d.mts} +1 -1
- package/dist/{render-plan.d-DCF2GZdD.d.ts → render-plan.d-Cz7bQmcf.d.ts} +1 -1
- package/dist/renderer/none/server.cjs +4 -1
- package/dist/renderer/none/server.mjs +1 -1
- package/dist/renderer/react/client.cjs +4 -1
- package/dist/renderer/react/client.mjs +1 -1
- package/dist/renderer/react/server.cjs +14 -11
- package/dist/renderer/react/server.mjs +1 -1
- package/dist/renderer/react/vite.cjs +4 -1
- package/dist/renderer/react/vite.mjs +1 -1
- package/dist/renderer-client.cjs +67 -64
- package/dist/renderer-client.d.mts +5 -5
- package/dist/renderer-client.d.ts +5 -5
- package/dist/renderer-client.mjs +1 -1
- package/dist/renderer.cjs +11 -6
- package/dist/renderer.mjs +1 -1
- package/dist/request.cjs +9 -4
- package/dist/{request.d-C5o-4dU2.d.ts → request.d-BaFROByP.d.ts} +1 -1
- package/dist/{request.d-DMPB53-i.d.mts → request.d-BwgX-7Wi.d.mts} +1 -1
- package/dist/request.d.mts +2 -2
- package/dist/request.d.ts +2 -2
- package/dist/request.mjs +1 -1
- package/dist/{route-rendering.d-DDvArvik.d.mts → route-rendering.d-BzeFPYGc.d.mts} +1 -1
- package/dist/{route-rendering.d-DfP6zRP7.d.ts → route-rendering.d-D4kUuncg.d.ts} +1 -1
- package/dist/router.cjs +5 -5
- package/dist/{router.d-s40h7aoS.d.ts → router.d-B9qJdgjt.d.ts} +1 -1
- package/dist/{router.d-1Skf2XCO.d.mts → router.d-D-p8WElf.d.mts} +1 -1
- package/dist/router.mjs +1 -1
- package/dist/routes.cjs +16 -16
- package/dist/routes.d.mts +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/routes.mjs +1 -1
- package/dist/{rsc-pipeline-O2YMVHUF.mjs → rsc-pipeline-Y6D6KBES.mjs} +9 -9
- package/dist/rsc-pipeline-YHVEHWTU.cjs +91 -0
- package/dist/{runtime-K2X3IZAF.mjs → runtime-62ZIEV6U.mjs} +8 -8
- package/dist/{runtime-WOTVFYQY.cjs → runtime-LKEMFXHW.cjs} +129 -119
- package/dist/{runtime.d-Bykc5Qfg.d.mts → runtime.d-BUtDIrRJ.d.mts} +1 -1
- package/dist/{runtime.d-k-9kFUsM.d.ts → runtime.d-Du64AX3R.d.ts} +1 -1
- package/dist/safe-fetch.cjs +4 -4
- package/dist/safe-fetch.mjs +1 -1
- package/dist/{schema-dev-notice-EUPAUJVN.mjs → schema-dev-notice-EZAOFO7A.mjs} +1 -1
- package/dist/{schema-dev-notice-ZSCL47CT.cjs → schema-dev-notice-Y4J5KPEY.cjs} +16 -13
- package/dist/schema.cjs +4 -4
- package/dist/schema.mjs +1 -1
- package/dist/{search-client-GIXIEU75.mjs → search-client-HN3ZY6AK.mjs} +1 -1
- package/dist/search-client-Z7KDVD4C.cjs +15 -0
- package/dist/server-action-security.cjs +10 -10
- package/dist/server-action-security.mjs +1 -1
- package/dist/{server-components-status.d-D-HixBe0.d.mts → server-components-status.d-B0YP-m9A.d.mts} +1 -1
- package/dist/{server-components-status.d-DLNd1C5j.d.ts → server-components-status.d-CvFhb6-t.d.ts} +1 -1
- package/dist/server-fn-client.cjs +4 -4
- package/dist/server-fn-client.mjs +1 -1
- package/dist/server-fn.cjs +17 -17
- package/dist/server-fn.mjs +1 -1
- package/dist/server-plugins.cjs +21 -16
- package/dist/server-plugins.d.mts +3 -3
- package/dist/server-plugins.d.ts +3 -3
- package/dist/server-plugins.mjs +1 -1
- package/dist/server-query-client.cjs +10 -10
- package/dist/server-query-client.mjs +1 -1
- package/dist/server-query.cjs +19 -19
- package/dist/server-query.mjs +1 -1
- package/dist/server.cjs +225 -216
- package/dist/server.d.mts +11 -11
- package/dist/server.d.ts +11 -11
- package/dist/server.mjs +28 -28
- package/dist/session-J7NTZI56.cjs +24 -0
- package/dist/{session-4IB34X35.mjs → session-ZFM3RDG2.mjs} +3 -3
- package/dist/{spa-router.d-DIlXwm00.d.mts → spa-router.d-CkR14oGH.d.mts} +2 -2
- package/dist/{spa-router.d-Dl-EJeJT.d.ts → spa-router.d-D4ye2WFk.d.ts} +2 -2
- package/dist/{ssg.d-bE-ylg0e.d.ts → ssg.d-BCJB_f7B.d.ts} +2 -2
- package/dist/{ssg.d-D2ZV0bhs.d.mts → ssg.d-DFs97VTY.d.mts} +2 -2
- package/dist/storage.cjs +4 -4
- package/dist/storage.mjs +2 -2
- package/dist/{store-core.d-BmdnMopD.d.ts → store-core.d-0W2YScl8.d.ts} +2 -2
- package/dist/{store-core.d-DPsCYzV7.d.mts → store-core.d-Vk5UDKeC.d.mts} +2 -2
- package/dist/testing.cjs +65 -62
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.mjs +4 -4
- package/dist/theme/client.cjs +5 -5
- package/dist/theme/client.mjs +1 -1
- package/dist/theme/index.cjs +4 -4
- package/dist/theme/index.mjs +1 -1
- package/dist/theme/runtime.cjs +3 -3
- package/dist/theme/runtime.mjs +1 -1
- package/dist/theme/server.cjs +8 -8
- package/dist/theme/server.mjs +1 -1
- package/dist/{utils.d-BFZQcBZV.d.ts → utils.d-Ba3N28fk.d.ts} +1 -1
- package/dist/{utils.d-nM3OHKq5.d.mts → utils.d-Cloiko8d.d.mts} +1 -1
- package/dist/version.cjs +3 -3
- package/dist/version.mjs +2 -2
- package/dist/vite.cjs +168 -168
- package/dist/vite.d.mts +6 -6
- package/dist/vite.d.ts +6 -6
- package/dist/vite.mjs +25 -25
- package/dist/workflows.cjs +14 -14
- package/dist/workflows.mjs +2 -2
- package/package.json +5 -5
- package/LICENSE +0 -22
- package/dist/agent-mcp-handler-EXOG55M4.cjs +0 -21
- package/dist/analyzer-OWIHFO5M.cjs +0 -17
- package/dist/chunk-3376ZTRC.cjs +0 -1
- package/dist/chunk-K5NI5YQR.cjs +0 -1
- package/dist/chunk-MCJLA63J.cjs +0 -1
- package/dist/chunk-NOSLIDSG.cjs +0 -9
- package/dist/chunk-PAKB6JHX.cjs +0 -40
- package/dist/chunk-YTAABQEV.cjs +0 -1
- package/dist/layers-XLOMMQP7.cjs +0 -21
- package/dist/manager-37UJPUN4.cjs +0 -18
- package/dist/modules-KDHFBQ6L.cjs +0 -13
- package/dist/native-server-fn-handler-57TCQPSM.cjs +0 -30
- package/dist/native-specs-JDPH26AO.cjs +0 -15
- package/dist/native-tree-52CUAP3N.cjs +0 -28
- package/dist/node-module-bundle-TNSY5PAC.cjs +0 -15
- package/dist/plugin-MWO3G2XM.cjs +0 -33
- package/dist/rsc-pipeline-SFQSMVI7.cjs +0 -91
- package/dist/search-client-A7YJT7JZ.cjs +0 -15
- package/dist/session-MOYQJ7E6.cjs +0 -24
- package/dist/{chunk-IVP5Q4BX.mjs → chunk-6IKUYFNQ.mjs} +0 -0
- package/dist/{chunk-D7LXBLUW.mjs → chunk-FYTZZM5U.mjs} +3 -3
- /package/dist/{chunk-E72GG355.mjs → chunk-HDZ2AMDD.mjs} +0 -0
- /package/dist/{chunk-URBP6DLH.mjs → chunk-LQZXCSYG.mjs} +0 -0
- /package/dist/{chunk-M6AJZ4XR.mjs → chunk-QNJUQIUZ.mjs} +0 -0
|
@@ -1,40 +1,45 @@
|
|
|
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(); } } 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 _chunkJ3RIMCBDcjs = require('./chunk-J3RIMCBD.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkBNWADCG2cjs = require('./chunk-BNWADCG2.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkKBURN62Zcjs = require('./chunk-KBURN62Z.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkHP7QYVSTcjs = require('./chunk-HP7QYVST.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk32HGOX3Mcjs = require('./chunk-32HGOX3M.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkPYPHM7AScjs = require('./chunk-PYPHM7AS.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunk7ZDLE77Pcjs = require('./chunk-7ZDLE77P.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkXPVS4HKUcjs = require('./chunk-XPVS4HKU.cjs');
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
var _chunkUGL4BDNBcjs = require('./chunk-UGL4BDNB.cjs');
|
|
32
35
|
|
|
33
36
|
// src/environment-vite.ts
|
|
37
|
+
_chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
|
|
34
38
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
35
39
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
36
40
|
|
|
37
41
|
// src/diagnostics.ts
|
|
42
|
+
_chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
|
|
38
43
|
var _tracemapping = require('@jridgewell/trace-mapping');
|
|
39
44
|
|
|
40
45
|
var BOUNDARY_DOCS = "/docs/environment-functions#boundary-diagnostics";
|
|
@@ -146,12 +151,14 @@ function createFarmSourceLocator(code, getCombinedSourcemap) {
|
|
|
146
151
|
}
|
|
147
152
|
|
|
148
153
|
// src/islands-react-server-exports.ts
|
|
154
|
+
_chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
|
|
149
155
|
|
|
150
156
|
|
|
151
157
|
var _parseAst = require('rolldown/parseAst');
|
|
152
158
|
var _utils = require('rolldown/utils');
|
|
153
159
|
|
|
154
160
|
// src/utils/source-snapshot.ts
|
|
161
|
+
_chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
|
|
155
162
|
|
|
156
163
|
|
|
157
164
|
var snapshot;
|
|
@@ -258,6 +265,15 @@ function withFarmSourceSnapshotOf(store, operation) {
|
|
|
258
265
|
base = void 0;
|
|
259
266
|
}
|
|
260
267
|
}
|
|
268
|
+
function withFarmSourceSnapshotAside(store, operation) {
|
|
269
|
+
const saved = { snapshot, base, volatile, trace, traceGroups };
|
|
270
|
+
snapshot = base = volatile = trace = traceGroups = void 0;
|
|
271
|
+
try {
|
|
272
|
+
return store ? withFarmSourceSnapshotOf(store, operation) : withFarmSourceSnapshot(operation);
|
|
273
|
+
} finally {
|
|
274
|
+
({ snapshot, base, volatile, trace, traceGroups } = saved);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
261
277
|
function memoizeInFarmSourceSnapshot(scope, key, compute, lasting) {
|
|
262
278
|
if (!snapshot) return compute();
|
|
263
279
|
let entries = snapshot.get(scope);
|
|
@@ -272,6 +288,28 @@ function memoizeInFarmSourceSnapshot(scope, key, compute, lasting) {
|
|
|
272
288
|
if (lasting && !lasting(result)) _optionalChain([volatile, 'optionalAccess', _18 => _18.push, 'call', _19 => _19([scope, key])]);
|
|
273
289
|
return result;
|
|
274
290
|
}
|
|
291
|
+
function hasFarmNodeModulesDirectory(directory) {
|
|
292
|
+
return memoizeInFarmSourceSnapshot(
|
|
293
|
+
"node-modules-directory",
|
|
294
|
+
farmSourceSnapshotPathKey(directory),
|
|
295
|
+
() => _fs2.default.existsSync(_path2.default.join(directory, "node_modules")),
|
|
296
|
+
() => false
|
|
297
|
+
);
|
|
298
|
+
}
|
|
299
|
+
function readFarmPackageManifest(file) {
|
|
300
|
+
return memoizeInFarmSourceSnapshot(
|
|
301
|
+
"package-manifest",
|
|
302
|
+
farmSourceSnapshotPathKey(file),
|
|
303
|
+
() => {
|
|
304
|
+
try {
|
|
305
|
+
return JSON.parse(_fs2.default.readFileSync(file, "utf8"));
|
|
306
|
+
} catch (e3) {
|
|
307
|
+
return null;
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
() => false
|
|
311
|
+
);
|
|
312
|
+
}
|
|
275
313
|
function noteFarmSourceRead(file) {
|
|
276
314
|
_optionalChain([trace, 'optionalAccess', _20 => _20.add, 'call', _21 => _21(file)]);
|
|
277
315
|
}
|
|
@@ -337,7 +375,9 @@ function findPackageDirectory(importer, name) {
|
|
|
337
375
|
() => {
|
|
338
376
|
for (let current = start; ; current = _path2.default.dirname(current)) {
|
|
339
377
|
const directory = _path2.default.join(current, "node_modules", name);
|
|
340
|
-
if (_fs2.default.existsSync(_path2.default.join(directory, "package.json")))
|
|
378
|
+
if (hasFarmNodeModulesDirectory(current) && _fs2.default.existsSync(_path2.default.join(directory, "package.json"))) {
|
|
379
|
+
return _fs2.default.realpathSync(directory);
|
|
380
|
+
}
|
|
341
381
|
if (_path2.default.dirname(current) === current) return null;
|
|
342
382
|
}
|
|
343
383
|
},
|
|
@@ -406,7 +446,7 @@ function resolveFarmReactServerExport(importer, specifier) {
|
|
|
406
446
|
const file = _path2.default.resolve(directory, server);
|
|
407
447
|
if (_fs2.default.existsSync(file)) resolved = file;
|
|
408
448
|
}
|
|
409
|
-
} catch (
|
|
449
|
+
} catch (e4) {
|
|
410
450
|
resolved = null;
|
|
411
451
|
}
|
|
412
452
|
cache.set(key, resolved);
|
|
@@ -421,7 +461,7 @@ function readModule(file) {
|
|
|
421
461
|
let stat;
|
|
422
462
|
try {
|
|
423
463
|
stat = _fs2.default.statSync(file);
|
|
424
|
-
} catch (
|
|
464
|
+
} catch (e5) {
|
|
425
465
|
return null;
|
|
426
466
|
}
|
|
427
467
|
noteFarmSourceRead(file);
|
|
@@ -431,7 +471,7 @@ function readModule(file) {
|
|
|
431
471
|
try {
|
|
432
472
|
const code = _fs2.default.readFileSync(file, "utf8");
|
|
433
473
|
program = _parseAst.parseAst.call(void 0, code, { lang: parseLang(file) });
|
|
434
|
-
} catch (
|
|
474
|
+
} catch (e6) {
|
|
435
475
|
program = null;
|
|
436
476
|
}
|
|
437
477
|
parsedModules.set(file, { size: stat.size, mtimeMs: stat.mtimeMs, program });
|
|
@@ -465,13 +505,14 @@ function resolveFarmPackageDefaultEntry(importer, specifier, conditions = ["brow
|
|
|
465
505
|
const directory = findPackageDirectory(importer, parsed.name);
|
|
466
506
|
if (!directory) return null;
|
|
467
507
|
try {
|
|
468
|
-
const manifest =
|
|
508
|
+
const manifest = readFarmPackageManifest(_path2.default.join(directory, "package.json"));
|
|
509
|
+
if (manifest === null) return null;
|
|
469
510
|
const target = _nullishCoalesce(pickTarget(exportEntry(manifest.exports, parsed.subpath), conditions), () => ( (!parsed.subpath ? _nullishCoalesce(_nullishCoalesce(manifest.module, () => ( manifest.main)), () => ( "index.js")) : parsed.subpath)));
|
|
470
511
|
return resolveRelative(
|
|
471
512
|
_path2.default.join(directory, "package.json"),
|
|
472
513
|
`./${String(target).replace(/^\.\//, "")}`
|
|
473
514
|
);
|
|
474
|
-
} catch (
|
|
515
|
+
} catch (e7) {
|
|
475
516
|
return null;
|
|
476
517
|
}
|
|
477
518
|
}
|
|
@@ -563,7 +604,7 @@ function parseCode(code, file) {
|
|
|
563
604
|
return memoizeInFarmSourceSnapshot(`ast:${lang}`, code, () => {
|
|
564
605
|
try {
|
|
565
606
|
return _parseAst.parseAst.call(void 0, code, { lang });
|
|
566
|
-
} catch (
|
|
607
|
+
} catch (e8) {
|
|
567
608
|
return null;
|
|
568
609
|
}
|
|
569
610
|
});
|
|
@@ -768,7 +809,7 @@ function scanFarmStaticImports(code, lang) {
|
|
|
768
809
|
let result;
|
|
769
810
|
try {
|
|
770
811
|
result = _utils.parseSync.call(void 0, "file.js", code, { lang, preserveParens: false });
|
|
771
|
-
} catch (
|
|
812
|
+
} catch (e9) {
|
|
772
813
|
return null;
|
|
773
814
|
}
|
|
774
815
|
if (result.errors.length > 0) return null;
|
|
@@ -800,7 +841,7 @@ function readModuleImports(file) {
|
|
|
800
841
|
let stat;
|
|
801
842
|
try {
|
|
802
843
|
stat = _fs2.default.statSync(file);
|
|
803
|
-
} catch (
|
|
844
|
+
} catch (e10) {
|
|
804
845
|
return null;
|
|
805
846
|
}
|
|
806
847
|
noteFarmSourceRead(file);
|
|
@@ -814,7 +855,7 @@ function readModuleImports(file) {
|
|
|
814
855
|
let code;
|
|
815
856
|
try {
|
|
816
857
|
code = _fs2.default.readFileSync(file, "utf8");
|
|
817
|
-
} catch (
|
|
858
|
+
} catch (e11) {
|
|
818
859
|
code = void 0;
|
|
819
860
|
}
|
|
820
861
|
imports = code === void 0 ? null : scanFarmStaticImports(code, parseLang(file));
|
|
@@ -834,7 +875,7 @@ function isClientOnlyScanned(file) {
|
|
|
834
875
|
if (clientOnlyFreeFiles.has(resolved)) return true;
|
|
835
876
|
try {
|
|
836
877
|
return clientOnlyFreeFiles.has(_fs2.default.realpathSync(resolved));
|
|
837
|
-
} catch (
|
|
878
|
+
} catch (e12) {
|
|
838
879
|
return true;
|
|
839
880
|
}
|
|
840
881
|
}
|
|
@@ -923,7 +964,7 @@ function stampScannedPath(directory, target) {
|
|
|
923
964
|
const stat = _fs2.default.statSync(target, { throwIfNoEntry: false });
|
|
924
965
|
if (!stat) return void 0;
|
|
925
966
|
return [_path2.default.relative(directory, target), stat.size, stat.mtimeMs, stat.ctimeMs];
|
|
926
|
-
} catch (
|
|
967
|
+
} catch (e13) {
|
|
927
968
|
return void 0;
|
|
928
969
|
}
|
|
929
970
|
}
|
|
@@ -936,12 +977,12 @@ function usePackageScanCacheFile(file) {
|
|
|
936
977
|
const stored = /* @__PURE__ */ new Map();
|
|
937
978
|
try {
|
|
938
979
|
const value = JSON.parse(_fs2.default.readFileSync(file, "utf8"));
|
|
939
|
-
if (_optionalChain([value, 'optionalAccess', _68 => _68.schema]) === PACKAGE_SCAN_CACHE_SCHEMA && value.farm ===
|
|
980
|
+
if (_optionalChain([value, 'optionalAccess', _68 => _68.schema]) === PACKAGE_SCAN_CACHE_SCHEMA && value.farm === _chunkXPVS4HKUcjs.FARM_VERSION && value.scans && typeof value.scans === "object") {
|
|
940
981
|
for (const [directory, scan] of Object.entries(value.scans)) {
|
|
941
982
|
if (isStoredPackageScan(scan)) stored.set(directory, scan);
|
|
942
983
|
}
|
|
943
984
|
}
|
|
944
|
-
} catch (
|
|
985
|
+
} catch (e14) {
|
|
945
986
|
}
|
|
946
987
|
packageScanCache = { file, stored, dirty: false };
|
|
947
988
|
}
|
|
@@ -965,14 +1006,14 @@ function persistPackageScanCache() {
|
|
|
965
1006
|
_fs2.default.mkdirSync(_path2.default.dirname(cache2.file), { recursive: true });
|
|
966
1007
|
_fs2.default.writeFileSync(
|
|
967
1008
|
temporary,
|
|
968
|
-
JSON.stringify({ schema: PACKAGE_SCAN_CACHE_SCHEMA, farm:
|
|
1009
|
+
JSON.stringify({ schema: PACKAGE_SCAN_CACHE_SCHEMA, farm: _chunkXPVS4HKUcjs.FARM_VERSION, scans })
|
|
969
1010
|
);
|
|
970
1011
|
_fs2.default.renameSync(temporary, cache2.file);
|
|
971
1012
|
cache2.dirty = false;
|
|
972
|
-
} catch (
|
|
1013
|
+
} catch (e15) {
|
|
973
1014
|
try {
|
|
974
1015
|
_fs2.default.rmSync(temporary, { force: true });
|
|
975
|
-
} catch (
|
|
1016
|
+
} catch (e16) {
|
|
976
1017
|
}
|
|
977
1018
|
}
|
|
978
1019
|
}
|
|
@@ -996,7 +1037,7 @@ function scanPackage(directory) {
|
|
|
996
1037
|
stamps.push(stampScannedPath(directory, current));
|
|
997
1038
|
try {
|
|
998
1039
|
entries = _fs2.default.readdirSync(current, { withFileTypes: true });
|
|
999
|
-
} catch (
|
|
1040
|
+
} catch (e17) {
|
|
1000
1041
|
continue;
|
|
1001
1042
|
}
|
|
1002
1043
|
for (const entry of entries) {
|
|
@@ -1008,7 +1049,7 @@ function scanPackage(directory) {
|
|
|
1008
1049
|
stamps.push(stampScannedPath(directory, file));
|
|
1009
1050
|
try {
|
|
1010
1051
|
code = _fs2.default.readFileSync(file, "utf8");
|
|
1011
|
-
} catch (
|
|
1052
|
+
} catch (e18) {
|
|
1012
1053
|
continue;
|
|
1013
1054
|
}
|
|
1014
1055
|
for (const match of code.matchAll(IMPORT_SPECIFIER)) scan.imports.add(match[1]);
|
|
@@ -1035,7 +1076,7 @@ function findFarmServerBundledPackage(importer, specifier) {
|
|
|
1035
1076
|
if (manifest.exports === void 0 && manifest.type !== "module" && typeof manifest.module === "string" && typeof manifest.main === "string" && _path2.default.resolve(directory, manifest.main) !== _path2.default.resolve(directory, manifest.module)) {
|
|
1036
1077
|
return { name: parsed.name, prebundle: isSelfContainedPackage(manifest, importer) };
|
|
1037
1078
|
}
|
|
1038
|
-
} catch (
|
|
1079
|
+
} catch (e19) {
|
|
1039
1080
|
return null;
|
|
1040
1081
|
}
|
|
1041
1082
|
const scan = scanPackage(directory);
|
|
@@ -1058,7 +1099,7 @@ function findFarmPackageManifest(importer, specifier) {
|
|
|
1058
1099
|
try {
|
|
1059
1100
|
const manifest = JSON.parse(_fs2.default.readFileSync(_path2.default.join(directory, "package.json"), "utf8"));
|
|
1060
1101
|
names = new Set(Object.keys(_nullishCoalesce(manifest.dependencies, () => ( {}))));
|
|
1061
|
-
} catch (
|
|
1102
|
+
} catch (e20) {
|
|
1062
1103
|
return null;
|
|
1063
1104
|
}
|
|
1064
1105
|
const dependencies = [...scanPackage(directory).imports].filter((imported) => {
|
|
@@ -1113,9 +1154,11 @@ function listFarmModuleExports(entry) {
|
|
|
1113
1154
|
}
|
|
1114
1155
|
|
|
1115
1156
|
// src/programmatic-routes-client.ts
|
|
1157
|
+
_chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
|
|
1116
1158
|
var _module = require('module');
|
|
1117
1159
|
|
|
1118
1160
|
// src/browser-builtins.ts
|
|
1161
|
+
_chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
|
|
1119
1162
|
|
|
1120
1163
|
var FARM_BROWSER_BUILTIN_PREFIX = "\0farm:browser-builtin:";
|
|
1121
1164
|
var BROWSER_IMPLEMENTATIONS = {
|
|
@@ -1188,7 +1231,7 @@ function resolveProgrammaticClientRoutes(options) {
|
|
|
1188
1231
|
let untraced = false;
|
|
1189
1232
|
const definedIn = /* @__PURE__ */ new Map();
|
|
1190
1233
|
for (const route of definitions) {
|
|
1191
|
-
const source =
|
|
1234
|
+
const source = _chunkPYPHM7AScjs.getProgrammaticRouteDefinitionSource.call(void 0, route);
|
|
1192
1235
|
const callers = (_nullishCoalesce(_optionalChain([source, 'optionalAccess', _85 => _85.stacks]), () => ( []))).map((stack) => findRouteCallers(stack, modulesByFile));
|
|
1193
1236
|
for (const caller of callers.flat()) caller.routeSource = true;
|
|
1194
1237
|
definedIn.set(route, callers.flat());
|
|
@@ -1504,7 +1547,7 @@ function holdsRouteDefinition(value, definitions) {
|
|
|
1504
1547
|
if (descriptor && "value" in descriptor) next(descriptor.value);
|
|
1505
1548
|
}
|
|
1506
1549
|
}
|
|
1507
|
-
} catch (
|
|
1550
|
+
} catch (e21) {
|
|
1508
1551
|
}
|
|
1509
1552
|
}
|
|
1510
1553
|
return false;
|
|
@@ -1597,7 +1640,7 @@ function readJsonString(text) {
|
|
|
1597
1640
|
try {
|
|
1598
1641
|
const value = JSON.parse(text);
|
|
1599
1642
|
return typeof value === "string" ? value : void 0;
|
|
1600
|
-
} catch (
|
|
1643
|
+
} catch (e22) {
|
|
1601
1644
|
return void 0;
|
|
1602
1645
|
}
|
|
1603
1646
|
}
|
|
@@ -1605,7 +1648,7 @@ function readJsonArray(text) {
|
|
|
1605
1648
|
try {
|
|
1606
1649
|
const value = JSON.parse(text);
|
|
1607
1650
|
return Array.isArray(value) ? value : void 0;
|
|
1608
|
-
} catch (
|
|
1651
|
+
} catch (e23) {
|
|
1609
1652
|
return void 0;
|
|
1610
1653
|
}
|
|
1611
1654
|
}
|
|
@@ -1615,13 +1658,13 @@ function readExports(namespace) {
|
|
|
1615
1658
|
let keys;
|
|
1616
1659
|
try {
|
|
1617
1660
|
keys = Object.keys(namespace);
|
|
1618
|
-
} catch (
|
|
1661
|
+
} catch (e24) {
|
|
1619
1662
|
return [];
|
|
1620
1663
|
}
|
|
1621
1664
|
for (const key of keys) {
|
|
1622
1665
|
try {
|
|
1623
1666
|
entries.push([key, namespace[key]]);
|
|
1624
|
-
} catch (
|
|
1667
|
+
} catch (e25) {
|
|
1625
1668
|
}
|
|
1626
1669
|
}
|
|
1627
1670
|
return entries;
|
|
@@ -1654,7 +1697,7 @@ function toModuleFile(file) {
|
|
|
1654
1697
|
if (file.startsWith("file://")) {
|
|
1655
1698
|
try {
|
|
1656
1699
|
return toPosixPath(_url.fileURLToPath.call(void 0, file));
|
|
1657
|
-
} catch (
|
|
1700
|
+
} catch (e26) {
|
|
1658
1701
|
return toPosixPath(file);
|
|
1659
1702
|
}
|
|
1660
1703
|
}
|
|
@@ -1662,11 +1705,13 @@ function toModuleFile(file) {
|
|
|
1662
1705
|
}
|
|
1663
1706
|
|
|
1664
1707
|
// src/utils/client-component.ts
|
|
1708
|
+
_chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
|
|
1665
1709
|
|
|
1666
1710
|
|
|
1667
1711
|
|
|
1668
1712
|
|
|
1669
1713
|
// src/islands-package-references.ts
|
|
1714
|
+
_chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
|
|
1670
1715
|
var _crypto = require('crypto');
|
|
1671
1716
|
|
|
1672
1717
|
|
|
@@ -1684,7 +1729,7 @@ function parse(code, file) {
|
|
|
1684
1729
|
function parseAs(code, lang) {
|
|
1685
1730
|
try {
|
|
1686
1731
|
return _parseAst.parseAst.call(void 0, code, { lang });
|
|
1687
|
-
} catch (
|
|
1732
|
+
} catch (e27) {
|
|
1688
1733
|
return null;
|
|
1689
1734
|
}
|
|
1690
1735
|
}
|
|
@@ -1824,11 +1869,11 @@ function packageLookup(directory, packageName) {
|
|
|
1824
1869
|
`${farmSourceSnapshotPathKey(directory)}\0${packageName}`,
|
|
1825
1870
|
() => {
|
|
1826
1871
|
for (let current = directory; ; current = _path2.default.dirname(current)) {
|
|
1827
|
-
if (_path2.default.basename(current) !== "node_modules") {
|
|
1872
|
+
if (_path2.default.basename(current) !== "node_modules" && hasFarmNodeModulesDirectory(current)) {
|
|
1828
1873
|
const candidate = _path2.default.join(current, "node_modules", packageName);
|
|
1829
1874
|
try {
|
|
1830
1875
|
return { from: current, real: _fs2.default.realpathSync(candidate) };
|
|
1831
|
-
} catch (
|
|
1876
|
+
} catch (e28) {
|
|
1832
1877
|
}
|
|
1833
1878
|
}
|
|
1834
1879
|
if (_path2.default.dirname(current) === current) return null;
|
|
@@ -1845,7 +1890,7 @@ function referenceResolveFrom(root, specifier, importer) {
|
|
|
1845
1890
|
if (_optionalChain([app, 'optionalAccess', _101 => _101.real]) === own.real) return null;
|
|
1846
1891
|
try {
|
|
1847
1892
|
return _fs2.default.realpathSync(own.from);
|
|
1848
|
-
} catch (
|
|
1893
|
+
} catch (e29) {
|
|
1849
1894
|
return own.from;
|
|
1850
1895
|
}
|
|
1851
1896
|
}
|
|
@@ -1880,7 +1925,7 @@ function writeIfChanged(file, source) {
|
|
|
1880
1925
|
let current = null;
|
|
1881
1926
|
try {
|
|
1882
1927
|
current = _fs2.default.readFileSync(file, "utf8");
|
|
1883
|
-
} catch (
|
|
1928
|
+
} catch (e30) {
|
|
1884
1929
|
}
|
|
1885
1930
|
if (current !== source) {
|
|
1886
1931
|
_fs2.default.mkdirSync(_path2.default.dirname(file), { recursive: true });
|
|
@@ -1892,7 +1937,7 @@ function owningPackage(file) {
|
|
|
1892
1937
|
try {
|
|
1893
1938
|
const manifest = JSON.parse(_fs2.default.readFileSync(_path2.default.join(current, "package.json"), "utf8"));
|
|
1894
1939
|
if (typeof manifest.name === "string") return { directory: current, name: manifest.name };
|
|
1895
|
-
} catch (
|
|
1940
|
+
} catch (e31) {
|
|
1896
1941
|
}
|
|
1897
1942
|
if (_path2.default.dirname(current) === current) return null;
|
|
1898
1943
|
}
|
|
@@ -1976,6 +2021,7 @@ function rewriteFarmPackageClientImports(options) {
|
|
|
1976
2021
|
}
|
|
1977
2022
|
|
|
1978
2023
|
// src/islands-containers.ts
|
|
2024
|
+
_chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
|
|
1979
2025
|
|
|
1980
2026
|
|
|
1981
2027
|
|
|
@@ -1994,6 +2040,7 @@ var ISLAND_CONTAINER_TAGS = /* @__PURE__ */ new Set([
|
|
|
1994
2040
|
"ul",
|
|
1995
2041
|
"ol"
|
|
1996
2042
|
]);
|
|
2043
|
+
var FARM_ISLAND_CONTAINER_TAG = /<(?:table|thead|tbody|tfoot|tr|select|optgroup|datalist|svg|ul|ol)[\s>/]/;
|
|
1997
2044
|
var FLOW_CONTENT_TAGS = /* @__PURE__ */ new Set(["td", "th", "caption", "foreignObject", "li"]);
|
|
1998
2045
|
function farmIslandContainerReferencePath(root) {
|
|
1999
2046
|
return _path2.default.join(root, ".farm", "client-references", "farm.js+core", "__island-container.tsx");
|
|
@@ -2012,7 +2059,7 @@ function ensureFarmIslandContainerReference(root) {
|
|
|
2012
2059
|
let current = null;
|
|
2013
2060
|
try {
|
|
2014
2061
|
current = _fs2.default.readFileSync(file, "utf8");
|
|
2015
|
-
} catch (
|
|
2062
|
+
} catch (e32) {
|
|
2016
2063
|
}
|
|
2017
2064
|
if (current !== source) {
|
|
2018
2065
|
_fs2.default.mkdirSync(_path2.default.dirname(file), { recursive: true });
|
|
@@ -2026,7 +2073,7 @@ function parse2(code, file) {
|
|
|
2026
2073
|
return memoizeInFarmSourceSnapshot(`ast:${lang}`, code, () => {
|
|
2027
2074
|
try {
|
|
2028
2075
|
return _parseAst.parseAst.call(void 0, code, { lang });
|
|
2029
|
-
} catch (
|
|
2076
|
+
} catch (e33) {
|
|
2030
2077
|
return null;
|
|
2031
2078
|
}
|
|
2032
2079
|
});
|
|
@@ -2043,9 +2090,7 @@ function jsxName(node) {
|
|
|
2043
2090
|
}
|
|
2044
2091
|
function findFarmIslandContainers(code, file, bindings) {
|
|
2045
2092
|
if (bindings.length === 0) return [];
|
|
2046
|
-
if (
|
|
2047
|
-
return [];
|
|
2048
|
-
}
|
|
2093
|
+
if (!FARM_ISLAND_CONTAINER_TAG.test(code)) return [];
|
|
2049
2094
|
const program = parse2(code, file);
|
|
2050
2095
|
if (!program) return null;
|
|
2051
2096
|
const names = new Set(bindings);
|
|
@@ -2119,6 +2164,7 @@ ${declaration}${code.slice(prologueEnd)}`;
|
|
|
2119
2164
|
}
|
|
2120
2165
|
|
|
2121
2166
|
// src/utils/package-client-boundary-cache.ts
|
|
2167
|
+
_chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
|
|
2122
2168
|
var _async_hooks = require('async_hooks');
|
|
2123
2169
|
|
|
2124
2170
|
|
|
@@ -2165,7 +2211,7 @@ function stampPackagePath(target, kind) {
|
|
|
2165
2211
|
const stat = _fs2.default.statSync(target, { throwIfNoEntry: false });
|
|
2166
2212
|
if (!stat || (kind === "file" ? !stat.isFile() : !stat.isDirectory())) return void 0;
|
|
2167
2213
|
return [target, stat.size, stat.mtimeMs, stat.ctimeMs];
|
|
2168
|
-
} catch (
|
|
2214
|
+
} catch (e34) {
|
|
2169
2215
|
return void 0;
|
|
2170
2216
|
}
|
|
2171
2217
|
}
|
|
@@ -2221,7 +2267,7 @@ var PackageClientBoundaryCache = class {
|
|
|
2221
2267
|
await _fs2.default.promises.mkdir(_path2.default.dirname(file), { recursive: true });
|
|
2222
2268
|
await _fs2.default.promises.writeFile(temporary, contents);
|
|
2223
2269
|
await _fs2.default.promises.rename(temporary, file);
|
|
2224
|
-
} catch (
|
|
2270
|
+
} catch (e35) {
|
|
2225
2271
|
await _fs2.default.promises.rm(temporary, { force: true }).catch(() => {
|
|
2226
2272
|
});
|
|
2227
2273
|
}
|
|
@@ -2236,10 +2282,10 @@ var PackageClientBoundaryCache = class {
|
|
|
2236
2282
|
_fs2.default.mkdirSync(_path2.default.dirname(file), { recursive: true });
|
|
2237
2283
|
_fs2.default.writeFileSync(temporary, contents);
|
|
2238
2284
|
_fs2.default.renameSync(temporary, file);
|
|
2239
|
-
} catch (
|
|
2285
|
+
} catch (e36) {
|
|
2240
2286
|
try {
|
|
2241
2287
|
_fs2.default.rmSync(temporary, { force: true });
|
|
2242
|
-
} catch (
|
|
2288
|
+
} catch (e37) {
|
|
2243
2289
|
}
|
|
2244
2290
|
}
|
|
2245
2291
|
}
|
|
@@ -2273,7 +2319,7 @@ var PackageClientBoundaryCache = class {
|
|
|
2273
2319
|
}
|
|
2274
2320
|
const contents = JSON.stringify({
|
|
2275
2321
|
schema: SCHEMA_VERSION,
|
|
2276
|
-
farm:
|
|
2322
|
+
farm: _chunkXPVS4HKUcjs.FARM_VERSION,
|
|
2277
2323
|
paths,
|
|
2278
2324
|
entries
|
|
2279
2325
|
});
|
|
@@ -2310,10 +2356,10 @@ function readStoredCache(file) {
|
|
|
2310
2356
|
let value;
|
|
2311
2357
|
try {
|
|
2312
2358
|
value = JSON.parse(_fs2.default.readFileSync(file, "utf8"));
|
|
2313
|
-
} catch (
|
|
2359
|
+
} catch (e38) {
|
|
2314
2360
|
return null;
|
|
2315
2361
|
}
|
|
2316
|
-
if (!isRecord(value) || value.schema !== SCHEMA_VERSION || value.farm !==
|
|
2362
|
+
if (!isRecord(value) || value.schema !== SCHEMA_VERSION || value.farm !== _chunkXPVS4HKUcjs.FARM_VERSION) {
|
|
2317
2363
|
return null;
|
|
2318
2364
|
}
|
|
2319
2365
|
const { paths, entries } = value;
|
|
@@ -2324,7 +2370,7 @@ function readStoredCache(file) {
|
|
|
2324
2370
|
const usable = variants.filter((entry) => isStoredEntry(entry, paths.length));
|
|
2325
2371
|
if (usable.length > 0) valid[key] = usable;
|
|
2326
2372
|
}
|
|
2327
|
-
return { schema: SCHEMA_VERSION, farm:
|
|
2373
|
+
return { schema: SCHEMA_VERSION, farm: _chunkXPVS4HKUcjs.FARM_VERSION, paths, entries: valid };
|
|
2328
2374
|
}
|
|
2329
2375
|
function isRecord(value) {
|
|
2330
2376
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -2338,7 +2384,7 @@ function isPathIndexList(value, pathCount) {
|
|
|
2338
2384
|
function isStoredEntry(value, pathCount) {
|
|
2339
2385
|
if (!isRecord(value) || !isRecord(value.result)) return false;
|
|
2340
2386
|
const { isClientComponent, shouldHydrate, islandStrategy } = value.result;
|
|
2341
|
-
return isPathIndexList(value.files, pathCount) && isPathIndexList(value.directories, pathCount) && Array.isArray(value.stops) && value.stops.every((file) => typeof file === "string" && _path2.default.isAbsolute(file)) && typeof isClientComponent === "boolean" && typeof shouldHydrate === "boolean" && (islandStrategy === null ||
|
|
2387
|
+
return isPathIndexList(value.files, pathCount) && isPathIndexList(value.directories, pathCount) && Array.isArray(value.stops) && value.stops.every((file) => typeof file === "string" && _path2.default.isAbsolute(file)) && typeof isClientComponent === "boolean" && typeof shouldHydrate === "boolean" && (islandStrategy === null || _chunk32HGOX3Mcjs.isFarmIslandStrategy.call(void 0, islandStrategy)) && Object.keys(value.result).length === 3;
|
|
2342
2388
|
}
|
|
2343
2389
|
var STORAGE_KEY = /* @__PURE__ */ Symbol.for("@farm.js/core/package-client-boundary-cache");
|
|
2344
2390
|
function getStorage() {
|
|
@@ -2397,13 +2443,14 @@ function dropLatestPackageClientBoundaryCache() {
|
|
|
2397
2443
|
}
|
|
2398
2444
|
|
|
2399
2445
|
// src/utils/renderer-hydration.ts
|
|
2446
|
+
_chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
|
|
2400
2447
|
|
|
2401
2448
|
|
|
2402
2449
|
var scopes = /* @__PURE__ */ new Map();
|
|
2403
2450
|
function realPath(file) {
|
|
2404
2451
|
try {
|
|
2405
2452
|
return _fs2.default.realpathSync(file);
|
|
2406
|
-
} catch (
|
|
2453
|
+
} catch (e39) {
|
|
2407
2454
|
return _path2.default.resolve(file);
|
|
2408
2455
|
}
|
|
2409
2456
|
}
|
|
@@ -2477,7 +2524,7 @@ function readOwnHydration(scope, content, file) {
|
|
|
2477
2524
|
try {
|
|
2478
2525
|
value = scope.renderer.hydration.resolve(content, file);
|
|
2479
2526
|
} catch (error) {
|
|
2480
|
-
throw
|
|
2527
|
+
throw _chunkHP7QYVSTcjs.createFarmRendererHookError.call(void 0,
|
|
2481
2528
|
`${where} threw: ${error instanceof Error ? error.message : String(error)}`,
|
|
2482
2529
|
error
|
|
2483
2530
|
);
|
|
@@ -2488,7 +2535,7 @@ function readOwnHydration(scope, content, file) {
|
|
|
2488
2535
|
`${where} returned ${JSON.stringify(value)}. Return \`{ hydrate?, strategy? }\`, or nothing to leave the file to Farm.`
|
|
2489
2536
|
);
|
|
2490
2537
|
}
|
|
2491
|
-
return
|
|
2538
|
+
return _chunkHP7QYVSTcjs.readFarmRendererHydration.call(void 0, value, where);
|
|
2492
2539
|
}
|
|
2493
2540
|
function mayCompileFarmRendererSource(file) {
|
|
2494
2541
|
if (scopes.size === 0) return false;
|
|
@@ -2511,7 +2558,7 @@ function compileFarmRendererSource(content, sourcePath) {
|
|
|
2511
2558
|
try {
|
|
2512
2559
|
value = compile.call(scope.renderer, content, file);
|
|
2513
2560
|
} catch (error) {
|
|
2514
|
-
throw
|
|
2561
|
+
throw _chunkHP7QYVSTcjs.createFarmRendererHookError.call(void 0,
|
|
2515
2562
|
`${where} threw: ${error instanceof Error ? error.message : String(error)}`,
|
|
2516
2563
|
error
|
|
2517
2564
|
);
|
|
@@ -2591,7 +2638,7 @@ function readSourceFileContents(filePath) {
|
|
|
2591
2638
|
return null;
|
|
2592
2639
|
}
|
|
2593
2640
|
return _fs2.default.readFileSync(filePath, "utf-8");
|
|
2594
|
-
} catch (
|
|
2641
|
+
} catch (e40) {
|
|
2595
2642
|
return null;
|
|
2596
2643
|
}
|
|
2597
2644
|
}
|
|
@@ -2604,7 +2651,7 @@ function resolveModuleSourcePath(modulePath, root) {
|
|
|
2604
2651
|
if (modulePath.startsWith("file://")) {
|
|
2605
2652
|
try {
|
|
2606
2653
|
candidates.add(_url.fileURLToPath.call(void 0, modulePath));
|
|
2607
|
-
} catch (
|
|
2654
|
+
} catch (e41) {
|
|
2608
2655
|
}
|
|
2609
2656
|
}
|
|
2610
2657
|
if (modulePath.startsWith("/@fs/")) {
|
|
@@ -2630,7 +2677,7 @@ function resolveModuleSourcePath(modulePath, root) {
|
|
|
2630
2677
|
return null;
|
|
2631
2678
|
}
|
|
2632
2679
|
function getFarmClientHydrationPlanOptions(renderer, hasUnsupportedIntegrationProvider) {
|
|
2633
|
-
return { asyncOwnerIslands:
|
|
2680
|
+
return { asyncOwnerIslands: _chunkHP7QYVSTcjs.isReactRenderer.call(void 0, renderer) && !hasUnsupportedIntegrationProvider };
|
|
2634
2681
|
}
|
|
2635
2682
|
function describeSuppressedAsyncHydration(subject, reason) {
|
|
2636
2683
|
const remediation = reason ? "Fix the reason above, or render the interactive UI from a synchronous owner." : 'Move the interactive UI into an eligible "use client" boundary, or render it from a synchronous owner.';
|
|
@@ -2687,7 +2734,7 @@ function hasUseClientDirective(content) {
|
|
|
2687
2734
|
return false;
|
|
2688
2735
|
}
|
|
2689
2736
|
function hasHydrateExport(content) {
|
|
2690
|
-
return _optionalChain([
|
|
2737
|
+
return _optionalChain([_chunkJ3RIMCBDcjs.readFarmHydrateExport.call(void 0, content), 'optionalAccess', _147 => _147.value]) === true;
|
|
2691
2738
|
}
|
|
2692
2739
|
var REGEXP_PREFIX_PUNCTUATION = /* @__PURE__ */ new Set([
|
|
2693
2740
|
"(",
|
|
@@ -2890,7 +2937,7 @@ function getIslandStrategyExport(content) {
|
|
|
2890
2937
|
if (_optionalChain([tokens, 'access', _154 => _154[valueIndex], 'optionalAccess', _155 => _155.value]) !== "=") break;
|
|
2891
2938
|
valueIndex++;
|
|
2892
2939
|
const literal = tokens[valueIndex];
|
|
2893
|
-
if (!literal || literal.kind !== "string" || !
|
|
2940
|
+
if (!literal || literal.kind !== "string" || !_chunk32HGOX3Mcjs.isFarmIslandStrategy.call(void 0, literal.value)) break;
|
|
2894
2941
|
let trailingIndex = valueIndex + 1;
|
|
2895
2942
|
if (_optionalChain([tokens, 'access', _156 => _156[trailingIndex], 'optionalAccess', _157 => _157.value]) === "as" && _optionalChain([tokens, 'access', _158 => _158[trailingIndex + 1], 'optionalAccess', _159 => _159.value]) === "const") {
|
|
2896
2943
|
trailingIndex += 2;
|
|
@@ -2958,9 +3005,9 @@ function parseClientModuleMetadata(content, inspectIslandExport, sourcePath) {
|
|
|
2958
3005
|
};
|
|
2959
3006
|
}
|
|
2960
3007
|
const isClientComponent = hasUseClientDirective(content);
|
|
2961
|
-
const hydrate =
|
|
3008
|
+
const hydrate = _chunkJ3RIMCBDcjs.readFarmHydrateExport.call(void 0, content);
|
|
2962
3009
|
if (inspectIslandExport && hydrate && hydrate.value === null) {
|
|
2963
|
-
throw new Error(
|
|
3010
|
+
throw new Error(_chunkJ3RIMCBDcjs.formatFarmHydrateExportError.call(void 0, hydrate, sourcePath));
|
|
2964
3011
|
}
|
|
2965
3012
|
const rendererHydration = inspectIslandExport && sourcePath ? (
|
|
2966
3013
|
// The renderer's own syntax is read from the file as written, before its `compile()`.
|
|
@@ -3314,7 +3361,7 @@ function clientModulePlanSignature(content) {
|
|
|
3314
3361
|
isIsolatableClientBoundarySource(content),
|
|
3315
3362
|
getImportSpecifiers(content).sort()
|
|
3316
3363
|
]);
|
|
3317
|
-
} catch (
|
|
3364
|
+
} catch (e42) {
|
|
3318
3365
|
return null;
|
|
3319
3366
|
}
|
|
3320
3367
|
}
|
|
@@ -3322,6 +3369,48 @@ function isFarmClientModulePlanUnchanged(file, previous) {
|
|
|
3322
3369
|
const signature = clientModulePlanSignature(previous);
|
|
3323
3370
|
return signature !== null && signature === clientModulePlanSignature(readSourceFileContents(file));
|
|
3324
3371
|
}
|
|
3372
|
+
var SERVER_PLAN_SIGNATURE_SOURCE = /\.[cm]?[jt]sx?$/;
|
|
3373
|
+
function serverModulePlanSignature(content, file) {
|
|
3374
|
+
if (!content || !SERVER_PLAN_SIGNATURE_SOURCE.test(file) || mayCompileFarmRendererSource(file) || hasUseClientDirective(content)) {
|
|
3375
|
+
return null;
|
|
3376
|
+
}
|
|
3377
|
+
try {
|
|
3378
|
+
const bindings = getStaticImportBindings(content);
|
|
3379
|
+
const specifiers = getImportSpecifiers(content);
|
|
3380
|
+
return JSON.stringify([
|
|
3381
|
+
parseClientModuleMetadata(content, false),
|
|
3382
|
+
parseClientModuleMetadata(content, true, file),
|
|
3383
|
+
_nullishCoalesce(_optionalChain([DEFAULT_REEXPORT, 'access', _177 => _177.exec, 'call', _178 => _178(content), 'optionalAccess', _179 => _179[2]]), () => ( null)),
|
|
3384
|
+
hasAsyncDefaultExport(content),
|
|
3385
|
+
specifiers,
|
|
3386
|
+
getImportSpecifiers(content, { dynamic: true }),
|
|
3387
|
+
getImportSpecifiers(content, { reexportsOnly: true }),
|
|
3388
|
+
[...bindings],
|
|
3389
|
+
[...new Set(specifiers)].map((specifier) => {
|
|
3390
|
+
const locals = _nullishCoalesce(bindings.get(specifier), () => ( []));
|
|
3391
|
+
return [
|
|
3392
|
+
countStaticJsxUses(content, locals),
|
|
3393
|
+
_nullishCoalesce(findParserSensitiveJsxContainer(content, locals), () => ( null)),
|
|
3394
|
+
passesElementValuedProps(content, locals),
|
|
3395
|
+
hasDynamicJsxCardinality(content, locals),
|
|
3396
|
+
rendersOnlyLeafElements(content, locals),
|
|
3397
|
+
(_nullishCoalesce(_optionalChain([findFarmIslandContainers, 'call', _180 => _180(content, file, locals), 'optionalAccess', _181 => _181.length]), () => ( 0))) > 0,
|
|
3398
|
+
findFarmPackageClientImports(content, file, (candidate) => candidate === specifier).map(
|
|
3399
|
+
farmPackageClientImportExports
|
|
3400
|
+
),
|
|
3401
|
+
findFarmReactServerClientNames(content, file, specifier),
|
|
3402
|
+
findFarmReactServerClientModules(content, file, specifier)
|
|
3403
|
+
];
|
|
3404
|
+
})
|
|
3405
|
+
]);
|
|
3406
|
+
} catch (e43) {
|
|
3407
|
+
return null;
|
|
3408
|
+
}
|
|
3409
|
+
}
|
|
3410
|
+
function isFarmServerModulePlanUnchanged(file, previous) {
|
|
3411
|
+
const signature = serverModulePlanSignature(previous, file);
|
|
3412
|
+
return signature !== null && signature === serverModulePlanSignature(readSourceFileContents(file), file);
|
|
3413
|
+
}
|
|
3325
3414
|
function exportListNames(content) {
|
|
3326
3415
|
const names = [];
|
|
3327
3416
|
for (const match of content.matchAll(/\bexport\s*(type\s*)?\{([^}]*)\}/g)) {
|
|
@@ -3347,7 +3436,7 @@ function scanStaticImportBindings(content) {
|
|
|
3347
3436
|
const bindings = /* @__PURE__ */ new Map();
|
|
3348
3437
|
const tokens = tokenizeModuleSource(content);
|
|
3349
3438
|
for (let index = 0; index < tokens.length; index++) {
|
|
3350
|
-
if (tokens[index].value !== "import" || _optionalChain([tokens, 'access',
|
|
3439
|
+
if (tokens[index].value !== "import" || _optionalChain([tokens, 'access', _182 => _182[index - 1], 'optionalAccess', _183 => _183.value]) === ".") continue;
|
|
3351
3440
|
const first = tokens[index + 1];
|
|
3352
3441
|
if (!first || first.value === "type" || first.value === "(" || first.kind === "string") {
|
|
3353
3442
|
continue;
|
|
@@ -3355,7 +3444,7 @@ function scanStaticImportBindings(content) {
|
|
|
3355
3444
|
let fromIndex = -1;
|
|
3356
3445
|
for (let cursor = index + 1; cursor < tokens.length; cursor++) {
|
|
3357
3446
|
if (tokens[cursor].value === ";") break;
|
|
3358
|
-
if (tokens[cursor].value === "from" && _optionalChain([tokens, 'access',
|
|
3447
|
+
if (tokens[cursor].value === "from" && _optionalChain([tokens, 'access', _184 => _184[cursor + 1], 'optionalAccess', _185 => _185.kind]) === "string") {
|
|
3359
3448
|
fromIndex = cursor;
|
|
3360
3449
|
break;
|
|
3361
3450
|
}
|
|
@@ -3364,13 +3453,13 @@ function scanStaticImportBindings(content) {
|
|
|
3364
3453
|
const specifier = tokens[fromIndex + 1].value;
|
|
3365
3454
|
const clause = tokens.slice(index + 1, fromIndex);
|
|
3366
3455
|
const localNames = [];
|
|
3367
|
-
if (_optionalChain([clause, 'access',
|
|
3456
|
+
if (_optionalChain([clause, 'access', _186 => _186[0], 'optionalAccess', _187 => _187.kind]) === "identifier" && clause[0].value !== "type") {
|
|
3368
3457
|
localNames.push(clause[0].value);
|
|
3369
3458
|
}
|
|
3370
3459
|
const namespaceAs = clause.findIndex(
|
|
3371
|
-
(token, clauseIndex) => token.value === "*" && _optionalChain([clause, 'access',
|
|
3460
|
+
(token, clauseIndex) => token.value === "*" && _optionalChain([clause, 'access', _188 => _188[clauseIndex + 1], 'optionalAccess', _189 => _189.value]) === "as"
|
|
3372
3461
|
);
|
|
3373
|
-
if (namespaceAs !== -1 && _optionalChain([clause, 'access',
|
|
3462
|
+
if (namespaceAs !== -1 && _optionalChain([clause, 'access', _190 => _190[namespaceAs + 2], 'optionalAccess', _191 => _191.kind]) === "identifier") {
|
|
3374
3463
|
localNames.push(clause[namespaceAs + 2].value);
|
|
3375
3464
|
}
|
|
3376
3465
|
const openingBrace = clause.findIndex((token) => token.value === "{");
|
|
@@ -3380,11 +3469,11 @@ function scanStaticImportBindings(content) {
|
|
|
3380
3469
|
if (openingBrace !== -1 && closingBrace !== -1) {
|
|
3381
3470
|
let entryStart = openingBrace + 1;
|
|
3382
3471
|
for (let cursor = entryStart; cursor <= closingBrace; cursor++) {
|
|
3383
|
-
if (cursor !== closingBrace && _optionalChain([clause, 'access',
|
|
3472
|
+
if (cursor !== closingBrace && _optionalChain([clause, 'access', _192 => _192[cursor], 'optionalAccess', _193 => _193.value]) !== ",") continue;
|
|
3384
3473
|
const entry = clause.slice(entryStart, cursor).filter((token) => token.value !== "type");
|
|
3385
3474
|
const asIndex = entry.findIndex((token) => token.value === "as");
|
|
3386
3475
|
const local = asIndex === -1 ? entry[0] : entry[asIndex + 1];
|
|
3387
|
-
if (_optionalChain([local, 'optionalAccess',
|
|
3476
|
+
if (_optionalChain([local, 'optionalAccess', _194 => _194.kind]) === "identifier") localNames.push(local.value);
|
|
3388
3477
|
entryStart = cursor + 1;
|
|
3389
3478
|
}
|
|
3390
3479
|
}
|
|
@@ -3421,7 +3510,7 @@ function findParserSensitiveJsxContainer(content, localBindings) {
|
|
|
3421
3510
|
const open = [];
|
|
3422
3511
|
const isSelfClosing = (openingIndex) => {
|
|
3423
3512
|
for (let index = openingIndex; index < tokens.length; index++) {
|
|
3424
|
-
if (tokens[index].value === ">") return _optionalChain([tokens, 'access',
|
|
3513
|
+
if (tokens[index].value === ">") return _optionalChain([tokens, 'access', _195 => _195[index - 1], 'optionalAccess', _196 => _196.value]) === "/";
|
|
3425
3514
|
}
|
|
3426
3515
|
return false;
|
|
3427
3516
|
};
|
|
@@ -3429,7 +3518,7 @@ function findParserSensitiveJsxContainer(content, localBindings) {
|
|
|
3429
3518
|
if (tokens[index].value !== "<") continue;
|
|
3430
3519
|
if (tokens[index + 1].value === "/") {
|
|
3431
3520
|
const closing = tokens[index + 2];
|
|
3432
|
-
const at = _optionalChain([closing, 'optionalAccess',
|
|
3521
|
+
const at = _optionalChain([closing, 'optionalAccess', _197 => _197.kind]) === "identifier" ? open.lastIndexOf(closing.value) : -1;
|
|
3433
3522
|
if (at !== -1) open.length = at;
|
|
3434
3523
|
continue;
|
|
3435
3524
|
}
|
|
@@ -3472,7 +3561,7 @@ function findMatchingToken(tokens, openingIndex, opening, closing) {
|
|
|
3472
3561
|
}
|
|
3473
3562
|
function containsClientJsx(tokens, start, end, clientBindings) {
|
|
3474
3563
|
for (let index = start; index < end; index++) {
|
|
3475
|
-
if (tokens[index].value === "<" && clientBindings.has(_optionalChain([tokens, 'access',
|
|
3564
|
+
if (tokens[index].value === "<" && clientBindings.has(_optionalChain([tokens, 'access', _198 => _198[index + 1], 'optionalAccess', _199 => _199.value]))) return true;
|
|
3476
3565
|
}
|
|
3477
3566
|
return false;
|
|
3478
3567
|
}
|
|
@@ -3510,7 +3599,7 @@ function getClientRenderingHelpers(tokens, clientBindings) {
|
|
|
3510
3599
|
let helperName;
|
|
3511
3600
|
let bodyStart = -1;
|
|
3512
3601
|
let bodyEnd = -1;
|
|
3513
|
-
if (tokens[index].value === "function" && _optionalChain([tokens, 'access',
|
|
3602
|
+
if (tokens[index].value === "function" && _optionalChain([tokens, 'access', _200 => _200[index + 1], 'optionalAccess', _201 => _201.kind]) === "identifier") {
|
|
3514
3603
|
helperName = tokens[index + 1].value;
|
|
3515
3604
|
const parametersStart = tokens.findIndex(
|
|
3516
3605
|
(token, tokenIndex) => tokenIndex > index + 1 && token.value === "("
|
|
@@ -3520,21 +3609,21 @@ function getClientRenderingHelpers(tokens, clientBindings) {
|
|
|
3520
3609
|
(token, tokenIndex) => tokenIndex > parametersEnd && token.value === "{"
|
|
3521
3610
|
);
|
|
3522
3611
|
if (bodyStart !== -1) bodyEnd = findMatchingToken(tokens, bodyStart, "{", "}");
|
|
3523
|
-
} else if ((tokens[index].value === "const" || tokens[index].value === "let" || tokens[index].value === "var") && _optionalChain([tokens, 'access',
|
|
3612
|
+
} else if ((tokens[index].value === "const" || tokens[index].value === "let" || tokens[index].value === "var") && _optionalChain([tokens, 'access', _202 => _202[index + 1], 'optionalAccess', _203 => _203.kind]) === "identifier") {
|
|
3524
3613
|
helperName = tokens[index + 1].value;
|
|
3525
3614
|
let assignmentIndex = -1;
|
|
3526
3615
|
let arrowIndex = -1;
|
|
3527
3616
|
for (let cursor = index + 2; cursor < tokens.length; cursor++) {
|
|
3528
3617
|
if (tokens[cursor].value === ";") break;
|
|
3529
3618
|
if (assignmentIndex === -1 && tokens[cursor].value === "=") assignmentIndex = cursor;
|
|
3530
|
-
if (tokens[cursor].value === "=" && _optionalChain([tokens, 'access',
|
|
3619
|
+
if (tokens[cursor].value === "=" && _optionalChain([tokens, 'access', _204 => _204[cursor + 1], 'optionalAccess', _205 => _205.value]) === ">") {
|
|
3531
3620
|
arrowIndex = cursor;
|
|
3532
3621
|
break;
|
|
3533
3622
|
}
|
|
3534
3623
|
}
|
|
3535
3624
|
if (arrowIndex !== -1) {
|
|
3536
3625
|
bodyStart = arrowIndex + 2;
|
|
3537
|
-
bodyEnd = _optionalChain([tokens, 'access',
|
|
3626
|
+
bodyEnd = _optionalChain([tokens, 'access', _206 => _206[bodyStart], 'optionalAccess', _207 => _207.value]) === "{" ? findMatchingToken(tokens, bodyStart, "{", "}") : findStatementEnd(tokens, bodyStart);
|
|
3538
3627
|
} else if (assignmentIndex !== -1) {
|
|
3539
3628
|
bodyStart = assignmentIndex + 1;
|
|
3540
3629
|
bodyEnd = findStatementEnd(tokens, bodyStart);
|
|
@@ -3574,14 +3663,14 @@ function passesElementValuedProps(content, localBindings) {
|
|
|
3574
3663
|
else if (value === "}") braceDepth--;
|
|
3575
3664
|
else if (value === "<" && braceDepth > 0) return true;
|
|
3576
3665
|
else if (value === ">" && braceDepth === 0) {
|
|
3577
|
-
selfClosing = _optionalChain([tokens, 'access',
|
|
3666
|
+
selfClosing = _optionalChain([tokens, 'access', _208 => _208[cursor - 1], 'optionalAccess', _209 => _209.value]) === "/";
|
|
3578
3667
|
break;
|
|
3579
3668
|
}
|
|
3580
3669
|
}
|
|
3581
3670
|
if (selfClosing || cursor >= tokens.length) continue;
|
|
3582
3671
|
for (let child = cursor + 1; child < tokens.length; child++) {
|
|
3583
3672
|
if (tokens[child].value !== "<") continue;
|
|
3584
|
-
const closesBoundary = _optionalChain([tokens, 'access',
|
|
3673
|
+
const closesBoundary = _optionalChain([tokens, 'access', _210 => _210[child + 1], 'optionalAccess', _211 => _211.value]) === "/" && _optionalChain([tokens, 'access', _212 => _212[child + 2], 'optionalAccess', _213 => _213.value]) === name;
|
|
3585
3674
|
if (!closesBoundary) return true;
|
|
3586
3675
|
break;
|
|
3587
3676
|
}
|
|
@@ -3603,7 +3692,7 @@ function rendersOnlyLeafElements(content, localBindings) {
|
|
|
3603
3692
|
else if (value === "<" && braceDepth > 0) return false;
|
|
3604
3693
|
else if (value === ">" && braceDepth === 0) break;
|
|
3605
3694
|
}
|
|
3606
|
-
if (cursor >= tokens.length || _optionalChain([tokens, 'access',
|
|
3695
|
+
if (cursor >= tokens.length || _optionalChain([tokens, 'access', _214 => _214[cursor - 1], 'optionalAccess', _215 => _215.value]) !== "/") return false;
|
|
3607
3696
|
}
|
|
3608
3697
|
return true;
|
|
3609
3698
|
}
|
|
@@ -3615,9 +3704,9 @@ function hasDynamicJsxCardinality(content, localBindings) {
|
|
|
3615
3704
|
const containsDynamicRenderer = (start, end) => containsClientJsx(tokens, start, end, clientBindings) || tokens.slice(start, end).some((token) => renderingHelpers.has(token.value));
|
|
3616
3705
|
for (let index = 0; index < tokens.length; index++) {
|
|
3617
3706
|
let callStart = -1;
|
|
3618
|
-
if (tokens[index].value === "." && (_optionalChain([tokens, 'access',
|
|
3707
|
+
if (tokens[index].value === "." && (_optionalChain([tokens, 'access', _216 => _216[index + 1], 'optionalAccess', _217 => _217.value]) === "map" || _optionalChain([tokens, 'access', _218 => _218[index + 1], 'optionalAccess', _219 => _219.value]) === "flatMap") && _optionalChain([tokens, 'access', _220 => _220[index + 2], 'optionalAccess', _221 => _221.value]) === "(") {
|
|
3619
3708
|
callStart = index + 2;
|
|
3620
|
-
} else if (tokens[index].value === "Array" && _optionalChain([tokens, 'access',
|
|
3709
|
+
} else if (tokens[index].value === "Array" && _optionalChain([tokens, 'access', _222 => _222[index + 1], 'optionalAccess', _223 => _223.value]) === "." && _optionalChain([tokens, 'access', _224 => _224[index + 2], 'optionalAccess', _225 => _225.value]) === "from" && _optionalChain([tokens, 'access', _226 => _226[index + 3], 'optionalAccess', _227 => _227.value]) === "(") {
|
|
3621
3710
|
callStart = index + 3;
|
|
3622
3711
|
}
|
|
3623
3712
|
if (callStart !== -1) {
|
|
@@ -3626,10 +3715,10 @@ function hasDynamicJsxCardinality(content, localBindings) {
|
|
|
3626
3715
|
index = callEnd;
|
|
3627
3716
|
continue;
|
|
3628
3717
|
}
|
|
3629
|
-
if ((tokens[index].value === "for" || tokens[index].value === "while") && _optionalChain([tokens, 'access',
|
|
3718
|
+
if ((tokens[index].value === "for" || tokens[index].value === "while") && _optionalChain([tokens, 'access', _228 => _228[index + 1], 'optionalAccess', _229 => _229.value]) === "(") {
|
|
3630
3719
|
const conditionEnd = findMatchingToken(tokens, index + 1, "(", ")");
|
|
3631
3720
|
const bodyStart = conditionEnd + 1;
|
|
3632
|
-
const bodyEnd = _optionalChain([tokens, 'access',
|
|
3721
|
+
const bodyEnd = _optionalChain([tokens, 'access', _230 => _230[bodyStart], 'optionalAccess', _231 => _231.value]) === "{" ? findMatchingToken(tokens, bodyStart, "{", "}") : tokens.findIndex((token, tokenIndex) => tokenIndex > bodyStart && token.value === ";");
|
|
3633
3722
|
if (containsDynamicRenderer(bodyStart, bodyEnd === -1 ? tokens.length : bodyEnd)) return true;
|
|
3634
3723
|
}
|
|
3635
3724
|
}
|
|
@@ -3748,7 +3837,7 @@ function collectIsolatedClientBoundaries(ownerPath, root, options = {}) {
|
|
|
3748
3837
|
const localBindings = _nullishCoalesce(importedBindings.get(specifier), () => ( []));
|
|
3749
3838
|
const staticUses = countStaticJsxUses(content, localBindings);
|
|
3750
3839
|
if (staticUses > 0) {
|
|
3751
|
-
const grows = options.packageReferences === true && projectRoot !== void 0 && (_nullishCoalesce(_optionalChain([findFarmIslandContainers, 'call',
|
|
3840
|
+
const grows = options.packageReferences === true && projectRoot !== void 0 && (_nullishCoalesce(_optionalChain([findFarmIslandContainers, 'call', _232 => _232(_nullishCoalesce(content, () => ( "")), moduleSourcePath, localBindings), 'optionalAccess', _233 => _233.length]), () => ( 0))) > 0;
|
|
3752
3841
|
if (grows) visit(ensureFarmIslandContainerReference(projectRoot));
|
|
3753
3842
|
const container = grows ? void 0 : findParserSensitiveJsxContainer(content, localBindings);
|
|
3754
3843
|
if (container) {
|
|
@@ -3848,7 +3937,7 @@ function realpathOrSelf(file) {
|
|
|
3848
3937
|
() => {
|
|
3849
3938
|
try {
|
|
3850
3939
|
return _fs2.default.realpathSync(file);
|
|
3851
|
-
} catch (
|
|
3940
|
+
} catch (e44) {
|
|
3852
3941
|
return null;
|
|
3853
3942
|
}
|
|
3854
3943
|
},
|
|
@@ -3879,7 +3968,7 @@ function getBarePackageReexports(content) {
|
|
|
3879
3968
|
function inspectPackageClientBoundary(importedPath, root, visited) {
|
|
3880
3969
|
const resolvedPath = importedPath && installedRealPath(importedPath);
|
|
3881
3970
|
const cache2 = getPackageClientBoundaryCache();
|
|
3882
|
-
if (!cache2 || !resolvedPath || _optionalChain([visited, 'optionalAccess',
|
|
3971
|
+
if (!cache2 || !resolvedPath || _optionalChain([visited, 'optionalAccess', _234 => _234.has, 'call', _235 => _235(resolvedPath)])) {
|
|
3883
3972
|
return traversePackageClientBoundary(resolvedPath, root, _nullishCoalesce(visited, () => ( /* @__PURE__ */ new Set())));
|
|
3884
3973
|
}
|
|
3885
3974
|
const key = `${_nullishCoalesce(root, () => ( ""))}\0${resolvedPath}`;
|
|
@@ -3896,7 +3985,7 @@ function inspectPackageClientBoundary(importedPath, root, visited) {
|
|
|
3896
3985
|
}
|
|
3897
3986
|
function traversePackageClientBoundary(resolvedPath, root, visited, trace2) {
|
|
3898
3987
|
if (!resolvedPath || visited.has(resolvedPath)) {
|
|
3899
|
-
if (resolvedPath) _optionalChain([trace2, 'optionalAccess',
|
|
3988
|
+
if (resolvedPath) _optionalChain([trace2, 'optionalAccess', _236 => _236.stop, 'call', _237 => _237(resolvedPath)]);
|
|
3900
3989
|
return {
|
|
3901
3990
|
isClientComponent: false,
|
|
3902
3991
|
shouldHydrate: false,
|
|
@@ -3904,7 +3993,7 @@ function traversePackageClientBoundary(resolvedPath, root, visited, trace2) {
|
|
|
3904
3993
|
};
|
|
3905
3994
|
}
|
|
3906
3995
|
visited.add(resolvedPath);
|
|
3907
|
-
_optionalChain([trace2, 'optionalAccess',
|
|
3996
|
+
_optionalChain([trace2, 'optionalAccess', _238 => _238.visit, 'call', _239 => _239(resolvedPath)]);
|
|
3908
3997
|
const content = readIfExists(resolvedPath);
|
|
3909
3998
|
const parsed = parseImportedModuleMetadata(content);
|
|
3910
3999
|
let importsClientBoundary = false;
|
|
@@ -3962,7 +4051,7 @@ function scanImportSpecifiers(content, { reexportsOnly = false, dynamic = false
|
|
|
3962
4051
|
braceDepth = Math.max(0, braceDepth - 1);
|
|
3963
4052
|
continue;
|
|
3964
4053
|
}
|
|
3965
|
-
if (dynamic && keyword.kind === "identifier" && keyword.value === "import" && _optionalChain([tokens, 'access',
|
|
4054
|
+
if (dynamic && keyword.kind === "identifier" && keyword.value === "import" && _optionalChain([tokens, 'access', _240 => _240[index - 1], 'optionalAccess', _241 => _241.value]) !== "." && _optionalChain([tokens, 'access', _242 => _242[index + 1], 'optionalAccess', _243 => _243.value]) === "(" && _optionalChain([tokens, 'access', _244 => _244[index + 2], 'optionalAccess', _245 => _245.kind]) === "string") {
|
|
3966
4055
|
matches.add(tokens[index + 2].value);
|
|
3967
4056
|
continue;
|
|
3968
4057
|
}
|
|
@@ -3972,7 +4061,7 @@ function scanImportSpecifiers(content, { reexportsOnly = false, dynamic = false
|
|
|
3972
4061
|
}
|
|
3973
4062
|
if (reexportsOnly && keyword.value !== "export") continue;
|
|
3974
4063
|
const previous = tokens[index - 1];
|
|
3975
|
-
if (_optionalChain([previous, 'optionalAccess',
|
|
4064
|
+
if (_optionalChain([previous, 'optionalAccess', _246 => _246.value]) === ".") continue;
|
|
3976
4065
|
const first = tokens[index + 1];
|
|
3977
4066
|
if (!first || first.value === "type" || first.value === "(" || first.value === ".") {
|
|
3978
4067
|
continue;
|
|
@@ -3988,7 +4077,7 @@ function scanImportSpecifiers(content, { reexportsOnly = false, dynamic = false
|
|
|
3988
4077
|
for (let cursor = index + 1; cursor < tokens.length; cursor++) {
|
|
3989
4078
|
const token = tokens[cursor];
|
|
3990
4079
|
if (token.value === ";") break;
|
|
3991
|
-
if (token.value === "from" && _optionalChain([tokens, 'access',
|
|
4080
|
+
if (token.value === "from" && _optionalChain([tokens, 'access', _247 => _247[cursor + 1], 'optionalAccess', _248 => _248.kind]) === "string") {
|
|
3992
4081
|
fromIndex = cursor;
|
|
3993
4082
|
break;
|
|
3994
4083
|
}
|
|
@@ -4006,7 +4095,7 @@ function scanImportSpecifiers(content, { reexportsOnly = false, dynamic = false
|
|
|
4006
4095
|
return Array.from(matches);
|
|
4007
4096
|
}
|
|
4008
4097
|
function isTypeOnlyNamedClause(tokens, startIndex, endIndex) {
|
|
4009
|
-
if (_optionalChain([tokens, 'access',
|
|
4098
|
+
if (_optionalChain([tokens, 'access', _249 => _249[startIndex], 'optionalAccess', _250 => _250.value]) !== "{") return false;
|
|
4010
4099
|
let closingBraceIndex = -1;
|
|
4011
4100
|
for (let index = startIndex + 1; index < endIndex; index++) {
|
|
4012
4101
|
if (tokens[index].value !== "}") continue;
|
|
@@ -4016,7 +4105,7 @@ function isTypeOnlyNamedClause(tokens, startIndex, endIndex) {
|
|
|
4016
4105
|
if (closingBraceIndex === -1) return false;
|
|
4017
4106
|
let entryStartsAt = startIndex + 1;
|
|
4018
4107
|
for (let index = entryStartsAt; index <= closingBraceIndex; index++) {
|
|
4019
|
-
if (index !== closingBraceIndex && _optionalChain([tokens, 'access',
|
|
4108
|
+
if (index !== closingBraceIndex && _optionalChain([tokens, 'access', _251 => _251[index], 'optionalAccess', _252 => _252.value]) !== ",") continue;
|
|
4020
4109
|
const entry = tokens.slice(entryStartsAt, index);
|
|
4021
4110
|
if (entry.length > 0 && entry[0].value !== "type") return false;
|
|
4022
4111
|
entryStartsAt = index + 1;
|
|
@@ -4056,7 +4145,7 @@ function warnUnresolvedAliasImport(importerPath, specifier, root) {
|
|
|
4056
4145
|
if (!ALIAS_IMPORT.test(specifier) || warnedUnresolvedAliasImports.has(specifier)) return;
|
|
4057
4146
|
warnedUnresolvedAliasImports.add(specifier);
|
|
4058
4147
|
const importer = root ? _path2.default.relative(root, importerPath) : importerPath;
|
|
4059
|
-
|
|
4148
|
+
_chunk7ZDLE77Pcjs.logger.warn(
|
|
4060
4149
|
`Could not resolve "${specifier}" (imported by ${importer}) while checking which pages need client JavaScript. If it holds client components, they will not hydrate. Map the alias in tsconfig.json "paths" or package.json "imports".`
|
|
4061
4150
|
);
|
|
4062
4151
|
}
|
|
@@ -4087,17 +4176,25 @@ function matchProjectImportAlias(alias, specifier) {
|
|
|
4087
4176
|
return specifier.slice(alias.prefix.length, specifier.length - alias.suffix.length);
|
|
4088
4177
|
}
|
|
4089
4178
|
function getProjectImportAliases(projectRoot) {
|
|
4090
|
-
|
|
4179
|
+
return memoizeInFarmSourceSnapshot(
|
|
4180
|
+
"project-aliases",
|
|
4181
|
+
farmSourceSnapshotPathKey(projectRoot),
|
|
4182
|
+
() => readProjectImportAliases(projectRoot),
|
|
4183
|
+
() => false
|
|
4184
|
+
);
|
|
4185
|
+
}
|
|
4186
|
+
function readProjectImportAliases(projectRoot) {
|
|
4187
|
+
const sourceDir = _chunkBNWADCG2cjs.getFarmProjectSourceDir.call(void 0, projectRoot);
|
|
4091
4188
|
const cached = projectImportAliasCache.get(projectRoot);
|
|
4092
4189
|
const dependencies = new Set(
|
|
4093
|
-
_nullishCoalesce(_optionalChain([cached, 'optionalAccess',
|
|
4190
|
+
_nullishCoalesce(_optionalChain([cached, 'optionalAccess', _253 => _253.stamps, 'access', _254 => _254.keys, 'call', _255 => _255()]), () => ( PROJECT_ALIAS_FILES.map((file) => _path2.default.join(projectRoot, file))))
|
|
4094
4191
|
);
|
|
4095
4192
|
const stamps = /* @__PURE__ */ new Map();
|
|
4096
4193
|
for (const file of dependencies) {
|
|
4097
4194
|
noteFarmSourceRead(file);
|
|
4098
4195
|
stamps.set(file, getFarmSourceStamp(file));
|
|
4099
4196
|
}
|
|
4100
|
-
if (_optionalChain([cached, 'optionalAccess',
|
|
4197
|
+
if (_optionalChain([cached, 'optionalAccess', _256 => _256.sourceDir]) === sourceDir && [...stamps].every(([file, stamp]) => cached.stamps.get(file) === stamp))
|
|
4101
4198
|
return cached.aliases;
|
|
4102
4199
|
dependencies.clear();
|
|
4103
4200
|
for (const file of PROJECT_ALIAS_FILES) dependencies.add(_path2.default.join(projectRoot, file));
|
|
@@ -4126,7 +4223,7 @@ function readTsconfigPathAliases(projectRoot, dependencies) {
|
|
|
4126
4223
|
const configPath = _path2.default.join(projectRoot, name);
|
|
4127
4224
|
if (!_fs2.default.existsSync(configPath)) continue;
|
|
4128
4225
|
const resolved = readTsconfigPaths(configPath, /* @__PURE__ */ new Set(), dependencies);
|
|
4129
|
-
if (!_optionalChain([resolved, 'optionalAccess',
|
|
4226
|
+
if (!_optionalChain([resolved, 'optionalAccess', _257 => _257.paths])) return [];
|
|
4130
4227
|
const base2 = _nullishCoalesce(resolved.baseUrl, () => ( resolved.pathsDirectory));
|
|
4131
4228
|
return Object.entries(resolved.paths).flatMap(([pattern, targets]) => {
|
|
4132
4229
|
if (!Array.isArray(targets)) return [];
|
|
@@ -4162,18 +4259,18 @@ function readTsconfigPaths(configPath, visited, dependencies) {
|
|
|
4162
4259
|
inherited = _nullishCoalesce(readTsconfigPaths(parentPath, visited, dependencies), () => ( inherited));
|
|
4163
4260
|
}
|
|
4164
4261
|
const options = _nullishCoalesce(config.compilerOptions, () => ( {}));
|
|
4165
|
-
const baseUrl = typeof options.baseUrl === "string" ? _path2.default.resolve(directory, options.baseUrl) : _optionalChain([inherited, 'optionalAccess',
|
|
4262
|
+
const baseUrl = typeof options.baseUrl === "string" ? _path2.default.resolve(directory, options.baseUrl) : _optionalChain([inherited, 'optionalAccess', _258 => _258.baseUrl]);
|
|
4166
4263
|
if (options.paths && typeof options.paths === "object") {
|
|
4167
4264
|
return { paths: options.paths, pathsDirectory: directory, baseUrl };
|
|
4168
4265
|
}
|
|
4169
4266
|
return inherited ? { ...inherited, baseUrl } : { pathsDirectory: directory, baseUrl };
|
|
4170
4267
|
}
|
|
4171
4268
|
function readPackageImportAliases(projectRoot) {
|
|
4172
|
-
const imports = _optionalChain([
|
|
4269
|
+
const imports = _optionalChain([readFarmPackageManifest, 'call', _259 => _259(_path2.default.join(projectRoot, "package.json")), 'optionalAccess', _260 => _260.imports]);
|
|
4173
4270
|
if (!imports || typeof imports !== "object") return [];
|
|
4174
4271
|
return Object.entries(imports).flatMap(([pattern, value]) => {
|
|
4175
4272
|
const target = resolveConditionalExportTarget(value);
|
|
4176
|
-
if (!pattern.startsWith("#") || !_optionalChain([target, 'optionalAccess',
|
|
4273
|
+
if (!pattern.startsWith("#") || !_optionalChain([target, 'optionalAccess', _261 => _261.startsWith, 'call', _262 => _262("./")])) return [];
|
|
4177
4274
|
const wildcardIndex = pattern.indexOf("*");
|
|
4178
4275
|
return [
|
|
4179
4276
|
{
|
|
@@ -4189,7 +4286,7 @@ function readJsonWithComments(filePath) {
|
|
|
4189
4286
|
let source;
|
|
4190
4287
|
try {
|
|
4191
4288
|
source = _fs2.default.readFileSync(filePath, "utf8");
|
|
4192
|
-
} catch (
|
|
4289
|
+
} catch (e45) {
|
|
4193
4290
|
return null;
|
|
4194
4291
|
}
|
|
4195
4292
|
let output = "";
|
|
@@ -4217,7 +4314,7 @@ function readJsonWithComments(filePath) {
|
|
|
4217
4314
|
}
|
|
4218
4315
|
try {
|
|
4219
4316
|
return JSON.parse(output.replace(/,(\s*[}\]])/g, "$1"));
|
|
4220
|
-
} catch (
|
|
4317
|
+
} catch (e46) {
|
|
4221
4318
|
return null;
|
|
4222
4319
|
}
|
|
4223
4320
|
}
|
|
@@ -4237,17 +4334,17 @@ function resolvePackageModuleSourcePath(importerPath, specifier, root) {
|
|
|
4237
4334
|
const packageDirectory = findPackageDirectory2(importerPath, packageName, root);
|
|
4238
4335
|
if (!packageDirectory) return null;
|
|
4239
4336
|
const packageJsonPath = _path2.default.join(packageDirectory, "package.json");
|
|
4240
|
-
const packageJson =
|
|
4337
|
+
const packageJson = readFarmPackageManifest(packageJsonPath);
|
|
4241
4338
|
const exportKey = packageSubpath ? `./${packageSubpath}` : ".";
|
|
4242
|
-
const exportTarget = resolvePackageExport(_optionalChain([packageJson, 'optionalAccess',
|
|
4339
|
+
const exportTarget = resolvePackageExport(_optionalChain([packageJson, 'optionalAccess', _263 => _263.exports]), exportKey);
|
|
4243
4340
|
const candidates = /* @__PURE__ */ new Set();
|
|
4244
|
-
if (_optionalChain([exportTarget, 'optionalAccess',
|
|
4341
|
+
if (_optionalChain([exportTarget, 'optionalAccess', _264 => _264.startsWith, 'call', _265 => _265("./")])) {
|
|
4245
4342
|
candidates.add(_path2.default.resolve(packageDirectory, exportTarget));
|
|
4246
4343
|
}
|
|
4247
4344
|
if (packageSubpath) {
|
|
4248
4345
|
candidates.add(_path2.default.join(packageDirectory, packageSubpath));
|
|
4249
4346
|
} else {
|
|
4250
|
-
for (const entry of [_optionalChain([packageJson, 'optionalAccess',
|
|
4347
|
+
for (const entry of [_optionalChain([packageJson, 'optionalAccess', _266 => _266.browser]), _optionalChain([packageJson, 'optionalAccess', _267 => _267.module]), _optionalChain([packageJson, 'optionalAccess', _268 => _268.main])]) {
|
|
4251
4348
|
if (typeof entry === "string") candidates.add(_path2.default.resolve(packageDirectory, entry));
|
|
4252
4349
|
}
|
|
4253
4350
|
candidates.add(_path2.default.join(packageDirectory, "index"));
|
|
@@ -4273,6 +4370,7 @@ function findPackageDirectory2(importerPath, packageName, root) {
|
|
|
4273
4370
|
}
|
|
4274
4371
|
}
|
|
4275
4372
|
for (const searchRoot of searchRoots) {
|
|
4373
|
+
if (!hasFarmNodeModulesDirectory(searchRoot)) continue;
|
|
4276
4374
|
const packageDirectory = _path2.default.join(searchRoot, "node_modules", packageName);
|
|
4277
4375
|
if (_fs2.default.existsSync(_path2.default.join(packageDirectory, "package.json"))) {
|
|
4278
4376
|
return packageDirectory;
|
|
@@ -4280,13 +4378,6 @@ function findPackageDirectory2(importerPath, packageName, root) {
|
|
|
4280
4378
|
}
|
|
4281
4379
|
return null;
|
|
4282
4380
|
}
|
|
4283
|
-
function readPackageJson(packageJsonPath) {
|
|
4284
|
-
try {
|
|
4285
|
-
return JSON.parse(_fs2.default.readFileSync(packageJsonPath, "utf8"));
|
|
4286
|
-
} catch (e45) {
|
|
4287
|
-
return null;
|
|
4288
|
-
}
|
|
4289
|
-
}
|
|
4290
4381
|
function resolvePackageExport(exportsField, exportKey) {
|
|
4291
4382
|
if (typeof exportsField === "string") {
|
|
4292
4383
|
return exportKey === "." ? exportsField : null;
|
|
@@ -4312,7 +4403,7 @@ function resolvePackageExport(exportsField, exportKey) {
|
|
|
4312
4403
|
if (!exportKey.startsWith(prefix) || !exportKey.endsWith(suffix)) continue;
|
|
4313
4404
|
const wildcard = exportKey.slice(prefix.length, exportKey.length - suffix.length);
|
|
4314
4405
|
const target = resolveConditionalExportTarget(value);
|
|
4315
|
-
return _nullishCoalesce(_optionalChain([target, 'optionalAccess',
|
|
4406
|
+
return _nullishCoalesce(_optionalChain([target, 'optionalAccess', _269 => _269.replace, 'call', _270 => _270("*", wildcard)]), () => ( null));
|
|
4316
4407
|
}
|
|
4317
4408
|
return null;
|
|
4318
4409
|
}
|
|
@@ -4355,8 +4446,8 @@ function resolveSourceCandidatePath(candidate) {
|
|
|
4355
4446
|
}
|
|
4356
4447
|
for (const sourcePath of paths) {
|
|
4357
4448
|
try {
|
|
4358
|
-
if (_optionalChain([_fs2.default, 'access',
|
|
4359
|
-
} catch (
|
|
4449
|
+
if (_optionalChain([_fs2.default, 'access', _271 => _271.statSync, 'call', _272 => _272(sourcePath, { throwIfNoEntry: false }), 'optionalAccess', _273 => _273.isFile, 'call', _274 => _274()])) return sourcePath;
|
|
4450
|
+
} catch (e47) {
|
|
4360
4451
|
}
|
|
4361
4452
|
}
|
|
4362
4453
|
return null;
|
|
@@ -4398,7 +4489,7 @@ function scanFarmPackageImports(directory, root) {
|
|
|
4398
4489
|
let entries;
|
|
4399
4490
|
try {
|
|
4400
4491
|
entries = _fs2.default.readdirSync(current, { withFileTypes: true });
|
|
4401
|
-
} catch (
|
|
4492
|
+
} catch (e48) {
|
|
4402
4493
|
return;
|
|
4403
4494
|
}
|
|
4404
4495
|
for (const entry of entries) {
|
|
@@ -4431,7 +4522,7 @@ function collectFarmServerBundledPackageInfo(directory) {
|
|
|
4431
4522
|
let entries;
|
|
4432
4523
|
try {
|
|
4433
4524
|
entries = _fs2.default.readdirSync(current, { withFileTypes: true });
|
|
4434
|
-
} catch (
|
|
4525
|
+
} catch (e49) {
|
|
4435
4526
|
return;
|
|
4436
4527
|
}
|
|
4437
4528
|
for (const entry of entries) {
|
|
@@ -4496,7 +4587,7 @@ function getFarmClientReachableModules(directory, root) {
|
|
|
4496
4587
|
let entries;
|
|
4497
4588
|
try {
|
|
4498
4589
|
entries = _fs2.default.readdirSync(current, { withFileTypes: true });
|
|
4499
|
-
} catch (
|
|
4590
|
+
} catch (e50) {
|
|
4500
4591
|
return;
|
|
4501
4592
|
}
|
|
4502
4593
|
for (const entry of entries) {
|
|
@@ -4536,7 +4627,7 @@ function resolveFarmClientOptimizeDeps(directory, root) {
|
|
|
4536
4627
|
const imports = scanFarmPackageImports(directory, root);
|
|
4537
4628
|
for (const specifier of imports.client) {
|
|
4538
4629
|
const fonts = findFarmServerBundledPackage(importer, specifier);
|
|
4539
|
-
if (_optionalChain([fonts, 'optionalAccess',
|
|
4630
|
+
if (_optionalChain([fonts, 'optionalAccess', _275 => _275.fonts])) {
|
|
4540
4631
|
exclude.add(fonts.name);
|
|
4541
4632
|
continue;
|
|
4542
4633
|
}
|
|
@@ -4605,20 +4696,20 @@ function transformEnvironmentFunctions(options) {
|
|
|
4605
4696
|
function farmEnvironmentFunctionsPlugin(options = {}) {
|
|
4606
4697
|
let routesFiles = /* @__PURE__ */ new Set();
|
|
4607
4698
|
const componentExtensions = new Set(
|
|
4608
|
-
|
|
4699
|
+
_chunkHP7QYVSTcjs.getFarmRendererComponentExtensions.call(void 0, options.renderer || void 0)
|
|
4609
4700
|
);
|
|
4610
4701
|
let farmApi;
|
|
4611
4702
|
let isBuild = false;
|
|
4612
4703
|
let projectRoot = process.cwd();
|
|
4613
4704
|
let sources;
|
|
4614
4705
|
const routeSourceFiles = () => {
|
|
4615
|
-
const clientRoutes = _optionalChain([farmApi, 'optionalAccess',
|
|
4616
|
-
if (_optionalChain([sources, 'optionalAccess',
|
|
4706
|
+
const clientRoutes = _optionalChain([farmApi, 'optionalAccess', _276 => _276.getProgrammaticClientRoutes, 'call', _277 => _277()]);
|
|
4707
|
+
if (_optionalChain([sources, 'optionalAccess', _278 => _278.for]) !== clientRoutes || !sources) {
|
|
4617
4708
|
sources = {
|
|
4618
4709
|
for: clientRoutes,
|
|
4619
4710
|
files: /* @__PURE__ */ new Set([
|
|
4620
4711
|
...routesFiles,
|
|
4621
|
-
...[..._nullishCoalesce(_optionalChain([clientRoutes, 'optionalAccess',
|
|
4712
|
+
...[..._nullishCoalesce(_optionalChain([clientRoutes, 'optionalAccess', _279 => _279.routeSourceFiles]), () => ( []))].map(resolvedFile)
|
|
4622
4713
|
])
|
|
4623
4714
|
};
|
|
4624
4715
|
}
|
|
@@ -4639,11 +4730,11 @@ function farmEnvironmentFunctionsPlugin(options = {}) {
|
|
|
4639
4730
|
configResolved(config) {
|
|
4640
4731
|
isBuild = config.command === "build";
|
|
4641
4732
|
projectRoot = config.root;
|
|
4642
|
-
farmApi = _optionalChain([config, 'access',
|
|
4733
|
+
farmApi = _optionalChain([config, 'access', _280 => _280.plugins, 'access', _281 => _281.find, 'call', _282 => _282((plugin) => plugin.name === "farm"), 'optionalAccess', _283 => _283.api]);
|
|
4643
4734
|
sources = void 0;
|
|
4644
4735
|
routesFiles = new Set(
|
|
4645
|
-
|
|
4646
|
-
(source) =>
|
|
4736
|
+
_chunkKBURN62Zcjs.getFarmSourceRoots.call(void 0, { ...options, root: _nullishCoalesce(options.root, () => ( config.root)) }).flatMap(
|
|
4737
|
+
(source) => _chunkPYPHM7AScjs.PROGRAMMATIC_ROUTE_FILE_NAMES.map(
|
|
4647
4738
|
(name) => resolvedFile(_path2.default.resolve(source.root, source.srcDir, name))
|
|
4648
4739
|
)
|
|
4649
4740
|
)
|
|
@@ -4652,7 +4743,7 @@ function farmEnvironmentFunctionsPlugin(options = {}) {
|
|
|
4652
4743
|
transform(code, id, transformOptions) {
|
|
4653
4744
|
const environment = resolveBuildEnvironment(
|
|
4654
4745
|
this,
|
|
4655
|
-
_optionalChain([transformOptions, 'optionalAccess',
|
|
4746
|
+
_optionalChain([transformOptions, 'optionalAccess', _284 => _284.ssr])
|
|
4656
4747
|
);
|
|
4657
4748
|
const parse3 = (source) => this.parse(source);
|
|
4658
4749
|
const result = transformEnvironmentFunctions({
|
|
@@ -4662,10 +4753,10 @@ function farmEnvironmentFunctionsPlugin(options = {}) {
|
|
|
4662
4753
|
parse: parse3,
|
|
4663
4754
|
componentExtensions
|
|
4664
4755
|
});
|
|
4665
|
-
if (environment === "client" && !isBuild && !
|
|
4756
|
+
if (environment === "client" && !isBuild && !_chunkPYPHM7AScjs.parseProgrammaticRouteModuleId.call(void 0, id) && routeSourceFiles().has(moduleFile(id)) && !isProgrammaticRouteActionProxy(code)) {
|
|
4666
4757
|
this.error(routeSourceError(moduleFile(id)));
|
|
4667
4758
|
}
|
|
4668
|
-
if (environment === "server" &&
|
|
4759
|
+
if (environment === "server" && _chunkHP7QYVSTcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([options, 'access', _285 => _285.experimental, 'optionalAccess', _286 => _286.serverComponents])) === "islands" && isApplicationScript(id)) {
|
|
4669
4760
|
const file = id.split("?", 1)[0];
|
|
4670
4761
|
const root = _fs.realpathSync.call(void 0, _nullishCoalesce(options.root, () => ( projectRoot)));
|
|
4671
4762
|
const clientCode = getFarmClientReachableModules(root, root).has(_path2.default.resolve(file)) || _fs.existsSync.call(void 0, file) && hasUseClientDirective(_fs.readFileSync.call(void 0, file, "utf8"));
|
|
@@ -4697,9 +4788,9 @@ function farmEnvironmentFunctionsPlugin(options = {}) {
|
|
|
4697
4788
|
if (resolveBuildEnvironment(context, false) !== "client") return;
|
|
4698
4789
|
const forbidden = routeSourceFiles();
|
|
4699
4790
|
for (const id of this.getModuleIds()) {
|
|
4700
|
-
if (
|
|
4791
|
+
if (_chunkPYPHM7AScjs.parseProgrammaticRouteModuleId.call(void 0, id)) {
|
|
4701
4792
|
const chain = findClientNodeBuiltinChain(id, (moduleId) => {
|
|
4702
|
-
return _optionalChain([this, 'access',
|
|
4793
|
+
return _optionalChain([this, 'access', _287 => _287.getModuleInfo, 'call', _288 => _288(moduleId), 'optionalAccess', _289 => _289.importedIds]);
|
|
4703
4794
|
});
|
|
4704
4795
|
if (chain) {
|
|
4705
4796
|
this.error(
|
|
@@ -4717,8 +4808,8 @@ function farmEnvironmentFunctionsPlugin(options = {}) {
|
|
|
4717
4808
|
}
|
|
4718
4809
|
if (!forbidden.has(moduleFile(id))) continue;
|
|
4719
4810
|
const info = this.getModuleInfo(id);
|
|
4720
|
-
if (isProgrammaticRouteActionProxy(_optionalChain([info, 'optionalAccess',
|
|
4721
|
-
this.error(routeSourceError(moduleFile(id), _optionalChain([info, 'optionalAccess',
|
|
4811
|
+
if (isProgrammaticRouteActionProxy(_optionalChain([info, 'optionalAccess', _290 => _290.code]))) continue;
|
|
4812
|
+
this.error(routeSourceError(moduleFile(id), _optionalChain([info, 'optionalAccess', _291 => _291.importers, 'access', _292 => _292.map, 'call', _293 => _293(moduleFile)])));
|
|
4722
4813
|
}
|
|
4723
4814
|
}
|
|
4724
4815
|
};
|
|
@@ -4732,13 +4823,13 @@ function moduleFile(id) {
|
|
|
4732
4823
|
function resolvedFile(filePath) {
|
|
4733
4824
|
try {
|
|
4734
4825
|
return moduleFile(_fs.realpathSync.call(void 0, filePath));
|
|
4735
|
-
} catch (
|
|
4826
|
+
} catch (e51) {
|
|
4736
4827
|
return moduleFile(filePath);
|
|
4737
4828
|
}
|
|
4738
4829
|
}
|
|
4739
4830
|
function resolveBuildEnvironment(context, ssr) {
|
|
4740
|
-
if (_optionalChain([context, 'access',
|
|
4741
|
-
if (_optionalChain([context, 'access',
|
|
4831
|
+
if (_optionalChain([context, 'access', _294 => _294.environment, 'optionalAccess', _295 => _295.name]) === "client") return "client";
|
|
4832
|
+
if (_optionalChain([context, 'access', _296 => _296.environment, 'optionalAccess', _297 => _297.name]) === "rsc" || _optionalChain([context, 'access', _298 => _298.environment, 'optionalAccess', _299 => _299.name]) === "ssr") {
|
|
4742
4833
|
return "server";
|
|
4743
4834
|
}
|
|
4744
4835
|
return ssr ? "server" : "client";
|
|
@@ -5068,4 +5159,7 @@ function transformError(id, message) {
|
|
|
5068
5159
|
|
|
5069
5160
|
|
|
5070
5161
|
|
|
5071
|
-
|
|
5162
|
+
|
|
5163
|
+
|
|
5164
|
+
|
|
5165
|
+
exports.FARM_BROWSER_BUILTIN_PREFIX = FARM_BROWSER_BUILTIN_PREFIX; exports.resolveFarmBrowserBuiltin = resolveFarmBrowserBuiltin; exports.loadFarmBrowserBuiltin = loadFarmBrowserBuiltin; exports.farmBrowserBuiltinsOptimizerPlugin = farmBrowserBuiltinsOptimizerPlugin; exports.programmaticClientRouteKey = programmaticClientRouteKey; exports.resolveProgrammaticClientRoutes = resolveProgrammaticClientRoutes; exports.createEvaluatedRouteGraph = createEvaluatedRouteGraph; exports.mergeProgrammaticClientRoutes = mergeProgrammaticClientRoutes; exports.generateProgrammaticClientRouteModule = generateProgrammaticClientRouteModule; exports.getFarmSourceStamp = getFarmSourceStamp; exports.FarmSourceSnapshotStore = FarmSourceSnapshotStore; exports.withFarmSourceSnapshot = withFarmSourceSnapshot; exports.withFarmSourceSnapshotOf = withFarmSourceSnapshotOf; exports.withFarmSourceSnapshotAside = withFarmSourceSnapshotAside; exports.memoizeInFarmSourceSnapshot = memoizeInFarmSourceSnapshot; exports.noteFarmSourceRead = noteFarmSourceRead; exports.traceFarmSourceReads = traceFarmSourceReads; exports.traceFarmSourceReadGroups = traceFarmSourceReadGroups; exports.rewriteFarmReactServerClientModuleImports = rewriteFarmReactServerClientModuleImports; exports.rewriteFarmReactServerImports = rewriteFarmReactServerImports; exports.invalidateFarmClientOnlyScan = invalidateFarmClientOnlyScan; exports.farmRelativeImportFiles = farmRelativeImportFiles; exports.usePackageScanCacheFile = usePackageScanCacheFile; exports.persistPackageScanCache = persistPackageScanCache; exports.FARM_CLIENT_REFERENCE_PRAGMA = FARM_CLIENT_REFERENCE_PRAGMA; exports.FARM_CLIENT_REFERENCE_DIRECTORY = FARM_CLIENT_REFERENCE_DIRECTORY; exports.FARM_RESOLVE_FROM_PREFIX = FARM_RESOLVE_FROM_PREFIX; exports.parseFarmResolveFrom = parseFarmResolveFrom; exports.ensureFarmPackageClientReference = ensureFarmPackageClientReference; exports.ensureFarmInternalClientReference = ensureFarmInternalClientReference; exports.rewriteFarmPackageClientImports = rewriteFarmPackageClientImports; exports.FARM_ISLAND_CONTAINER_TAG = FARM_ISLAND_CONTAINER_TAG; exports.farmIslandContainerReferencePath = farmIslandContainerReferencePath; exports.ensureFarmIslandContainerReference = ensureFarmIslandContainerReference; exports.wrapFarmIslandContainers = wrapFarmIslandContainers; exports.withPackageClientBoundaryCache = withPackageClientBoundaryCache; exports.bindPackageClientBoundaryCache = bindPackageClientBoundaryCache; exports.usePackageClientBoundaryCacheFile = usePackageClientBoundaryCacheFile; exports.resolvePackageClientBoundaryCacheFile = resolvePackageClientBoundaryCacheFile; exports.runWithPackageClientBoundaryCacheFile = runWithPackageClientBoundaryCacheFile; exports.runWithLatestPackageClientBoundaryCache = runWithLatestPackageClientBoundaryCache; exports.dropLatestPackageClientBoundaryCache = dropLatestPackageClientBoundaryCache; exports.setFarmRendererHydrationScope = setFarmRendererHydrationScope; exports.resolveModuleSourcePath = resolveModuleSourcePath; exports.getFarmClientHydrationPlanOptions = getFarmClientHydrationPlanOptions; exports.describeSuppressedAsyncHydration = describeSuppressedAsyncHydration; exports.resolveFarmIsolatedClientHydrationMode = resolveFarmIsolatedClientHydrationMode; exports.hasUseClientDirective = hasUseClientDirective; exports.getIslandStrategyExport = getIslandStrategyExport; exports.stripUseClientDirective = stripUseClientDirective; exports.getFarmClientRenderingBindings = getFarmClientRenderingBindings; exports.collectFarmRenderedClientModules = collectFarmRenderedClientModules; exports.collectFarmServerStylesheets = collectFarmServerStylesheets; exports.getClientModuleMetadata = getClientModuleMetadata; exports.getClientModuleHydrationPlanKey = getClientModuleHydrationPlanKey; exports.getClientModuleHydrationPlan = getClientModuleHydrationPlan; exports.usesFarmServerTree = usesFarmServerTree; exports.createMarkdownPageHydrationPlanner = createMarkdownPageHydrationPlanner; exports.enforceFarmIsolatedHydrationRouteBudget = enforceFarmIsolatedHydrationRouteBudget; exports.isIsolatableClientBoundarySource = isIsolatableClientBoundarySource; exports.isFarmClientModulePlanUnchanged = isFarmClientModulePlanUnchanged; exports.isFarmServerModulePlanUnchanged = isFarmServerModulePlanUnchanged; exports.getInstalledPackageDirectory = getInstalledPackageDirectory; exports.resolveImportedModule = resolveImportedModule; exports.isFarmPackageClientBoundary = isFarmPackageClientBoundary; exports.collectFarmClientPackageImports = collectFarmClientPackageImports; exports.collectFarmServerBundledPackageInfo = collectFarmServerBundledPackageInfo; exports.noteFarmClientReachableModuleChange = noteFarmClientReachableModuleChange; exports.getFarmClientReachableModules = getFarmClientReachableModules; exports.resolveFarmClientOptimizeDeps = resolveFarmClientOptimizeDeps; exports.createFarmDiagnostic = createFarmDiagnostic; exports.formatFarmDiagnostic = formatFarmDiagnostic; exports.createFarmSourceLocator = createFarmSourceLocator; exports.transformEnvironmentFunctions = transformEnvironmentFunctions; exports.farmEnvironmentFunctionsPlugin = farmEnvironmentFunctionsPlugin;
|