@farm.js/core 0.1.40 → 0.1.42
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-DRlXq3lM.d.ts → agent-mcp-SSD6L3VZ.d.ts} +8 -2
- package/dist/{agent-mcp-XNF4JqHw.d.mts → agent-mcp-ssVy_tea.d.mts} +8 -2
- package/dist/agent-runtime.d.mts +2 -2
- package/dist/agent-runtime.d.ts +2 -2
- package/dist/api/client.cjs +3 -3
- package/dist/api/client.mjs +2 -2
- package/dist/api/route-manager.cjs +8 -8
- package/dist/api/route-manager.d.mts +4 -4
- package/dist/api/route-manager.d.ts +4 -4
- package/dist/api/route-manager.mjs +7 -7
- package/dist/api/runtime.cjs +6 -6
- package/dist/api/runtime.d.mts +3 -3
- package/dist/api/runtime.d.ts +3 -3
- package/dist/api/runtime.mjs +5 -5
- package/dist/api.cjs +10 -10
- package/dist/api.d.mts +4 -4
- package/dist/api.d.ts +4 -4
- package/dist/api.mjs +9 -9
- package/dist/{app-CWjCklhF.d.mts → app-1h3lVT4a.d.mts} +5 -5
- package/dist/{app-CDJHPqZn.d.ts → app-KjFzdCqy.d.ts} +5 -5
- package/dist/app-manifest-D3RkVNuS.d.mts +120 -0
- package/dist/app-manifest-DaW8-tvX.d.ts +120 -0
- package/dist/app-markdown.d.mts +3 -3
- package/dist/app-markdown.d.ts +3 -3
- package/dist/cache.cjs +3 -3
- package/dist/cache.mjs +2 -2
- package/dist/{chunk-UM3ZV5EP.mjs → chunk-24SP5TGU.mjs} +1 -1
- package/dist/{chunk-B6IMBBOS.cjs → chunk-25LPIZSX.cjs} +3 -3
- package/dist/{chunk-WW374SGU.mjs → chunk-26RUNDIR.mjs} +1 -1
- package/dist/{chunk-B77AUCBV.cjs → chunk-2FUIT2G2.cjs} +3 -3
- package/dist/{chunk-IMQO6ZUU.mjs → chunk-2JZHQDUY.mjs} +2 -2
- package/dist/{chunk-BPGO2IEP.mjs → chunk-35WS7P2V.mjs} +24 -126
- package/dist/{chunk-XKIUHXHW.mjs → chunk-375K2ZVU.mjs} +46 -52
- package/dist/{chunk-MNUSIXGS.mjs → chunk-4KQDHTWX.mjs} +1 -1
- package/dist/{chunk-DATEWH3W.cjs → chunk-6IZWX6ES.cjs} +22 -8
- package/dist/{chunk-Y6LRPO2K.mjs → chunk-6LVRDOAW.mjs} +19 -5
- package/dist/{chunk-UMQAK3KP.cjs → chunk-6MVFHNYZ.cjs} +2 -2
- package/dist/{chunk-OLQ73ZO5.mjs → chunk-6PKXK4TY.mjs} +3 -3
- package/dist/{chunk-PYQ3ZG4Z.mjs → chunk-724JLMS4.mjs} +4 -4
- package/dist/{chunk-PNCM5MFD.mjs → chunk-7UEEHAW7.mjs} +1 -1
- package/dist/{chunk-EW4MEVLE.cjs → chunk-7YHSD3Z6.cjs} +82 -118
- package/dist/{chunk-DKU6NXRK.cjs → chunk-AHFRQMRX.cjs} +1 -1
- package/dist/{chunk-7VAJSSPG.mjs → chunk-B2GSRB3P.mjs} +1 -1
- package/dist/{chunk-JXB6DVCO.mjs → chunk-BPNRQ5BA.mjs} +1 -1
- package/dist/{chunk-FLZ4H25A.cjs → chunk-BXJ5HJTJ.cjs} +13 -12
- package/dist/{chunk-GNVEJUT5.cjs → chunk-C5KVWHIH.cjs} +21 -21
- package/dist/chunk-COABSY3U.mjs +196 -0
- package/dist/{chunk-Y2GNNXGV.cjs → chunk-D64OPY6A.cjs} +5 -5
- package/dist/{chunk-BYQVROIP.mjs → chunk-DMRPN25V.mjs} +69 -0
- package/dist/{chunk-I64GEPOB.cjs → chunk-FEYQCYT7.cjs} +3 -3
- package/dist/{chunk-AXB5P7BK.mjs → chunk-FIAPD365.mjs} +1 -1
- package/dist/{chunk-7FHZ3E6D.cjs → chunk-GB7LDGY5.cjs} +2 -2
- package/dist/{chunk-45UZKX2J.mjs → chunk-HJ64F4GS.mjs} +2 -2
- package/dist/{chunk-IRYK4Z5M.cjs → chunk-I5MG3TKE.cjs} +2 -2
- package/dist/{chunk-YR2P74F7.cjs → chunk-IFWSR7YZ.cjs} +2 -2
- package/dist/{chunk-5E65AL7P.mjs → chunk-IN6RCKLL.mjs} +5 -4
- package/dist/{chunk-CKFK3Z2V.mjs → chunk-IVQY6UTY.mjs} +1 -1
- package/dist/{chunk-3TB5QGUW.cjs → chunk-JAXDRRRC.cjs} +70 -1
- package/dist/{chunk-EORXKFLR.cjs → chunk-JEIG3EWE.cjs} +1 -1
- package/dist/{chunk-54QWHSNR.cjs → chunk-JG3MEQUH.cjs} +150 -156
- package/dist/{chunk-TFX4RTH2.mjs → chunk-JOW4HDJO.mjs} +1 -1
- package/dist/{chunk-H44XGLFU.cjs → chunk-L6A26QT5.cjs} +9 -9
- package/dist/{chunk-OZN4XL6L.cjs → chunk-LIZTLA5F.cjs} +7 -6
- package/dist/{chunk-62DY5GKS.mjs → chunk-LLUA2LSC.mjs} +2 -2
- package/dist/{chunk-LDPKAYVS.cjs → chunk-LYIZHJTK.cjs} +2 -2
- package/dist/{chunk-2DMWQWNJ.mjs → chunk-MEASUNVY.mjs} +1 -1
- package/dist/{chunk-T4II4MMW.mjs → chunk-MHHCLYXU.mjs} +1 -1
- package/dist/{chunk-SHFXCE5A.cjs → chunk-MHN4UR5U.cjs} +4 -4
- package/dist/{chunk-5JEC43MQ.cjs → chunk-MN4TQJ3W.cjs} +9 -9
- package/dist/{chunk-5XS5NCVM.cjs → chunk-MY5PZYAD.cjs} +4 -4
- package/dist/{chunk-2JG2LJDI.cjs → chunk-NBPNUQYO.cjs} +2 -2
- package/dist/{chunk-4XO5GSD6.cjs → chunk-NFG4PUPI.cjs} +2 -2
- package/dist/{chunk-Y4QVEU67.mjs → chunk-NU25TRIO.mjs} +5 -4
- package/dist/{chunk-5LL6TKII.mjs → chunk-O7USYJ4U.mjs} +1 -1
- package/dist/{chunk-VBN3UAPQ.mjs → chunk-P2UJF4SS.mjs} +1 -1
- package/dist/{chunk-T6DLMX5V.mjs → chunk-PIZXONIS.mjs} +73 -109
- package/dist/{chunk-KK22JPQM.cjs → chunk-QEILRWVV.cjs} +30 -132
- package/dist/{chunk-UXMIFB44.cjs → chunk-QIBP5EFA.cjs} +5 -5
- package/dist/{chunk-TAKG7ZCD.cjs → chunk-QKZMB7LY.cjs} +14 -14
- package/dist/{chunk-FCOLU5P6.mjs → chunk-QTEJGB5A.mjs} +39 -16
- package/dist/{chunk-QJM7A4CR.cjs → chunk-S7MTDRYA.cjs} +10 -10
- package/dist/{chunk-ACLPN56I.mjs → chunk-SGB4IW7K.mjs} +1 -1
- package/dist/{chunk-GKQL726H.cjs → chunk-TCJ4A4A2.cjs} +78 -82
- package/dist/{chunk-ZKVJYQPO.mjs → chunk-TUL355PH.mjs} +13 -17
- package/dist/{chunk-H56MQYEG.mjs → chunk-U2UC7UGP.mjs} +1 -1
- package/dist/{chunk-I63UCMXW.mjs → chunk-ULQOP5UI.mjs} +2 -2
- package/dist/{chunk-HBEBV7OZ.mjs → chunk-UQUEANTY.mjs} +1 -1
- package/dist/chunk-VHRS3MCW.cjs +196 -0
- package/dist/{chunk-WCWV25PG.mjs → chunk-VTBXE6QG.mjs} +2 -2
- package/dist/{chunk-E55H6UKH.cjs → chunk-WLHA5USH.cjs} +9 -9
- package/dist/{chunk-YJBWB6GF.mjs → chunk-WMBRZI5V.mjs} +1 -1
- package/dist/{chunk-AGR7F3LA.cjs → chunk-WROEFVNO.cjs} +3 -3
- package/dist/{chunk-CA62IQY3.cjs → chunk-WU7ZS3EM.cjs} +2 -2
- package/dist/{chunk-ZOABCQGT.mjs → chunk-X3NGFVRF.mjs} +37 -22
- package/dist/{chunk-XJAEZCT6.mjs → chunk-XUC6CFLE.mjs} +1 -1
- package/dist/{chunk-6ILGLCXF.cjs → chunk-YWCYV7QC.cjs} +8 -8
- package/dist/{chunk-T36UJS3X.mjs → chunk-YYQVGKO5.mjs} +2 -2
- package/dist/{chunk-EGCT3AHF.cjs → chunk-ZATTDMBW.cjs} +127 -104
- package/dist/{chunk-PGW7HZE2.cjs → chunk-ZS6HDNOM.cjs} +6 -6
- package/dist/{chunk-XVIEGKTT.cjs → chunk-ZTP3BJG6.cjs} +41 -26
- package/dist/{client-plugins-B_5QbNrp.d.mts → client-plugins-C9Py_50W.d.mts} +79 -7
- package/dist/{client-plugins-DgSfIWIF.d.ts → client-plugins-DIem0I0W.d.ts} +79 -7
- package/dist/client-plugins.d.mts +2 -2
- package/dist/client-plugins.d.ts +2 -2
- package/dist/client.cjs +5 -5
- package/dist/client.d.mts +6 -6
- package/dist/client.d.ts +6 -6
- package/dist/client.mjs +4 -4
- package/dist/client.react-server.mjs +2 -0
- package/dist/config.d.mts +2 -2
- package/dist/config.d.ts +2 -2
- package/dist/{devtools-ANJ7JAPQ.cjs → devtools-2RY3EKHL.cjs} +6 -6
- package/dist/{devtools-VEQQDVHE.mjs → devtools-Q3LBNUJ7.mjs} +5 -5
- package/dist/docs.cjs +8 -8
- package/dist/docs.d.mts +3 -3
- package/dist/docs.d.ts +3 -3
- package/dist/docs.mjs +7 -7
- package/dist/headers.cjs +4 -4
- package/dist/headers.mjs +3 -3
- package/dist/image/server.d.mts +1 -1
- package/dist/image/server.d.ts +1 -1
- package/dist/image/sharp.d.mts +1 -1
- package/dist/image/sharp.d.ts +1 -1
- package/dist/{image-config-Duob7wER.d.ts → image-config-BpH1q5R8.d.mts} +4 -1
- package/dist/{image-config-Duob7wER.d.mts → image-config-BpH1q5R8.d.ts} +4 -1
- package/dist/image.d.mts +1 -1
- package/dist/image.d.ts +1 -1
- package/dist/index.cjs +40 -38
- package/dist/index.d.mts +16 -135
- package/dist/index.d.ts +16 -135
- package/dist/index.mjs +39 -37
- package/dist/integrations.d.mts +2 -2
- package/dist/integrations.d.ts +2 -2
- package/dist/internal/app-markdown-runtime.d.mts +3 -3
- package/dist/internal/app-markdown-runtime.d.ts +3 -3
- package/dist/internal/build-runtime.cjs +23 -23
- package/dist/internal/build-runtime.d.mts +4 -4
- package/dist/internal/build-runtime.d.ts +4 -4
- package/dist/internal/build-runtime.mjs +22 -22
- package/dist/internal/cli-runtime.cjs +13 -13
- package/dist/internal/cli-runtime.mjs +12 -12
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- 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 +3 -3
- package/dist/internal/config-runtime.d.ts +3 -3
- package/dist/internal/config-runtime.mjs +5 -5
- package/dist/internal/docs-precompiled-runtime.cjs +3 -3
- package/dist/internal/docs-precompiled-runtime.mjs +2 -2
- package/dist/internal/infra-analytics-runtime.cjs +5 -5
- package/dist/internal/infra-analytics-runtime.mjs +3 -3
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +21 -13
- package/dist/internal/production-runtime.d.mts +29 -126
- package/dist/internal/production-runtime.d.ts +29 -126
- package/dist/internal/production-runtime.mjs +21 -13
- package/dist/markdown.d.mts +2 -2
- package/dist/markdown.d.ts +2 -2
- package/dist/middleware.cjs +7 -7
- package/dist/middleware.d.mts +4 -4
- package/dist/middleware.d.ts +4 -4
- package/dist/middleware.mjs +6 -6
- package/dist/navigation.cjs +4 -4
- package/dist/navigation.d.mts +5 -5
- package/dist/navigation.d.ts +5 -5
- package/dist/navigation.mjs +3 -3
- package/dist/{nitro-NFG2LBRC.mjs → nitro-KDACKNHU.mjs} +1 -1
- package/dist/{nitro-S2QABUFA.cjs → nitro-NPGU6VBT.cjs} +2 -2
- package/dist/plugin.cjs +21 -21
- package/dist/plugin.d.mts +4 -3
- package/dist/plugin.d.ts +4 -3
- package/dist/plugin.mjs +20 -20
- package/dist/{production-runtime-j_WCfuwB.d.mts → production-runtime-CHFKIgpW.d.mts} +1 -1
- package/dist/{production-runtime-DfknD3g_.d.ts → production-runtime-bjjWq-DA.d.ts} +1 -1
- package/dist/query/client.cjs +2 -2
- package/dist/query/client.mjs +3 -3
- package/dist/{render-plan-CFIhcYYS.d.ts → render-plan-B2UndB4x.d.ts} +1 -1
- package/dist/{render-plan-ChUtsymc.d.mts → render-plan-DOHg6wdO.d.mts} +1 -1
- package/dist/renderer-client.d.mts +4 -4
- package/dist/renderer-client.d.ts +4 -4
- package/dist/{request-F4HRwzSd.d.mts → request-DQcGfdgQ.d.mts} +1 -1
- package/dist/{request-RJvelT8L.d.ts → request-DVNXRQrI.d.ts} +1 -1
- package/dist/request.cjs +3 -3
- package/dist/request.d.mts +3 -3
- package/dist/request.d.ts +3 -3
- package/dist/request.mjs +2 -2
- package/dist/{route-rendering-D4coJ-kw.d.ts → route-rendering-B_6fj-GG.d.ts} +1 -1
- package/dist/{route-rendering-3a4fbNyC.d.mts → route-rendering-CEX4mFn-.d.mts} +1 -1
- package/dist/{router-WLEW3Te1.d.ts → router-CHEMHm1P.d.ts} +1 -1
- package/dist/{router-DqIssGRO.d.mts → router-CKHPBKXX.d.mts} +1 -1
- package/dist/routes.cjs +4 -4
- package/dist/routes.d.mts +2 -2
- package/dist/routes.d.ts +2 -2
- package/dist/routes.mjs +3 -3
- package/dist/{runtime-BrNdLOq9.d.ts → runtime-Br2ZDTAv.d.ts} +1 -1
- package/dist/{runtime-CmE_j-js.d.mts → runtime-jj8TKNsy.d.mts} +1 -1
- package/dist/server-fn.cjs +4 -4
- package/dist/server-fn.mjs +3 -3
- package/dist/server-plugins.cjs +5 -5
- package/dist/server-plugins.d.mts +3 -3
- package/dist/server-plugins.d.ts +3 -3
- package/dist/server-plugins.mjs +4 -4
- package/dist/server-query.cjs +5 -5
- package/dist/server-query.mjs +4 -4
- package/dist/server.cjs +46 -46
- package/dist/server.d.mts +10 -9
- package/dist/server.d.ts +10 -9
- package/dist/server.mjs +25 -25
- package/dist/{spa-router-C41zjnFl.d.mts → spa-router-BEvS9Erj.d.mts} +2 -2
- package/dist/{spa-router-D_0VXqPC.d.ts → spa-router-DmCuH5B7.d.ts} +2 -2
- package/dist/ssg-57v6cZcW.d.mts +184 -0
- package/dist/ssg-gT093ETk.d.ts +184 -0
- package/dist/testing.cjs +11 -11
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.mjs +8 -8
- package/dist/theme/server.cjs +4 -4
- package/dist/theme/server.mjs +3 -3
- package/dist/{utils-YYcWsOJp.d.ts → utils-CCTKvR-P.d.ts} +1 -1
- package/dist/{utils-BKWSe3S7.d.mts → utils-raHHQVyL.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +38 -22
- package/dist/vite.d.mts +41 -4
- package/dist/vite.d.ts +41 -4
- package/dist/vite.mjs +38 -22
- package/dist/workflows.cjs +2 -2
- package/dist/workflows.mjs +1 -1
- package/package.json +2 -1
- package/dist/chunk-DAO7JGTS.mjs +0 -73
- package/dist/chunk-SYQ3MOWW.cjs +0 -73
- package/dist/programmatic-routes-client-DcoxEaLe.d.mts +0 -55
- package/dist/programmatic-routes-client-DcoxEaLe.d.ts +0 -55
- /package/dist/{chunk-MOSYH4CY.mjs → chunk-FWCGUVVL.mjs} +0 -0
- /package/dist/{chunk-4A3YUB4D.cjs → chunk-KF6VDJH7.cjs} +0 -0
package/dist/chunk-DAO7JGTS.mjs
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__name
|
|
3
|
-
} from "./chunk-LPEX4YW6.mjs";
|
|
4
|
-
|
|
5
|
-
// src/route-rendering.ts
|
|
6
|
-
function normalizeDynamicMode(value) {
|
|
7
|
-
switch (value) {
|
|
8
|
-
case "auto":
|
|
9
|
-
case "force-static":
|
|
10
|
-
case "force-dynamic":
|
|
11
|
-
case "error":
|
|
12
|
-
return value;
|
|
13
|
-
default:
|
|
14
|
-
return void 0;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
__name(normalizeDynamicMode, "normalizeDynamicMode");
|
|
18
|
-
function mergeRouteRenderingDirectiveConfig(directiveConfig, mod, options) {
|
|
19
|
-
const pprEnabled = options?.experimentalPPR === true;
|
|
20
|
-
let ssg = directiveConfig?.ssg ?? false;
|
|
21
|
-
let requestedPPR = directiveConfig?.ppr ?? false;
|
|
22
|
-
let revalidate = directiveConfig?.revalidate;
|
|
23
|
-
const moduleDynamic = normalizeDynamicMode(mod?.dynamic);
|
|
24
|
-
const dynamic = moduleDynamic ?? directiveConfig?.dynamic;
|
|
25
|
-
const hasExplicitSsg = typeof mod?.ssg === "boolean";
|
|
26
|
-
const hasExplicitPPR = typeof mod?.ppr === "boolean" || typeof mod?.experimental_ppr === "boolean";
|
|
27
|
-
if (hasExplicitSsg) {
|
|
28
|
-
ssg = mod.ssg === true;
|
|
29
|
-
}
|
|
30
|
-
if (hasExplicitPPR) {
|
|
31
|
-
requestedPPR = mod?.ppr === true || mod?.experimental_ppr === true;
|
|
32
|
-
}
|
|
33
|
-
if (typeof mod?.revalidate === "number") {
|
|
34
|
-
if (mod.revalidate > 0) {
|
|
35
|
-
revalidate = mod.revalidate;
|
|
36
|
-
if (!hasExplicitSsg && !requestedPPR) {
|
|
37
|
-
ssg = true;
|
|
38
|
-
}
|
|
39
|
-
} else {
|
|
40
|
-
revalidate = void 0;
|
|
41
|
-
if (!hasExplicitSsg) {
|
|
42
|
-
ssg = false;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
} else if (mod?.revalidate === false) {
|
|
46
|
-
revalidate = void 0;
|
|
47
|
-
}
|
|
48
|
-
if (moduleDynamic === "force-static" || moduleDynamic === "error") {
|
|
49
|
-
ssg = true;
|
|
50
|
-
requestedPPR = false;
|
|
51
|
-
} else if (moduleDynamic === "force-dynamic") {
|
|
52
|
-
ssg = false;
|
|
53
|
-
requestedPPR = false;
|
|
54
|
-
revalidate = void 0;
|
|
55
|
-
}
|
|
56
|
-
if (directiveConfig?.requestBound && ssg) {
|
|
57
|
-
ssg = false;
|
|
58
|
-
revalidate = void 0;
|
|
59
|
-
}
|
|
60
|
-
const ppr = pprEnabled && !ssg && requestedPPR;
|
|
61
|
-
return {
|
|
62
|
-
ssg,
|
|
63
|
-
ppr,
|
|
64
|
-
revalidate: ssg || ppr ? revalidate : void 0,
|
|
65
|
-
dynamic,
|
|
66
|
-
directive: directiveConfig?.directive
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
__name(mergeRouteRenderingDirectiveConfig, "mergeRouteRenderingDirectiveConfig");
|
|
70
|
-
|
|
71
|
-
export {
|
|
72
|
-
mergeRouteRenderingDirectiveConfig
|
|
73
|
-
};
|
package/dist/chunk-SYQ3MOWW.cjs
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
-
|
|
3
|
-
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
4
|
-
|
|
5
|
-
// src/route-rendering.ts
|
|
6
|
-
function normalizeDynamicMode(value) {
|
|
7
|
-
switch (value) {
|
|
8
|
-
case "auto":
|
|
9
|
-
case "force-static":
|
|
10
|
-
case "force-dynamic":
|
|
11
|
-
case "error":
|
|
12
|
-
return value;
|
|
13
|
-
default:
|
|
14
|
-
return void 0;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, normalizeDynamicMode, "normalizeDynamicMode");
|
|
18
|
-
function mergeRouteRenderingDirectiveConfig(directiveConfig, mod, options) {
|
|
19
|
-
const pprEnabled = _optionalChain([options, 'optionalAccess', _ => _.experimentalPPR]) === true;
|
|
20
|
-
let ssg = _nullishCoalesce(_optionalChain([directiveConfig, 'optionalAccess', _2 => _2.ssg]), () => ( false));
|
|
21
|
-
let requestedPPR = _nullishCoalesce(_optionalChain([directiveConfig, 'optionalAccess', _3 => _3.ppr]), () => ( false));
|
|
22
|
-
let revalidate = _optionalChain([directiveConfig, 'optionalAccess', _4 => _4.revalidate]);
|
|
23
|
-
const moduleDynamic = normalizeDynamicMode(_optionalChain([mod, 'optionalAccess', _5 => _5.dynamic]));
|
|
24
|
-
const dynamic = _nullishCoalesce(moduleDynamic, () => ( _optionalChain([directiveConfig, 'optionalAccess', _6 => _6.dynamic])));
|
|
25
|
-
const hasExplicitSsg = typeof _optionalChain([mod, 'optionalAccess', _7 => _7.ssg]) === "boolean";
|
|
26
|
-
const hasExplicitPPR = typeof _optionalChain([mod, 'optionalAccess', _8 => _8.ppr]) === "boolean" || typeof _optionalChain([mod, 'optionalAccess', _9 => _9.experimental_ppr]) === "boolean";
|
|
27
|
-
if (hasExplicitSsg) {
|
|
28
|
-
ssg = mod.ssg === true;
|
|
29
|
-
}
|
|
30
|
-
if (hasExplicitPPR) {
|
|
31
|
-
requestedPPR = _optionalChain([mod, 'optionalAccess', _10 => _10.ppr]) === true || _optionalChain([mod, 'optionalAccess', _11 => _11.experimental_ppr]) === true;
|
|
32
|
-
}
|
|
33
|
-
if (typeof _optionalChain([mod, 'optionalAccess', _12 => _12.revalidate]) === "number") {
|
|
34
|
-
if (mod.revalidate > 0) {
|
|
35
|
-
revalidate = mod.revalidate;
|
|
36
|
-
if (!hasExplicitSsg && !requestedPPR) {
|
|
37
|
-
ssg = true;
|
|
38
|
-
}
|
|
39
|
-
} else {
|
|
40
|
-
revalidate = void 0;
|
|
41
|
-
if (!hasExplicitSsg) {
|
|
42
|
-
ssg = false;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
} else if (_optionalChain([mod, 'optionalAccess', _13 => _13.revalidate]) === false) {
|
|
46
|
-
revalidate = void 0;
|
|
47
|
-
}
|
|
48
|
-
if (moduleDynamic === "force-static" || moduleDynamic === "error") {
|
|
49
|
-
ssg = true;
|
|
50
|
-
requestedPPR = false;
|
|
51
|
-
} else if (moduleDynamic === "force-dynamic") {
|
|
52
|
-
ssg = false;
|
|
53
|
-
requestedPPR = false;
|
|
54
|
-
revalidate = void 0;
|
|
55
|
-
}
|
|
56
|
-
if (_optionalChain([directiveConfig, 'optionalAccess', _14 => _14.requestBound]) && ssg) {
|
|
57
|
-
ssg = false;
|
|
58
|
-
revalidate = void 0;
|
|
59
|
-
}
|
|
60
|
-
const ppr = pprEnabled && !ssg && requestedPPR;
|
|
61
|
-
return {
|
|
62
|
-
ssg,
|
|
63
|
-
ppr,
|
|
64
|
-
revalidate: ssg || ppr ? revalidate : void 0,
|
|
65
|
-
dynamic,
|
|
66
|
-
directive: _optionalChain([directiveConfig, 'optionalAccess', _15 => _15.directive])
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, mergeRouteRenderingDirectiveConfig, "mergeRouteRenderingDirectiveConfig");
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
exports.mergeRouteRenderingDirectiveConfig = mergeRouteRenderingDirectiveConfig;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The browser copy of a programmatic page or layout imports only the module that defines its
|
|
3
|
-
* component, never the routes file. Guards, data hooks, static paths, generated metadata, API
|
|
4
|
-
* handlers, and whatever the routes file imports for them stay out of the client graph because
|
|
5
|
-
* the client graph never reaches the routes file.
|
|
6
|
-
*
|
|
7
|
-
* Farm already evaluates the routes file on the server to build its route table. That
|
|
8
|
-
* evaluation also tells it where each component lives: the server module graph holds every
|
|
9
|
-
* module the routes file reached, with its exports, so the module that exports the very
|
|
10
|
-
* function (or object) a route uses as its `component` is that component's own module. This
|
|
11
|
-
* works for any way the route list is built (helpers, re-exported lists, assignments, aliases)
|
|
12
|
-
* because it reads the evaluated value instead of the routes file's syntax. A component that no
|
|
13
|
-
* other module exports (declared in the routes file, or computed there) has no module to
|
|
14
|
-
* import, so a client build that needs it fails with an actionable error.
|
|
15
|
-
*
|
|
16
|
-
* A module that holds route definitions is never a component's client import, however it holds
|
|
17
|
-
* them: Farm finds definitions in every evaluated module's exports (inside objects, arrays,
|
|
18
|
-
* maps, and sets), and route factories record the module that called them while routes are
|
|
19
|
-
* evaluated, which also finds definitions kept behind a function. A definition written as an
|
|
20
|
-
* object literal and kept out of every export can't be traced, so then a component module is
|
|
21
|
-
* accepted only when neither it nor anything it imports holds route-defining code.
|
|
22
|
-
*/
|
|
23
|
-
type ProgrammaticClientRouteKind = "page" | "layout";
|
|
24
|
-
interface ProgrammaticClientModuleExport {
|
|
25
|
-
/** Absolute path of the module that exports the value. */
|
|
26
|
-
file: string;
|
|
27
|
-
/** The export name that holds it. */
|
|
28
|
-
exportName: string;
|
|
29
|
-
}
|
|
30
|
-
interface ProgrammaticClientRoute {
|
|
31
|
-
kind: ProgrammaticClientRouteKind;
|
|
32
|
-
path: string;
|
|
33
|
-
/** Absolute path of the routes file that defines the route. */
|
|
34
|
-
routesFile: string;
|
|
35
|
-
component?: ProgrammaticClientModuleExport;
|
|
36
|
-
pending?: ProgrammaticClientModuleExport;
|
|
37
|
-
/**
|
|
38
|
-
* The route options the server resolves into the page's props (params, search, guard, data).
|
|
39
|
-
* The browser copy renders only from props the server resolved.
|
|
40
|
-
*/
|
|
41
|
-
serverProps?: string[];
|
|
42
|
-
/** Why the browser copy can't be generated, when it can't. */
|
|
43
|
-
problem?: string;
|
|
44
|
-
}
|
|
45
|
-
interface ProgrammaticClientRoutes {
|
|
46
|
-
/** Keyed by {@link programmaticClientRouteKey}. */
|
|
47
|
-
routes: ReadonlyMap<string, ProgrammaticClientRoute>;
|
|
48
|
-
/**
|
|
49
|
-
* Routes files and the modules that export route definitions. None of them may enter the
|
|
50
|
-
* client graph.
|
|
51
|
-
*/
|
|
52
|
-
routeSourceFiles: ReadonlySet<string>;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export type { ProgrammaticClientRoutes as P };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The browser copy of a programmatic page or layout imports only the module that defines its
|
|
3
|
-
* component, never the routes file. Guards, data hooks, static paths, generated metadata, API
|
|
4
|
-
* handlers, and whatever the routes file imports for them stay out of the client graph because
|
|
5
|
-
* the client graph never reaches the routes file.
|
|
6
|
-
*
|
|
7
|
-
* Farm already evaluates the routes file on the server to build its route table. That
|
|
8
|
-
* evaluation also tells it where each component lives: the server module graph holds every
|
|
9
|
-
* module the routes file reached, with its exports, so the module that exports the very
|
|
10
|
-
* function (or object) a route uses as its `component` is that component's own module. This
|
|
11
|
-
* works for any way the route list is built (helpers, re-exported lists, assignments, aliases)
|
|
12
|
-
* because it reads the evaluated value instead of the routes file's syntax. A component that no
|
|
13
|
-
* other module exports (declared in the routes file, or computed there) has no module to
|
|
14
|
-
* import, so a client build that needs it fails with an actionable error.
|
|
15
|
-
*
|
|
16
|
-
* A module that holds route definitions is never a component's client import, however it holds
|
|
17
|
-
* them: Farm finds definitions in every evaluated module's exports (inside objects, arrays,
|
|
18
|
-
* maps, and sets), and route factories record the module that called them while routes are
|
|
19
|
-
* evaluated, which also finds definitions kept behind a function. A definition written as an
|
|
20
|
-
* object literal and kept out of every export can't be traced, so then a component module is
|
|
21
|
-
* accepted only when neither it nor anything it imports holds route-defining code.
|
|
22
|
-
*/
|
|
23
|
-
type ProgrammaticClientRouteKind = "page" | "layout";
|
|
24
|
-
interface ProgrammaticClientModuleExport {
|
|
25
|
-
/** Absolute path of the module that exports the value. */
|
|
26
|
-
file: string;
|
|
27
|
-
/** The export name that holds it. */
|
|
28
|
-
exportName: string;
|
|
29
|
-
}
|
|
30
|
-
interface ProgrammaticClientRoute {
|
|
31
|
-
kind: ProgrammaticClientRouteKind;
|
|
32
|
-
path: string;
|
|
33
|
-
/** Absolute path of the routes file that defines the route. */
|
|
34
|
-
routesFile: string;
|
|
35
|
-
component?: ProgrammaticClientModuleExport;
|
|
36
|
-
pending?: ProgrammaticClientModuleExport;
|
|
37
|
-
/**
|
|
38
|
-
* The route options the server resolves into the page's props (params, search, guard, data).
|
|
39
|
-
* The browser copy renders only from props the server resolved.
|
|
40
|
-
*/
|
|
41
|
-
serverProps?: string[];
|
|
42
|
-
/** Why the browser copy can't be generated, when it can't. */
|
|
43
|
-
problem?: string;
|
|
44
|
-
}
|
|
45
|
-
interface ProgrammaticClientRoutes {
|
|
46
|
-
/** Keyed by {@link programmaticClientRouteKey}. */
|
|
47
|
-
routes: ReadonlyMap<string, ProgrammaticClientRoute>;
|
|
48
|
-
/**
|
|
49
|
-
* Routes files and the modules that export route definitions. None of them may enter the
|
|
50
|
-
* client graph.
|
|
51
|
-
*/
|
|
52
|
-
routeSourceFiles: ReadonlySet<string>;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export type { ProgrammaticClientRoutes as P };
|
|
File without changes
|
|
File without changes
|