@farm.js/core 0.2.2 → 0.2.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/{agent-mcp.d-gI3ahrF6.d.mts → agent-mcp.d-CaJJsAVy.d.mts} +1 -1
- package/dist/{agent-mcp.d-DuZjglYX.d.ts → agent-mcp.d-klsG_XKS.d.ts} +1 -1
- package/dist/agent-runtime.d.mts +1 -1
- package/dist/agent-runtime.d.ts +1 -1
- package/dist/{analyzer-UXWYUTBK.mjs → analyzer-CY7BS4GB.mjs} +2 -2
- package/dist/analyzer-KHCOL6JF.cjs +17 -0
- package/dist/api/node.d.mts +3 -3
- package/dist/api/node.d.ts +3 -3
- package/dist/api/route-manager.cjs +4 -4
- package/dist/api/route-manager.d.mts +3 -3
- package/dist/api/route-manager.d.ts +3 -3
- package/dist/api/route-manager.mjs +3 -3
- package/dist/api/runtime.d.mts +2 -2
- package/dist/api/runtime.d.ts +2 -2
- package/dist/api.cjs +5 -5
- package/dist/api.d.mts +4 -4
- package/dist/api.d.ts +4 -4
- package/dist/api.mjs +4 -4
- package/dist/{app-manifest.d-bHK9EGPI.d.mts → app-manifest.d-BIdn8Whr.d.mts} +1 -1
- package/dist/{app-manifest.d-B3h89j6a.d.ts → app-manifest.d-DkIbmExG.d.ts} +1 -1
- package/dist/app-markdown.d.mts +2 -2
- package/dist/app-markdown.d.ts +2 -2
- package/dist/{app.d-C3uyET_L.d.ts → app.d-DhZ61V9X.d.ts} +8 -5
- package/dist/{app.d-Cr7fXGvJ.d.mts → app.d-DnqxbvCI.d.mts} +8 -5
- package/dist/{chunk-YOVSWY2E.mjs → chunk-2XDRRAAD.mjs} +1 -1
- package/dist/{chunk-2T4GGCQT.cjs → chunk-6UBGXEIH.cjs} +2 -2
- package/dist/{chunk-BEAQVRMQ.cjs → chunk-76ES7BCO.cjs} +80 -75
- package/dist/{chunk-TK2JJCP5.mjs → chunk-7FNKBP3J.mjs} +186 -29
- package/dist/{chunk-ST3U7XVO.mjs → chunk-7IM2MKRK.mjs} +1 -1
- package/dist/{chunk-GL4SPJTE.cjs → chunk-7Q6KUXH6.cjs} +58 -27
- package/dist/{chunk-5CG2UD6B.cjs → chunk-AMSX2U4D.cjs} +304 -7
- package/dist/{chunk-NPR6SCEV.mjs → chunk-AOSZIHL7.mjs} +1 -1
- package/dist/chunk-APVJJCMB.mjs +547 -0
- package/dist/{chunk-LQZXCSYG.mjs → chunk-B6K2ZM3C.mjs} +5 -3
- package/dist/{chunk-IEXZMDF4.mjs → chunk-BCIUG6EQ.mjs} +2 -2
- package/dist/{chunk-JCERO6YF.mjs → chunk-BUIZTM3Q.mjs} +1 -1
- package/dist/{chunk-SJQ24IB5.cjs → chunk-BY5VQ57W.cjs} +11 -11
- package/dist/{chunk-GKDOKES3.mjs → chunk-CQ5LVPBL.mjs} +1 -1
- package/dist/{chunk-Q4FHYBFT.cjs → chunk-CSCORWIQ.cjs} +11 -11
- package/dist/{chunk-6VMBLDWY.mjs → chunk-CV7C75LN.mjs} +1 -1
- package/dist/{chunk-CZMMU3FP.mjs → chunk-D4DAL7KK.mjs} +35 -4
- package/dist/{chunk-ZVT2F3JU.mjs → chunk-DR65XXXD.mjs} +2 -2
- package/dist/{chunk-PRKFECGT.cjs → chunk-DZWX7FDX.cjs} +6 -4
- package/dist/{chunk-A4AYTO2E.cjs → chunk-EZRB5N6S.cjs} +1 -1
- package/dist/{chunk-B7CZ7T2I.cjs → chunk-JEJXSTYR.cjs} +2 -2
- package/dist/{chunk-56F4CDKE.cjs → chunk-JRPCCBGL.cjs} +449 -291
- package/dist/{chunk-JM5VSEYC.cjs → chunk-KHTDVXXR.cjs} +2 -2
- package/dist/{chunk-PYPHM7AS.cjs → chunk-LH7S7FI3.cjs} +5 -1
- package/dist/{chunk-ZND5D4IC.cjs → chunk-LJZZDRD5.cjs} +363 -326
- package/dist/{chunk-WXPY5FRF.cjs → chunk-P2PF5FUW.cjs} +2 -2
- package/dist/{chunk-CPL7WIMP.mjs → chunk-P3UT3OLV.mjs} +2 -2
- package/dist/{chunk-PZ5ZJAAO.mjs → chunk-POCWXRXW.mjs} +1 -1
- package/dist/{chunk-L7Z6OAE2.cjs → chunk-PVR63WHW.cjs} +4 -4
- package/dist/{chunk-Z23OCU33.cjs → chunk-RF3VCNV7.cjs} +6 -6
- package/dist/{chunk-5AOARZJT.cjs → chunk-T2VXOAC3.cjs} +4 -4
- package/dist/{chunk-FEWGKBMM.mjs → chunk-UIBCPZFO.mjs} +85 -48
- package/dist/{chunk-MYJPW4XN.mjs → chunk-UKGAP2OK.mjs} +3 -3
- package/dist/{chunk-DZXD6CYJ.mjs → chunk-V2RXBDV6.mjs} +4 -0
- package/dist/{chunk-ALGAGXWB.mjs → chunk-XEOIZ4QC.mjs} +1 -1
- package/dist/{chunk-D2VLHRBN.cjs → chunk-Y3MTKPLN.cjs} +4 -4
- package/dist/{chunk-FDS6U2NT.cjs → chunk-Y7FLPQSL.cjs} +3 -3
- package/dist/{chunk-MEXGQE4T.mjs → chunk-YR7ZI57S.mjs} +17 -12
- package/dist/{client-component.d-BavTzqsn.d.ts → client-component.d-BHE9Ns8s.d.ts} +1 -1
- package/dist/{client-component.d-X3j9FOZ2.d.mts → client-component.d-uya-qDZu.d.mts} +1 -1
- package/dist/{client-plugins.d-DnnAopKG.d.mts → client-plugins.d-CqFAvu-W.d.mts} +38 -1
- package/dist/{client-plugins.d-CqTr5IrQ.d.ts → client-plugins.d-Dp89a9Gf.d.ts} +38 -1
- package/dist/client-plugins.d.mts +1 -1
- package/dist/client-plugins.d.ts +1 -1
- package/dist/client.d.mts +7 -7
- package/dist/client.d.ts +7 -7
- package/dist/config.d.mts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/desktop.d.mts +2 -2
- package/dist/desktop.d.ts +2 -2
- package/dist/{devtools-RFVGDHXH.mjs → devtools-CRZCFRRL.mjs} +1 -1
- package/dist/{devtools-4LMM3DDJ.cjs → devtools-ZHYYPMZ3.cjs} +2 -2
- package/dist/docs.cjs +3 -3
- package/dist/docs.d.mts +3 -3
- package/dist/docs.d.ts +3 -3
- package/dist/docs.mjs +2 -2
- package/dist/environment/vite.cjs +4 -4
- package/dist/environment/vite.mjs +3 -3
- package/dist/{handler.d-BSlpYCDB.d.mts → handler.d-BgJGywnq.d.mts} +1 -1
- package/dist/{handler.d-DgX7gPO6.d.ts → handler.d-DHxaRQr7.d.ts} +1 -1
- package/dist/{headers.d-CmxW42R2.d.ts → headers.d-DVm2BMtR.d.ts} +1 -1
- package/dist/{headers.d-Cf8l5LMo.d.mts → headers.d-QrzpChrN.d.mts} +1 -1
- package/dist/index.cjs +19 -19
- package/dist/{index.d-BZZt7kxO.d.ts → index.d-B8lXhfTs.d.ts} +1 -1
- package/dist/{index.d-7xoJqKRZ.d.mts → index.d-Bpu1TV0-.d.mts} +1 -1
- package/dist/index.d.mts +22 -22
- package/dist/index.d.ts +22 -22
- package/dist/index.mjs +18 -18
- package/dist/integrations/orm.d.mts +1 -1
- package/dist/integrations/orm.d.ts +1 -1
- package/dist/integrations.d.mts +1 -1
- package/dist/integrations.d.ts +1 -1
- package/dist/internal/app-markdown-runtime.d.mts +2 -2
- package/dist/internal/app-markdown-runtime.d.ts +2 -2
- package/dist/internal/build-runtime.cjs +18 -18
- package/dist/internal/build-runtime.d.mts +4 -4
- package/dist/internal/build-runtime.d.ts +4 -4
- package/dist/internal/build-runtime.mjs +17 -17
- package/dist/internal/cli-runtime.cjs +7 -7
- package/dist/internal/cli-runtime.d.mts +7 -7
- package/dist/internal/cli-runtime.d.ts +7 -7
- package/dist/internal/cli-runtime.mjs +6 -6
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.d.mts +5 -5
- package/dist/internal/client-runtime.d.ts +5 -5
- package/dist/internal/compression-runtime.d.mts +1 -1
- package/dist/internal/compression-runtime.d.ts +1 -1
- package/dist/internal/config-runtime.cjs +3 -3
- package/dist/internal/config-runtime.d.mts +3 -3
- package/dist/internal/config-runtime.d.ts +3 -3
- package/dist/internal/config-runtime.mjs +2 -2
- package/dist/internal/infra-analytics-runtime.cjs +6 -6
- package/dist/internal/infra-analytics-runtime.mjs +4 -4
- package/dist/internal/native-server-fns.cjs +4 -4
- package/dist/internal/native-server-fns.mjs +3 -3
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +4 -4
- package/dist/internal/production-runtime.d.mts +10 -10
- package/dist/internal/production-runtime.d.ts +10 -10
- package/dist/internal/production-runtime.mjs +3 -3
- package/dist/internal/spa-router.d.mts +3 -3
- package/dist/internal/spa-router.d.ts +3 -3
- package/dist/internal/start-manifest.d.mts +1 -1
- package/dist/internal/start-manifest.d.ts +1 -1
- package/dist/markdown.d.mts +1 -1
- package/dist/markdown.d.ts +1 -1
- package/dist/middleware.d.mts +1 -1
- package/dist/middleware.d.ts +1 -1
- package/dist/{mount.d-CD-xVBu7.d.ts → mount.d-Cw_75kb9.d.ts} +1 -1
- package/dist/{mount.d-Dd0xeRMl.d.mts → mount.d-CyfNKOHK.d.mts} +1 -1
- package/dist/{navigation-delegate.d-Bses_F-y.d.ts → navigation-delegate.d--imR0rY7.d.ts} +1 -1
- package/dist/{navigation-delegate.d-dBNg976E.d.mts → navigation-delegate.d-DVEtyGYw.d.mts} +1 -1
- package/dist/navigation.d.mts +4 -4
- package/dist/navigation.d.ts +4 -4
- package/dist/plugin.cjs +13 -13
- package/dist/plugin.d.mts +5 -5
- package/dist/plugin.d.ts +5 -5
- package/dist/plugin.mjs +12 -12
- package/dist/{render-plan.d-vOdZHHLI.d.mts → render-plan.d-CTehM6y8.d.mts} +1 -1
- package/dist/{render-plan.d-DaIwnRK2.d.ts → render-plan.d-DpxLd_1i.d.ts} +1 -1
- package/dist/renderer-client.d.mts +5 -5
- package/dist/renderer-client.d.ts +5 -5
- package/dist/{request.d-CgXp3EEc.d.ts → request.d-BFXzOr32.d.ts} +1 -1
- package/dist/{request.d-B8U4pVFP.d.mts → request.d-BmQzlKtT.d.mts} +1 -1
- package/dist/request.d.mts +2 -2
- package/dist/request.d.ts +2 -2
- package/dist/{route-rendering.d-Di0AxFix.d.ts → route-rendering.d-bEil1VkF.d.ts} +1 -1
- package/dist/{route-rendering.d-BQvNYQqu.d.mts → route-rendering.d-geg68qd0.d.mts} +1 -1
- package/dist/{router.d-BJVGhSAJ.d.ts → router.d-4OCT2ak5.d.ts} +1 -1
- package/dist/{router.d-hNedVdoB.d.mts → router.d-CQjEcNih.d.mts} +1 -1
- package/dist/routes.cjs +3 -3
- package/dist/routes.d.mts +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/routes.mjs +2 -2
- package/dist/{rsc-pipeline-NCJ3NIE5.mjs → rsc-pipeline-JISGZS6G.mjs} +2 -2
- package/dist/{rsc-pipeline-HT4G3QGT.cjs → rsc-pipeline-R5W3PAAL.cjs} +3 -3
- package/dist/{runtime-6UF5XKUP.cjs → runtime-HSTND4FF.cjs} +8 -8
- package/dist/{runtime-VHXIEXL7.mjs → runtime-I2SBIB2Q.mjs} +5 -5
- package/dist/{runtime.d-0R8nHCM6.d.ts → runtime.d-BKoa6J55.d.ts} +1 -1
- package/dist/{runtime.d-DpeuF_T-.d.mts → runtime.d-DjYo5E1n.d.mts} +1 -1
- package/dist/{schema-dependencies.d-_Wyey4Wv.d.mts → schema-dependencies.d-CGNgsyKS.d.mts} +1 -1
- package/dist/{schema-dependencies.d-tkUHREqz.d.ts → schema-dependencies.d-CRoN2Q9N.d.ts} +1 -1
- package/dist/{server-components-status.d-sN7ju-ie.d.mts → server-components-status.d-Crl3IonP.d.mts} +1 -1
- package/dist/{server-components-status.d-B2Z5WvO5.d.ts → server-components-status.d-CwfcQD6n.d.ts} +1 -1
- package/dist/server-plugins.d.mts +3 -3
- package/dist/server-plugins.d.ts +3 -3
- package/dist/server.cjs +34 -34
- package/dist/server.d.mts +11 -11
- package/dist/server.d.ts +11 -11
- package/dist/server.mjs +14 -14
- package/dist/{spa-router.d-MjT6sGb9.d.ts → spa-router.d-Bv-r3AAK.d.ts} +2 -2
- package/dist/{spa-router.d-D3AtR2Bc.d.mts → spa-router.d-DhO_PJHP.d.mts} +2 -2
- package/dist/{ssg.d-C1SNuPz5.d.ts → ssg.d-CzFOAkqy.d.mts} +13 -2
- package/dist/{ssg.d-B32Cp_XW.d.mts → ssg.d-SfEQfMsA.d.ts} +13 -2
- package/dist/{store-core.d-BZ3YXs70.d.ts → store-core.d-Ch0N8dni.d.ts} +2 -2
- package/dist/{store-core.d-BbVdaoA0.d.mts → store-core.d-pKJCUdTR.d.mts} +2 -2
- package/dist/testing.cjs +5 -5
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.mjs +4 -4
- package/dist/{utils.d-Bjbm44fP.d.ts → utils.d-BaLODLrK.d.ts} +1 -1
- package/dist/{utils.d-CoLozp7-.d.mts → utils.d-TPjb_Q7w.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +13 -13
- package/dist/vite.d.mts +6 -6
- package/dist/vite.d.ts +6 -6
- package/dist/vite.mjs +12 -12
- package/package.json +2 -2
- package/dist/analyzer-ENHO4SA5.cjs +0 -17
- package/dist/chunk-Q4CPBKPT.mjs +0 -251
- /package/dist/{chunk-JL2HNLMC.mjs → chunk-3QC2XTCN.mjs} +0 -0
- /package/dist/{chunk-COXMHCIV.cjs → chunk-GDKJGL7D.cjs} +0 -0
package/dist/server.cjs
CHANGED
|
@@ -22,7 +22,7 @@ var _chunkTDAH76RRcjs = require('./chunk-TDAH76RR.cjs');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkGDKJGL7Dcjs = require('./chunk-GDKJGL7D.cjs');
|
|
26
26
|
require('./chunk-5XYJ5KRN.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
@@ -39,7 +39,7 @@ require('./chunk-VUCDMV3Q.cjs');
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunkLJZZDRD5cjs = require('./chunk-LJZZDRD5.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
@@ -59,7 +59,7 @@ require('./chunk-GQONHUMI.cjs');
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunk76ES7BCOcjs = require('./chunk-76ES7BCO.cjs');
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
var _chunkWAQIO2VDcjs = require('./chunk-WAQIO2VD.cjs');
|
|
@@ -72,8 +72,8 @@ var _chunkIGA3OTFYcjs = require('./chunk-IGA3OTFY.cjs');
|
|
|
72
72
|
|
|
73
73
|
var _chunk5B2Y4EVScjs = require('./chunk-5B2Y4EVS.cjs');
|
|
74
74
|
require('./chunk-P2LSRUQB.cjs');
|
|
75
|
-
require('./chunk-
|
|
76
|
-
require('./chunk-
|
|
75
|
+
require('./chunk-7Q6KUXH6.cjs');
|
|
76
|
+
require('./chunk-P2PF5FUW.cjs');
|
|
77
77
|
require('./chunk-EWPH5IOC.cjs');
|
|
78
78
|
require('./chunk-P5RNGH52.cjs');
|
|
79
79
|
require('./chunk-KEBD377T.cjs');
|
|
@@ -81,15 +81,15 @@ require('./chunk-CS6GXE42.cjs');
|
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
|
|
84
|
-
var
|
|
84
|
+
var _chunkT2VXOAC3cjs = require('./chunk-T2VXOAC3.cjs');
|
|
85
85
|
require('./chunk-GYH2B4YQ.cjs');
|
|
86
86
|
require('./chunk-IGBQSUT5.cjs');
|
|
87
87
|
require('./chunk-XVD5Y6S4.cjs');
|
|
88
88
|
require('./chunk-UOFTT6S4.cjs');
|
|
89
89
|
require('./chunk-66WIOZXX.cjs');
|
|
90
|
-
require('./chunk-
|
|
90
|
+
require('./chunk-PVR63WHW.cjs');
|
|
91
91
|
require('./chunk-R6GOH5CH.cjs');
|
|
92
|
-
require('./chunk-
|
|
92
|
+
require('./chunk-6UBGXEIH.cjs');
|
|
93
93
|
require('./chunk-4USE4SEU.cjs');
|
|
94
94
|
require('./chunk-7BFFBYLN.cjs');
|
|
95
95
|
require('./chunk-YLEL4ZRQ.cjs');
|
|
@@ -102,7 +102,7 @@ require('./chunk-B6JPBPBQ.cjs');
|
|
|
102
102
|
require('./chunk-SIQPXYBB.cjs');
|
|
103
103
|
|
|
104
104
|
|
|
105
|
-
var
|
|
105
|
+
var _chunkBY5VQ57Wcjs = require('./chunk-BY5VQ57W.cjs');
|
|
106
106
|
require('./chunk-J3RIMCBD.cjs');
|
|
107
107
|
|
|
108
108
|
|
|
@@ -225,9 +225,9 @@ require('./chunk-IVEV44O2.cjs');
|
|
|
225
225
|
|
|
226
226
|
|
|
227
227
|
var _chunkKSRWTQ6Jcjs = require('./chunk-KSRWTQ6J.cjs');
|
|
228
|
-
require('./chunk-
|
|
228
|
+
require('./chunk-Y3MTKPLN.cjs');
|
|
229
229
|
require('./chunk-6K7LEL2T.cjs');
|
|
230
|
-
require('./chunk-
|
|
230
|
+
require('./chunk-DZWX7FDX.cjs');
|
|
231
231
|
|
|
232
232
|
|
|
233
233
|
|
|
@@ -247,7 +247,7 @@ require('./chunk-3ACTVXZG.cjs');
|
|
|
247
247
|
require('./chunk-KHTJVI6B.cjs');
|
|
248
248
|
require('./chunk-G22QP2MX.cjs');
|
|
249
249
|
require('./chunk-MMSCWTJT.cjs');
|
|
250
|
-
require('./chunk-
|
|
250
|
+
require('./chunk-LH7S7FI3.cjs');
|
|
251
251
|
require('./chunk-GUDYDNKU.cjs');
|
|
252
252
|
|
|
253
253
|
|
|
@@ -301,7 +301,7 @@ require('./chunk-K6LZMZNB.cjs');
|
|
|
301
301
|
require('./chunk-RFKPIAOF.cjs');
|
|
302
302
|
|
|
303
303
|
|
|
304
|
-
var
|
|
304
|
+
var _chunkEZRB5N6Scjs = require('./chunk-EZRB5N6S.cjs');
|
|
305
305
|
require('./chunk-YC3LKWJO.cjs');
|
|
306
306
|
require('./chunk-LF7HAALM.cjs');
|
|
307
307
|
require('./chunk-ZSSBEPN4.cjs');
|
|
@@ -557,7 +557,7 @@ function createBrandingPlugin() {
|
|
|
557
557
|
const pc = _chunkCH2JX3CMcjs.createCliColors.call(void 0, );
|
|
558
558
|
console.log("");
|
|
559
559
|
console.log(
|
|
560
|
-
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${
|
|
560
|
+
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${_chunkEZRB5N6Scjs.FARM_VERSION}`)} ${pc.dim(`ready in ${elapsed}ms`)}`
|
|
561
561
|
);
|
|
562
562
|
console.log("");
|
|
563
563
|
console.log(
|
|
@@ -632,7 +632,7 @@ function inlineEnvScope(scope) {
|
|
|
632
632
|
);
|
|
633
633
|
}
|
|
634
634
|
async function resolveInlineConfig(config, mode) {
|
|
635
|
-
if (
|
|
635
|
+
if (_chunkGDKJGL7Dcjs.isResolvedFarmConfig.call(void 0, config)) {
|
|
636
636
|
_chunkTP7JAC3Tcjs.setEnv.call(void 0, config.env);
|
|
637
637
|
return { ...config };
|
|
638
638
|
}
|
|
@@ -642,7 +642,7 @@ async function resolveInlineConfig(config, mode) {
|
|
|
642
642
|
const resolvedI18n = i18n && "enabled" in i18n ? i18n : void 0;
|
|
643
643
|
const auth = config.auth;
|
|
644
644
|
const resolvedAuth = auth && typeof auth === "object" && typeof auth.emailAndPassword === "object" && "enabled" in auth.emailAndPassword ? auth : void 0;
|
|
645
|
-
const resolved = await
|
|
645
|
+
const resolved = await _chunkGDKJGL7Dcjs.resolveConfig.call(void 0,
|
|
646
646
|
{
|
|
647
647
|
...config,
|
|
648
648
|
...resolvedDocs ? { docs: false } : {},
|
|
@@ -679,11 +679,11 @@ async function createServer2(config = {}, options = {}) {
|
|
|
679
679
|
try {
|
|
680
680
|
const root = config.root || process.cwd();
|
|
681
681
|
const mode = process.env.NODE_ENV === "production" ? "production" : "development";
|
|
682
|
-
const userConfig = await
|
|
682
|
+
const userConfig = await _chunkGDKJGL7Dcjs.loadConfig.call(void 0, root, void 0, mode);
|
|
683
683
|
checkWebDesktopBlock(_optionalChain([userConfig, 'optionalAccess', _21 => _21.desktop]));
|
|
684
684
|
const rscConfig = _nullishCoalesce(userConfig, () => ( config));
|
|
685
685
|
if (_chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, rscConfig))) {
|
|
686
|
-
const { createFarmRscDevServer, farmAppUsesRscPipeline, resolveFarmRscCheckConfig } = await import("./rsc-pipeline-
|
|
686
|
+
const { createFarmRscDevServer, farmAppUsesRscPipeline, resolveFarmRscCheckConfig } = await import("./rsc-pipeline-R5W3PAAL.cjs");
|
|
687
687
|
await _optionalChain([options, 'access', _22 => _22.ensureServerComponentsPackages, 'optionalCall', _23 => _23(rscConfig, root)]);
|
|
688
688
|
if (farmAppUsesRscPipeline(await resolveFarmRscCheckConfig(rscConfig, root, mode), root)) {
|
|
689
689
|
return await createFarmRscDevServer(rscConfig, {
|
|
@@ -693,7 +693,7 @@ async function createServer2(config = {}, options = {}) {
|
|
|
693
693
|
});
|
|
694
694
|
}
|
|
695
695
|
}
|
|
696
|
-
const resolvedConfig = userConfig ? await
|
|
696
|
+
const resolvedConfig = userConfig ? await _chunkGDKJGL7Dcjs.resolveConfig.call(void 0, userConfig, mode) : await resolveInlineConfig(config, mode);
|
|
697
697
|
const instrumentationRoot = resolvedConfig.root;
|
|
698
698
|
const instrumentationFile = _chunkI5PDHLKEcjs.resolveFarmInstrumentationFile.call(void 0,
|
|
699
699
|
instrumentationRoot,
|
|
@@ -731,10 +731,10 @@ async function createServer2(config = {}, options = {}) {
|
|
|
731
731
|
pluginManager.addPlugin(_chunkQHHEL4ZOcjs.createCompressionPlugin.call(void 0, ));
|
|
732
732
|
}
|
|
733
733
|
pluginManager.addPlugins(resolvedConfig.plugins);
|
|
734
|
-
const infraAnalytics = resolvedConfig.analytics !== false ?
|
|
734
|
+
const infraAnalytics = resolvedConfig.analytics !== false ? _chunkT2VXOAC3cjs.createFarmInfraAnalyticsPlugin.call(void 0,
|
|
735
735
|
void 0,
|
|
736
736
|
void 0,
|
|
737
|
-
|
|
737
|
+
_chunkT2VXOAC3cjs._farmWebMCPReportsEnabled.call(void 0, resolvedConfig.plugins) ? { webmcp: {} } : void 0
|
|
738
738
|
) : null;
|
|
739
739
|
if (infraAnalytics) pluginManager.addPlugin(infraAnalytics);
|
|
740
740
|
await pluginManager.runHookParallel("init");
|
|
@@ -742,7 +742,7 @@ async function createServer2(config = {}, options = {}) {
|
|
|
742
742
|
finalConfig = await pluginManager.runHookSerial("config", finalConfig);
|
|
743
743
|
finalConfig.renderer = _chunkLEZJZX4Ccjs.resolveFarmRenderer.call(void 0, finalConfig.renderer);
|
|
744
744
|
const projectRoot = finalConfig.root || process.cwd();
|
|
745
|
-
finalConfig.images =
|
|
745
|
+
finalConfig.images = _chunk76ES7BCOcjs.resolveFarmImageProviderForRuntime.call(void 0, finalConfig.images, {
|
|
746
746
|
root: projectRoot,
|
|
747
747
|
dev: true
|
|
748
748
|
});
|
|
@@ -764,7 +764,7 @@ async function createServer2(config = {}, options = {}) {
|
|
|
764
764
|
tailwindVitePlugin = await _chunkWAQIO2VDcjs.loadTailwindVitePlugin.call(void 0, );
|
|
765
765
|
}
|
|
766
766
|
server = await createViteDevServer(
|
|
767
|
-
|
|
767
|
+
_chunk76ES7BCOcjs.mergeFarmViteConfig.call(void 0,
|
|
768
768
|
{
|
|
769
769
|
root: projectRoot,
|
|
770
770
|
css: shouldUseProjectPostcss ? void 0 : { postcss: { plugins: [] } },
|
|
@@ -782,21 +782,21 @@ async function createServer2(config = {}, options = {}) {
|
|
|
782
782
|
}
|
|
783
783
|
},
|
|
784
784
|
_chunk5RYBQKBYcjs.farmDesktopDevGuardPlugin.call(void 0, finalConfig.basePath),
|
|
785
|
-
|
|
785
|
+
_chunk76ES7BCOcjs.createFarmThemeCssPlugin.call(void 0, finalConfig.theme, finalConfig.basePath),
|
|
786
786
|
...tailwindVitePlugin ? [tailwindVitePlugin] : [],
|
|
787
787
|
...rendererVitePlugins,
|
|
788
788
|
...reactRefreshPlugins,
|
|
789
789
|
createDevDependencyStubsPlugin(),
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
790
|
+
_chunk76ES7BCOcjs.farmDevServerStylesheetsPlugin.call(void 0, ),
|
|
791
|
+
_chunkLJZZDRD5cjs.farmI18nClientBridgePlugin.call(void 0, ),
|
|
792
|
+
_chunkLJZZDRD5cjs.farmServerOnlyEntriesPlugin.call(void 0, {
|
|
793
793
|
prebundleServerPackages: true,
|
|
794
794
|
distDir: resolvedConfig.distDir || ".farm"
|
|
795
795
|
}),
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
796
|
+
_chunkLJZZDRD5cjs.farmNavigationPlugin.call(void 0, finalConfig.renderer),
|
|
797
|
+
_chunkLJZZDRD5cjs.farmIslandContainersPlugin.call(void 0, finalConfig),
|
|
798
|
+
_chunkLJZZDRD5cjs.farmPlugin.call(void 0, finalConfig, pluginManager, deferredSetup),
|
|
799
|
+
_chunkBY5VQ57Wcjs.farmEnvironmentFunctionsPlugin.call(void 0, finalConfig),
|
|
800
800
|
createBrandingPlugin(),
|
|
801
801
|
_chunkYV47TSSBcjs.createFarmDevLoopbackPlugin.call(void 0, ),
|
|
802
802
|
createFarmDevLifecyclePlugin(pluginManager, instrumentation)
|
|
@@ -811,8 +811,8 @@ async function createServer2(config = {}, options = {}) {
|
|
|
811
811
|
dedupe: [...finalConfig.renderer.dedupe || []]
|
|
812
812
|
},
|
|
813
813
|
optimizeDeps: {
|
|
814
|
-
...
|
|
815
|
-
|
|
814
|
+
..._chunk76ES7BCOcjs.createFarmClientOptimizeDepsConfig.call(void 0,
|
|
815
|
+
_chunk76ES7BCOcjs.createFarmClientOptimizeDepsEntries.call(void 0, projectRoot, _chunkPFVNPOKNcjs.getFarmAppDirectories.call(void 0, finalConfig)),
|
|
816
816
|
finalConfig.renderer,
|
|
817
817
|
projectRoot
|
|
818
818
|
),
|
|
@@ -1092,4 +1092,4 @@ async function startDevServer(config = {}, port, options = {}) {
|
|
|
1092
1092
|
|
|
1093
1093
|
|
|
1094
1094
|
|
|
1095
|
-
exports.DEFAULT_FARM_DEV_SERVER_PORT = DEFAULT_FARM_DEV_SERVER_PORT; exports.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT = _chunkNMMCBJZMcjs.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT; exports.FARM_SERVER_QUERY_SYMBOL = _chunk63S7DAEGcjs.FARM_SERVER_QUERY_SYMBOL; exports.FarmApp =
|
|
1095
|
+
exports.DEFAULT_FARM_DEV_SERVER_PORT = DEFAULT_FARM_DEV_SERVER_PORT; exports.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT = _chunkNMMCBJZMcjs.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT; exports.FARM_SERVER_QUERY_SYMBOL = _chunk63S7DAEGcjs.FARM_SERVER_QUERY_SYMBOL; exports.FarmApp = _chunk76ES7BCOcjs.FarmApp; exports.FarmDataCache = _chunkVD7ENQP2cjs.FarmDataCache; exports.FarmEnvironmentError = _chunkL6CW5AWMcjs.FarmEnvironmentError; exports.PPR_SHELL_ADAPTER_TTL_SECONDS = _chunkVD7ENQP2cjs.PPR_SHELL_ADAPTER_TTL_SECONDS; exports.RouteManager = _chunk76ES7BCOcjs.RouteManager; exports.ServerActionRequestError = _chunkNMMCBJZMcjs.ServerActionRequestError; exports.ServerRenderer = _chunk76ES7BCOcjs.ServerRenderer; exports.VERCEL_OG_INSTALL_HINT = _chunkIDUGG7VRcjs.VERCEL_OG_INSTALL_HINT; exports._collectFarmStorageModules = _chunkOCQSYDMGcjs._collectFarmStorageModules; exports._registerFarmStorageModules = _chunkOCQSYDMGcjs._registerFarmStorageModules; exports._runWithAfterNodeResponse = _chunkKSRWTQ6Jcjs._runWithAfterNodeResponse; exports._runWithAfterRequest = _chunkKSRWTQ6Jcjs._runWithAfterRequest; exports._withAfterNodeMiddleware = _chunkKSRWTQ6Jcjs._withAfterNodeMiddleware; exports.after = _chunkKSRWTQ6Jcjs.after; exports.applyFarmCacheInvalidationTargets = _chunkVD7ENQP2cjs.applyFarmCacheInvalidationTargets; exports.applyFarmCacheInvalidations = _chunk6NQ63L6Ncjs.applyFarmCacheInvalidations; exports.configureFarmCache = _chunkVD7ENQP2cjs.configureFarmCache; exports.createClientOnlyFn = _chunkL6CW5AWMcjs.createClientOnlyFn; exports.createFarmApp = _chunk76ES7BCOcjs.createFarmApp; exports.createFarmCacheInvalidationStream = _chunkVD7ENQP2cjs.createFarmCacheInvalidationStream; exports.createFarmCacheKey = _chunkN4C72FCDcjs.createFarmCacheKey; exports.createFarmConfigResolutionPlugin = _chunkPFVNPOKNcjs.createFarmConfigResolutionPlugin; exports.createFarmStorage = _chunkOCQSYDMGcjs.createFarmStorage; exports.createIsomorphicFn = _chunkL6CW5AWMcjs.createIsomorphicFn; exports.createPathCacheTag = _chunkVD7ENQP2cjs.createPathCacheTag; exports.createRouteDataCacheKey = _chunkN4C72FCDcjs.createRouteDataCacheKey; exports.createRouteDataCacheTag = _chunkVD7ENQP2cjs.createRouteDataCacheTag; exports.createServer = createServer2; exports.createServerActionRequestErrorResponse = _chunkNMMCBJZMcjs.createServerActionRequestErrorResponse; exports.createServerOnlyFn = _chunkL6CW5AWMcjs.createServerOnlyFn; exports.createServerQuery = _chunk63S7DAEGcjs.createServerQuery; exports.createStorageClient = _chunkOCQSYDMGcjs.createStorageClient; exports.databaseStorage = _chunkOCQSYDMGcjs.databaseStorage; exports.defineCacheKey = _chunkVD7ENQP2cjs.defineCacheKey; exports.defineConfig = _chunkLJZZDRD5cjs.defineConfig; exports.defineStorageClient = _chunkOCQSYDMGcjs.defineStorageClient; exports.disposeStorage = _chunkOCQSYDMGcjs.disposeStorage; exports.driverStorage = _chunkOCQSYDMGcjs.driverStorage; exports.farmPlugin = _chunkLJZZDRD5cjs.farmPlugin; exports.farmStorage = _chunkOCQSYDMGcjs.farmStorage; exports.fileExists = _chunk7ZDLE77Pcjs.fileExists; exports.findFarmConfigFile = _chunkPFVNPOKNcjs.findFarmConfigFile; exports.getCurrentRequest = _chunkIBZW57NWcjs.getCurrentRequest; exports.getDatabase = _chunkOCQSYDMGcjs.getDatabase; exports.getFarmAppDirectories = _chunkPFVNPOKNcjs.getFarmAppDirectories; exports.getFarmDataCache = _chunkVD7ENQP2cjs.getFarmDataCache; exports.getFarmLayerAliases = _chunkPFVNPOKNcjs.getFarmLayerAliases; exports.getFarmSourceRoots = _chunkPFVNPOKNcjs.getFarmSourceRoots; exports.getServerActionExecutionContext = _chunkNMMCBJZMcjs.getServerActionExecutionContext; exports.getServerActionInvalidations = _chunkNMMCBJZMcjs.getServerActionInvalidations; exports.getServerActionSignal = _chunkNMMCBJZMcjs.getServerActionSignal; exports.getStorage = _chunkOCQSYDMGcjs.getStorage; exports.getTheme = _chunkXK7SRVHCcjs.getTheme; exports.getThemeSnapshot = _chunkXK7SRVHCcjs.getThemeSnapshot; exports.globFiles = _chunk7ZDLE77Pcjs.globFiles; exports.initStorage = _chunkOCQSYDMGcjs.initStorage; exports.inspectStaticMetadataImage = _chunk76ES7BCOcjs.inspectStaticMetadataImage; exports.invalidate = _chunkVD7ENQP2cjs.invalidate; exports.invalidateRouteData = _chunkVD7ENQP2cjs.invalidateRouteData; exports.isOptionalPeerInstalled = _chunkIDUGG7VRcjs.isOptionalPeerInstalled; exports.libsqlStorage = _chunkOCQSYDMGcjs.libsqlStorage; exports.loadFarmConfigFile = _chunkPFVNPOKNcjs.loadFarmConfigFile; exports.localStorage = _chunkOCQSYDMGcjs.localStorage; exports.logger = _chunk7ZDLE77Pcjs.logger; exports.matchRoute = _chunk7ZDLE77Pcjs.matchRoute; exports.matchRouteParts = _chunk7ZDLE77Pcjs.matchRouteParts; exports.matchRoutePrefix = _chunk7ZDLE77Pcjs.matchRoutePrefix; exports.matchRoutePrefixParts = _chunk7ZDLE77Pcjs.matchRoutePrefixParts; exports.memoryStorage = _chunkOCQSYDMGcjs.memoryStorage; exports.mongodbStorage = _chunkOCQSYDMGcjs.mongodbStorage; exports.mysql2Storage = _chunkOCQSYDMGcjs.mysql2Storage; exports.mysqlStorage = _chunkOCQSYDMGcjs.mysqlStorage; exports.netlifyBlobsStorage = _chunkOCQSYDMGcjs.netlifyBlobsStorage; exports.normalizeRevalidatePath = _chunkVD7ENQP2cjs.normalizeRevalidatePath; exports.parseRoutePath = _chunk7ZDLE77Pcjs.parseRoutePath; exports.parseSearchParams = _chunk7ZDLE77Pcjs.parseSearchParams; exports.pgStorage = _chunkOCQSYDMGcjs.pgStorage; exports.pgliteStorage = _chunkOCQSYDMGcjs.pgliteStorage; exports.planetscaleStorage = _chunkOCQSYDMGcjs.planetscaleStorage; exports.postgresStorage = _chunkOCQSYDMGcjs.postgresStorage; exports.prepareServerActionRequest = _chunkNMMCBJZMcjs.prepareServerActionRequest; exports.redisStorage = _chunkOCQSYDMGcjs.redisStorage; exports.resolveAppPath = _chunk7ZDLE77Pcjs.resolveAppPath; exports.resolveFarmLayers = _chunkPFVNPOKNcjs.resolveFarmLayers; exports.resolveFarmMCPConfig = _chunkGDKJGL7Dcjs.resolveFarmMCPConfig; exports.resolveFarmMCPPlugin = _chunkGDKJGL7Dcjs.resolveFarmMCPPlugin; exports.resolveManagedStorageMount = _chunkOCQSYDMGcjs.resolveManagedStorageMount; exports.resolveServerActionsConfig = _chunkNMMCBJZMcjs.resolveServerActionsConfig; exports.resolveStorageRuntimeClient = _chunkOCQSYDMGcjs.resolveStorageRuntimeClient; exports.revalidatePath = _chunkVD7ENQP2cjs.revalidatePath; exports.revalidateTag = _chunkVD7ENQP2cjs.revalidateTag; exports.runWithServerActionRequest = _chunkNMMCBJZMcjs.runWithServerActionRequest; exports.s3Storage = _chunkOCQSYDMGcjs.s3Storage; exports.sanitizeServerActionError = _chunkNMMCBJZMcjs.sanitizeServerActionError; exports.segmentsToPattern = _chunk7ZDLE77Pcjs.segmentsToPattern; exports.sendWebResponse = _chunk6VC7NUY3cjs.sendWebResponse; exports.splitRoutePath = _chunk7ZDLE77Pcjs.splitRoutePath; exports.sqliteStorage = _chunkOCQSYDMGcjs.sqliteStorage; exports.startDevServer = startDevServer; exports.storageCacheAdapter = _chunkVD7ENQP2cjs.storageCacheAdapter; exports.toPosixPath = _chunk7ZDLE77Pcjs.toPosixPath; exports.toRootRelativeUrlPath = _chunk7ZDLE77Pcjs.toRootRelativeUrlPath; exports.toViteModuleId = _chunk7ZDLE77Pcjs.toViteModuleId; exports.unstable_cache = _chunkVD7ENQP2cjs.unstable_cache; exports.updateTag = _chunkVD7ENQP2cjs.updateTag; exports.upstashStorage = _chunkOCQSYDMGcjs.upstashStorage; exports.validateServerActionRequest = _chunkNMMCBJZMcjs.validateServerActionRequest; exports.vercelBlobStorage = _chunkOCQSYDMGcjs.vercelBlobStorage; exports.vercelKVStorage = _chunkOCQSYDMGcjs.vercelKVStorage;
|
package/dist/server.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { F as FarmApp, R as RouteManager, S as ServerRenderer, a as StaticMetadataImageInfo, c as createFarmApp, i as inspectStaticMetadataImage } from './app.d-
|
|
1
|
+
export { F as FarmApp, R as RouteManager, S as ServerRenderer, a as StaticMetadataImageInfo, c as createFarmApp, i as inspectStaticMetadataImage } from './app.d-DnqxbvCI.mjs';
|
|
2
2
|
export { defineConfig, farmPlugin } from './vite.mjs';
|
|
3
|
-
import { aU as FarmConfig, N as FarmUserConfig } from './client-plugins.d-
|
|
4
|
-
export { aV as AppRoutePattern, aW as BuildOptions, aX as ErrorBoundary, aY as ErrorProps, C as FarmAppContext, aZ as FarmComponentType, aK as FarmContextFactory, a_ as FarmContextFactoryInput, a$ as FarmIsolatedClientHydrationMode, b0 as FarmMCPUserConfig, b1 as FarmMigrationCommand, b2 as FarmMigrationsConfig, b3 as FarmMigrationsUserConfig, Q as FarmRequest, T as FarmResponse, b4 as
|
|
5
|
-
export { f as fileExists, g as globFiles, l as logger, m as matchRoute, a as matchRouteParts, b as matchRoutePrefix, c as matchRoutePrefixParts, p as parseRoutePath, d as parseSearchParams, r as resolveAppPath, s as segmentsToPattern, e as splitRoutePath, t as toPosixPath, h as toRootRelativeUrlPath, i as toViteModuleId } from './utils.d-
|
|
3
|
+
import { aU as FarmConfig, N as FarmUserConfig } from './client-plugins.d-CqFAvu-W.mjs';
|
|
4
|
+
export { aV as AppRoutePattern, aW as BuildOptions, aX as ErrorBoundary, aY as ErrorProps, C as FarmAppContext, aZ as FarmComponentType, aK as FarmContextFactory, a_ as FarmContextFactoryInput, a$ as FarmIsolatedClientHydrationMode, b0 as FarmMCPUserConfig, b1 as FarmMigrationCommand, b2 as FarmMigrationsConfig, b3 as FarmMigrationsUserConfig, Q as FarmRequest, T as FarmResponse, b4 as FarmStaticPagesMode, b5 as GenerateStaticParams, b6 as Layout, b7 as LayoutMetadataProps, b8 as LayoutModule, L as LayoutProps, b9 as Loading, ba as LoadingProps, M as Metadata, bb as MetadataJsonLd, bc as MetadataProps, bd as MetadataRobots, be as MetadataRobotsDirectives, aJ as MiddlewareProps, bf as NitroPreset, bg as Page, D as PageProps, bh as PagePropsWithMiddleware, bi as PageRouteParams, P as ParsedRoute, G as PluginContextProps, bj as ResolvedFarmMigrationsConfig, p as RouteModule, z as RouteSegment, S as SSGCollectionResult, A as SSGPage, bk as ServerAction, bl as StaticPathParams, bm as StaticPathPrimitive, bn as StaticRouteParams, bo as ThemeColorDescriptor, bp as Viewport, bq as resolveFarmMCPConfig, br as resolveFarmMCPPlugin } from './client-plugins.d-CqFAvu-W.mjs';
|
|
5
|
+
export { f as fileExists, g as globFiles, l as logger, m as matchRoute, a as matchRouteParts, b as matchRoutePrefix, c as matchRoutePrefixParts, p as parseRoutePath, d as parseSearchParams, r as resolveAppPath, s as segmentsToPattern, e as splitRoutePath, t as toPosixPath, h as toRootRelativeUrlPath, i as toViteModuleId } from './utils.d-TPjb_Q7w.mjs';
|
|
6
6
|
export { FarmKvMount, FarmSqlMount, FarmStorageOptions, _collectFarmStorageModules, _registerFarmStorageModules, createFarmStorage, createStorageClient, databaseStorage, defineStorageClient, disposeStorage, driverStorage, farmStorage, getDatabase, getStorage, initStorage, libsqlStorage, localStorage, memoryStorage, mongodbStorage, mysql2Storage, mysqlStorage, netlifyBlobsStorage, pgStorage, pgliteStorage, planetscaleStorage, postgresStorage, redisStorage, resolveManagedStorageMount, resolveStorageRuntimeClient, s3Storage, sqliteStorage, upstashStorage, vercelBlobStorage, vercelKVStorage } from './storage.mjs';
|
|
7
7
|
export { CacheKeyFactory, DefinedCacheKey, FarmCacheAdapter, FarmCacheEntry, FarmCacheInvalidationStreamOptions, FarmCacheInvalidationTarget, FarmCacheOptions, FarmCacheSetOptions, FarmCacheStorage, FarmCacheUserConfig, FarmCacheWrite, FarmClientCacheUserConfig, FarmDataCache, GetFarmCacheEntryOptions, InferCacheKeyData, PPR_SHELL_ADAPTER_TTL_SECONDS, RevalidateTagProfile, RouteDataCacheKey, StorageFarmCacheAdapterOptions, applyFarmCacheInvalidationTargets, applyFarmCacheInvalidations, configureFarmCache, createFarmCacheInvalidationStream, createFarmCacheKey, createPathCacheTag, createRouteDataCacheKey, createRouteDataCacheTag, defineCacheKey, getFarmDataCache, invalidate, invalidateRouteData, normalizeRevalidatePath, revalidatePath, revalidateTag, storageCacheAdapter, unstable_cache, updateTag } from './cache.mjs';
|
|
8
8
|
export { AfterCallback, FarmAfterPlatformContext, _runWithAfterNodeResponse, _runWithAfterRequest, _withAfterNodeMiddleware, after } from './after.mjs';
|
|
9
9
|
export { FARM_SERVER_QUERY_SYMBOL, ServerQuery, ServerQueryKey, ServerQueryOptions, ServerQueryOutputOptions, ServerQueryStaleTime, createServerQuery } from './server-query.mjs';
|
|
10
10
|
import { ViteDevServer } from 'vite';
|
|
11
|
-
export { g as getCurrentRequest } from './request.d-
|
|
11
|
+
export { g as getCurrentRequest } from './request.d-BmQzlKtT.mjs';
|
|
12
12
|
export { s as sendWebResponse } from './response.d-B_MtBCnF.mjs';
|
|
13
13
|
export { getTheme, getThemeSnapshot } from './theme/server.mjs';
|
|
14
14
|
export { DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT, FarmServerActionsConfig, PreparedServerActionRequest, ResolvedFarmServerActionsConfig, SanitizedServerActionError, ServerActionRequestError, ServerActionRequestKind, ServerActionRequestOptions, createServerActionRequestErrorResponse, getServerActionExecutionContext, getServerActionInvalidations, getServerActionSignal, prepareServerActionRequest, resolveServerActionsConfig, runWithServerActionRequest, sanitizeServerActionError, validateServerActionRequest } from './server-action-security.mjs';
|
|
@@ -22,7 +22,7 @@ import './server-http.d-rAe7lAQc.mjs';
|
|
|
22
22
|
import './cron.mjs';
|
|
23
23
|
import './endpoint.d-BXbBpKoh.mjs';
|
|
24
24
|
import './image-config.d-ByhQ0TT7.mjs';
|
|
25
|
-
import './agent-mcp.d-
|
|
25
|
+
import './agent-mcp.d-CaJJsAVy.mjs';
|
|
26
26
|
import './routing.d-D67HQmnv.mjs';
|
|
27
27
|
import './types.d-euATAbE4.mjs';
|
|
28
28
|
import './routes.mjs';
|
|
@@ -50,15 +50,15 @@ import 'rolldown';
|
|
|
50
50
|
import './config.d-BKIhJtmr.mjs';
|
|
51
51
|
import './types.d-DQnyD3VD.mjs';
|
|
52
52
|
import './font.mjs';
|
|
53
|
-
import './client-component.d-
|
|
54
|
-
import './render-plan.d-
|
|
53
|
+
import './client-component.d-uya-qDZu.mjs';
|
|
54
|
+
import './render-plan.d-CTehM6y8.mjs';
|
|
55
55
|
import './runtime.d-CTAXWZby.mjs';
|
|
56
56
|
import './resolver.d-DJgzbdsp.mjs';
|
|
57
57
|
import './platform.mjs';
|
|
58
58
|
import './server-client-bridge.d-DKWDl5NB.mjs';
|
|
59
|
-
import './ssg.d-
|
|
60
|
-
import './route-rendering.d-
|
|
61
|
-
import './headers.d-
|
|
59
|
+
import './ssg.d-CzFOAkqy.mjs';
|
|
60
|
+
import './route-rendering.d-geg68qd0.mjs';
|
|
61
|
+
import './headers.d-QrzpChrN.mjs';
|
|
62
62
|
import 'node:http';
|
|
63
63
|
|
|
64
64
|
declare const DEFAULT_FARM_DEV_SERVER_PORT = 3000;
|
package/dist/server.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { F as FarmApp, R as RouteManager, S as ServerRenderer, a as StaticMetadataImageInfo, c as createFarmApp, i as inspectStaticMetadataImage } from './app.d-
|
|
1
|
+
export { F as FarmApp, R as RouteManager, S as ServerRenderer, a as StaticMetadataImageInfo, c as createFarmApp, i as inspectStaticMetadataImage } from './app.d-DhZ61V9X.js';
|
|
2
2
|
export { defineConfig, farmPlugin } from './vite.js';
|
|
3
|
-
import { aU as FarmConfig, N as FarmUserConfig } from './client-plugins.d-
|
|
4
|
-
export { aV as AppRoutePattern, aW as BuildOptions, aX as ErrorBoundary, aY as ErrorProps, C as FarmAppContext, aZ as FarmComponentType, aK as FarmContextFactory, a_ as FarmContextFactoryInput, a$ as FarmIsolatedClientHydrationMode, b0 as FarmMCPUserConfig, b1 as FarmMigrationCommand, b2 as FarmMigrationsConfig, b3 as FarmMigrationsUserConfig, Q as FarmRequest, T as FarmResponse, b4 as
|
|
5
|
-
export { f as fileExists, g as globFiles, l as logger, m as matchRoute, a as matchRouteParts, b as matchRoutePrefix, c as matchRoutePrefixParts, p as parseRoutePath, d as parseSearchParams, r as resolveAppPath, s as segmentsToPattern, e as splitRoutePath, t as toPosixPath, h as toRootRelativeUrlPath, i as toViteModuleId } from './utils.d-
|
|
3
|
+
import { aU as FarmConfig, N as FarmUserConfig } from './client-plugins.d-Dp89a9Gf.js';
|
|
4
|
+
export { aV as AppRoutePattern, aW as BuildOptions, aX as ErrorBoundary, aY as ErrorProps, C as FarmAppContext, aZ as FarmComponentType, aK as FarmContextFactory, a_ as FarmContextFactoryInput, a$ as FarmIsolatedClientHydrationMode, b0 as FarmMCPUserConfig, b1 as FarmMigrationCommand, b2 as FarmMigrationsConfig, b3 as FarmMigrationsUserConfig, Q as FarmRequest, T as FarmResponse, b4 as FarmStaticPagesMode, b5 as GenerateStaticParams, b6 as Layout, b7 as LayoutMetadataProps, b8 as LayoutModule, L as LayoutProps, b9 as Loading, ba as LoadingProps, M as Metadata, bb as MetadataJsonLd, bc as MetadataProps, bd as MetadataRobots, be as MetadataRobotsDirectives, aJ as MiddlewareProps, bf as NitroPreset, bg as Page, D as PageProps, bh as PagePropsWithMiddleware, bi as PageRouteParams, P as ParsedRoute, G as PluginContextProps, bj as ResolvedFarmMigrationsConfig, p as RouteModule, z as RouteSegment, S as SSGCollectionResult, A as SSGPage, bk as ServerAction, bl as StaticPathParams, bm as StaticPathPrimitive, bn as StaticRouteParams, bo as ThemeColorDescriptor, bp as Viewport, bq as resolveFarmMCPConfig, br as resolveFarmMCPPlugin } from './client-plugins.d-Dp89a9Gf.js';
|
|
5
|
+
export { f as fileExists, g as globFiles, l as logger, m as matchRoute, a as matchRouteParts, b as matchRoutePrefix, c as matchRoutePrefixParts, p as parseRoutePath, d as parseSearchParams, r as resolveAppPath, s as segmentsToPattern, e as splitRoutePath, t as toPosixPath, h as toRootRelativeUrlPath, i as toViteModuleId } from './utils.d-BaLODLrK.js';
|
|
6
6
|
export { FarmKvMount, FarmSqlMount, FarmStorageOptions, _collectFarmStorageModules, _registerFarmStorageModules, createFarmStorage, createStorageClient, databaseStorage, defineStorageClient, disposeStorage, driverStorage, farmStorage, getDatabase, getStorage, initStorage, libsqlStorage, localStorage, memoryStorage, mongodbStorage, mysql2Storage, mysqlStorage, netlifyBlobsStorage, pgStorage, pgliteStorage, planetscaleStorage, postgresStorage, redisStorage, resolveManagedStorageMount, resolveStorageRuntimeClient, s3Storage, sqliteStorage, upstashStorage, vercelBlobStorage, vercelKVStorage } from './storage.js';
|
|
7
7
|
export { CacheKeyFactory, DefinedCacheKey, FarmCacheAdapter, FarmCacheEntry, FarmCacheInvalidationStreamOptions, FarmCacheInvalidationTarget, FarmCacheOptions, FarmCacheSetOptions, FarmCacheStorage, FarmCacheUserConfig, FarmCacheWrite, FarmClientCacheUserConfig, FarmDataCache, GetFarmCacheEntryOptions, InferCacheKeyData, PPR_SHELL_ADAPTER_TTL_SECONDS, RevalidateTagProfile, RouteDataCacheKey, StorageFarmCacheAdapterOptions, applyFarmCacheInvalidationTargets, applyFarmCacheInvalidations, configureFarmCache, createFarmCacheInvalidationStream, createFarmCacheKey, createPathCacheTag, createRouteDataCacheKey, createRouteDataCacheTag, defineCacheKey, getFarmDataCache, invalidate, invalidateRouteData, normalizeRevalidatePath, revalidatePath, revalidateTag, storageCacheAdapter, unstable_cache, updateTag } from './cache.js';
|
|
8
8
|
export { AfterCallback, FarmAfterPlatformContext, _runWithAfterNodeResponse, _runWithAfterRequest, _withAfterNodeMiddleware, after } from './after.js';
|
|
9
9
|
export { FARM_SERVER_QUERY_SYMBOL, ServerQuery, ServerQueryKey, ServerQueryOptions, ServerQueryOutputOptions, ServerQueryStaleTime, createServerQuery } from './server-query.js';
|
|
10
10
|
import { ViteDevServer } from 'vite';
|
|
11
|
-
export { g as getCurrentRequest } from './request.d-
|
|
11
|
+
export { g as getCurrentRequest } from './request.d-BFXzOr32.js';
|
|
12
12
|
export { s as sendWebResponse } from './response.d-B_MtBCnF.js';
|
|
13
13
|
export { getTheme, getThemeSnapshot } from './theme/server.js';
|
|
14
14
|
export { DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT, FarmServerActionsConfig, PreparedServerActionRequest, ResolvedFarmServerActionsConfig, SanitizedServerActionError, ServerActionRequestError, ServerActionRequestKind, ServerActionRequestOptions, createServerActionRequestErrorResponse, getServerActionExecutionContext, getServerActionInvalidations, getServerActionSignal, prepareServerActionRequest, resolveServerActionsConfig, runWithServerActionRequest, sanitizeServerActionError, validateServerActionRequest } from './server-action-security.js';
|
|
@@ -22,7 +22,7 @@ import './server-http.d-rAe7lAQc.js';
|
|
|
22
22
|
import './cron.js';
|
|
23
23
|
import './endpoint.d-Dx_1k6Du.js';
|
|
24
24
|
import './image-config.d-ByhQ0TT7.js';
|
|
25
|
-
import './agent-mcp.d-
|
|
25
|
+
import './agent-mcp.d-klsG_XKS.js';
|
|
26
26
|
import './routing.d-BhPgtN_S.js';
|
|
27
27
|
import './types.d-euATAbE4.js';
|
|
28
28
|
import './routes.js';
|
|
@@ -50,15 +50,15 @@ import 'rolldown';
|
|
|
50
50
|
import './config.d-BKIhJtmr.js';
|
|
51
51
|
import './types.d-DQnyD3VD.js';
|
|
52
52
|
import './font.js';
|
|
53
|
-
import './client-component.d-
|
|
54
|
-
import './render-plan.d-
|
|
53
|
+
import './client-component.d-BHE9Ns8s.js';
|
|
54
|
+
import './render-plan.d-DpxLd_1i.js';
|
|
55
55
|
import './runtime.d-PUA5qBnd.js';
|
|
56
56
|
import './resolver.d-yaHcGCCG.js';
|
|
57
57
|
import './platform.js';
|
|
58
58
|
import './server-client-bridge.d-DKWDl5NB.js';
|
|
59
|
-
import './ssg.d-
|
|
60
|
-
import './route-rendering.d-
|
|
61
|
-
import './headers.d-
|
|
59
|
+
import './ssg.d-SfEQfMsA.js';
|
|
60
|
+
import './route-rendering.d-bEil1VkF.js';
|
|
61
|
+
import './headers.d-DVm2BMtR.js';
|
|
62
62
|
import 'node:http';
|
|
63
63
|
|
|
64
64
|
declare const DEFAULT_FARM_DEV_SERVER_PORT = 3000;
|
package/dist/server.mjs
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
resolveConfig,
|
|
22
22
|
resolveFarmMCPConfig,
|
|
23
23
|
resolveFarmMCPPlugin
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-3QC2XTCN.mjs";
|
|
25
25
|
import "./chunk-VISQDC6W.mjs";
|
|
26
26
|
import {
|
|
27
27
|
loadFarmInstrumentation,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
farmNavigationPlugin,
|
|
39
39
|
farmPlugin,
|
|
40
40
|
farmServerOnlyEntriesPlugin
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-UIBCPZFO.mjs";
|
|
42
42
|
import {
|
|
43
43
|
createFarmReactRefreshPlugins,
|
|
44
44
|
farmDesktopDevGuardPlugin
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
inspectStaticMetadataImage,
|
|
59
59
|
mergeFarmViteConfig,
|
|
60
60
|
resolveFarmImageProviderForRuntime
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-YR7ZI57S.mjs";
|
|
62
62
|
import {
|
|
63
63
|
loadTailwindVitePlugin
|
|
64
64
|
} from "./chunk-ADKPJZPP.mjs";
|
|
@@ -71,8 +71,8 @@ import {
|
|
|
71
71
|
validateFarmDesktopConfig
|
|
72
72
|
} from "./chunk-W5T3ZAFU.mjs";
|
|
73
73
|
import "./chunk-UB7RVEMX.mjs";
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
74
|
+
import "./chunk-D4DAL7KK.mjs";
|
|
75
|
+
import "./chunk-POCWXRXW.mjs";
|
|
76
76
|
import "./chunk-KQXYBJES.mjs";
|
|
77
77
|
import "./chunk-YHHOTKUT.mjs";
|
|
78
78
|
import "./chunk-UTUS6JUH.mjs";
|
|
@@ -80,15 +80,15 @@ import "./chunk-WRT775N6.mjs";
|
|
|
80
80
|
import {
|
|
81
81
|
_farmWebMCPReportsEnabled,
|
|
82
82
|
createFarmInfraAnalyticsPlugin
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-7IM2MKRK.mjs";
|
|
84
84
|
import "./chunk-EZYKV24V.mjs";
|
|
85
85
|
import "./chunk-LP6DIYGA.mjs";
|
|
86
86
|
import "./chunk-LLZSYFOM.mjs";
|
|
87
87
|
import "./chunk-UUMKLGUU.mjs";
|
|
88
88
|
import "./chunk-ZXDX7VYZ.mjs";
|
|
89
|
-
import "./chunk-
|
|
89
|
+
import "./chunk-BCIUG6EQ.mjs";
|
|
90
90
|
import "./chunk-WABOJXAA.mjs";
|
|
91
|
-
import "./chunk-
|
|
91
|
+
import "./chunk-AOSZIHL7.mjs";
|
|
92
92
|
import "./chunk-V7HNYR76.mjs";
|
|
93
93
|
import "./chunk-X3EFRVXY.mjs";
|
|
94
94
|
import "./chunk-2PFGA6PB.mjs";
|
|
@@ -101,7 +101,7 @@ import "./chunk-YFTGIHNC.mjs";
|
|
|
101
101
|
import "./chunk-TCGPBSVY.mjs";
|
|
102
102
|
import {
|
|
103
103
|
farmEnvironmentFunctionsPlugin
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-DR65XXXD.mjs";
|
|
105
105
|
import "./chunk-D2VAANBS.mjs";
|
|
106
106
|
import {
|
|
107
107
|
getTheme,
|
|
@@ -224,9 +224,9 @@ import {
|
|
|
224
224
|
_withAfterNodeMiddleware,
|
|
225
225
|
after
|
|
226
226
|
} from "./chunk-IYEY3JWJ.mjs";
|
|
227
|
-
import "./chunk-
|
|
227
|
+
import "./chunk-P3UT3OLV.mjs";
|
|
228
228
|
import "./chunk-NRWEY2CM.mjs";
|
|
229
|
-
import "./chunk-
|
|
229
|
+
import "./chunk-B6K2ZM3C.mjs";
|
|
230
230
|
import {
|
|
231
231
|
hasPolyroutePlugin,
|
|
232
232
|
isPolyrouteRouteFileName
|
|
@@ -246,7 +246,7 @@ import "./chunk-F7MJWW6A.mjs";
|
|
|
246
246
|
import "./chunk-U6XYBTUT.mjs";
|
|
247
247
|
import "./chunk-PNMAD3OS.mjs";
|
|
248
248
|
import "./chunk-UJWRXBVP.mjs";
|
|
249
|
-
import "./chunk-
|
|
249
|
+
import "./chunk-V2RXBDV6.mjs";
|
|
250
250
|
import "./chunk-PKMUQ7LM.mjs";
|
|
251
251
|
import {
|
|
252
252
|
FarmDataCache,
|
|
@@ -300,7 +300,7 @@ import "./chunk-H3ASZDT7.mjs";
|
|
|
300
300
|
import "./chunk-EILUVBKS.mjs";
|
|
301
301
|
import {
|
|
302
302
|
FARM_VERSION
|
|
303
|
-
} from "./chunk-
|
|
303
|
+
} from "./chunk-CV7C75LN.mjs";
|
|
304
304
|
import "./chunk-QPNVDSFZ.mjs";
|
|
305
305
|
import "./chunk-GYMGK467.mjs";
|
|
306
306
|
import "./chunk-5Y4GYKKH.mjs";
|
|
@@ -673,7 +673,7 @@ async function createServer2(config = {}, options = {}) {
|
|
|
673
673
|
checkWebDesktopBlock(userConfig?.desktop);
|
|
674
674
|
const rscConfig = userConfig ?? config;
|
|
675
675
|
if (resolveFarmServerComponentsMode(readFarmServerComponentsConfig(rscConfig))) {
|
|
676
|
-
const { createFarmRscDevServer, farmAppUsesRscPipeline, resolveFarmRscCheckConfig } = await import("./rsc-pipeline-
|
|
676
|
+
const { createFarmRscDevServer, farmAppUsesRscPipeline, resolveFarmRscCheckConfig } = await import("./rsc-pipeline-JISGZS6G.mjs");
|
|
677
677
|
await options.ensureServerComponentsPackages?.(rscConfig, root);
|
|
678
678
|
if (farmAppUsesRscPipeline(await resolveFarmRscCheckConfig(rscConfig, root, mode), root)) {
|
|
679
679
|
return await createFarmRscDevServer(rscConfig, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { M as Metadata } from './client-plugins.d-
|
|
1
|
+
import { M as Metadata } from './client-plugins.d-Dp89a9Gf.js';
|
|
2
2
|
import { F as FarmClientPluginManager } from './lifecycle.d-OtGWAvJT.js';
|
|
3
3
|
import { b as FarmI18nClientSnapshot } from './types.d-euATAbE4.js';
|
|
4
4
|
import { F as FarmIslandStrategy } from './island.d-CfGru1MO.js';
|
|
5
|
-
import { F as FarmRouteRenderPlan } from './render-plan.d-
|
|
5
|
+
import { F as FarmRouteRenderPlan } from './render-plan.d-DpxLd_1i.js';
|
|
6
6
|
|
|
7
7
|
type NavigationMetadata = (Metadata & Record<string, any>) | undefined;
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { M as Metadata } from './client-plugins.d-
|
|
1
|
+
import { M as Metadata } from './client-plugins.d-CqFAvu-W.mjs';
|
|
2
2
|
import { F as FarmClientPluginManager } from './lifecycle.d-OtGWAvJT.mjs';
|
|
3
3
|
import { b as FarmI18nClientSnapshot } from './types.d-euATAbE4.mjs';
|
|
4
4
|
import { F as FarmIslandStrategy } from './island.d-CfGru1MO.mjs';
|
|
5
|
-
import { F as FarmRouteRenderPlan } from './render-plan.d-
|
|
5
|
+
import { F as FarmRouteRenderPlan } from './render-plan.d-CTehM6y8.mjs';
|
|
6
6
|
|
|
7
7
|
type NavigationMetadata = (Metadata & Record<string, any>) | undefined;
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RouteRenderingOptions, a as RouteRenderingConfig, D as DirectiveRenderingConfig } from './route-rendering.d-
|
|
2
|
-
import { p as RouteModule, S as SSGCollectionResult, A as SSGPage } from './client-plugins.d-
|
|
1
|
+
import { R as RouteRenderingOptions, a as RouteRenderingConfig, D as DirectiveRenderingConfig } from './route-rendering.d-geg68qd0.mjs';
|
|
2
|
+
import { p as RouteModule, S as SSGCollectionResult, A as SSGPage } from './client-plugins.d-CqFAvu-W.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Farm.js SSG (Static Site Generation) Module
|
|
@@ -78,6 +78,11 @@ declare function resolveRouteRenderingConfigFromFile(mod: RouteModule | null | u
|
|
|
78
78
|
*/
|
|
79
79
|
declare function analyzeStaticRouteCandidate(mod: RouteModule | null | undefined, source: string | undefined, options?: {
|
|
80
80
|
isDynamic?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Count `dynamic = "auto"` as no rendering config. It renders per request like no export
|
|
83
|
+
* today, and experimental.staticPages reads it as "let Farm decide", as Next.js does.
|
|
84
|
+
*/
|
|
85
|
+
dynamicAutoIsUnset?: boolean;
|
|
81
86
|
}): StaticRouteCandidateAnalysis;
|
|
82
87
|
declare function findRequestBoundSourceBlockers(source: string): string[];
|
|
83
88
|
declare function parseRouteRenderingDirective(source: string | undefined): DirectiveRenderingConfig | undefined;
|
|
@@ -109,6 +114,12 @@ declare function collectSSGPages(routes: RouteEntry[], loadModule: (filePath: st
|
|
|
109
114
|
owns: (routePath: string) => boolean;
|
|
110
115
|
prerender: boolean;
|
|
111
116
|
};
|
|
117
|
+
/**
|
|
118
|
+
* experimental.staticPages: also list the pages that set no rendering mode and pass
|
|
119
|
+
* {@link analyzeStaticRouteCandidate}, one entry per URL. The build renders each once and
|
|
120
|
+
* writes only those whose render read no request state. They take the hint's place.
|
|
121
|
+
*/
|
|
122
|
+
staticCandidates?: boolean;
|
|
112
123
|
}): Promise<SSGCollectionResult>;
|
|
113
124
|
/**
|
|
114
125
|
* Check if a route module is SSG
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RouteRenderingOptions, a as RouteRenderingConfig, D as DirectiveRenderingConfig } from './route-rendering.d-
|
|
2
|
-
import { p as RouteModule, S as SSGCollectionResult, A as SSGPage } from './client-plugins.d-
|
|
1
|
+
import { R as RouteRenderingOptions, a as RouteRenderingConfig, D as DirectiveRenderingConfig } from './route-rendering.d-bEil1VkF.js';
|
|
2
|
+
import { p as RouteModule, S as SSGCollectionResult, A as SSGPage } from './client-plugins.d-Dp89a9Gf.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Farm.js SSG (Static Site Generation) Module
|
|
@@ -78,6 +78,11 @@ declare function resolveRouteRenderingConfigFromFile(mod: RouteModule | null | u
|
|
|
78
78
|
*/
|
|
79
79
|
declare function analyzeStaticRouteCandidate(mod: RouteModule | null | undefined, source: string | undefined, options?: {
|
|
80
80
|
isDynamic?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Count `dynamic = "auto"` as no rendering config. It renders per request like no export
|
|
83
|
+
* today, and experimental.staticPages reads it as "let Farm decide", as Next.js does.
|
|
84
|
+
*/
|
|
85
|
+
dynamicAutoIsUnset?: boolean;
|
|
81
86
|
}): StaticRouteCandidateAnalysis;
|
|
82
87
|
declare function findRequestBoundSourceBlockers(source: string): string[];
|
|
83
88
|
declare function parseRouteRenderingDirective(source: string | undefined): DirectiveRenderingConfig | undefined;
|
|
@@ -109,6 +114,12 @@ declare function collectSSGPages(routes: RouteEntry[], loadModule: (filePath: st
|
|
|
109
114
|
owns: (routePath: string) => boolean;
|
|
110
115
|
prerender: boolean;
|
|
111
116
|
};
|
|
117
|
+
/**
|
|
118
|
+
* experimental.staticPages: also list the pages that set no rendering mode and pass
|
|
119
|
+
* {@link analyzeStaticRouteCandidate}, one entry per URL. The build renders each once and
|
|
120
|
+
* writes only those whose render read no request state. They take the hint's place.
|
|
121
|
+
*/
|
|
122
|
+
staticCandidates?: boolean;
|
|
112
123
|
}): Promise<SSGCollectionResult>;
|
|
113
124
|
/**
|
|
114
125
|
* Check if a route module is SSG
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FarmRouterPathParams, FarmRouterPathParam, FarmRouterBuildOptions, FarmRouterRouteInput } from './router.js';
|
|
2
|
-
import { b as FarmViewTransitionMode, a as FarmNavigationState, c as FarmNavigateOptions } from './spa-router.d-
|
|
2
|
+
import { b as FarmViewTransitionMode, a as FarmNavigationState, c as FarmNavigateOptions } from './spa-router.d-Bv-r3AAK.js';
|
|
3
3
|
import { F as FarmClientCacheStatus } from './client-cache.d-Deoqq-nM.js';
|
|
4
4
|
import { ServerFn } from './server-fn.js';
|
|
5
5
|
import { ServerQuery } from './server-query.js';
|
|
@@ -7,7 +7,7 @@ import { S as ServerQueryFetchOptions } from './server-query-runtime.d-BlHd90D0.
|
|
|
7
7
|
import { F as FarmThemeSnapshot, a as FarmThemePreference } from './types.d-DQnyD3VD.js';
|
|
8
8
|
import { f as FarmI18nLocale, b as FarmI18nClientSnapshot, o as FarmTranslator } from './types.d-euATAbE4.js';
|
|
9
9
|
import './image-attributes.d-BMPDQO1q.js';
|
|
10
|
-
import './navigation-delegate.d
|
|
10
|
+
import './navigation-delegate.d--imR0rY7.js';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Prefetch strategy (TanStack Router–style):
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FarmRouterPathParams, FarmRouterPathParam, FarmRouterBuildOptions, FarmRouterRouteInput } from './router.mjs';
|
|
2
|
-
import { b as FarmViewTransitionMode, a as FarmNavigationState, c as FarmNavigateOptions } from './spa-router.d-
|
|
2
|
+
import { b as FarmViewTransitionMode, a as FarmNavigationState, c as FarmNavigateOptions } from './spa-router.d-DhO_PJHP.mjs';
|
|
3
3
|
import { F as FarmClientCacheStatus } from './client-cache.d-di_Nasxa.mjs';
|
|
4
4
|
import { ServerFn } from './server-fn.mjs';
|
|
5
5
|
import { ServerQuery } from './server-query.mjs';
|
|
@@ -7,7 +7,7 @@ import { S as ServerQueryFetchOptions } from './server-query-runtime.d-CCLGkQtE.
|
|
|
7
7
|
import { F as FarmThemeSnapshot, a as FarmThemePreference } from './types.d-DQnyD3VD.mjs';
|
|
8
8
|
import { f as FarmI18nLocale, b as FarmI18nClientSnapshot, o as FarmTranslator } from './types.d-euATAbE4.mjs';
|
|
9
9
|
import './image-attributes.d-BMPDQO1q.mjs';
|
|
10
|
-
import './navigation-delegate.d-
|
|
10
|
+
import './navigation-delegate.d-DVEtyGYw.mjs';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Prefetch strategy (TanStack Router–style):
|
package/dist/testing.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkRF3VCNV7cjs = require('./chunk-RF3VCNV7.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -12,9 +12,9 @@ var _chunkNMMCBJZMcjs = require('./chunk-NMMCBJZM.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
var _chunkYZMSJRM5cjs = require('./chunk-YZMSJRM5.cjs');
|
|
15
|
-
require('./chunk-
|
|
15
|
+
require('./chunk-Y3MTKPLN.cjs');
|
|
16
16
|
require('./chunk-6K7LEL2T.cjs');
|
|
17
|
-
require('./chunk-
|
|
17
|
+
require('./chunk-DZWX7FDX.cjs');
|
|
18
18
|
require('./chunk-YCGOQKVC.cjs');
|
|
19
19
|
require('./chunk-YCIFGYBY.cjs');
|
|
20
20
|
require('./chunk-YHALJBYT.cjs');
|
|
@@ -30,7 +30,7 @@ require('./chunk-3ACTVXZG.cjs');
|
|
|
30
30
|
require('./chunk-KHTJVI6B.cjs');
|
|
31
31
|
require('./chunk-G22QP2MX.cjs');
|
|
32
32
|
require('./chunk-MMSCWTJT.cjs');
|
|
33
|
-
require('./chunk-
|
|
33
|
+
require('./chunk-LH7S7FI3.cjs');
|
|
34
34
|
require('./chunk-GUDYDNKU.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
@@ -134,7 +134,7 @@ function createFarmTestHarness(options = {}) {
|
|
|
134
134
|
},
|
|
135
135
|
routeContext
|
|
136
136
|
);
|
|
137
|
-
const routeModule =
|
|
137
|
+
const routeModule = _chunkRF3VCNV7cjs.createRouteModuleFromProgrammaticPage.call(void 0, route);
|
|
138
138
|
const resolveProps = routeModule.__farmResolveRouteProps;
|
|
139
139
|
const resolvedProps = resolveProps ? await resolveProps(rawProps) : { ...rawProps, search, searchParams: _chunkK6LZMZNBcjs.createFarmSearchParams.call(void 0, search) };
|
|
140
140
|
const canonicalPath = readCanonicalPath(resolvedProps);
|