@farm.js/core 0.1.40 → 0.1.41
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-XNF4JqHw.d.mts → agent-mcp-BOqIxJLI.d.mts} +8 -2
- package/dist/{agent-mcp-DRlXq3lM.d.ts → agent-mcp-D0eZKfci.d.ts} +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-CzTSMJaf.d.mts} +5 -5
- package/dist/{app-CDJHPqZn.d.ts → app-DM8e1z3G.d.ts} +5 -5
- 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-54QWHSNR.cjs → chunk-32TZ3QTP.cjs} +149 -155
- package/dist/{chunk-BPGO2IEP.mjs → chunk-35WS7P2V.mjs} +24 -126
- package/dist/{chunk-CKFK3Z2V.mjs → chunk-4C7KTKX7.mjs} +1 -1
- 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-7VAJSSPG.mjs → chunk-B2GSRB3P.mjs} +1 -1
- package/dist/{chunk-ZKVJYQPO.mjs → chunk-BGGWKZ2V.mjs} +11 -10
- package/dist/{chunk-JXB6DVCO.mjs → chunk-BPNRQ5BA.mjs} +1 -1
- 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-DKU6NXRK.cjs → chunk-EH3464KF.cjs} +1 -1
- package/dist/{chunk-Y4QVEU67.mjs → chunk-ENOBPDKZ.mjs} +2 -2
- package/dist/{chunk-FLZ4H25A.cjs → chunk-EX4MKHXN.cjs} +6 -6
- package/dist/{chunk-I64GEPOB.cjs → chunk-FEYQCYT7.cjs} +3 -3
- package/dist/{chunk-AXB5P7BK.mjs → chunk-FIAPD365.mjs} +1 -1
- package/dist/{chunk-FCOLU5P6.mjs → chunk-FJGIVDA5.mjs} +38 -15
- 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-EORXKFLR.cjs → chunk-JEIG3EWE.cjs} +1 -1
- package/dist/{chunk-TAKG7ZCD.cjs → chunk-JOTUZIM4.cjs} +14 -14
- package/dist/{chunk-TFX4RTH2.mjs → chunk-JOW4HDJO.mjs} +1 -1
- package/dist/{chunk-H44XGLFU.cjs → chunk-L6A26QT5.cjs} +9 -9
- package/dist/{chunk-EW4MEVLE.cjs → chunk-L6HYACBE.cjs} +7 -7
- 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-5LL6TKII.mjs → chunk-O7USYJ4U.mjs} +1 -1
- package/dist/{chunk-GKQL726H.cjs → chunk-OQ4YXWH4.cjs} +74 -73
- package/dist/{chunk-VBN3UAPQ.mjs → chunk-P2UJF4SS.mjs} +1 -1
- package/dist/{chunk-PGW7HZE2.cjs → chunk-PN676AZF.cjs} +6 -6
- package/dist/{chunk-IMQO6ZUU.mjs → chunk-PYHPXPSW.mjs} +2 -2
- package/dist/{chunk-KK22JPQM.cjs → chunk-QEILRWVV.cjs} +30 -132
- package/dist/{chunk-UXMIFB44.cjs → chunk-QIBP5EFA.cjs} +5 -5
- package/dist/{chunk-XKIUHXHW.mjs → chunk-R65GCA6A.mjs} +45 -51
- package/dist/{chunk-EGCT3AHF.cjs → chunk-ROQ4C4LJ.cjs} +121 -98
- package/dist/{chunk-QJM7A4CR.cjs → chunk-S7MTDRYA.cjs} +10 -10
- package/dist/{chunk-ACLPN56I.mjs → chunk-SGB4IW7K.mjs} +1 -1
- package/dist/{chunk-T6DLMX5V.mjs → chunk-SVPGWJZF.mjs} +3 -3
- 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-H56MQYEG.mjs → chunk-VLPII2JJ.mjs} +1 -1
- 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-XVIEGKTT.cjs → chunk-ZTP3BJG6.cjs} +41 -26
- package/dist/{client-plugins-B_5QbNrp.d.mts → client-plugins-CkYwvDJ0.d.mts} +1 -1
- package/dist/{client-plugins-DgSfIWIF.d.ts → client-plugins-DfeKd0sD.d.ts} +1 -1
- 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-2YHAJYH6.cjs} +5 -5
- package/dist/{devtools-VEQQDVHE.mjs → devtools-N3QLRIQU.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/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 +39 -37
- package/dist/index.d.mts +15 -135
- package/dist/index.d.ts +15 -135
- package/dist/index.mjs +38 -36
- 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 +22 -22
- package/dist/internal/build-runtime.d.mts +4 -4
- package/dist/internal/build-runtime.d.ts +4 -4
- package/dist/internal/build-runtime.mjs +21 -21
- package/dist/internal/cli-runtime.cjs +12 -12
- package/dist/internal/cli-runtime.mjs +11 -11
- 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 +5 -5
- package/dist/internal/config-runtime.d.mts +3 -3
- package/dist/internal/config-runtime.d.ts +3 -3
- package/dist/internal/config-runtime.mjs +4 -4
- 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 +20 -12
- package/dist/internal/production-runtime.d.mts +30 -10
- package/dist/internal/production-runtime.d.ts +30 -10
- package/dist/internal/production-runtime.mjs +20 -12
- 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 +20 -20
- package/dist/plugin.d.mts +4 -3
- package/dist/plugin.d.ts +4 -3
- package/dist/plugin.mjs +19 -19
- package/dist/{production-runtime-j_WCfuwB.d.mts → production-runtime-BTkXQdYy.d.mts} +1 -1
- package/dist/{production-runtime-DfknD3g_.d.ts → production-runtime-DFC7pgbp.d.ts} +1 -1
- package/dist/query/client.cjs +2 -2
- package/dist/query/client.mjs +3 -3
- package/dist/{render-plan-ChUtsymc.d.mts → render-plan-5rFeWmk7.d.mts} +1 -1
- package/dist/{render-plan-CFIhcYYS.d.ts → render-plan-BoAK9xFC.d.ts} +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-BxBWigtl.d.mts} +1 -1
- package/dist/{request-RJvelT8L.d.ts → request-fciwmd3n.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-3a4fbNyC.d.mts → route-rendering-BCM1QzEf.d.mts} +1 -1
- package/dist/{route-rendering-D4coJ-kw.d.ts → route-rendering-BLZT0IP0.d.ts} +1 -1
- package/dist/{router-WLEW3Te1.d.ts → router-CkheNX3-.d.ts} +1 -1
- package/dist/{router-DqIssGRO.d.mts → router-DyZJWc1_.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-DfU4sKa5.d.ts} +1 -1
- package/dist/{runtime-CmE_j-js.d.mts → runtime-wexvUN5J.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 +45 -45
- package/dist/server.d.mts +10 -9
- package/dist/server.d.ts +10 -9
- package/dist/server.mjs +24 -24
- package/dist/{spa-router-D_0VXqPC.d.ts → spa-router-CcejECnG.d.ts} +2 -2
- package/dist/{spa-router-C41zjnFl.d.mts → spa-router-DgsMXqfX.d.mts} +2 -2
- package/dist/ssg-1FGaFISl.d.ts +184 -0
- package/dist/ssg-Bg4bMMhM.d.mts +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-BKWSe3S7.d.mts → utils-8wtTYiH4.d.mts} +1 -1
- package/dist/{utils-YYcWsOJp.d.ts → utils-Dxbh6Hgj.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +37 -21
- package/dist/vite.d.mts +41 -4
- package/dist/vite.d.ts +41 -4
- package/dist/vite.mjs +37 -21
- 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
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { R as RouteRenderingOptions, a as RouteRenderingConfig, D as DirectiveRenderingConfig } from './route-rendering-BLZT0IP0.js';
|
|
2
|
+
import { ak as RouteModule, b4 as SSGCollectionResult, b3 as SSGPage } from './client-plugins-DfeKd0sD.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The browser copy of a programmatic page or layout imports only the module that defines its
|
|
6
|
+
* component, never the routes file. Guards, data hooks, static paths, generated metadata, API
|
|
7
|
+
* handlers, and whatever the routes file imports for them stay out of the client graph because
|
|
8
|
+
* the client graph never reaches the routes file.
|
|
9
|
+
*
|
|
10
|
+
* Farm already evaluates the routes file on the server to build its route table. That
|
|
11
|
+
* evaluation also tells it where each component lives: the server module graph holds every
|
|
12
|
+
* module the routes file reached, with its exports, so the module that exports the very
|
|
13
|
+
* function (or object) a route uses as its `component` is that component's own module. This
|
|
14
|
+
* works for any way the route list is built (helpers, re-exported lists, assignments, aliases)
|
|
15
|
+
* because it reads the evaluated value instead of the routes file's syntax. A component that no
|
|
16
|
+
* other module exports (declared in the routes file, or computed there) has no module to
|
|
17
|
+
* import, so a client build that needs it fails with an actionable error.
|
|
18
|
+
*
|
|
19
|
+
* A module that holds route definitions is never a component's client import, however it holds
|
|
20
|
+
* them: Farm finds definitions in every evaluated module's exports (inside objects, arrays,
|
|
21
|
+
* maps, and sets), and route factories record the module that called them while routes are
|
|
22
|
+
* evaluated, which also finds definitions kept behind a function. A definition written as an
|
|
23
|
+
* object literal and kept out of every export can't be traced, so then a component module is
|
|
24
|
+
* accepted only when neither it nor anything it imports holds route-defining code.
|
|
25
|
+
*/
|
|
26
|
+
type ProgrammaticClientRouteKind = "page" | "layout";
|
|
27
|
+
interface ProgrammaticClientModuleExport {
|
|
28
|
+
/** Absolute path of the module that exports the value. */
|
|
29
|
+
file: string;
|
|
30
|
+
/** The export name that holds it. */
|
|
31
|
+
exportName: string;
|
|
32
|
+
}
|
|
33
|
+
interface ProgrammaticClientRoute {
|
|
34
|
+
kind: ProgrammaticClientRouteKind;
|
|
35
|
+
path: string;
|
|
36
|
+
/** Absolute path of the routes file that defines the route. */
|
|
37
|
+
routesFile: string;
|
|
38
|
+
component?: ProgrammaticClientModuleExport;
|
|
39
|
+
pending?: ProgrammaticClientModuleExport;
|
|
40
|
+
/**
|
|
41
|
+
* The route options the server resolves into the page's props (params, search, guard, data).
|
|
42
|
+
* The browser copy renders only from props the server resolved.
|
|
43
|
+
*/
|
|
44
|
+
serverProps?: string[];
|
|
45
|
+
/** Why the browser copy can't be generated, when it can't. */
|
|
46
|
+
problem?: string;
|
|
47
|
+
}
|
|
48
|
+
interface ProgrammaticClientRoutes {
|
|
49
|
+
/** Keyed by {@link programmaticClientRouteKey}. */
|
|
50
|
+
routes: ReadonlyMap<string, ProgrammaticClientRoute>;
|
|
51
|
+
/**
|
|
52
|
+
* Routes files and the modules that export route definitions. None of them may enter the
|
|
53
|
+
* client graph.
|
|
54
|
+
*/
|
|
55
|
+
routeSourceFiles: ReadonlySet<string>;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Farm.js SSG (Static Site Generation) Module
|
|
60
|
+
*
|
|
61
|
+
* Handles collection and pre-rendering of SSG pages at build time.
|
|
62
|
+
*
|
|
63
|
+
* SSR is the default - pages render on each request
|
|
64
|
+
* SSG is opt-in via `export const ssg = true`, Next-compatible route
|
|
65
|
+
* config exports, or a top-of-file rendering directive.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```tsx
|
|
69
|
+
* // SSG Page
|
|
70
|
+
* export const ssg = true;
|
|
71
|
+
* export default function AboutPage() {
|
|
72
|
+
* return <h1>About</h1>;
|
|
73
|
+
* }
|
|
74
|
+
*
|
|
75
|
+
* // SSG with ISR
|
|
76
|
+
* export const ssg = true;
|
|
77
|
+
* export const revalidate = 60;
|
|
78
|
+
* export default async function ProductsPage() {
|
|
79
|
+
* const products = await fetchProducts();
|
|
80
|
+
* return <ProductList products={products} />;
|
|
81
|
+
* }
|
|
82
|
+
*
|
|
83
|
+
* // Dynamic SSG
|
|
84
|
+
* export const ssg = true;
|
|
85
|
+
* export async function getStaticPaths() {
|
|
86
|
+
* const posts = await fetchPosts();
|
|
87
|
+
* return posts.map(post => ({ slug: post.slug }));
|
|
88
|
+
* }
|
|
89
|
+
* export default async function BlogPost({ params }) {
|
|
90
|
+
* return <article>{params.slug}</article>;
|
|
91
|
+
* }
|
|
92
|
+
*
|
|
93
|
+
* // Next-compatible route config
|
|
94
|
+
* export const dynamic = "force-static";
|
|
95
|
+
* export const revalidate = 60;
|
|
96
|
+
*
|
|
97
|
+
* // PPR/static-shell route
|
|
98
|
+
* export const experimental_ppr = true;
|
|
99
|
+
* export const revalidate = 60;
|
|
100
|
+
*
|
|
101
|
+
* // Directive config
|
|
102
|
+
* "use ssg; 60";
|
|
103
|
+
* export default function DocsPage() {
|
|
104
|
+
* return <h1>Docs</h1>;
|
|
105
|
+
* }
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
|
|
109
|
+
interface RouteEntry {
|
|
110
|
+
path: string;
|
|
111
|
+
filePath: string;
|
|
112
|
+
isDynamic: boolean;
|
|
113
|
+
pattern: string;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
interface StaticRouteCandidateAnalysis {
|
|
117
|
+
candidate: boolean;
|
|
118
|
+
blockers: string[];
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Resolve the effective rendering mode. Direct request reads make an explicitly
|
|
122
|
+
* static route dynamic so request-specific HTML cannot enter a shared artifact.
|
|
123
|
+
*/
|
|
124
|
+
declare function resolveRouteRenderingConfig(mod: RouteModule | null | undefined, source?: string, options?: RouteRenderingOptions): RouteRenderingConfig;
|
|
125
|
+
declare function resolveRouteRenderingConfigFromFile(mod: RouteModule | null | undefined, filePath: string, options?: RouteRenderingOptions): Promise<RouteRenderingConfig>;
|
|
126
|
+
/**
|
|
127
|
+
* Conservatively identify a route that may be safe to pre-render.
|
|
128
|
+
*
|
|
129
|
+
* This intentionally produces a suggestion rather than changing rendering:
|
|
130
|
+
* request-bound work can live in a transitive import, which source inspection
|
|
131
|
+
* of the route module cannot prove safe. Explicit route config always wins.
|
|
132
|
+
*/
|
|
133
|
+
declare function analyzeStaticRouteCandidate(mod: RouteModule | null | undefined, source: string | undefined, options?: {
|
|
134
|
+
isDynamic?: boolean;
|
|
135
|
+
}): StaticRouteCandidateAnalysis;
|
|
136
|
+
declare function findRequestBoundSourceBlockers(source: string): string[];
|
|
137
|
+
declare function parseRouteRenderingDirective(source: string | undefined): DirectiveRenderingConfig | undefined;
|
|
138
|
+
/**
|
|
139
|
+
* A route's rendering directive as the production runtime needs it: the parsed directive plus
|
|
140
|
+
* whether its source reads request state. The runtime only sees module exports, so the build
|
|
141
|
+
* decides `requestBound` here and bakes it into the generated server entry, where
|
|
142
|
+
* `mergeRouteRenderingDirectiveConfig` combines it with the module's exports.
|
|
143
|
+
*/
|
|
144
|
+
declare function readRouteRenderingDirectiveFromFile(modulePath: string): DirectiveRenderingConfig | undefined;
|
|
145
|
+
/**
|
|
146
|
+
* Collect SSG pages from route modules
|
|
147
|
+
*
|
|
148
|
+
* Scans all routes and categorizes them into:
|
|
149
|
+
* - SSG pages: Pre-rendered at build time
|
|
150
|
+
* - SSR routes: Rendered on each request
|
|
151
|
+
*
|
|
152
|
+
* @param routes - Array of route entries
|
|
153
|
+
* @param loadModule - Function to load a route module
|
|
154
|
+
* @returns SSG pages and SSR routes
|
|
155
|
+
*/
|
|
156
|
+
declare function collectSSGPages(routes: RouteEntry[], loadModule: (filePath: string) => Promise<RouteModule>, options?: {
|
|
157
|
+
suggestStaticRendering?: boolean;
|
|
158
|
+
}): Promise<SSGCollectionResult>;
|
|
159
|
+
/**
|
|
160
|
+
* Check if a route module is SSG
|
|
161
|
+
*/
|
|
162
|
+
declare function isSSGModule(mod: RouteModule | null | undefined): boolean;
|
|
163
|
+
/**
|
|
164
|
+
* Check if a route module has ISR (Incremental Static Regeneration)
|
|
165
|
+
*/
|
|
166
|
+
declare function hasISR(mod: RouteModule | null | undefined): boolean;
|
|
167
|
+
/**
|
|
168
|
+
* Get revalidation interval for a module
|
|
169
|
+
*/
|
|
170
|
+
declare function getRevalidateInterval(mod: RouteModule | null | undefined): number | undefined;
|
|
171
|
+
/**
|
|
172
|
+
* Check if a route module has PPR/static-shell caching enabled.
|
|
173
|
+
*/
|
|
174
|
+
declare function hasPPR(mod: RouteModule | null | undefined, options?: RouteRenderingOptions): boolean;
|
|
175
|
+
/**
|
|
176
|
+
* Generate SSG manifest for production builds
|
|
177
|
+
*/
|
|
178
|
+
declare function generateSSGManifest(pages: SSGPage[]): string;
|
|
179
|
+
/**
|
|
180
|
+
* Check if a URL path matches an SSG page
|
|
181
|
+
*/
|
|
182
|
+
declare function matchSSGPage(urlPath: string, ssgPages: SSGPage[]): SSGPage | undefined;
|
|
183
|
+
|
|
184
|
+
export { type ProgrammaticClientRoutes as P, type StaticRouteCandidateAnalysis as S, resolveRouteRenderingConfig as a, resolveRouteRenderingConfigFromFile as b, analyzeStaticRouteCandidate as c, collectSSGPages as d, hasPPR as e, findRequestBoundSourceBlockers as f, getRevalidateInterval as g, hasISR as h, isSSGModule as i, generateSSGManifest as j, matchSSGPage as m, parseRouteRenderingDirective as p, readRouteRenderingDirectiveFromFile as r };
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { R as RouteRenderingOptions, a as RouteRenderingConfig, D as DirectiveRenderingConfig } from './route-rendering-BCM1QzEf.mjs';
|
|
2
|
+
import { ak as RouteModule, b4 as SSGCollectionResult, b3 as SSGPage } from './client-plugins-CkYwvDJ0.mjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The browser copy of a programmatic page or layout imports only the module that defines its
|
|
6
|
+
* component, never the routes file. Guards, data hooks, static paths, generated metadata, API
|
|
7
|
+
* handlers, and whatever the routes file imports for them stay out of the client graph because
|
|
8
|
+
* the client graph never reaches the routes file.
|
|
9
|
+
*
|
|
10
|
+
* Farm already evaluates the routes file on the server to build its route table. That
|
|
11
|
+
* evaluation also tells it where each component lives: the server module graph holds every
|
|
12
|
+
* module the routes file reached, with its exports, so the module that exports the very
|
|
13
|
+
* function (or object) a route uses as its `component` is that component's own module. This
|
|
14
|
+
* works for any way the route list is built (helpers, re-exported lists, assignments, aliases)
|
|
15
|
+
* because it reads the evaluated value instead of the routes file's syntax. A component that no
|
|
16
|
+
* other module exports (declared in the routes file, or computed there) has no module to
|
|
17
|
+
* import, so a client build that needs it fails with an actionable error.
|
|
18
|
+
*
|
|
19
|
+
* A module that holds route definitions is never a component's client import, however it holds
|
|
20
|
+
* them: Farm finds definitions in every evaluated module's exports (inside objects, arrays,
|
|
21
|
+
* maps, and sets), and route factories record the module that called them while routes are
|
|
22
|
+
* evaluated, which also finds definitions kept behind a function. A definition written as an
|
|
23
|
+
* object literal and kept out of every export can't be traced, so then a component module is
|
|
24
|
+
* accepted only when neither it nor anything it imports holds route-defining code.
|
|
25
|
+
*/
|
|
26
|
+
type ProgrammaticClientRouteKind = "page" | "layout";
|
|
27
|
+
interface ProgrammaticClientModuleExport {
|
|
28
|
+
/** Absolute path of the module that exports the value. */
|
|
29
|
+
file: string;
|
|
30
|
+
/** The export name that holds it. */
|
|
31
|
+
exportName: string;
|
|
32
|
+
}
|
|
33
|
+
interface ProgrammaticClientRoute {
|
|
34
|
+
kind: ProgrammaticClientRouteKind;
|
|
35
|
+
path: string;
|
|
36
|
+
/** Absolute path of the routes file that defines the route. */
|
|
37
|
+
routesFile: string;
|
|
38
|
+
component?: ProgrammaticClientModuleExport;
|
|
39
|
+
pending?: ProgrammaticClientModuleExport;
|
|
40
|
+
/**
|
|
41
|
+
* The route options the server resolves into the page's props (params, search, guard, data).
|
|
42
|
+
* The browser copy renders only from props the server resolved.
|
|
43
|
+
*/
|
|
44
|
+
serverProps?: string[];
|
|
45
|
+
/** Why the browser copy can't be generated, when it can't. */
|
|
46
|
+
problem?: string;
|
|
47
|
+
}
|
|
48
|
+
interface ProgrammaticClientRoutes {
|
|
49
|
+
/** Keyed by {@link programmaticClientRouteKey}. */
|
|
50
|
+
routes: ReadonlyMap<string, ProgrammaticClientRoute>;
|
|
51
|
+
/**
|
|
52
|
+
* Routes files and the modules that export route definitions. None of them may enter the
|
|
53
|
+
* client graph.
|
|
54
|
+
*/
|
|
55
|
+
routeSourceFiles: ReadonlySet<string>;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Farm.js SSG (Static Site Generation) Module
|
|
60
|
+
*
|
|
61
|
+
* Handles collection and pre-rendering of SSG pages at build time.
|
|
62
|
+
*
|
|
63
|
+
* SSR is the default - pages render on each request
|
|
64
|
+
* SSG is opt-in via `export const ssg = true`, Next-compatible route
|
|
65
|
+
* config exports, or a top-of-file rendering directive.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```tsx
|
|
69
|
+
* // SSG Page
|
|
70
|
+
* export const ssg = true;
|
|
71
|
+
* export default function AboutPage() {
|
|
72
|
+
* return <h1>About</h1>;
|
|
73
|
+
* }
|
|
74
|
+
*
|
|
75
|
+
* // SSG with ISR
|
|
76
|
+
* export const ssg = true;
|
|
77
|
+
* export const revalidate = 60;
|
|
78
|
+
* export default async function ProductsPage() {
|
|
79
|
+
* const products = await fetchProducts();
|
|
80
|
+
* return <ProductList products={products} />;
|
|
81
|
+
* }
|
|
82
|
+
*
|
|
83
|
+
* // Dynamic SSG
|
|
84
|
+
* export const ssg = true;
|
|
85
|
+
* export async function getStaticPaths() {
|
|
86
|
+
* const posts = await fetchPosts();
|
|
87
|
+
* return posts.map(post => ({ slug: post.slug }));
|
|
88
|
+
* }
|
|
89
|
+
* export default async function BlogPost({ params }) {
|
|
90
|
+
* return <article>{params.slug}</article>;
|
|
91
|
+
* }
|
|
92
|
+
*
|
|
93
|
+
* // Next-compatible route config
|
|
94
|
+
* export const dynamic = "force-static";
|
|
95
|
+
* export const revalidate = 60;
|
|
96
|
+
*
|
|
97
|
+
* // PPR/static-shell route
|
|
98
|
+
* export const experimental_ppr = true;
|
|
99
|
+
* export const revalidate = 60;
|
|
100
|
+
*
|
|
101
|
+
* // Directive config
|
|
102
|
+
* "use ssg; 60";
|
|
103
|
+
* export default function DocsPage() {
|
|
104
|
+
* return <h1>Docs</h1>;
|
|
105
|
+
* }
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
|
|
109
|
+
interface RouteEntry {
|
|
110
|
+
path: string;
|
|
111
|
+
filePath: string;
|
|
112
|
+
isDynamic: boolean;
|
|
113
|
+
pattern: string;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
interface StaticRouteCandidateAnalysis {
|
|
117
|
+
candidate: boolean;
|
|
118
|
+
blockers: string[];
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Resolve the effective rendering mode. Direct request reads make an explicitly
|
|
122
|
+
* static route dynamic so request-specific HTML cannot enter a shared artifact.
|
|
123
|
+
*/
|
|
124
|
+
declare function resolveRouteRenderingConfig(mod: RouteModule | null | undefined, source?: string, options?: RouteRenderingOptions): RouteRenderingConfig;
|
|
125
|
+
declare function resolveRouteRenderingConfigFromFile(mod: RouteModule | null | undefined, filePath: string, options?: RouteRenderingOptions): Promise<RouteRenderingConfig>;
|
|
126
|
+
/**
|
|
127
|
+
* Conservatively identify a route that may be safe to pre-render.
|
|
128
|
+
*
|
|
129
|
+
* This intentionally produces a suggestion rather than changing rendering:
|
|
130
|
+
* request-bound work can live in a transitive import, which source inspection
|
|
131
|
+
* of the route module cannot prove safe. Explicit route config always wins.
|
|
132
|
+
*/
|
|
133
|
+
declare function analyzeStaticRouteCandidate(mod: RouteModule | null | undefined, source: string | undefined, options?: {
|
|
134
|
+
isDynamic?: boolean;
|
|
135
|
+
}): StaticRouteCandidateAnalysis;
|
|
136
|
+
declare function findRequestBoundSourceBlockers(source: string): string[];
|
|
137
|
+
declare function parseRouteRenderingDirective(source: string | undefined): DirectiveRenderingConfig | undefined;
|
|
138
|
+
/**
|
|
139
|
+
* A route's rendering directive as the production runtime needs it: the parsed directive plus
|
|
140
|
+
* whether its source reads request state. The runtime only sees module exports, so the build
|
|
141
|
+
* decides `requestBound` here and bakes it into the generated server entry, where
|
|
142
|
+
* `mergeRouteRenderingDirectiveConfig` combines it with the module's exports.
|
|
143
|
+
*/
|
|
144
|
+
declare function readRouteRenderingDirectiveFromFile(modulePath: string): DirectiveRenderingConfig | undefined;
|
|
145
|
+
/**
|
|
146
|
+
* Collect SSG pages from route modules
|
|
147
|
+
*
|
|
148
|
+
* Scans all routes and categorizes them into:
|
|
149
|
+
* - SSG pages: Pre-rendered at build time
|
|
150
|
+
* - SSR routes: Rendered on each request
|
|
151
|
+
*
|
|
152
|
+
* @param routes - Array of route entries
|
|
153
|
+
* @param loadModule - Function to load a route module
|
|
154
|
+
* @returns SSG pages and SSR routes
|
|
155
|
+
*/
|
|
156
|
+
declare function collectSSGPages(routes: RouteEntry[], loadModule: (filePath: string) => Promise<RouteModule>, options?: {
|
|
157
|
+
suggestStaticRendering?: boolean;
|
|
158
|
+
}): Promise<SSGCollectionResult>;
|
|
159
|
+
/**
|
|
160
|
+
* Check if a route module is SSG
|
|
161
|
+
*/
|
|
162
|
+
declare function isSSGModule(mod: RouteModule | null | undefined): boolean;
|
|
163
|
+
/**
|
|
164
|
+
* Check if a route module has ISR (Incremental Static Regeneration)
|
|
165
|
+
*/
|
|
166
|
+
declare function hasISR(mod: RouteModule | null | undefined): boolean;
|
|
167
|
+
/**
|
|
168
|
+
* Get revalidation interval for a module
|
|
169
|
+
*/
|
|
170
|
+
declare function getRevalidateInterval(mod: RouteModule | null | undefined): number | undefined;
|
|
171
|
+
/**
|
|
172
|
+
* Check if a route module has PPR/static-shell caching enabled.
|
|
173
|
+
*/
|
|
174
|
+
declare function hasPPR(mod: RouteModule | null | undefined, options?: RouteRenderingOptions): boolean;
|
|
175
|
+
/**
|
|
176
|
+
* Generate SSG manifest for production builds
|
|
177
|
+
*/
|
|
178
|
+
declare function generateSSGManifest(pages: SSGPage[]): string;
|
|
179
|
+
/**
|
|
180
|
+
* Check if a URL path matches an SSG page
|
|
181
|
+
*/
|
|
182
|
+
declare function matchSSGPage(urlPath: string, ssgPages: SSGPage[]): SSGPage | undefined;
|
|
183
|
+
|
|
184
|
+
export { type ProgrammaticClientRoutes as P, type StaticRouteCandidateAnalysis as S, resolveRouteRenderingConfig as a, resolveRouteRenderingConfigFromFile as b, analyzeStaticRouteCandidate as c, collectSSGPages as d, hasPPR as e, findRequestBoundSourceBlockers as f, getRevalidateInterval as g, hasISR as h, isSSGModule as i, generateSSGManifest as j, matchSSGPage as m, parseRouteRenderingDirective as p, readRouteRenderingDirectiveFromFile as r };
|
package/dist/testing.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkFEYQCYT7cjs = require('./chunk-FEYQCYT7.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -13,16 +13,16 @@ var _chunkP4TYB4SFcjs = require('./chunk-P4TYB4SF.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunk6QQDAAAZcjs = require('./chunk-6QQDAAAZ.cjs');
|
|
16
|
-
require('./chunk-
|
|
17
|
-
require('./chunk-
|
|
16
|
+
require('./chunk-S7MTDRYA.cjs');
|
|
17
|
+
require('./chunk-KF6VDJH7.cjs');
|
|
18
18
|
require('./chunk-2CQ74SP6.cjs');
|
|
19
19
|
require('./chunk-XJXBIP67.cjs');
|
|
20
20
|
require('./chunk-UFDAAQFX.cjs');
|
|
21
21
|
require('./chunk-LYLEZIG3.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
25
|
-
require('./chunk-
|
|
24
|
+
var _chunkQIBP5EFAcjs = require('./chunk-QIBP5EFA.cjs');
|
|
25
|
+
require('./chunk-WU7ZS3EM.cjs');
|
|
26
26
|
require('./chunk-WMAPPDMM.cjs');
|
|
27
27
|
require('./chunk-TKJZFIML.cjs');
|
|
28
28
|
require('./chunk-75RZHGLS.cjs');
|
|
@@ -30,7 +30,7 @@ require('./chunk-CGVPXIRN.cjs');
|
|
|
30
30
|
require('./chunk-SOR334EB.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunk6MVFHNYZcjs = require('./chunk-6MVFHNYZ.cjs');
|
|
34
34
|
require('./chunk-64SBBZDU.cjs');
|
|
35
35
|
require('./chunk-SVRTJOUF.cjs');
|
|
36
36
|
require('./chunk-VQDBNVOO.cjs');
|
|
@@ -54,9 +54,9 @@ require('./chunk-AI7QMY7O.cjs');
|
|
|
54
54
|
require('./chunk-LIUGYUX3.cjs');
|
|
55
55
|
require('./chunk-NYJMY3JA.cjs');
|
|
56
56
|
require('./chunk-ZEG3OPIB.cjs');
|
|
57
|
-
require('./chunk-
|
|
57
|
+
require('./chunk-ZTP3BJG6.cjs');
|
|
58
58
|
require('./chunk-US2QVW3E.cjs');
|
|
59
|
-
require('./chunk-
|
|
59
|
+
require('./chunk-6IZWX6ES.cjs');
|
|
60
60
|
require('./chunk-BIDYX3SL.cjs');
|
|
61
61
|
require('./chunk-I57LW5VZ.cjs');
|
|
62
62
|
require('./chunk-NO3WWW3N.cjs');
|
|
@@ -130,7 +130,7 @@ function createFarmTestHarness(options = {}) {
|
|
|
130
130
|
},
|
|
131
131
|
routeContext
|
|
132
132
|
);
|
|
133
|
-
const routeModule =
|
|
133
|
+
const routeModule = _chunkFEYQCYT7cjs.createRouteModuleFromProgrammaticPage.call(void 0, route);
|
|
134
134
|
const resolveProps = routeModule.__farmResolveRouteProps;
|
|
135
135
|
const resolvedProps = resolveProps ? await resolveProps(rawProps) : { ...rawProps, search, searchParams: Promise.resolve(search) };
|
|
136
136
|
const canonicalPath = readCanonicalPath(resolvedProps);
|
|
@@ -184,7 +184,7 @@ function createFarmTestHarness(options = {}) {
|
|
|
184
184
|
return await _chunkP4TYB4SFcjs.runWithServerActionRequest.call(void 0, actionRequest, () => serverFn(input));
|
|
185
185
|
},
|
|
186
186
|
clearCache() {
|
|
187
|
-
|
|
187
|
+
_chunk6MVFHNYZcjs.getFarmDataCache.call(void 0, ).clear();
|
|
188
188
|
}
|
|
189
189
|
};
|
|
190
190
|
}
|
|
@@ -331,7 +331,7 @@ function omitEndpointControlOptions(options) {
|
|
|
331
331
|
_chunkS3JO3N4Hcjs.__name.call(void 0, omitEndpointControlOptions, "omitEndpointControlOptions");
|
|
332
332
|
async function invokeTestEndpoint(endpoint, request, params = {}, throwOnError = false) {
|
|
333
333
|
try {
|
|
334
|
-
return await
|
|
334
|
+
return await _chunkQIBP5EFAcjs.invokeAPIRouteEndpoint.call(void 0, endpoint, request, params);
|
|
335
335
|
} catch (error) {
|
|
336
336
|
if (throwOnError) throw error;
|
|
337
337
|
return jsonErrorResponse(error instanceof Error ? error.message : "Internal Server Error", 500);
|
package/dist/testing.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { av as FarmContextFactory, aw as MiddlewareProps, aj as PluginContextProps, ak as RouteModule } from './client-plugins-
|
|
2
|
+
import { av as FarmContextFactory, aw as MiddlewareProps, aj as PluginContextProps, ak as RouteModule } from './client-plugins-CkYwvDJ0.mjs';
|
|
3
3
|
import './types-CnH8DOqo.mjs';
|
|
4
4
|
import { a as APIRouteParams } from './route-pattern-W-SsJGSp.mjs';
|
|
5
5
|
import { ServerFn } from './server-fn.mjs';
|
|
@@ -31,7 +31,7 @@ import './server-action-security.mjs';
|
|
|
31
31
|
import './layers-CM5i6T7z.mjs';
|
|
32
32
|
import 'rolldown/utils';
|
|
33
33
|
import 'rolldown';
|
|
34
|
-
import './image-config-
|
|
34
|
+
import './image-config-BpH1q5R8.mjs';
|
|
35
35
|
import './types-DQnyD3VD.mjs';
|
|
36
36
|
import './font.mjs';
|
|
37
37
|
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { av as FarmContextFactory, aw as MiddlewareProps, aj as PluginContextProps, ak as RouteModule } from './client-plugins-
|
|
2
|
+
import { av as FarmContextFactory, aw as MiddlewareProps, aj as PluginContextProps, ak as RouteModule } from './client-plugins-DfeKd0sD.js';
|
|
3
3
|
import './types-CnH8DOqo.js';
|
|
4
4
|
import { a as APIRouteParams } from './route-pattern-W-SsJGSp.js';
|
|
5
5
|
import { ServerFn } from './server-fn.js';
|
|
@@ -31,7 +31,7 @@ import './server-action-security.js';
|
|
|
31
31
|
import './layers-CM5i6T7z.js';
|
|
32
32
|
import 'rolldown/utils';
|
|
33
33
|
import 'rolldown';
|
|
34
|
-
import './image-config-
|
|
34
|
+
import './image-config-BpH1q5R8.js';
|
|
35
35
|
import './types-DQnyD3VD.js';
|
|
36
36
|
import './font.js';
|
|
37
37
|
|
package/dist/testing.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRouteModuleFromProgrammaticPage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-P2UJF4SS.mjs";
|
|
4
4
|
import {
|
|
5
5
|
buildFarmRoutePath,
|
|
6
6
|
matchFarmRoute
|
|
@@ -13,16 +13,16 @@ import {
|
|
|
13
13
|
resolveFarmRouteContext,
|
|
14
14
|
withFarmRouteContext
|
|
15
15
|
} from "./chunk-SEJ5N6SL.mjs";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-YYQVGKO5.mjs";
|
|
17
|
+
import "./chunk-FWCGUVVL.mjs";
|
|
18
18
|
import "./chunk-CU625VAY.mjs";
|
|
19
19
|
import "./chunk-NPC7VWJE.mjs";
|
|
20
20
|
import "./chunk-QCFBDFRS.mjs";
|
|
21
21
|
import "./chunk-YOZYCI6Z.mjs";
|
|
22
22
|
import {
|
|
23
23
|
invokeAPIRouteEndpoint
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-VTBXE6QG.mjs";
|
|
25
|
+
import "./chunk-MEASUNVY.mjs";
|
|
26
26
|
import "./chunk-W3B4PKAW.mjs";
|
|
27
27
|
import "./chunk-5WI2S4CO.mjs";
|
|
28
28
|
import "./chunk-ZLAT2CWY.mjs";
|
|
@@ -30,7 +30,7 @@ import "./chunk-KNHBTJP6.mjs";
|
|
|
30
30
|
import "./chunk-2J7W2WND.mjs";
|
|
31
31
|
import {
|
|
32
32
|
getFarmDataCache
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-B2GSRB3P.mjs";
|
|
34
34
|
import "./chunk-MGMF4VP7.mjs";
|
|
35
35
|
import "./chunk-FP2INE7H.mjs";
|
|
36
36
|
import "./chunk-7GNWGLWB.mjs";
|
|
@@ -54,9 +54,9 @@ import "./chunk-JM5XPKWH.mjs";
|
|
|
54
54
|
import "./chunk-C4NCTZLM.mjs";
|
|
55
55
|
import "./chunk-CNOQY6Z7.mjs";
|
|
56
56
|
import "./chunk-4SIYUGRY.mjs";
|
|
57
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-X3NGFVRF.mjs";
|
|
58
58
|
import "./chunk-CQ6OSQ3K.mjs";
|
|
59
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-6LVRDOAW.mjs";
|
|
60
60
|
import "./chunk-L3KT7IXV.mjs";
|
|
61
61
|
import "./chunk-4RB44K6Z.mjs";
|
|
62
62
|
import "./chunk-55YI3RRB.mjs";
|
package/dist/theme/server.cjs
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk2FUIT2G2cjs = require('../chunk-2FUIT2G2.cjs');
|
|
7
7
|
require('../chunk-OI6CMLWX.cjs');
|
|
8
8
|
require('../chunk-7W3CPVXS.cjs');
|
|
9
9
|
require('../chunk-AI7QMY7O.cjs');
|
|
10
|
-
require('../chunk-
|
|
11
|
-
require('../chunk-
|
|
10
|
+
require('../chunk-ZTP3BJG6.cjs');
|
|
11
|
+
require('../chunk-6IZWX6ES.cjs');
|
|
12
12
|
require('../chunk-S3JO3N4H.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
exports._setDefaultFarmThemeConfig =
|
|
18
|
+
exports._setDefaultFarmThemeConfig = _chunk2FUIT2G2cjs._setDefaultFarmThemeConfig; exports.getTheme = _chunk2FUIT2G2cjs.getTheme; exports.getThemeSnapshot = _chunk2FUIT2G2cjs.getThemeSnapshot; exports.readFarmThemePreference = _chunk2FUIT2G2cjs.readFarmThemePreference;
|
package/dist/theme/server.mjs
CHANGED
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
getTheme,
|
|
4
4
|
getThemeSnapshot,
|
|
5
5
|
readFarmThemePreference
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-FIAPD365.mjs";
|
|
7
7
|
import "../chunk-AELACLOB.mjs";
|
|
8
8
|
import "../chunk-WNSDDRNU.mjs";
|
|
9
9
|
import "../chunk-JM5XPKWH.mjs";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-X3NGFVRF.mjs";
|
|
11
|
+
import "../chunk-6LVRDOAW.mjs";
|
|
12
12
|
import "../chunk-LPEX4YW6.mjs";
|
|
13
13
|
export {
|
|
14
14
|
_setDefaultFarmThemeConfig,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a8 as ParsedRoute, a9 as RouteSegment } from './client-plugins-
|
|
1
|
+
import { a8 as ParsedRoute, a9 as RouteSegment } from './client-plugins-CkYwvDJ0.mjs';
|
|
2
2
|
|
|
3
3
|
declare function parseRoutePath(filePath: string): ParsedRoute;
|
|
4
4
|
declare function segmentsToPattern(segments: RouteSegment[]): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a8 as ParsedRoute, a9 as RouteSegment } from './client-plugins-
|
|
1
|
+
import { a8 as ParsedRoute, a9 as RouteSegment } from './client-plugins-DfeKd0sD.js';
|
|
2
2
|
|
|
3
3
|
declare function parseRoutePath(filePath: string): ParsedRoute;
|
|
4
4
|
declare function segmentsToPattern(segments: RouteSegment[]): string;
|
package/dist/version.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkEH3464KFcjs = require('./chunk-EH3464KF.cjs');
|
|
4
4
|
require('./chunk-S3JO3N4H.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.FARM_VERSION =
|
|
7
|
+
exports.FARM_VERSION = _chunkEH3464KFcjs.FARM_VERSION;
|