@farm.js/core 0.1.51-beta.1 → 0.1.51-beta.3
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-handler-WWCC4GLG.mjs → agent-mcp-handler-7JSKGSOW.mjs} +4 -4
- package/dist/{agent-mcp-handler-RT3COCEL.cjs → agent-mcp-handler-YE4AGWHN.cjs} +5 -5
- package/dist/{agent-mcp.d-ZuuNgrkQ.d.ts → agent-mcp.d-BAR9njbJ.d.ts} +1 -1
- package/dist/{agent-mcp.d-BPzpKBHQ.d.mts → agent-mcp.d-BJKChOrO.d.mts} +1 -1
- package/dist/agent-runtime.d.mts +2 -2
- package/dist/agent-runtime.d.ts +2 -2
- package/dist/{analyzer-V74FTD2F.mjs → analyzer-OTPEWH5W.mjs} +82 -22
- package/dist/{analyzer-AZULAOPL.cjs → analyzer-TSQXZCZN.cjs} +82 -22
- package/dist/api/route-manager.d.mts +4 -4
- package/dist/api/route-manager.d.ts +4 -4
- package/dist/api/runtime.d.mts +3 -3
- package/dist/api/runtime.d.ts +3 -3
- package/dist/api.d.mts +4 -4
- package/dist/api.d.ts +4 -4
- package/dist/{app-manifest.d-HWhqbP2X.d.ts → app-manifest.d-BLFbaqx8.d.ts} +1 -1
- package/dist/{app-manifest.d-BJDcZn3W.d.mts → app-manifest.d-DEQNnNhV.d.mts} +1 -1
- package/dist/app-markdown.cjs +4 -4
- package/dist/app-markdown.d.mts +3 -3
- package/dist/app-markdown.d.ts +3 -3
- package/dist/app-markdown.mjs +3 -3
- package/dist/{app.d-B5EWdob-.d.ts → app.d-CNPaUYaa.d.ts} +4 -4
- package/dist/{app.d-DOGW1KI8.d.mts → app.d-CT7xDkj2.d.mts} +4 -4
- package/dist/{chunk-YVJV7Q2X.mjs → chunk-3BLEXUGE.mjs} +1 -1
- package/dist/chunk-3HLQTOVU.cjs +6 -0
- package/dist/{chunk-KU7MBLDZ.mjs → chunk-3SMXQNFD.mjs} +2 -2
- package/dist/{chunk-EWC76P5D.mjs → chunk-3TLKUBXG.mjs} +411 -166
- package/dist/{chunk-BSEKNTMS.mjs → chunk-3WSIYBMG.mjs} +41 -19
- package/dist/{chunk-JVBNKWLV.cjs → chunk-3XQ57EFI.cjs} +16 -16
- package/dist/{chunk-GW4YUIHW.mjs → chunk-3Z63X45F.mjs} +1 -1
- package/dist/{chunk-SCRC5AMM.mjs → chunk-4353ZRE5.mjs} +1 -1
- package/dist/{chunk-SBABQKPT.cjs → chunk-46KXZBOG.cjs} +5 -5
- package/dist/{chunk-2756SHCI.cjs → chunk-4CGOMZP3.cjs} +221 -199
- package/dist/{chunk-RMPNYUGT.cjs → chunk-4SEHMBL4.cjs} +10 -10
- package/dist/{chunk-QAIAFCRZ.mjs → chunk-4TKAIO2F.mjs} +3 -3
- package/dist/{chunk-NJLTQR5P.cjs → chunk-53SACYBY.cjs} +7 -7
- package/dist/{chunk-I3EFXUAR.mjs → chunk-5FXPJIOT.mjs} +2 -2
- package/dist/chunk-7FVVQEVL.cjs +541 -0
- package/dist/{chunk-IFBINMI4.cjs → chunk-7MD37P5V.cjs} +5 -5
- package/dist/{chunk-JATTVAHA.cjs → chunk-B3GM5I6N.cjs} +4 -4
- package/dist/chunk-C3BOESDW.mjs +541 -0
- package/dist/{chunk-WJFFPXCV.cjs → chunk-D7UQC4O6.cjs} +10 -8
- package/dist/{chunk-KRRZJ77U.mjs → chunk-E5DXF5GE.mjs} +2 -2
- package/dist/chunk-EFZGB7JC.cjs +114 -0
- package/dist/{chunk-NYQSC4DX.cjs → chunk-FFE2EMF7.cjs} +5 -5
- package/dist/{chunk-KMB5BMFX.mjs → chunk-GAO7MS5O.mjs} +9 -3
- package/dist/{chunk-HIFIG6HL.cjs → chunk-H33PJEXN.cjs} +5 -5
- package/dist/{chunk-TT66CP3P.cjs → chunk-HLWOWZFX.cjs} +2 -2
- package/dist/chunk-JXEPLIXD.cjs +389 -0
- package/dist/{chunk-VITZRYW3.cjs → chunk-KLNFJDFM.cjs} +15 -9
- package/dist/{chunk-KBRZAYI7.mjs → chunk-LDNSSHEG.mjs} +2 -2
- package/dist/chunk-LLZSYFOM.mjs +6 -0
- package/dist/{chunk-N77JBPLC.mjs → chunk-LPDKG6RA.mjs} +9 -7
- package/dist/chunk-MIGFX2FN.mjs +758 -0
- package/dist/{chunk-72D2NX77.mjs → chunk-MRNDAJEV.mjs} +1 -1
- package/dist/{chunk-5A5GAZ75.mjs → chunk-NOTSHVRN.mjs} +406 -234
- package/dist/{chunk-AGR7VJH2.cjs → chunk-OAMUSC7H.cjs} +1 -1
- package/dist/chunk-P6MHI5O2.cjs +758 -0
- package/dist/{chunk-EOSFVNXZ.mjs → chunk-R4PHCZ3G.mjs} +1 -1
- package/dist/{chunk-X2M4XN4V.cjs → chunk-TQMI6BYO.cjs} +675 -430
- package/dist/{chunk-76GHW3WI.cjs → chunk-TSFMFPRU.cjs} +4 -4
- package/dist/{chunk-5N7QAGEA.cjs → chunk-TWHXBMLJ.cjs} +37 -7
- package/dist/{chunk-BOVGCUDZ.cjs → chunk-UJL4JOXV.cjs} +2 -2
- package/dist/chunk-UQF3OJVE.mjs +389 -0
- package/dist/{chunk-XY4DYGSU.cjs → chunk-WGUHDWT5.cjs} +607 -435
- package/dist/{chunk-LAZK6UV7.mjs → chunk-YAJTD3ZG.mjs} +1 -1
- package/dist/{chunk-7UPCJDB5.mjs → chunk-YUEYBL35.mjs} +2 -2
- package/dist/{chunk-EIMK7D2D.mjs → chunk-ZD2VKAUI.mjs} +34 -4
- package/dist/chunk-ZNXTU4YH.mjs +114 -0
- package/dist/{client-plugins.d-C_3CdALC.d.mts → client-plugins.d-DllmH8eM.d.mts} +31 -5
- package/dist/{client-plugins.d-C0n8Yhh-.d.ts → client-plugins.d-n3iWY1EJ.d.ts} +31 -5
- package/dist/client-plugins.d.mts +2 -2
- package/dist/client-plugins.d.ts +2 -2
- package/dist/client.d.mts +7 -7
- package/dist/client.d.ts +7 -7
- package/dist/{config.d-CnhyvvmT.d.ts → config.d-DqKaCr1r.d.mts} +14 -3
- package/dist/{config.d-CnhyvvmT.d.mts → config.d-DqKaCr1r.d.ts} +14 -3
- package/dist/config.d.mts +2 -2
- package/dist/config.d.ts +2 -2
- package/dist/desktop.d.mts +3 -3
- package/dist/desktop.d.ts +3 -3
- package/dist/{devtools-KJFUE5FO.cjs → devtools-TO6TAO32.cjs} +5 -5
- package/dist/{devtools-BU5IT2PD.mjs → devtools-UESYARTF.mjs} +4 -4
- package/dist/docs.cjs +7 -7
- package/dist/docs.d.mts +3 -3
- package/dist/docs.d.ts +3 -3
- package/dist/docs.mjs +6 -6
- package/dist/index.cjs +23 -18
- package/dist/{index.d-CsGxS-hZ.d.mts → index.d-BL7KKiwa.d.mts} +1 -1
- package/dist/{index.d-B6M_8kmo.d.ts → index.d-BXsAXm1U.d.ts} +1 -1
- package/dist/index.d.mts +17 -17
- package/dist/index.d.ts +17 -17
- package/dist/index.mjs +23 -18
- package/dist/integrations.d.mts +2 -2
- package/dist/integrations.d.ts +2 -2
- package/dist/internal/app-markdown-runtime.cjs +3 -3
- package/dist/internal/app-markdown-runtime.d.mts +3 -3
- package/dist/internal/app-markdown-runtime.d.ts +3 -3
- package/dist/internal/app-markdown-runtime.mjs +2 -2
- package/dist/internal/build-runtime.cjs +21 -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 +20 -17
- package/dist/internal/cli-runtime.cjs +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 +2 -2
- package/dist/internal/compression-runtime.d.ts +2 -2
- package/dist/internal/config-runtime.cjs +6 -6
- package/dist/internal/config-runtime.d.mts +41 -80
- package/dist/internal/config-runtime.d.ts +41 -80
- package/dist/internal/config-runtime.mjs +5 -5
- package/dist/internal/infra-analytics-runtime.cjs +8 -8
- package/dist/internal/infra-analytics-runtime.mjs +6 -6
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +91 -9
- package/dist/internal/production-runtime.d.mts +67 -12
- package/dist/internal/production-runtime.d.ts +67 -12
- package/dist/internal/production-runtime.mjs +90 -8
- package/dist/markdown.cjs +4 -2
- package/dist/markdown.d.mts +2 -2
- package/dist/markdown.d.ts +2 -2
- package/dist/markdown.mjs +3 -1
- package/dist/middleware.d.mts +4 -4
- package/dist/middleware.d.ts +4 -4
- package/dist/mobile.d.mts +21 -5
- package/dist/mobile.d.ts +21 -5
- package/dist/native-tree-EBPDFTRW.mjs +25 -0
- package/dist/native-tree-MMZS7S6W.cjs +25 -0
- package/dist/{navigation-delegate.d-C0BbdUgN.d.mts → navigation-delegate.d-C76gXTmO.d.mts} +1 -1
- package/dist/{navigation-delegate.d-jArRF0ZP.d.ts → navigation-delegate.d-DIyDslxt.d.ts} +1 -1
- package/dist/navigation.d.mts +5 -5
- package/dist/navigation.d.ts +5 -5
- package/dist/plugin.cjs +14 -13
- package/dist/plugin.d.mts +5 -4
- package/dist/plugin.d.ts +5 -4
- package/dist/plugin.mjs +13 -12
- package/dist/{production-runtime.d-DFaQ1qaV.d.mts → production-runtime.d-CDHztggO.d.mts} +1 -1
- package/dist/{production-runtime.d-UnXmSS_S.d.ts → production-runtime.d-tyaGdbk6.d.ts} +1 -1
- package/dist/{programmatic-routes-client.d-VZ0qcbH4.d.ts → programmatic-routes-client.d-XfmIrCK1.d.ts} +2 -2
- package/dist/{programmatic-routes-client.d-BIowUXQC.d.mts → programmatic-routes-client.d-aAWiDd64.d.mts} +2 -2
- package/dist/{render-plan.d-BNeqyPyJ.d.mts → render-plan.d-Diwybxo8.d.mts} +1 -1
- package/dist/{render-plan.d-BB6KrYjP.d.ts → render-plan.d-Dr5WRjoV.d.ts} +1 -1
- package/dist/renderer-client.d.mts +5 -5
- package/dist/renderer-client.d.ts +5 -5
- package/dist/{request.d-Bxhghm76.d.ts → request.d-D01fRn--.d.ts} +1 -1
- package/dist/{request.d-BV1munmx.d.mts → request.d-Dd3AFR79.d.mts} +1 -1
- package/dist/request.d.mts +3 -3
- package/dist/request.d.ts +3 -3
- package/dist/{route-rendering.d-DShqKlgK.d.mts → route-rendering.d-BQ53lJ_D.d.mts} +1 -1
- package/dist/{route-rendering.d-BIf7zE9d.d.ts → route-rendering.d-Bhx4QoJt.d.ts} +1 -1
- package/dist/{router.d-BE7i84fb.d.mts → router.d-Bi23a6Xc.d.mts} +1 -1
- package/dist/{router.d-Bw3K3b0a.d.ts → router.d-DQ3k7EYn.d.ts} +1 -1
- package/dist/{routes.d-_5tBQexL.d.mts → routes.d-BgTd7vI4.d.mts} +91 -4
- package/dist/{routes.d-DVZQL0-H.d.ts → routes.d-C7jMJFvP.d.ts} +91 -4
- package/dist/routes.d.mts +2 -2
- package/dist/routes.d.ts +2 -2
- package/dist/{rsc-pipeline-FBM6NFYY.mjs → rsc-pipeline-K3ER3Q4N.mjs} +5 -5
- package/dist/{rsc-pipeline-IQI5XQLS.cjs → rsc-pipeline-OCZIT5OF.cjs} +6 -6
- package/dist/{runtime-DXEVFYLE.cjs → runtime-DKNSIH7V.cjs} +85 -29
- package/dist/{runtime-2JYIDUON.mjs → runtime-MKYDEUZT.mjs} +75 -19
- package/dist/{runtime.d-CQgoYR0Q.d.mts → runtime.d-B2Js6qZ2.d.mts} +1 -1
- package/dist/{runtime.d-CfhaLPl-.d.ts → runtime.d-BL-CGwoi.d.ts} +1 -1
- package/dist/server-plugins.d.mts +3 -3
- package/dist/server-plugins.d.ts +3 -3
- package/dist/server.cjs +31 -30
- package/dist/server.d.mts +11 -10
- package/dist/server.d.ts +11 -10
- package/dist/server.mjs +16 -15
- package/dist/session-AAU7RNRO.cjs +23 -0
- package/dist/session-IGEDQ5PY.mjs +23 -0
- package/dist/{spa-router.d-D63jb6nX.d.mts → spa-router.d-B2rIFGs0.d.mts} +2 -2
- package/dist/{spa-router.d-C5opIgXg.d.ts → spa-router.d-DqZ6Lfs0.d.ts} +2 -2
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/{utils.d-CkpTqTsC.d.ts → utils.d-Bv2MPeLR.d.ts} +1 -1
- package/dist/{utils.d-CO-U4OVZ.d.mts → utils.d-fqXe8lNc.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +14 -13
- package/dist/vite.d.mts +12 -6
- package/dist/vite.d.ts +12 -6
- package/dist/vite.mjs +13 -12
- package/package.json +3 -3
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
readFarmMobileClientManifest
|
|
3
|
+
} from "./chunk-ZNXTU4YH.mjs";
|
|
1
4
|
import {
|
|
2
5
|
loadConfig,
|
|
3
6
|
resolveConfig
|
|
4
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GAO7MS5O.mjs";
|
|
5
8
|
import "./chunk-VISQDC6W.mjs";
|
|
6
9
|
import {
|
|
7
10
|
createPlatformBlockChecker,
|
|
@@ -24,9 +27,9 @@ import "./chunk-CU5SYTJG.mjs";
|
|
|
24
27
|
import {
|
|
25
28
|
getFarmRendererComponentExtensions
|
|
26
29
|
} from "./chunk-ES2LD2YD.mjs";
|
|
27
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-LDNSSHEG.mjs";
|
|
28
31
|
import "./chunk-2WZTGPK6.mjs";
|
|
29
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-YAJTD3ZG.mjs";
|
|
30
33
|
import "./chunk-22W4FNTG.mjs";
|
|
31
34
|
import "./chunk-2NGZFOKG.mjs";
|
|
32
35
|
import "./chunk-N33DLJBC.mjs";
|
|
@@ -40,7 +43,7 @@ import "./chunk-X3JNB2TB.mjs";
|
|
|
40
43
|
import "./chunk-WXFY5JIY.mjs";
|
|
41
44
|
import "./chunk-FSQMN2MQ.mjs";
|
|
42
45
|
import "./chunk-YWPNIYUP.mjs";
|
|
43
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-LPDKG6RA.mjs";
|
|
44
47
|
import "./chunk-YP7YO3S3.mjs";
|
|
45
48
|
import "./chunk-Y2G5SJFB.mjs";
|
|
46
49
|
import "./chunk-H4WUWLQR.mjs";
|
|
@@ -241,10 +244,8 @@ function validateFarmMobilePageConfig(value, where, context) {
|
|
|
241
244
|
checkKeys(value, PAGE_KEYS, `${where}: mobile.`);
|
|
242
245
|
checkPresentation(value.presentation, `${where}: mobile`, check);
|
|
243
246
|
checkPrefetch(value.prefetch, `${where}: mobile.`, check);
|
|
244
|
-
if (value.native !== void 0 && value.native !==
|
|
245
|
-
fail(
|
|
246
|
-
`${where}: mobile.native can only be false. A native screen comes from a page.native.tsx next to the page.`
|
|
247
|
-
);
|
|
247
|
+
if (value.native !== void 0 && typeof value.native !== "boolean") {
|
|
248
|
+
fail(`${where}: mobile.native must be true or false.`);
|
|
248
249
|
}
|
|
249
250
|
return value;
|
|
250
251
|
}
|
|
@@ -455,7 +456,15 @@ function resolveFarmMobileBlock(input, context, cache) {
|
|
|
455
456
|
|
|
456
457
|
// src/mobile/report.ts
|
|
457
458
|
function createFarmMobileNativeReport(options) {
|
|
458
|
-
const summary = {
|
|
459
|
+
const summary = {
|
|
460
|
+
routes: 0,
|
|
461
|
+
analyzed: 0,
|
|
462
|
+
port: 0,
|
|
463
|
+
portableNoWin: 0,
|
|
464
|
+
blocked: 0,
|
|
465
|
+
native: 0,
|
|
466
|
+
tiers: { native: 0, "react-native": 0, web: 0 }
|
|
467
|
+
};
|
|
459
468
|
const routes = options.routes.map((route) => {
|
|
460
469
|
const decision = options.screens[route];
|
|
461
470
|
const analyzed = options.analysis[route];
|
|
@@ -463,6 +472,7 @@ function createFarmMobileNativeReport(options) {
|
|
|
463
472
|
if (decision.screen !== "web") summary.native += 1;
|
|
464
473
|
if (analyzed) {
|
|
465
474
|
summary.analyzed += 1;
|
|
475
|
+
summary.tiers[analyzed.tier] += 1;
|
|
466
476
|
if (analyzed.decision === "port") summary.port += 1;
|
|
467
477
|
else if (analyzed.portable) summary.portableNoWin += 1;
|
|
468
478
|
else summary.blocked += 1;
|
|
@@ -489,17 +499,20 @@ function createFarmMobileNativeReport(options) {
|
|
|
489
499
|
function reasonFor(entry) {
|
|
490
500
|
const analysis = entry.analysis;
|
|
491
501
|
if (!analysis) {
|
|
492
|
-
if (entry.source === "page")
|
|
502
|
+
if (entry.source === "page") {
|
|
503
|
+
return `${entry.file}: mobile.native ${entry.requested ? "true" : "false"}`;
|
|
504
|
+
}
|
|
493
505
|
if (entry.source === "file") return entry.file;
|
|
494
506
|
if (entry.source === "config") {
|
|
495
507
|
return entry.file ? `native.routes, ${entry.file}` : "native.routes";
|
|
496
508
|
}
|
|
497
509
|
return "";
|
|
498
510
|
}
|
|
511
|
+
if (analysis.tier === "native") return "renders natively, no JavaScript on the device";
|
|
499
512
|
if (analysis.portable) {
|
|
500
513
|
return analysis.wins.length > 0 ? `portable; ${analysis.wins.join(", ")}` : `portable; no win (${analysis.elements.total} elements)`;
|
|
501
514
|
}
|
|
502
|
-
const [first, ...rest] = analysis.blockers;
|
|
515
|
+
const [first, ...rest] = analysis.nativeBlockers.length ? analysis.nativeBlockers : analysis.blockers;
|
|
503
516
|
const where = first.file ? `${first.file}:${first.line}:${first.column} ` : "";
|
|
504
517
|
return `${where}${first.message}${rest.length > 0 ? ` (+${rest.length} more)` : ""}`;
|
|
505
518
|
}
|
|
@@ -507,12 +520,13 @@ function formatFarmMobileNativeReport(report, options = {}) {
|
|
|
507
520
|
const rows = report.routes.map((entry) => [
|
|
508
521
|
entry.route,
|
|
509
522
|
entry.screen,
|
|
523
|
+
entry.analysis ? entry.analysis.tier : "-",
|
|
510
524
|
entry.analysis ? entry.analysis.decision : "-",
|
|
511
525
|
entry.analysis ? `${entry.analysis.elements.mapped}/${entry.analysis.elements.total}` : "",
|
|
512
526
|
entry.analysis ? `${entry.analysis.portablePercent}%` : "",
|
|
513
527
|
reasonFor(entry)
|
|
514
528
|
]);
|
|
515
|
-
const header = ["route", "screen", "decision", "mapped", "portable", "reason"];
|
|
529
|
+
const header = ["route", "screen", "tier", "decision", "mapped", "portable", "reason"];
|
|
516
530
|
const widths = header.map(
|
|
517
531
|
(title, column) => Math.min(
|
|
518
532
|
column === 0 ? 40 : 12,
|
|
@@ -529,7 +543,8 @@ function formatFarmMobileNativeReport(report, options = {}) {
|
|
|
529
543
|
line(header),
|
|
530
544
|
...rows.map(line),
|
|
531
545
|
"",
|
|
532
|
-
`${summary.routes} routes: ${summary.port} port, ${summary.portableNoWin} portable without a win, ${summary.blocked} blocked, ${summary.native} native from files or config
|
|
546
|
+
`${summary.routes} routes: ${summary.port} port, ${summary.portableNoWin} portable without a win, ${summary.blocked} blocked, ${summary.native} native from files or config`,
|
|
547
|
+
`tiers: ${summary.tiers.native} native, ${summary.tiers["react-native"]} react-native, ${summary.tiers.web} web`
|
|
533
548
|
];
|
|
534
549
|
if (options.stats) {
|
|
535
550
|
const { modules, parsed, cached, ms } = options.stats;
|
|
@@ -604,6 +619,32 @@ function resolveFarmMobileScreens(options) {
|
|
|
604
619
|
screens[route] = { screen: "web", source: "page", file: page.file, ...base };
|
|
605
620
|
continue;
|
|
606
621
|
}
|
|
622
|
+
if (page?.config.native === true) {
|
|
623
|
+
if (tier !== void 0 && tier !== "native") {
|
|
624
|
+
warnings.push(`${page.file}: mobile.native true overrides ${where}.${tierKey} "${tier}".`);
|
|
625
|
+
}
|
|
626
|
+
const file2 = reactFile ?? platformFile;
|
|
627
|
+
if (file2) {
|
|
628
|
+
screens[route] = {
|
|
629
|
+
screen: reactFile ? "native" : "platform",
|
|
630
|
+
source: "page",
|
|
631
|
+
file: relativeFile(root, file2),
|
|
632
|
+
module,
|
|
633
|
+
...base
|
|
634
|
+
};
|
|
635
|
+
continue;
|
|
636
|
+
}
|
|
637
|
+
const analysis = options.analyzerTiers?.get(route);
|
|
638
|
+
if (analysis && analysis.tier !== "native") {
|
|
639
|
+
throw new TypeError(
|
|
640
|
+
`${prefix}: ${page.file} sets mobile.native to true, but "${route}" cannot render as a native screen:
|
|
641
|
+
${analysis.nativeBlockers.map((blocker) => ` - ${blocker}`).join("\n")}
|
|
642
|
+
` + (analysis.tier === "react-native" ? "It needs JavaScript on the device: add page.native.tsx next to the page, or " : "Remove the blockers, add page.native.tsx next to the page, or ") + "remove mobile.native."
|
|
643
|
+
);
|
|
644
|
+
}
|
|
645
|
+
screens[route] = analysis ? { screen: "server", source: "page", file: page.file, module, ...base } : { screen: "web", source: "page", file: page.file, requested: "native", ...base };
|
|
646
|
+
continue;
|
|
647
|
+
}
|
|
607
648
|
if (tier === "web") {
|
|
608
649
|
screens[route] = { screen: "web", source: "config", ...base };
|
|
609
650
|
continue;
|
|
@@ -634,6 +675,10 @@ function resolveFarmMobileScreens(options) {
|
|
|
634
675
|
};
|
|
635
676
|
continue;
|
|
636
677
|
}
|
|
678
|
+
if (options.analyzerTiers?.get(route)?.tier === "native") {
|
|
679
|
+
screens[route] = { screen: "server", source: "config", module, ...base };
|
|
680
|
+
continue;
|
|
681
|
+
}
|
|
637
682
|
const blockers = options.analyzerBlockers?.get(route);
|
|
638
683
|
warnings.push(
|
|
639
684
|
`${where}.${tierKey} is "native", but "${route}" has no ${nativeTier === "native" ? "page.native.tsx" : platformFileName} and Farm cannot port pages yet, so it stays web` + (blockers?.length ? `. The analyzer would keep it web: ${blockers.join("; ")}` : "") + ". This fails the build once native screens ship."
|
|
@@ -652,6 +697,10 @@ function resolveFarmMobileScreens(options) {
|
|
|
652
697
|
};
|
|
653
698
|
continue;
|
|
654
699
|
}
|
|
700
|
+
if (native.auto === "on" && options.analyzerTiers?.get(route)?.tier === "native") {
|
|
701
|
+
screens[route] = { screen: "server", source: "analyzer", module, ...base };
|
|
702
|
+
continue;
|
|
703
|
+
}
|
|
655
704
|
if (native.auto === "on" && options.analyzerPorts?.has(route)) {
|
|
656
705
|
screens[route] = { screen: "web", source: "analyzer", requested: nativeTier, ...base };
|
|
657
706
|
continue;
|
|
@@ -818,10 +867,14 @@ function getFarmMobileOutputDirs(distDir) {
|
|
|
818
867
|
ios: path2.join(root, "ios"),
|
|
819
868
|
dist: path2.join(root, "dist"),
|
|
820
869
|
report: path2.join(root, "native-report.json"),
|
|
821
|
-
analyzerCache: path2.join(distDir, "cache", "mobile", "analyzer.json")
|
|
870
|
+
analyzerCache: path2.join(distDir, "cache", "mobile", "analyzer.json"),
|
|
871
|
+
client: path2.join(distDir, "client")
|
|
822
872
|
};
|
|
823
873
|
}
|
|
824
874
|
var SCRIPT_PAGE = /\.(?:tsx|ts|jsx|js)$/;
|
|
875
|
+
function describe(blocker) {
|
|
876
|
+
return `${blocker.file ? `${blocker.file}:${blocker.line}:${blocker.column} ` : ""}${blocker.message}`;
|
|
877
|
+
}
|
|
825
878
|
function scriptLang(file) {
|
|
826
879
|
return file.endsWith(".tsx") ? "tsx" : file.endsWith(".ts") ? "ts" : "jsx";
|
|
827
880
|
}
|
|
@@ -894,13 +947,14 @@ async function resolveFarmMobileApp(options = {}) {
|
|
|
894
947
|
let { screens, warnings } = resolveFarmMobileScreens(screenOptions);
|
|
895
948
|
let report;
|
|
896
949
|
let analyzerStats;
|
|
897
|
-
const
|
|
950
|
+
const asserted = [...pageExports.values()].some((page) => page.config.native === true);
|
|
951
|
+
const analyze = options.analyze === "always" || asserted || options.analyze === true && mobile.native.auto !== "off";
|
|
898
952
|
if (analyze) {
|
|
899
953
|
const candidates = routes.filter((route) => {
|
|
900
954
|
const decision = screens[route];
|
|
901
955
|
return decision.source === "default" || decision.requested !== void 0;
|
|
902
956
|
});
|
|
903
|
-
const { analyzeFarmMobileRoutes } = await import("./analyzer-
|
|
957
|
+
const { analyzeFarmMobileRoutes } = await import("./analyzer-OTPEWH5W.mjs");
|
|
904
958
|
const result = await analyzeFarmMobileRoutes({
|
|
905
959
|
root,
|
|
906
960
|
srcDir: config.srcDir,
|
|
@@ -916,11 +970,12 @@ async function resolveFarmMobileApp(options = {}) {
|
|
|
916
970
|
Object.values(result.routes).filter((route) => route.decision === "port").map((route) => route.route)
|
|
917
971
|
),
|
|
918
972
|
analyzerBlockers: new Map(
|
|
973
|
+
Object.values(result.routes).map((route) => [route.route, route.blockers.map(describe)])
|
|
974
|
+
),
|
|
975
|
+
analyzerTiers: new Map(
|
|
919
976
|
Object.values(result.routes).map((route) => [
|
|
920
977
|
route.route,
|
|
921
|
-
route.
|
|
922
|
-
(blocker) => `${blocker.file ? `${blocker.file}:${blocker.line}:${blocker.column} ` : ""}${blocker.message}`
|
|
923
|
-
)
|
|
978
|
+
{ tier: route.tier, nativeBlockers: route.nativeBlockers.map(describe) }
|
|
924
979
|
])
|
|
925
980
|
)
|
|
926
981
|
}));
|
|
@@ -996,6 +1051,7 @@ export {
|
|
|
996
1051
|
formatFarmMobileNativeReport,
|
|
997
1052
|
generateFarmMobileRoutes,
|
|
998
1053
|
getFarmMobileOutputDirs,
|
|
1054
|
+
readFarmMobileClientManifest,
|
|
999
1055
|
readFarmMobilePageExport,
|
|
1000
1056
|
resolveFarmMobileApp,
|
|
1001
1057
|
resolveFarmMobileBlock,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { f as EndpointFailure } from './endpoint.d-BkMSCRf6.mjs';
|
|
2
2
|
import { c as PluginRoutesFactory } from './route.d-BaVH3V0w.mjs';
|
|
3
3
|
import { b as APIRouteParams, A as APIRouteMatch } from './route-pattern.d-CVsVbq5n.mjs';
|
|
4
|
-
import './client-plugins.d-
|
|
4
|
+
import './client-plugins.d-DllmH8eM.mjs';
|
|
5
5
|
|
|
6
6
|
interface MountedRoute {
|
|
7
7
|
path: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { f as EndpointFailure } from './endpoint.d-BgHn0lhl.js';
|
|
2
2
|
import { c as PluginRoutesFactory } from './route.d-DBTEqifW.js';
|
|
3
3
|
import { b as APIRouteParams, A as APIRouteMatch } from './route-pattern.d-CVsVbq5n.js';
|
|
4
|
-
import './client-plugins.d-
|
|
4
|
+
import './client-plugins.d-n3iWY1EJ.js';
|
|
5
5
|
|
|
6
6
|
interface MountedRoute {
|
|
7
7
|
path: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { a4 as FarmPluginLifecycle, ad as FarmPluginRuntimeEndpoint, ae as FarmPluginRuntimeEndpointEvent, ao as FarmRequestPluginContext, ap as FarmRequestStore } from './client-plugins.d-
|
|
1
|
+
import { eF as RedirectConfig, s as FarmRequest, t as FarmResponse, u as FarmPluginContext, F as FarmPlugin, ef as HeaderConfig, eO as RewriteConfig } from './client-plugins.d-DllmH8eM.mjs';
|
|
2
|
+
export { a4 as FarmPluginLifecycle, ad as FarmPluginRuntimeEndpoint, ae as FarmPluginRuntimeEndpointEvent, ao as FarmRequestPluginContext, ap as FarmRequestStore } from './client-plugins.d-DllmH8eM.mjs';
|
|
3
3
|
import { R as ResolvedFarmI18nConfig } from './types.d-C41ePjvP.mjs';
|
|
4
4
|
export { createCompressionPlugin } from './internal/compression-runtime.mjs';
|
|
5
5
|
import './lifecycle.d-C2aLBOwu.mjs';
|
|
@@ -30,7 +30,7 @@ import './layers.d-CcS42OGR.mjs';
|
|
|
30
30
|
import 'rolldown/utils';
|
|
31
31
|
import 'rolldown';
|
|
32
32
|
import './image-config.d-CeDgNyX4.mjs';
|
|
33
|
-
import './config.d-
|
|
33
|
+
import './config.d-DqKaCr1r.mjs';
|
|
34
34
|
import './types.d-DQnyD3VD.mjs';
|
|
35
35
|
import './font.mjs';
|
|
36
36
|
|
package/dist/server-plugins.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { a4 as FarmPluginLifecycle, ad as FarmPluginRuntimeEndpoint, ae as FarmPluginRuntimeEndpointEvent, ao as FarmRequestPluginContext, ap as FarmRequestStore } from './client-plugins.d-
|
|
1
|
+
import { eF as RedirectConfig, s as FarmRequest, t as FarmResponse, u as FarmPluginContext, F as FarmPlugin, ef as HeaderConfig, eO as RewriteConfig } from './client-plugins.d-n3iWY1EJ.js';
|
|
2
|
+
export { a4 as FarmPluginLifecycle, ad as FarmPluginRuntimeEndpoint, ae as FarmPluginRuntimeEndpointEvent, ao as FarmRequestPluginContext, ap as FarmRequestStore } from './client-plugins.d-n3iWY1EJ.js';
|
|
3
3
|
import { R as ResolvedFarmI18nConfig } from './types.d-C41ePjvP.js';
|
|
4
4
|
export { createCompressionPlugin } from './internal/compression-runtime.js';
|
|
5
5
|
import './lifecycle.d-C2aLBOwu.js';
|
|
@@ -30,7 +30,7 @@ import './layers.d-CcS42OGR.js';
|
|
|
30
30
|
import 'rolldown/utils';
|
|
31
31
|
import 'rolldown';
|
|
32
32
|
import './image-config.d-CeDgNyX4.js';
|
|
33
|
-
import './config.d-
|
|
33
|
+
import './config.d-DqKaCr1r.js';
|
|
34
34
|
import './types.d-DQnyD3VD.js';
|
|
35
35
|
import './font.js';
|
|
36
36
|
|
package/dist/server.cjs
CHANGED
|
@@ -4,7 +4,7 @@ var _chunkXPMC4E2Gcjs = require('./chunk-XPMC4E2G.cjs');
|
|
|
4
4
|
require('./chunk-3376ZTRC.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk7MD37P5Vcjs = require('./chunk-7MD37P5V.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -32,7 +32,7 @@ var _chunkV3UOEWCBcjs = require('./chunk-V3UOEWCB.cjs');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkKLNFJDFMcjs = require('./chunk-KLNFJDFM.cjs');
|
|
36
36
|
require('./chunk-OZC2JPW6.cjs');
|
|
37
37
|
require('./chunk-MPU5DOXX.cjs');
|
|
38
38
|
|
|
@@ -40,7 +40,7 @@ require('./chunk-MPU5DOXX.cjs');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunk4CGOMZP3cjs = require('./chunk-4CGOMZP3.cjs');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
@@ -57,7 +57,7 @@ require('./chunk-A5BJKSZE.cjs');
|
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
var
|
|
60
|
+
var _chunkTQMI6BYOcjs = require('./chunk-TQMI6BYO.cjs');
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
var _chunkLNM57D3Hcjs = require('./chunk-LNM57D3H.cjs');
|
|
@@ -71,20 +71,21 @@ var _chunk3EEET2Q5cjs = require('./chunk-3EEET2Q5.cjs');
|
|
|
71
71
|
var _chunkAQLHD6HZcjs = require('./chunk-AQLHD6HZ.cjs');
|
|
72
72
|
require('./chunk-YKHRCY4T.cjs');
|
|
73
73
|
require('./chunk-UQHIWZZ6.cjs');
|
|
74
|
-
require('./chunk-E36C43IX.cjs');
|
|
75
74
|
require('./chunk-N7JQXQAV.cjs');
|
|
75
|
+
require('./chunk-E36C43IX.cjs');
|
|
76
76
|
require('./chunk-SHD265HW.cjs');
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
var _chunkSYW346ZNcjs = require('./chunk-SYW346ZN.cjs');
|
|
80
80
|
require('./chunk-GBMWLDCC.cjs');
|
|
81
81
|
require('./chunk-QISW423S.cjs');
|
|
82
|
-
require('./chunk-
|
|
82
|
+
require('./chunk-TSFMFPRU.cjs');
|
|
83
|
+
require('./chunk-3HLQTOVU.cjs');
|
|
83
84
|
require('./chunk-47JV57DA.cjs');
|
|
84
85
|
require('./chunk-EZTKXD6P.cjs');
|
|
85
86
|
require('./chunk-SGBNF56S.cjs');
|
|
86
|
-
require('./chunk-
|
|
87
|
-
require('./chunk-
|
|
87
|
+
require('./chunk-4SEHMBL4.cjs');
|
|
88
|
+
require('./chunk-46KXZBOG.cjs');
|
|
88
89
|
require('./chunk-YB44NKC2.cjs');
|
|
89
90
|
require('./chunk-XGJVRPYL.cjs');
|
|
90
91
|
require('./chunk-3OWVWZ6R.cjs');
|
|
@@ -98,8 +99,8 @@ require('./chunk-7EPYN7GW.cjs');
|
|
|
98
99
|
|
|
99
100
|
|
|
100
101
|
var _chunkNK2VWS7Pcjs = require('./chunk-NK2VWS7P.cjs');
|
|
101
|
-
require('./chunk-
|
|
102
|
-
require('./chunk-
|
|
102
|
+
require('./chunk-UJL4JOXV.cjs');
|
|
103
|
+
require('./chunk-B3GM5I6N.cjs');
|
|
103
104
|
require('./chunk-UNJZGVPU.cjs');
|
|
104
105
|
|
|
105
106
|
|
|
@@ -118,9 +119,9 @@ require('./chunk-STF6VDYQ.cjs');
|
|
|
118
119
|
|
|
119
120
|
|
|
120
121
|
var _chunkRD623KW4cjs = require('./chunk-RD623KW4.cjs');
|
|
121
|
-
require('./chunk-
|
|
122
|
+
require('./chunk-FFE2EMF7.cjs');
|
|
122
123
|
require('./chunk-SG57PX7K.cjs');
|
|
123
|
-
require('./chunk-
|
|
124
|
+
require('./chunk-H33PJEXN.cjs');
|
|
124
125
|
require('./chunk-6JHZPB52.cjs');
|
|
125
126
|
require('./chunk-HEPJIKKQ.cjs');
|
|
126
127
|
|
|
@@ -153,7 +154,7 @@ require('./chunk-2KMIJDY6.cjs');
|
|
|
153
154
|
|
|
154
155
|
var _chunkFK25QSVCcjs = require('./chunk-FK25QSVC.cjs');
|
|
155
156
|
require('./chunk-WT6RAN2I.cjs');
|
|
156
|
-
require('./chunk-
|
|
157
|
+
require('./chunk-D7UQC4O6.cjs');
|
|
157
158
|
|
|
158
159
|
|
|
159
160
|
|
|
@@ -271,7 +272,7 @@ require('./chunk-JYT7AN37.cjs');
|
|
|
271
272
|
require('./chunk-B5BBTPJQ.cjs');
|
|
272
273
|
|
|
273
274
|
|
|
274
|
-
var
|
|
275
|
+
var _chunkOAMUSC7Hcjs = require('./chunk-OAMUSC7H.cjs');
|
|
275
276
|
require('./chunk-JGAE5XPL.cjs');
|
|
276
277
|
require('./chunk-OOZEU5KK.cjs');
|
|
277
278
|
require('./chunk-HA7YRO53.cjs');
|
|
@@ -494,7 +495,7 @@ function createBrandingPlugin() {
|
|
|
494
495
|
const pc = _chunkY3WG64CPcjs.createCliColors.call(void 0, );
|
|
495
496
|
console.log("");
|
|
496
497
|
console.log(
|
|
497
|
-
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${
|
|
498
|
+
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${_chunkOAMUSC7Hcjs.FARM_VERSION}`)} ${pc.dim(`ready in ${elapsed}ms`)}`
|
|
498
499
|
);
|
|
499
500
|
console.log("");
|
|
500
501
|
console.log(
|
|
@@ -569,7 +570,7 @@ function inlineEnvScope(scope) {
|
|
|
569
570
|
);
|
|
570
571
|
}
|
|
571
572
|
async function resolveInlineConfig(config, mode) {
|
|
572
|
-
if (
|
|
573
|
+
if (_chunkKLNFJDFMcjs.isResolvedFarmConfig.call(void 0, config)) {
|
|
573
574
|
_chunk3EIPOTZVcjs.setEnv.call(void 0, config.env);
|
|
574
575
|
return { ...config };
|
|
575
576
|
}
|
|
@@ -579,7 +580,7 @@ async function resolveInlineConfig(config, mode) {
|
|
|
579
580
|
const resolvedI18n = i18n && "enabled" in i18n ? i18n : void 0;
|
|
580
581
|
const auth = config.auth;
|
|
581
582
|
const resolvedAuth = auth && typeof auth === "object" && typeof auth.emailAndPassword === "object" && "enabled" in auth.emailAndPassword ? auth : void 0;
|
|
582
|
-
const resolved = await
|
|
583
|
+
const resolved = await _chunkKLNFJDFMcjs.resolveConfig.call(void 0,
|
|
583
584
|
{
|
|
584
585
|
...config,
|
|
585
586
|
...resolvedDocs ? { docs: false } : {},
|
|
@@ -616,11 +617,11 @@ async function createServer2(config = {}, options = {}) {
|
|
|
616
617
|
try {
|
|
617
618
|
const root = config.root || process.cwd();
|
|
618
619
|
const mode = process.env.NODE_ENV === "production" ? "production" : "development";
|
|
619
|
-
const userConfig = await
|
|
620
|
+
const userConfig = await _chunkKLNFJDFMcjs.loadConfig.call(void 0, root, void 0, mode);
|
|
620
621
|
checkWebDesktopBlock(_optionalChain([userConfig, 'optionalAccess', _19 => _19.desktop]));
|
|
621
622
|
const rscConfig = _nullishCoalesce(userConfig, () => ( config));
|
|
622
623
|
if (_chunkBPNOYILCcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([rscConfig, 'access', _20 => _20.experimental, 'optionalAccess', _21 => _21.serverComponents]))) {
|
|
623
|
-
const { createFarmRscDevServer, farmAppUsesRscPipeline, resolveFarmRscCheckConfig } = await import("./rsc-pipeline-
|
|
624
|
+
const { createFarmRscDevServer, farmAppUsesRscPipeline, resolveFarmRscCheckConfig } = await import("./rsc-pipeline-OCZIT5OF.cjs");
|
|
624
625
|
await _optionalChain([options, 'access', _22 => _22.ensureServerComponentsPackages, 'optionalCall', _23 => _23(rscConfig, root)]);
|
|
625
626
|
if (farmAppUsesRscPipeline(await resolveFarmRscCheckConfig(rscConfig, root, mode), root)) {
|
|
626
627
|
return await createFarmRscDevServer(rscConfig, {
|
|
@@ -630,7 +631,7 @@ async function createServer2(config = {}, options = {}) {
|
|
|
630
631
|
});
|
|
631
632
|
}
|
|
632
633
|
}
|
|
633
|
-
const resolvedConfig = userConfig ? await
|
|
634
|
+
const resolvedConfig = userConfig ? await _chunkKLNFJDFMcjs.resolveConfig.call(void 0, userConfig, mode) : await resolveInlineConfig(config, mode);
|
|
634
635
|
const instrumentationRoot = resolvedConfig.root;
|
|
635
636
|
const instrumentationFile = _chunkBRWIVOV4cjs.resolveFarmInstrumentationFile.call(void 0,
|
|
636
637
|
instrumentationRoot,
|
|
@@ -667,7 +668,7 @@ async function createServer2(config = {}, options = {}) {
|
|
|
667
668
|
pluginManager.addPlugin(_chunkCL2ONP73cjs.createCompressionPlugin.call(void 0, ));
|
|
668
669
|
}
|
|
669
670
|
pluginManager.addPlugins(resolvedConfig.plugins);
|
|
670
|
-
const infraAnalytics = resolvedConfig.analytics !== false ?
|
|
671
|
+
const infraAnalytics = resolvedConfig.analytics !== false ? _chunk7MD37P5Vcjs.createFarmInfraAnalyticsPlugin.call(void 0, ) : null;
|
|
671
672
|
if (infraAnalytics) pluginManager.addPlugin(infraAnalytics);
|
|
672
673
|
if (mode === "development") {
|
|
673
674
|
const hasLogger = pluginManager.getPlugins().some((p) => p.name === "farm:logger");
|
|
@@ -680,7 +681,7 @@ async function createServer2(config = {}, options = {}) {
|
|
|
680
681
|
finalConfig = await pluginManager.runHookSerial("config", finalConfig);
|
|
681
682
|
finalConfig.renderer = _chunkRD623KW4cjs.resolveFarmRenderer.call(void 0, finalConfig.renderer);
|
|
682
683
|
const projectRoot = finalConfig.root || process.cwd();
|
|
683
|
-
finalConfig.images =
|
|
684
|
+
finalConfig.images = _chunkTQMI6BYOcjs.resolveFarmImageProviderForRuntime.call(void 0, finalConfig.images, {
|
|
684
685
|
root: projectRoot,
|
|
685
686
|
dev: true
|
|
686
687
|
});
|
|
@@ -701,20 +702,20 @@ async function createServer2(config = {}, options = {}) {
|
|
|
701
702
|
tailwindVitePlugin = await _chunkLNM57D3Hcjs.loadTailwindVitePlugin.call(void 0, );
|
|
702
703
|
}
|
|
703
704
|
server = await createViteDevServer(
|
|
704
|
-
|
|
705
|
+
_chunkTQMI6BYOcjs.mergeFarmViteConfig.call(void 0,
|
|
705
706
|
{
|
|
706
707
|
root: projectRoot,
|
|
707
708
|
css: shouldUseProjectPostcss ? void 0 : { postcss: { plugins: [] } },
|
|
708
709
|
plugins: [
|
|
709
710
|
_chunk65Y5SIBHcjs.farmDesktopDevGuardPlugin.call(void 0, finalConfig.basePath),
|
|
710
|
-
|
|
711
|
+
_chunkTQMI6BYOcjs.createFarmThemeCssPlugin.call(void 0, finalConfig.theme, finalConfig.basePath),
|
|
711
712
|
...tailwindVitePlugin ? [tailwindVitePlugin] : [],
|
|
712
713
|
...rendererVitePlugins,
|
|
713
714
|
...reactRefreshPlugins,
|
|
714
715
|
createDevDependencyStubsPlugin(),
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
716
|
+
_chunk4CGOMZP3cjs.farmI18nClientBridgePlugin.call(void 0, ),
|
|
717
|
+
_chunk4CGOMZP3cjs.farmServerOnlyEntriesPlugin.call(void 0, ),
|
|
718
|
+
_chunk4CGOMZP3cjs.farmPlugin.call(void 0, finalConfig, pluginManager),
|
|
718
719
|
_chunkNK2VWS7Pcjs.farmEnvironmentFunctionsPlugin.call(void 0, finalConfig),
|
|
719
720
|
createBrandingPlugin(),
|
|
720
721
|
_chunkXPMC4E2Gcjs.createFarmDevLoopbackPlugin.call(void 0, ),
|
|
@@ -730,8 +731,8 @@ async function createServer2(config = {}, options = {}) {
|
|
|
730
731
|
dedupe: [...finalConfig.renderer.dedupe || []]
|
|
731
732
|
},
|
|
732
733
|
optimizeDeps: {
|
|
733
|
-
...
|
|
734
|
-
|
|
734
|
+
..._chunkTQMI6BYOcjs.createFarmClientOptimizeDepsConfig.call(void 0,
|
|
735
|
+
_chunkTQMI6BYOcjs.createFarmClientOptimizeDepsEntries.call(void 0, projectRoot, _chunk5Y2P454Ocjs.getFarmAppDirectories.call(void 0, finalConfig)),
|
|
735
736
|
finalConfig.renderer
|
|
736
737
|
),
|
|
737
738
|
exclude: [
|
|
@@ -967,4 +968,4 @@ async function startDevServer(config = {}, port, options = {}) {
|
|
|
967
968
|
|
|
968
969
|
|
|
969
970
|
|
|
970
|
-
exports.DEFAULT_FARM_DEV_SERVER_PORT = DEFAULT_FARM_DEV_SERVER_PORT; exports.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT = _chunkFK25QSVCcjs.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT; exports.FARM_SERVER_QUERY_SYMBOL = _chunkHASX6DC7cjs.FARM_SERVER_QUERY_SYMBOL; exports.FarmApp =
|
|
971
|
+
exports.DEFAULT_FARM_DEV_SERVER_PORT = DEFAULT_FARM_DEV_SERVER_PORT; exports.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT = _chunkFK25QSVCcjs.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT; exports.FARM_SERVER_QUERY_SYMBOL = _chunkHASX6DC7cjs.FARM_SERVER_QUERY_SYMBOL; exports.FarmApp = _chunkTQMI6BYOcjs.FarmApp; exports.FarmDataCache = _chunkDMAP4RNDcjs.FarmDataCache; exports.FarmEnvironmentError = _chunkVXCFJWK5cjs.FarmEnvironmentError; exports.PPR_SHELL_ADAPTER_TTL_SECONDS = _chunkDMAP4RNDcjs.PPR_SHELL_ADAPTER_TTL_SECONDS; exports.RouteManager = _chunkTQMI6BYOcjs.RouteManager; exports.ServerActionRequestError = _chunkFK25QSVCcjs.ServerActionRequestError; exports.ServerRenderer = _chunkTQMI6BYOcjs.ServerRenderer; exports._collectFarmStorageModules = _chunkJMYXO572cjs._collectFarmStorageModules; exports._registerFarmStorageModules = _chunkJMYXO572cjs._registerFarmStorageModules; exports._runWithAfterNodeResponse = _chunkP2355C6Ecjs._runWithAfterNodeResponse; exports._runWithAfterRequest = _chunkP2355C6Ecjs._runWithAfterRequest; exports._withAfterNodeMiddleware = _chunkP2355C6Ecjs._withAfterNodeMiddleware; exports.after = _chunkP2355C6Ecjs.after; exports.applyFarmCacheInvalidationTargets = _chunkDMAP4RNDcjs.applyFarmCacheInvalidationTargets; exports.applyFarmCacheInvalidations = _chunkUZCMMJJTcjs.applyFarmCacheInvalidations; exports.configureFarmCache = _chunkDMAP4RNDcjs.configureFarmCache; exports.createClientOnlyFn = _chunkVXCFJWK5cjs.createClientOnlyFn; exports.createFarmApp = _chunkTQMI6BYOcjs.createFarmApp; exports.createFarmCacheInvalidationStream = _chunkDMAP4RNDcjs.createFarmCacheInvalidationStream; exports.createFarmCacheKey = _chunkDXUXQP2Tcjs.createFarmCacheKey; exports.createFarmConfigResolutionPlugin = _chunk5Y2P454Ocjs.createFarmConfigResolutionPlugin; exports.createFarmStorage = _chunkJMYXO572cjs.createFarmStorage; exports.createIsomorphicFn = _chunkVXCFJWK5cjs.createIsomorphicFn; exports.createPathCacheTag = _chunkDMAP4RNDcjs.createPathCacheTag; exports.createRouteDataCacheKey = _chunkDXUXQP2Tcjs.createRouteDataCacheKey; exports.createRouteDataCacheTag = _chunkDMAP4RNDcjs.createRouteDataCacheTag; exports.createServer = createServer2; exports.createServerActionRequestErrorResponse = _chunkFK25QSVCcjs.createServerActionRequestErrorResponse; exports.createServerOnlyFn = _chunkVXCFJWK5cjs.createServerOnlyFn; exports.createServerQuery = _chunkHASX6DC7cjs.createServerQuery; exports.createStorageClient = _chunkJMYXO572cjs.createStorageClient; exports.databaseStorage = _chunkJMYXO572cjs.databaseStorage; exports.defineCacheKey = _chunkDMAP4RNDcjs.defineCacheKey; exports.defineConfig = _chunk4CGOMZP3cjs.defineConfig; exports.defineStorageClient = _chunkJMYXO572cjs.defineStorageClient; exports.disposeStorage = _chunkJMYXO572cjs.disposeStorage; exports.driverStorage = _chunkJMYXO572cjs.driverStorage; exports.farmPlugin = _chunk4CGOMZP3cjs.farmPlugin; exports.fileExists = _chunkVQJYGZNXcjs.fileExists; exports.getCurrentRequest = _chunkHNAISJFDcjs.getCurrentRequest; exports.getFarmAppDirectories = _chunk5Y2P454Ocjs.getFarmAppDirectories; exports.getFarmDataCache = _chunkDMAP4RNDcjs.getFarmDataCache; exports.getFarmLayerAliases = _chunk5Y2P454Ocjs.getFarmLayerAliases; exports.getFarmSourceRoots = _chunk5Y2P454Ocjs.getFarmSourceRoots; exports.getServerActionExecutionContext = _chunkFK25QSVCcjs.getServerActionExecutionContext; exports.getServerActionInvalidations = _chunkFK25QSVCcjs.getServerActionInvalidations; exports.getServerActionSignal = _chunkFK25QSVCcjs.getServerActionSignal; exports.getStorage = _chunkJMYXO572cjs.getStorage; exports.getTheme = _chunk4ZJ5C7UJcjs.getTheme; exports.getThemeSnapshot = _chunk4ZJ5C7UJcjs.getThemeSnapshot; exports.globFiles = _chunkVQJYGZNXcjs.globFiles; exports.initStorage = _chunkJMYXO572cjs.initStorage; exports.invalidate = _chunkDMAP4RNDcjs.invalidate; exports.invalidateRouteData = _chunkDMAP4RNDcjs.invalidateRouteData; exports.libsqlStorage = _chunkJMYXO572cjs.libsqlStorage; exports.loadFarmConfigFile = _chunk5Y2P454Ocjs.loadFarmConfigFile; exports.localStorage = _chunkJMYXO572cjs.localStorage; exports.logger = _chunkVQJYGZNXcjs.logger; exports.matchRoute = _chunkVQJYGZNXcjs.matchRoute; exports.matchRouteParts = _chunkVQJYGZNXcjs.matchRouteParts; exports.matchRoutePrefix = _chunkVQJYGZNXcjs.matchRoutePrefix; exports.matchRoutePrefixParts = _chunkVQJYGZNXcjs.matchRoutePrefixParts; exports.memoryStorage = _chunkJMYXO572cjs.memoryStorage; exports.mongodbStorage = _chunkJMYXO572cjs.mongodbStorage; exports.mysql2Storage = _chunkJMYXO572cjs.mysql2Storage; exports.mysqlStorage = _chunkJMYXO572cjs.mysqlStorage; exports.netlifyBlobsStorage = _chunkJMYXO572cjs.netlifyBlobsStorage; exports.normalizeRevalidatePath = _chunkDMAP4RNDcjs.normalizeRevalidatePath; exports.parseRoutePath = _chunkVQJYGZNXcjs.parseRoutePath; exports.parseSearchParams = _chunkVQJYGZNXcjs.parseSearchParams; exports.pgStorage = _chunkJMYXO572cjs.pgStorage; exports.pgliteStorage = _chunkJMYXO572cjs.pgliteStorage; exports.planetscaleStorage = _chunkJMYXO572cjs.planetscaleStorage; exports.postgresStorage = _chunkJMYXO572cjs.postgresStorage; exports.prepareServerActionRequest = _chunkFK25QSVCcjs.prepareServerActionRequest; exports.redisStorage = _chunkJMYXO572cjs.redisStorage; exports.resolveAppPath = _chunkVQJYGZNXcjs.resolveAppPath; exports.resolveFarmLayers = _chunk5Y2P454Ocjs.resolveFarmLayers; exports.resolveFarmMCPConfig = _chunkKLNFJDFMcjs.resolveFarmMCPConfig; exports.resolveFarmMCPPlugin = _chunkKLNFJDFMcjs.resolveFarmMCPPlugin; exports.resolveServerActionsConfig = _chunkFK25QSVCcjs.resolveServerActionsConfig; exports.resolveStorageRuntimeClient = _chunkJMYXO572cjs.resolveStorageRuntimeClient; exports.revalidatePath = _chunkDMAP4RNDcjs.revalidatePath; exports.revalidateTag = _chunkDMAP4RNDcjs.revalidateTag; exports.runWithServerActionRequest = _chunkFK25QSVCcjs.runWithServerActionRequest; exports.s3Storage = _chunkJMYXO572cjs.s3Storage; exports.sanitizeServerActionError = _chunkFK25QSVCcjs.sanitizeServerActionError; exports.segmentsToPattern = _chunkVQJYGZNXcjs.segmentsToPattern; exports.sendWebResponse = _chunkYIHRZBD7cjs.sendWebResponse; exports.splitRoutePath = _chunkVQJYGZNXcjs.splitRoutePath; exports.sqliteStorage = _chunkJMYXO572cjs.sqliteStorage; exports.startDevServer = startDevServer; exports.storageCacheAdapter = _chunkDMAP4RNDcjs.storageCacheAdapter; exports.toPosixPath = _chunkVQJYGZNXcjs.toPosixPath; exports.toRootRelativeUrlPath = _chunkVQJYGZNXcjs.toRootRelativeUrlPath; exports.toViteModuleId = _chunkVQJYGZNXcjs.toViteModuleId; exports.unstable_cache = _chunkDMAP4RNDcjs.unstable_cache; exports.updateTag = _chunkDMAP4RNDcjs.updateTag; exports.upstashStorage = _chunkJMYXO572cjs.upstashStorage; exports.validateServerActionRequest = _chunkFK25QSVCcjs.validateServerActionRequest; exports.vercelBlobStorage = _chunkJMYXO572cjs.vercelBlobStorage; exports.vercelKVStorage = _chunkJMYXO572cjs.vercelKVStorage;
|
package/dist/server.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { F as FarmApp, R as RouteManager, S as ServerRenderer, c as createFarmApp } from './app.d-
|
|
1
|
+
export { F as FarmApp, R as RouteManager, S as ServerRenderer, c as createFarmApp } from './app.d-CT7xDkj2.mjs';
|
|
2
2
|
export { defineConfig, farmPlugin } from './vite.mjs';
|
|
3
|
-
import { aF as FarmConfig, p as FarmUserConfig } from './client-plugins.d-
|
|
4
|
-
export { aG as AppRoutePattern, aH as BuildOptions, aI as ErrorBoundary, aJ as ErrorProps, v as FarmAppContext, aK as FarmComponentType, aL as FarmContextFactory, aM as FarmContextFactoryInput, aN as FarmIsolatedClientHydrationMode, aO as FarmMCPUserConfig, aP as FarmMigrationCommand, aQ as FarmMigrationsConfig, aR as FarmMigrationsUserConfig, s as FarmRequest, t as FarmResponse, aS as GenerateStaticParams, aT as Layout, aU as LayoutMetadataProps, aV as LayoutModule, L as LayoutProps, aW as Loading, aX as LoadingProps, M as Metadata, aY as MetadataJsonLd, aZ as MetadataProps, a_ as MetadataRobots, a$ as MetadataRobotsDirectives, b0 as MiddlewareProps, b1 as NitroPreset, b2 as Page, w as PageProps, b3 as PagePropsWithMiddleware, b4 as PageRouteParams, P as ParsedRoute, y as PluginContextProps, b5 as ResolvedFarmMigrationsConfig, i as RouteModule, q as RouteSegment, b6 as SSGCollectionResult, b7 as SSGPage, b8 as ServerAction, b9 as StaticPathParams, ba as StaticPathPrimitive, bb as StaticRouteParams, bc as ThemeColorDescriptor, bd as Viewport, be as resolveFarmMCPConfig, bf as resolveFarmMCPPlugin } from './client-plugins.d-
|
|
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 { aF as FarmConfig, p as FarmUserConfig } from './client-plugins.d-DllmH8eM.mjs';
|
|
4
|
+
export { aG as AppRoutePattern, aH as BuildOptions, aI as ErrorBoundary, aJ as ErrorProps, v as FarmAppContext, aK as FarmComponentType, aL as FarmContextFactory, aM as FarmContextFactoryInput, aN as FarmIsolatedClientHydrationMode, aO as FarmMCPUserConfig, aP as FarmMigrationCommand, aQ as FarmMigrationsConfig, aR as FarmMigrationsUserConfig, s as FarmRequest, t as FarmResponse, aS as GenerateStaticParams, aT as Layout, aU as LayoutMetadataProps, aV as LayoutModule, L as LayoutProps, aW as Loading, aX as LoadingProps, M as Metadata, aY as MetadataJsonLd, aZ as MetadataProps, a_ as MetadataRobots, a$ as MetadataRobotsDirectives, b0 as MiddlewareProps, b1 as NitroPreset, b2 as Page, w as PageProps, b3 as PagePropsWithMiddleware, b4 as PageRouteParams, P as ParsedRoute, y as PluginContextProps, b5 as ResolvedFarmMigrationsConfig, i as RouteModule, q as RouteSegment, b6 as SSGCollectionResult, b7 as SSGPage, b8 as ServerAction, b9 as StaticPathParams, ba as StaticPathPrimitive, bb as StaticRouteParams, bc as ThemeColorDescriptor, bd as Viewport, be as resolveFarmMCPConfig, bf as resolveFarmMCPPlugin } from './client-plugins.d-DllmH8eM.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-fqXe8lNc.mjs';
|
|
6
6
|
export { _collectFarmStorageModules, _registerFarmStorageModules, createFarmStorage, createStorageClient, databaseStorage, defineStorageClient, disposeStorage, driverStorage, getStorage, initStorage, libsqlStorage, localStorage, memoryStorage, mongodbStorage, mysql2Storage, mysqlStorage, netlifyBlobsStorage, pgStorage, pgliteStorage, planetscaleStorage, postgresStorage, redisStorage, resolveStorageRuntimeClient, s3Storage, sqliteStorage, upstashStorage, vercelBlobStorage, vercelKVStorage } from './storage.mjs';
|
|
7
7
|
export { CacheKeyFactory, DefinedCacheKey, FarmCacheAdapter, FarmCacheEntry, FarmCacheInvalidationStreamOptions, FarmCacheInvalidationTarget, FarmCacheOptions, FarmCacheSetOptions, FarmCacheStorage, FarmCacheUserConfig, FarmClientCacheUserConfig, FarmDataCache, GetFarmCacheEntryOptions, InferCacheKeyData, PPR_SHELL_ADAPTER_TTL_SECONDS, RevalidateTagProfile, RouteDataCacheKey, StorageFarmCacheAdapterOptions, applyFarmCacheInvalidationTargets, applyFarmCacheInvalidations, configureFarmCache, createFarmCacheInvalidationStream, createFarmCacheKey, createPathCacheTag, createRouteDataCacheKey, createRouteDataCacheTag, defineCacheKey, getFarmDataCache, invalidate, invalidateRouteData, normalizeRevalidatePath, revalidatePath, revalidateTag, storageCacheAdapter, unstable_cache, updateTag } from './cache.mjs';
|
|
8
8
|
export { AfterCallback, FarmAfterPlatformContext, _runWithAfterNodeResponse, _runWithAfterRequest, _withAfterNodeMiddleware, after } from './after.mjs';
|
|
9
9
|
export { FARM_SERVER_QUERY_SYMBOL, ServerQuery, ServerQueryKey, ServerQueryOptions, ServerQueryOutputOptions, ServerQueryStaleTime, createServerQuery } from './server-query.mjs';
|
|
10
10
|
import { ViteDevServer } from 'vite';
|
|
11
|
-
export { g as getCurrentRequest } from './request.d-
|
|
11
|
+
export { g as getCurrentRequest } from './request.d-Dd3AFR79.mjs';
|
|
12
12
|
export { s as sendWebResponse } from './response.d-BolW0Vx_.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, createServerActionRequestErrorResponse, getServerActionExecutionContext, getServerActionInvalidations, getServerActionSignal, prepareServerActionRequest, resolveServerActionsConfig, runWithServerActionRequest, sanitizeServerActionError, validateServerActionRequest } from './server-action-security.mjs';
|
|
@@ -39,16 +39,17 @@ import './env.mjs';
|
|
|
39
39
|
import 'rolldown/utils';
|
|
40
40
|
import 'rolldown';
|
|
41
41
|
import './types.d-C41ePjvP.mjs';
|
|
42
|
-
import './config.d-
|
|
42
|
+
import './config.d-DqKaCr1r.mjs';
|
|
43
43
|
import './types.d-DQnyD3VD.mjs';
|
|
44
44
|
import './font.mjs';
|
|
45
|
-
import './programmatic-routes-client.d-
|
|
46
|
-
import './route-rendering.d-
|
|
45
|
+
import './programmatic-routes-client.d-aAWiDd64.mjs';
|
|
46
|
+
import './route-rendering.d-BQ53lJ_D.mjs';
|
|
47
47
|
import './island.d-CfGru1MO.mjs';
|
|
48
|
-
import './agent-mcp.d-
|
|
49
|
-
import './render-plan.d-
|
|
48
|
+
import './agent-mcp.d-BJKChOrO.mjs';
|
|
49
|
+
import './render-plan.d-Diwybxo8.mjs';
|
|
50
50
|
import './runtime.d-3iJAKptR.mjs';
|
|
51
51
|
import './resolver.d-JnZKKsc5.mjs';
|
|
52
|
+
import './platform.mjs';
|
|
52
53
|
import './server-client-bridge.d-DKWDl5NB.mjs';
|
|
53
54
|
import 'node:http';
|
|
54
55
|
|
package/dist/server.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { F as FarmApp, R as RouteManager, S as ServerRenderer, c as createFarmApp } from './app.d-
|
|
1
|
+
export { F as FarmApp, R as RouteManager, S as ServerRenderer, c as createFarmApp } from './app.d-CNPaUYaa.js';
|
|
2
2
|
export { defineConfig, farmPlugin } from './vite.js';
|
|
3
|
-
import { aF as FarmConfig, p as FarmUserConfig } from './client-plugins.d-
|
|
4
|
-
export { aG as AppRoutePattern, aH as BuildOptions, aI as ErrorBoundary, aJ as ErrorProps, v as FarmAppContext, aK as FarmComponentType, aL as FarmContextFactory, aM as FarmContextFactoryInput, aN as FarmIsolatedClientHydrationMode, aO as FarmMCPUserConfig, aP as FarmMigrationCommand, aQ as FarmMigrationsConfig, aR as FarmMigrationsUserConfig, s as FarmRequest, t as FarmResponse, aS as GenerateStaticParams, aT as Layout, aU as LayoutMetadataProps, aV as LayoutModule, L as LayoutProps, aW as Loading, aX as LoadingProps, M as Metadata, aY as MetadataJsonLd, aZ as MetadataProps, a_ as MetadataRobots, a$ as MetadataRobotsDirectives, b0 as MiddlewareProps, b1 as NitroPreset, b2 as Page, w as PageProps, b3 as PagePropsWithMiddleware, b4 as PageRouteParams, P as ParsedRoute, y as PluginContextProps, b5 as ResolvedFarmMigrationsConfig, i as RouteModule, q as RouteSegment, b6 as SSGCollectionResult, b7 as SSGPage, b8 as ServerAction, b9 as StaticPathParams, ba as StaticPathPrimitive, bb as StaticRouteParams, bc as ThemeColorDescriptor, bd as Viewport, be as resolveFarmMCPConfig, bf as resolveFarmMCPPlugin } from './client-plugins.d-
|
|
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 { aF as FarmConfig, p as FarmUserConfig } from './client-plugins.d-n3iWY1EJ.js';
|
|
4
|
+
export { aG as AppRoutePattern, aH as BuildOptions, aI as ErrorBoundary, aJ as ErrorProps, v as FarmAppContext, aK as FarmComponentType, aL as FarmContextFactory, aM as FarmContextFactoryInput, aN as FarmIsolatedClientHydrationMode, aO as FarmMCPUserConfig, aP as FarmMigrationCommand, aQ as FarmMigrationsConfig, aR as FarmMigrationsUserConfig, s as FarmRequest, t as FarmResponse, aS as GenerateStaticParams, aT as Layout, aU as LayoutMetadataProps, aV as LayoutModule, L as LayoutProps, aW as Loading, aX as LoadingProps, M as Metadata, aY as MetadataJsonLd, aZ as MetadataProps, a_ as MetadataRobots, a$ as MetadataRobotsDirectives, b0 as MiddlewareProps, b1 as NitroPreset, b2 as Page, w as PageProps, b3 as PagePropsWithMiddleware, b4 as PageRouteParams, P as ParsedRoute, y as PluginContextProps, b5 as ResolvedFarmMigrationsConfig, i as RouteModule, q as RouteSegment, b6 as SSGCollectionResult, b7 as SSGPage, b8 as ServerAction, b9 as StaticPathParams, ba as StaticPathPrimitive, bb as StaticRouteParams, bc as ThemeColorDescriptor, bd as Viewport, be as resolveFarmMCPConfig, bf as resolveFarmMCPPlugin } from './client-plugins.d-n3iWY1EJ.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-Bv2MPeLR.js';
|
|
6
6
|
export { _collectFarmStorageModules, _registerFarmStorageModules, createFarmStorage, createStorageClient, databaseStorage, defineStorageClient, disposeStorage, driverStorage, getStorage, initStorage, libsqlStorage, localStorage, memoryStorage, mongodbStorage, mysql2Storage, mysqlStorage, netlifyBlobsStorage, pgStorage, pgliteStorage, planetscaleStorage, postgresStorage, redisStorage, resolveStorageRuntimeClient, s3Storage, sqliteStorage, upstashStorage, vercelBlobStorage, vercelKVStorage } from './storage.js';
|
|
7
7
|
export { CacheKeyFactory, DefinedCacheKey, FarmCacheAdapter, FarmCacheEntry, FarmCacheInvalidationStreamOptions, FarmCacheInvalidationTarget, FarmCacheOptions, FarmCacheSetOptions, FarmCacheStorage, FarmCacheUserConfig, FarmClientCacheUserConfig, FarmDataCache, GetFarmCacheEntryOptions, InferCacheKeyData, PPR_SHELL_ADAPTER_TTL_SECONDS, RevalidateTagProfile, RouteDataCacheKey, StorageFarmCacheAdapterOptions, applyFarmCacheInvalidationTargets, applyFarmCacheInvalidations, configureFarmCache, createFarmCacheInvalidationStream, createFarmCacheKey, createPathCacheTag, createRouteDataCacheKey, createRouteDataCacheTag, defineCacheKey, getFarmDataCache, invalidate, invalidateRouteData, normalizeRevalidatePath, revalidatePath, revalidateTag, storageCacheAdapter, unstable_cache, updateTag } from './cache.js';
|
|
8
8
|
export { AfterCallback, FarmAfterPlatformContext, _runWithAfterNodeResponse, _runWithAfterRequest, _withAfterNodeMiddleware, after } from './after.js';
|
|
9
9
|
export { FARM_SERVER_QUERY_SYMBOL, ServerQuery, ServerQueryKey, ServerQueryOptions, ServerQueryOutputOptions, ServerQueryStaleTime, createServerQuery } from './server-query.js';
|
|
10
10
|
import { ViteDevServer } from 'vite';
|
|
11
|
-
export { g as getCurrentRequest } from './request.d-
|
|
11
|
+
export { g as getCurrentRequest } from './request.d-D01fRn--.js';
|
|
12
12
|
export { s as sendWebResponse } from './response.d-BolW0Vx_.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, createServerActionRequestErrorResponse, getServerActionExecutionContext, getServerActionInvalidations, getServerActionSignal, prepareServerActionRequest, resolveServerActionsConfig, runWithServerActionRequest, sanitizeServerActionError, validateServerActionRequest } from './server-action-security.js';
|
|
@@ -39,16 +39,17 @@ import './env.js';
|
|
|
39
39
|
import 'rolldown/utils';
|
|
40
40
|
import 'rolldown';
|
|
41
41
|
import './types.d-C41ePjvP.js';
|
|
42
|
-
import './config.d-
|
|
42
|
+
import './config.d-DqKaCr1r.js';
|
|
43
43
|
import './types.d-DQnyD3VD.js';
|
|
44
44
|
import './font.js';
|
|
45
|
-
import './programmatic-routes-client.d-
|
|
46
|
-
import './route-rendering.d-
|
|
45
|
+
import './programmatic-routes-client.d-XfmIrCK1.js';
|
|
46
|
+
import './route-rendering.d-Bhx4QoJt.js';
|
|
47
47
|
import './island.d-CfGru1MO.js';
|
|
48
|
-
import './agent-mcp.d-
|
|
49
|
-
import './render-plan.d-
|
|
48
|
+
import './agent-mcp.d-BAR9njbJ.js';
|
|
49
|
+
import './render-plan.d-Dr5WRjoV.js';
|
|
50
50
|
import './runtime.d-BtL3PCL3.js';
|
|
51
51
|
import './resolver.d-BHyZgpa7.js';
|
|
52
|
+
import './platform.js';
|
|
52
53
|
import './server-client-bridge.d-DKWDl5NB.js';
|
|
53
54
|
import 'node:http';
|
|
54
55
|
|