@farm.js/core 0.1.71 → 0.1.72
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-KE4J3W7S.cjs +1 -1
- package/dist/agent-mcp-handler-VIT4GOSR.mjs +1 -1
- package/dist/{agent-mcp.d-BzNw6JI8.d.ts → agent-mcp.d-BO3rZXEM.d.ts} +2 -2
- package/dist/{agent-mcp.d-CgFen3EH.d.mts → agent-mcp.d-Cwff7lcA.d.mts} +2 -2
- package/dist/agent-runtime.d.mts +3 -3
- package/dist/agent-runtime.d.ts +3 -3
- package/dist/{analyzer-VK3BAOFI.mjs → analyzer-5Q75LTIL.mjs} +2 -2
- package/dist/analyzer-UJG4MIZW.cjs +16 -0
- package/dist/api/node.d.mts +5 -5
- package/dist/api/node.d.ts +5 -5
- package/dist/api/route-manager.cjs +7 -6
- package/dist/api/route-manager.d.mts +7 -7
- package/dist/api/route-manager.d.ts +7 -7
- package/dist/api/route-manager.mjs +6 -5
- package/dist/api/runtime.d.mts +4 -4
- package/dist/api/runtime.d.ts +4 -4
- package/dist/api.cjs +8 -7
- package/dist/api.d.mts +8 -8
- package/dist/api.d.ts +8 -8
- package/dist/api.mjs +7 -6
- package/dist/{app-manifest.d-DY4JfJxi.d.ts → app-manifest.d-DwjGkYlP.d.ts} +1 -1
- package/dist/{app-manifest.d-DpDK_B1k.d.mts → app-manifest.d-USD_IbFd.d.mts} +1 -1
- package/dist/app-markdown.d.mts +4 -4
- package/dist/app-markdown.d.ts +4 -4
- package/dist/{app.d-BeK6bb1c.d.ts → app.d-DAmF2MAk.d.ts} +48 -6
- package/dist/{app.d-D-5UNrFd.d.mts → app.d-fW06_h8h.d.mts} +48 -6
- package/dist/{chunk-7A3URI2F.mjs → chunk-2EVESLP3.mjs} +8 -1
- package/dist/{chunk-X7LGLF33.mjs → chunk-3JN5M3T5.mjs} +259 -61
- package/dist/{chunk-KEB7AGS6.cjs → chunk-3WG7GJQL.cjs} +7 -2
- package/dist/{chunk-K66JILV3.cjs → chunk-5LOARKDP.cjs} +2 -2
- package/dist/{chunk-UISZLYKY.cjs → chunk-5R4Q5FN7.cjs} +2 -2
- package/dist/{chunk-3BQ7QHUH.cjs → chunk-5X6OHJEE.cjs} +15 -3
- package/dist/{chunk-GUU3IZSM.mjs → chunk-5XFKWHZD.mjs} +234 -47
- package/dist/{chunk-MITIAOUQ.mjs → chunk-645ENY7W.mjs} +2 -2
- package/dist/{chunk-RJUCNO7R.mjs → chunk-77VNYVVX.mjs} +1 -1
- package/dist/{chunk-PLXD2MJV.cjs → chunk-7QCJDYZQ.cjs} +2 -2
- package/dist/{chunk-V25GSH43.mjs → chunk-AUAMXI6N.mjs} +1 -1
- package/dist/{chunk-2IFT2CSA.cjs → chunk-BE7AQXJB.cjs} +346 -148
- package/dist/{chunk-7BUE2GM6.mjs → chunk-BSXKZPFE.mjs} +70 -19
- package/dist/{chunk-2MR4MABG.cjs → chunk-C5AM2XDN.cjs} +54 -4
- package/dist/{chunk-KWST2O22.cjs → chunk-CBLRSZQL.cjs} +488 -301
- package/dist/{chunk-BBPDJGCU.cjs → chunk-CYOTNHDF.cjs} +2 -2
- package/dist/{chunk-W2T6NDNP.mjs → chunk-DGNMXL2O.mjs} +1 -1
- package/dist/{chunk-QUFENL7Q.mjs → chunk-DS7JGFW5.mjs} +13 -1
- package/dist/{chunk-IGXS54GC.mjs → chunk-E2V7RRFL.mjs} +1 -1
- package/dist/{chunk-CSQPMV3Q.cjs → chunk-E3LE6EZH.cjs} +4 -4
- package/dist/{chunk-JVA4PIYN.cjs → chunk-ET6WW3FY.cjs} +338 -171
- package/dist/{chunk-VXB5CMNC.cjs → chunk-EXN4DTVF.cjs} +2 -2
- package/dist/{chunk-SXMWVP2L.cjs → chunk-FSSONJRV.cjs} +4 -4
- package/dist/{chunk-Y2SZVIVH.cjs → chunk-GPICBTDV.cjs} +8 -1
- package/dist/{chunk-7OHJWFLB.cjs → chunk-HLMUWKAP.cjs} +333 -282
- package/dist/{chunk-ZPUAOKHV.cjs → chunk-IWCYRDRQ.cjs} +3 -3
- package/dist/{chunk-2AM26UGI.cjs → chunk-NLBK37HI.cjs} +5 -4
- package/dist/{chunk-NA77GEIU.mjs → chunk-NV26EGMC.mjs} +51 -1
- package/dist/{chunk-DPYBVVL3.cjs → chunk-OSEQL34Q.cjs} +2 -2
- package/dist/{chunk-IYDJNCR7.mjs → chunk-OSMUE5ST.mjs} +7 -2
- package/dist/{chunk-UQUOSNRN.mjs → chunk-QUYAGU65.mjs} +214 -47
- package/dist/{chunk-DPIGYXSV.mjs → chunk-RFWWXEIF.mjs} +1 -1
- package/dist/{chunk-E77IA5IF.mjs → chunk-RLFGKJQ6.mjs} +1 -1
- package/dist/{chunk-3AUINHFG.mjs → chunk-TNYC3TYP.mjs} +3 -2
- package/dist/{chunk-4OD2LXF2.mjs → chunk-VAWDGGW3.mjs} +1 -1
- package/dist/{chunk-MU5V7XHL.mjs → chunk-VJSXPN3W.mjs} +3 -0
- package/dist/{chunk-DU4VHHPJ.mjs → chunk-VO55MMBX.mjs} +1 -1
- package/dist/{chunk-LDVJIBGN.mjs → chunk-VT25ERQK.mjs} +1 -1
- package/dist/{chunk-2CQC5CMD.mjs → chunk-WIJF3PBM.mjs} +1 -1
- package/dist/{chunk-FILXOEWD.cjs → chunk-YXIQYWOK.cjs} +2 -2
- package/dist/{chunk-THG2TVDH.mjs → chunk-YZLEOMMA.mjs} +3 -3
- package/dist/{chunk-MEJCP2LX.cjs → chunk-ZDZUFD67.cjs} +1 -1
- package/dist/{chunk-Q5HMVGR5.cjs → chunk-ZFEJ2SF2.cjs} +13 -13
- package/dist/{chunk-LNVGXUL3.cjs → chunk-ZMSVKVI3.cjs} +3 -0
- package/dist/{client-component.d-fYupugbZ.d.ts → client-component.d-9J7CkTWW.d.ts} +2 -2
- package/dist/{client-component.d-DwpH251K.d.mts → client-component.d-ciHeCxr-.d.mts} +2 -2
- package/dist/{client-plugins.d-BxqFfHpM.d.ts → client-plugins.d-CUOhfapO.d.ts} +4 -3
- package/dist/{client-plugins.d-k3bOT5gz.d.mts → client-plugins.d-JnRz5a1o.d.mts} +4 -3
- package/dist/client-plugins.d.mts +3 -3
- package/dist/client-plugins.d.ts +3 -3
- package/dist/client.cjs +1 -1
- package/dist/client.d.mts +8 -8
- package/dist/client.d.ts +8 -8
- package/dist/client.mjs +1 -1
- package/dist/config.d.mts +3 -3
- package/dist/config.d.ts +3 -3
- package/dist/desktop.d.mts +4 -4
- package/dist/desktop.d.ts +4 -4
- package/dist/{devtools-6MXPFPNJ.mjs → devtools-7JPQMSTQ.mjs} +3 -3
- package/dist/{devtools-O5625KCK.cjs → devtools-IZFUYWPG.cjs} +4 -4
- package/dist/docs.cjs +5 -5
- package/dist/docs.d.mts +4 -4
- package/dist/docs.d.ts +4 -4
- package/dist/docs.mjs +4 -4
- package/dist/environment/vite.cjs +3 -3
- package/dist/environment/vite.mjs +2 -2
- package/dist/{headers.d-DalIGbVO.d.ts → headers.d-CqpTL_fZ.d.ts} +2 -2
- package/dist/{headers.d-sNT7ZQiU.d.mts → headers.d-rbbTKGaN.d.mts} +2 -2
- package/dist/i18n/client.cjs +3 -2
- package/dist/i18n/client.d.mts +2 -2
- package/dist/i18n/client.d.ts +2 -2
- package/dist/i18n/client.mjs +2 -1
- package/dist/i18n/index.cjs +3 -2
- package/dist/i18n/index.d.mts +3 -3
- package/dist/i18n/index.d.ts +3 -3
- package/dist/i18n/index.mjs +2 -1
- package/dist/i18n/server.cjs +6 -5
- package/dist/i18n/server.d.mts +5 -5
- package/dist/i18n/server.d.ts +5 -5
- package/dist/i18n/server.mjs +5 -4
- package/dist/index.cjs +22 -22
- package/dist/{index.d-BcA-secm.d.ts → index.d-CMKvzHLW.d.ts} +1 -1
- package/dist/{index.d-DDHHAv7j.d.mts → index.d-D_B2D9Il.d.mts} +1 -1
- package/dist/index.d.mts +23 -23
- package/dist/index.d.ts +23 -23
- package/dist/index.mjs +21 -21
- package/dist/integrations/orm.d.mts +3 -3
- package/dist/integrations/orm.d.ts +3 -3
- package/dist/integrations.d.mts +3 -3
- package/dist/integrations.d.ts +3 -3
- package/dist/internal/app-markdown-runtime.d.mts +4 -4
- package/dist/internal/app-markdown-runtime.d.ts +4 -4
- package/dist/internal/build-runtime.cjs +21 -21
- package/dist/internal/build-runtime.d.mts +5 -5
- package/dist/internal/build-runtime.d.ts +5 -5
- package/dist/internal/build-runtime.mjs +20 -20
- package/dist/internal/cli-runtime.cjs +6 -6
- package/dist/internal/cli-runtime.mjs +5 -5
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +2 -2
- package/dist/internal/client-runtime.d.mts +6 -6
- package/dist/internal/client-runtime.d.ts +6 -6
- package/dist/internal/client-runtime.mjs +3 -3
- package/dist/internal/compression-runtime.d.mts +3 -3
- package/dist/internal/compression-runtime.d.ts +3 -3
- package/dist/internal/config-runtime.cjs +5 -5
- package/dist/internal/config-runtime.d.mts +6 -6
- package/dist/internal/config-runtime.d.ts +6 -6
- package/dist/internal/config-runtime.mjs +4 -4
- package/dist/internal/infra-analytics-runtime.cjs +7 -7
- package/dist/internal/infra-analytics-runtime.mjs +5 -5
- package/dist/internal/native-server-fns.cjs +4 -4
- package/dist/internal/native-server-fns.mjs +3 -3
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +13 -13
- package/dist/internal/production-runtime.d.mts +36 -24
- package/dist/internal/production-runtime.d.ts +36 -24
- package/dist/internal/production-runtime.mjs +12 -12
- package/dist/internal/vercel-edge-middleware.d.mts +2 -2
- package/dist/internal/vercel-edge-middleware.d.ts +2 -2
- package/dist/markdown.d.mts +3 -3
- package/dist/markdown.d.ts +3 -3
- package/dist/middleware.cjs +3 -3
- package/dist/middleware.d.mts +4 -4
- package/dist/middleware.d.ts +4 -4
- package/dist/middleware.mjs +2 -2
- package/dist/mobile.d.mts +3 -3
- package/dist/mobile.d.ts +3 -3
- package/dist/{mount.d-D3JOux2V.d.ts → mount.d-B0XMxDRh.d.ts} +1 -1
- package/dist/{mount.d-C1PONsEe.d.mts → mount.d-ImEO7q8a.d.mts} +1 -1
- package/dist/{navigation-delegate.d-CJQQHboA.d.mts → navigation-delegate.d-83Q7ksf7.d.mts} +1 -1
- package/dist/{navigation-delegate.d-CQQPbdkE.d.ts → navigation-delegate.d-RRx1CSlb.d.ts} +1 -1
- package/dist/navigation.d.mts +6 -6
- package/dist/navigation.d.ts +6 -6
- package/dist/plugin.cjs +15 -15
- package/dist/plugin.d.mts +6 -6
- package/dist/plugin.d.ts +6 -6
- package/dist/plugin.mjs +14 -14
- package/dist/{production-runtime.d-B0IeWWyO.d.mts → production-runtime.d-Bcu37SCo.d.mts} +1 -1
- package/dist/{production-runtime.d-q3aHIv5Y.d.ts → production-runtime.d-qPj3XRET.d.ts} +1 -1
- package/dist/{render-plan.d-DHuJMJRP.d.ts → render-plan.d-Ds2sXJ5m.d.ts} +1 -1
- package/dist/{render-plan.d-CiUj0rq5.d.mts → render-plan.d-wP8nTeRV.d.mts} +1 -1
- package/dist/renderer-client.cjs +3 -2
- package/dist/renderer-client.d.mts +6 -6
- package/dist/renderer-client.d.ts +6 -6
- package/dist/renderer-client.mjs +2 -1
- package/dist/{request.d-D-F7o7tb.d.mts → request.d-F3h7K37m.d.mts} +1 -1
- package/dist/{request.d-DRUbOmYD.d.ts → request.d-zpSn6pu_.d.ts} +1 -1
- package/dist/request.d.mts +4 -4
- package/dist/request.d.ts +4 -4
- package/dist/{resolver.d-9iKC79CU.d.mts → resolver.d-DJgzbdsp.d.mts} +1 -1
- package/dist/{resolver.d-CY6mEa_F.d.ts → resolver.d-yaHcGCCG.d.ts} +1 -1
- package/dist/{route-rendering.d-KwqM_mlK.d.ts → route-rendering.d-BL0_AdKj.d.ts} +1 -1
- package/dist/{route-rendering.d-6smgwT2t.d.mts → route-rendering.d-Mw0ZKG2e.d.mts} +1 -1
- package/dist/{router.d-B6sesMRD.d.ts → router.d-BwXigemZ.d.ts} +1 -1
- package/dist/{router.d-BYmDeDlp.d.mts → router.d-NGVsU11T.d.mts} +1 -1
- package/dist/{routes.d-D3aJw1H5.d.mts → routes.d-CCccJRrp.d.mts} +1 -1
- package/dist/{routes.d-K-Qg79AA.d.ts → routes.d-b7khoRoU.d.ts} +1 -1
- package/dist/routes.d.mts +3 -3
- package/dist/routes.d.ts +3 -3
- package/dist/{routing.d-DwSUVZbF.d.mts → routing.d-BhPgtN_S.d.ts} +2 -1
- package/dist/{routing.d-BxOZ2YWc.d.ts → routing.d-D67HQmnv.d.mts} +2 -1
- package/dist/{rsc-pipeline-P4PCWDO2.cjs → rsc-pipeline-BNXYMG4G.cjs} +5 -5
- package/dist/{rsc-pipeline-R2GOKIMU.mjs → rsc-pipeline-DHYZLWSF.mjs} +4 -4
- package/dist/{runtime-WA2Q4SLG.cjs → runtime-IWOT6ZVC.cjs} +6 -6
- package/dist/{runtime-DP5DYGW5.mjs → runtime-XPYKUNL3.mjs} +4 -4
- package/dist/{runtime.d-BFSJf-ww.d.mts → runtime.d-BA3MzhXz.d.mts} +1 -1
- package/dist/{runtime.d-nUz0HAL4.d.mts → runtime.d-CTAXWZby.d.mts} +2 -2
- package/dist/{runtime.d-CbdMI0Oy.d.ts → runtime.d-OBIZWpx1.d.ts} +1 -1
- package/dist/{runtime.d-B_uPfMjA.d.ts → runtime.d-PUA5qBnd.d.ts} +2 -2
- package/dist/server-plugins.d.mts +5 -5
- package/dist/server-plugins.d.ts +5 -5
- package/dist/server.cjs +33 -33
- package/dist/server.d.mts +14 -14
- package/dist/server.d.ts +14 -14
- package/dist/server.mjs +17 -17
- package/dist/{spa-router.d-D4EDwR20.d.mts → spa-router.d-BG2XzE5p.d.mts} +3 -3
- package/dist/{spa-router.d-mC1D5cTN.d.ts → spa-router.d-DrYT944-.d.ts} +3 -3
- package/dist/testing.cjs +6 -5
- package/dist/testing.d.mts +3 -3
- package/dist/testing.d.ts +3 -3
- package/dist/testing.mjs +6 -5
- package/dist/{types.d-wVRlLtBf.d.ts → types.d-euATAbE4.d.mts} +4 -0
- package/dist/{types.d-wVRlLtBf.d.mts → types.d-euATAbE4.d.ts} +4 -0
- package/dist/{utils.d-DxMzteqE.d.mts → utils.d-C1k9BJeD.d.mts} +1 -1
- package/dist/{utils.d-A2X3a6z_.d.ts → utils.d-DcF4wxey.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +15 -15
- package/dist/vite.d.mts +7 -7
- package/dist/vite.d.ts +7 -7
- package/dist/vite.mjs +14 -14
- package/package.json +1 -1
- package/dist/analyzer-LPIVRSTJ.cjs +0 -16
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { aR as FarmConfig, P as ParsedRoute, bt as ResolvedFarmRouteRuntimeConfig, bu as ApplicationMetadataRouteKind, i as RouteModule, b4 as LayoutModule, bg as SSGCollectionResult, G as FarmRedirectStatus, t as FarmRequest, u as FarmResponse, bv as ResolvedFarmAPIConfig, bw as FarmDocsResolvedConfig, aQ as FarmMarkdownResolvedConfig, h as FarmMdxResolvedConfig, aA as ResolvedFarmDevtoolsConfig, bx as ResolvedFarmDevIndicatorsConfig, by as ResolvedFarmAuthConfig, bz as ResolvedFarmPerformanceConfig, bA as ResolvedFarmSecurityConfig } from './client-plugins.d-
|
|
1
|
+
import { aR as FarmConfig, P as ParsedRoute, bt as ResolvedFarmRouteRuntimeConfig, bu as ApplicationMetadataRouteKind, i as RouteModule, b4 as LayoutModule, bg as SSGCollectionResult, G as FarmRedirectStatus, t as FarmRequest, u as FarmResponse, bv as ResolvedFarmAPIConfig, bw as FarmDocsResolvedConfig, aQ as FarmMarkdownResolvedConfig, h as FarmMdxResolvedConfig, aA as ResolvedFarmDevtoolsConfig, bx as ResolvedFarmDevIndicatorsConfig, by as ResolvedFarmAuthConfig, bz as ResolvedFarmPerformanceConfig, bA as ResolvedFarmSecurityConfig } from './client-plugins.d-CUOhfapO.js';
|
|
2
2
|
import { FarmWorkflowsResolvedConfig } from './workflows.js';
|
|
3
3
|
import { FarmCronResolvedConfig } from './cron.js';
|
|
4
4
|
import { R as ResolvedFarmImageConfig } from './image-config.d-ByhQ0TT7.js';
|
|
5
5
|
import { ProgrammaticRedirectRoute, ProgrammaticRouteSearchClientOptions } from './routes.js';
|
|
6
|
-
import { I as IsolatedClientBoundaryReference, P as ProgrammaticClientRoutes } from './client-component.d-
|
|
6
|
+
import { I as IsolatedClientBoundaryReference, P as ProgrammaticClientRoutes } from './client-component.d-9J7CkTWW.js';
|
|
7
7
|
import { ViteDevServer } from 'vite';
|
|
8
|
-
import { M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp.d-
|
|
8
|
+
import { M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp.d-BO3rZXEM.js';
|
|
9
9
|
import { F as FarmIslandStrategy } from './island.d-CfGru1MO.js';
|
|
10
10
|
import { FarmRenderer, FarmServerRendererRuntime } from './renderer.js';
|
|
11
|
-
import { F as FarmRouteRenderPlan } from './render-plan.d-
|
|
12
|
-
import { R as ResolvedFarmI18nConfig } from './types.d-
|
|
13
|
-
import { F as FarmI18nRuntime } from './runtime.d-
|
|
11
|
+
import { F as FarmRouteRenderPlan } from './render-plan.d-Ds2sXJ5m.js';
|
|
12
|
+
import { R as ResolvedFarmI18nConfig } from './types.d-euATAbE4.js';
|
|
13
|
+
import { F as FarmI18nRuntime } from './runtime.d-PUA5qBnd.js';
|
|
14
14
|
import { R as ResolvedFarmThemeConfig } from './types.d-DQnyD3VD.js';
|
|
15
15
|
|
|
16
16
|
declare const STATIC_METADATA_IMAGE_EXTENSIONS: readonly ["png", "jpg", "jpeg", "gif", "webp"];
|
|
@@ -159,6 +159,11 @@ declare class RouteManager {
|
|
|
159
159
|
private packageClientBoundaryCacheFile?;
|
|
160
160
|
private clientManifestCache?;
|
|
161
161
|
private reportedIslandsErrors;
|
|
162
|
+
private ownerPlans;
|
|
163
|
+
private sourceChangeTracking;
|
|
164
|
+
private linkedSources;
|
|
165
|
+
private sourceSnapshot?;
|
|
166
|
+
private editedSources;
|
|
162
167
|
constructor(config: FarmRendererResolvedConfig, viteServer?: ViteDevServer);
|
|
163
168
|
setRendererRuntime(rendererRuntime: FarmServerRendererRuntime): void;
|
|
164
169
|
/**
|
|
@@ -250,11 +255,46 @@ declare class RouteManager {
|
|
|
250
255
|
* Requests still fetch route data, but never inspect component source.
|
|
251
256
|
*/
|
|
252
257
|
generateClientManifest(projectRoot?: string): FarmClientRouteManifest;
|
|
258
|
+
/**
|
|
259
|
+
* @internal The dev server reports every watched change (`noteSourceChange`), so a replan can
|
|
260
|
+
* reuse the plan of each route module that read none of the edited files. Without tracking,
|
|
261
|
+
* every plan recomputes every module.
|
|
262
|
+
*/
|
|
263
|
+
trackSourceChanges(): void;
|
|
264
|
+
/**
|
|
265
|
+
* @internal A watched file changed. An edit to a script narrows the next replan to the route
|
|
266
|
+
* modules that read it; a script added or removed (where an import may now resolve), or a
|
|
267
|
+
* changed JSON file (a package manifest or tsconfig paths), replans everything. Other files
|
|
268
|
+
* (stylesheets, Markdown, assets) are not read by plans.
|
|
269
|
+
*/
|
|
270
|
+
noteSourceChange(file: string, event: "create" | "update" | "delete"): void;
|
|
271
|
+
/**
|
|
272
|
+
* @internal Whether an edit to `file` leaves the current plan as it is: a client module the
|
|
273
|
+
* last plan read whose directive, island and hydrate exports, export shape and imports the edit
|
|
274
|
+
* kept. The next replan reads it again (the watcher reported it).
|
|
275
|
+
*/
|
|
276
|
+
isEditPlanNeutral(file: string): boolean;
|
|
277
|
+
/**
|
|
278
|
+
* A route module's plan: the last one when it read none of `edited`, recomputed otherwise.
|
|
279
|
+
* Callers get a copy, since the route budget rewrites a plan's fields in place.
|
|
280
|
+
*/
|
|
281
|
+
private planRouteModule;
|
|
282
|
+
/**
|
|
283
|
+
* The path the watcher reports for a file a plan read: itself, or the real path of a workspace
|
|
284
|
+
* package's source read through its `node_modules` link. Null for an installed package's file.
|
|
285
|
+
*/
|
|
286
|
+
private planSourcePath;
|
|
253
287
|
/**
|
|
254
288
|
* @internal Keep package client-boundary inspections in `file` between plans, as the dev server
|
|
255
289
|
* does. Without it, each plan outside a production build reads every package's sources again.
|
|
256
290
|
*/
|
|
257
291
|
usePackageClientBoundaryCacheFile(file: string): void;
|
|
292
|
+
/**
|
|
293
|
+
* @internal Run `operation` (synchronous) with the package inspections of the latest plan, as
|
|
294
|
+
* the dev server's transforms and renders inspect the packages a module imports. Without a cache
|
|
295
|
+
* file (outside the dev server), it runs as it is.
|
|
296
|
+
*/
|
|
297
|
+
inspectPackages<T>(operation: () => T): T;
|
|
258
298
|
private computeClientManifest;
|
|
259
299
|
/**
|
|
260
300
|
* Rebuild route metadata transactionally for HMR. If a file is temporarily
|
|
@@ -410,6 +450,8 @@ declare class ServerRenderer {
|
|
|
410
450
|
private createLayoutBoundary;
|
|
411
451
|
private wrapClientGraph;
|
|
412
452
|
/** The page a hydrating layout keeps as server HTML: islands again, or a server tree. */
|
|
453
|
+
/** The route root's strategy, inspecting packages with the dev server's latest plan's cache. */
|
|
454
|
+
private resolveRouteRootStrategy;
|
|
413
455
|
private isolateServerPage;
|
|
414
456
|
private renderElementToCompleteHTML;
|
|
415
457
|
/**
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { aR as FarmConfig, P as ParsedRoute, bt as ResolvedFarmRouteRuntimeConfig, bu as ApplicationMetadataRouteKind, i as RouteModule, b4 as LayoutModule, bg as SSGCollectionResult, G as FarmRedirectStatus, t as FarmRequest, u as FarmResponse, bv as ResolvedFarmAPIConfig, bw as FarmDocsResolvedConfig, aQ as FarmMarkdownResolvedConfig, h as FarmMdxResolvedConfig, aA as ResolvedFarmDevtoolsConfig, bx as ResolvedFarmDevIndicatorsConfig, by as ResolvedFarmAuthConfig, bz as ResolvedFarmPerformanceConfig, bA as ResolvedFarmSecurityConfig } from './client-plugins.d-
|
|
1
|
+
import { aR as FarmConfig, P as ParsedRoute, bt as ResolvedFarmRouteRuntimeConfig, bu as ApplicationMetadataRouteKind, i as RouteModule, b4 as LayoutModule, bg as SSGCollectionResult, G as FarmRedirectStatus, t as FarmRequest, u as FarmResponse, bv as ResolvedFarmAPIConfig, bw as FarmDocsResolvedConfig, aQ as FarmMarkdownResolvedConfig, h as FarmMdxResolvedConfig, aA as ResolvedFarmDevtoolsConfig, bx as ResolvedFarmDevIndicatorsConfig, by as ResolvedFarmAuthConfig, bz as ResolvedFarmPerformanceConfig, bA as ResolvedFarmSecurityConfig } from './client-plugins.d-JnRz5a1o.mjs';
|
|
2
2
|
import { FarmWorkflowsResolvedConfig } from './workflows.mjs';
|
|
3
3
|
import { FarmCronResolvedConfig } from './cron.mjs';
|
|
4
4
|
import { R as ResolvedFarmImageConfig } from './image-config.d-ByhQ0TT7.mjs';
|
|
5
5
|
import { ProgrammaticRedirectRoute, ProgrammaticRouteSearchClientOptions } from './routes.mjs';
|
|
6
|
-
import { I as IsolatedClientBoundaryReference, P as ProgrammaticClientRoutes } from './client-component.d-
|
|
6
|
+
import { I as IsolatedClientBoundaryReference, P as ProgrammaticClientRoutes } from './client-component.d-ciHeCxr-.mjs';
|
|
7
7
|
import { ViteDevServer } from 'vite';
|
|
8
|
-
import { M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp.d-
|
|
8
|
+
import { M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp.d-Cwff7lcA.mjs';
|
|
9
9
|
import { F as FarmIslandStrategy } from './island.d-CfGru1MO.mjs';
|
|
10
10
|
import { FarmRenderer, FarmServerRendererRuntime } from './renderer.mjs';
|
|
11
|
-
import { F as FarmRouteRenderPlan } from './render-plan.d-
|
|
12
|
-
import { R as ResolvedFarmI18nConfig } from './types.d-
|
|
13
|
-
import { F as FarmI18nRuntime } from './runtime.d-
|
|
11
|
+
import { F as FarmRouteRenderPlan } from './render-plan.d-wP8nTeRV.mjs';
|
|
12
|
+
import { R as ResolvedFarmI18nConfig } from './types.d-euATAbE4.mjs';
|
|
13
|
+
import { F as FarmI18nRuntime } from './runtime.d-CTAXWZby.mjs';
|
|
14
14
|
import { R as ResolvedFarmThemeConfig } from './types.d-DQnyD3VD.mjs';
|
|
15
15
|
|
|
16
16
|
declare const STATIC_METADATA_IMAGE_EXTENSIONS: readonly ["png", "jpg", "jpeg", "gif", "webp"];
|
|
@@ -159,6 +159,11 @@ declare class RouteManager {
|
|
|
159
159
|
private packageClientBoundaryCacheFile?;
|
|
160
160
|
private clientManifestCache?;
|
|
161
161
|
private reportedIslandsErrors;
|
|
162
|
+
private ownerPlans;
|
|
163
|
+
private sourceChangeTracking;
|
|
164
|
+
private linkedSources;
|
|
165
|
+
private sourceSnapshot?;
|
|
166
|
+
private editedSources;
|
|
162
167
|
constructor(config: FarmRendererResolvedConfig, viteServer?: ViteDevServer);
|
|
163
168
|
setRendererRuntime(rendererRuntime: FarmServerRendererRuntime): void;
|
|
164
169
|
/**
|
|
@@ -250,11 +255,46 @@ declare class RouteManager {
|
|
|
250
255
|
* Requests still fetch route data, but never inspect component source.
|
|
251
256
|
*/
|
|
252
257
|
generateClientManifest(projectRoot?: string): FarmClientRouteManifest;
|
|
258
|
+
/**
|
|
259
|
+
* @internal The dev server reports every watched change (`noteSourceChange`), so a replan can
|
|
260
|
+
* reuse the plan of each route module that read none of the edited files. Without tracking,
|
|
261
|
+
* every plan recomputes every module.
|
|
262
|
+
*/
|
|
263
|
+
trackSourceChanges(): void;
|
|
264
|
+
/**
|
|
265
|
+
* @internal A watched file changed. An edit to a script narrows the next replan to the route
|
|
266
|
+
* modules that read it; a script added or removed (where an import may now resolve), or a
|
|
267
|
+
* changed JSON file (a package manifest or tsconfig paths), replans everything. Other files
|
|
268
|
+
* (stylesheets, Markdown, assets) are not read by plans.
|
|
269
|
+
*/
|
|
270
|
+
noteSourceChange(file: string, event: "create" | "update" | "delete"): void;
|
|
271
|
+
/**
|
|
272
|
+
* @internal Whether an edit to `file` leaves the current plan as it is: a client module the
|
|
273
|
+
* last plan read whose directive, island and hydrate exports, export shape and imports the edit
|
|
274
|
+
* kept. The next replan reads it again (the watcher reported it).
|
|
275
|
+
*/
|
|
276
|
+
isEditPlanNeutral(file: string): boolean;
|
|
277
|
+
/**
|
|
278
|
+
* A route module's plan: the last one when it read none of `edited`, recomputed otherwise.
|
|
279
|
+
* Callers get a copy, since the route budget rewrites a plan's fields in place.
|
|
280
|
+
*/
|
|
281
|
+
private planRouteModule;
|
|
282
|
+
/**
|
|
283
|
+
* The path the watcher reports for a file a plan read: itself, or the real path of a workspace
|
|
284
|
+
* package's source read through its `node_modules` link. Null for an installed package's file.
|
|
285
|
+
*/
|
|
286
|
+
private planSourcePath;
|
|
253
287
|
/**
|
|
254
288
|
* @internal Keep package client-boundary inspections in `file` between plans, as the dev server
|
|
255
289
|
* does. Without it, each plan outside a production build reads every package's sources again.
|
|
256
290
|
*/
|
|
257
291
|
usePackageClientBoundaryCacheFile(file: string): void;
|
|
292
|
+
/**
|
|
293
|
+
* @internal Run `operation` (synchronous) with the package inspections of the latest plan, as
|
|
294
|
+
* the dev server's transforms and renders inspect the packages a module imports. Without a cache
|
|
295
|
+
* file (outside the dev server), it runs as it is.
|
|
296
|
+
*/
|
|
297
|
+
inspectPackages<T>(operation: () => T): T;
|
|
258
298
|
private computeClientManifest;
|
|
259
299
|
/**
|
|
260
300
|
* Rebuild route metadata transactionally for HMR. If a file is temporarily
|
|
@@ -410,6 +450,8 @@ declare class ServerRenderer {
|
|
|
410
450
|
private createLayoutBoundary;
|
|
411
451
|
private wrapClientGraph;
|
|
412
452
|
/** The page a hydrating layout keeps as server HTML: islands again, or a server tree. */
|
|
453
|
+
/** The route root's strategy, inspecting packages with the dev server's latest plan's cache. */
|
|
454
|
+
private resolveRouteRootStrategy;
|
|
413
455
|
private isolateServerPage;
|
|
414
456
|
private renderElementToCompleteHTML;
|
|
415
457
|
/**
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
decodeCookieName
|
|
3
3
|
} from "./chunk-AY2YD5ZX.mjs";
|
|
4
|
+
import {
|
|
5
|
+
normalizeFarmTrailingSlashPathname
|
|
6
|
+
} from "./chunk-4O26BPUY.mjs";
|
|
4
7
|
import {
|
|
5
8
|
localizeFarmPathname,
|
|
6
9
|
resolveFarmLocalePath
|
|
@@ -57,7 +60,11 @@ function resolveFarmLocaleRequest(request, config, options = {}) {
|
|
|
57
60
|
locale: detected.locale,
|
|
58
61
|
source: detected.source,
|
|
59
62
|
pathname: pathMatch.pathname,
|
|
60
|
-
|
|
63
|
+
// Straight to the locale page's canonical URL, with the app's trailingSlash, not a second hop.
|
|
64
|
+
redirect: shouldRedirect ? `${normalizeFarmTrailingSlashPathname(
|
|
65
|
+
localizeFarmPathname(pathMatch.pathname, detected.locale, config),
|
|
66
|
+
config.trailingSlash === true
|
|
67
|
+
)}${url.search}${url.hash}` : void 0,
|
|
61
68
|
persist: detected.source !== "default"
|
|
62
69
|
};
|
|
63
70
|
}
|