@farm.js/core 0.1.62 → 0.1.64
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-OV4WRFBL.cjs → agent-mcp-handler-OXT73ZBY.cjs} +5 -5
- package/dist/{agent-mcp-handler-7QMX2LUY.mjs → agent-mcp-handler-QLFDDTYN.mjs} +4 -4
- package/dist/{agent-mcp.d-BKZ3UNbt.d.mts → agent-mcp.d-CO_ABmNK.d.mts} +1 -1
- package/dist/{agent-mcp.d-C1zr_nGS.d.ts → agent-mcp.d-QD2WZ9BS.d.ts} +1 -1
- package/dist/agent-runtime.d.mts +1 -1
- package/dist/agent-runtime.d.ts +1 -1
- package/dist/analyzer-ODLF2Z6O.cjs +16 -0
- package/dist/{analyzer-YESYU3GK.mjs → analyzer-Q3QXC6PD.mjs} +3 -2
- package/dist/api/route-manager.d.mts +3 -3
- package/dist/api/route-manager.d.ts +3 -3
- package/dist/api/runtime.d.mts +2 -2
- package/dist/api/runtime.d.ts +2 -2
- package/dist/api.d.mts +3 -3
- package/dist/api.d.ts +3 -3
- package/dist/{app-manifest.d-ntch_bvA.d.ts → app-manifest.d-BpKxiU_E.d.mts} +9 -1
- package/dist/{app-manifest.d-BpvhfKRH.d.mts → app-manifest.d-DDmNkYQQ.d.ts} +9 -1
- package/dist/app-markdown.cjs +4 -4
- package/dist/app-markdown.d.mts +2 -2
- package/dist/app-markdown.d.ts +2 -2
- package/dist/app-markdown.mjs +3 -3
- package/dist/{app.d-CysWA_8v.d.mts → app.d-kuoVWhWM.d.mts} +4 -4
- package/dist/{app.d-AE8_v3Db.d.ts → app.d-x68Cwr0_.d.ts} +4 -4
- package/dist/{chunk-LT4VAF5Z.cjs → chunk-2C5L5RPM.cjs} +7 -6
- package/dist/{chunk-RMUD75WT.cjs → chunk-3EBHJET2.cjs} +355 -270
- package/dist/{chunk-RZNCMRD3.mjs → chunk-6NHSGVVA.mjs} +1 -1
- package/dist/{chunk-LVWGURLD.mjs → chunk-6NNYPY5W.mjs} +327 -13
- package/dist/{chunk-PRFNLQSP.cjs → chunk-7XGWBPQQ.cjs} +4 -4
- package/dist/{chunk-SG57PX7K.cjs → chunk-BTVDYS4B.cjs} +7 -2
- package/dist/{chunk-545WJ5UG.cjs → chunk-DUSHDZQL.cjs} +11 -11
- package/dist/{chunk-GVOMPU3Y.cjs → chunk-EL4364S2.cjs} +209 -32
- package/dist/{chunk-GGNJAGGE.cjs → chunk-FAP7CX7C.cjs} +1056 -529
- package/dist/{chunk-T46NNU4D.mjs → chunk-FH45OB37.mjs} +2 -2
- package/dist/{chunk-55U5QIXQ.mjs → chunk-FIR62CR3.mjs} +1 -1
- package/dist/{chunk-MEQN6DDA.cjs → chunk-FJWN7RV4.cjs} +5 -5
- package/dist/chunk-IOEXXZK3.mjs +88 -0
- package/dist/{chunk-EXXFSZOC.cjs → chunk-JCPSA4X5.cjs} +135 -134
- package/dist/{chunk-YSXTNSXS.mjs → chunk-K7OZAVOI.mjs} +7 -6
- package/dist/{chunk-KVW2M6PI.mjs → chunk-KL7SHLQB.mjs} +1 -1
- package/dist/{chunk-NT3QDN2E.mjs → chunk-LQDLEWPO.mjs} +1 -1
- package/dist/{chunk-UZZ6IEQP.mjs → chunk-MESQF2JC.mjs} +2 -2
- package/dist/{chunk-WKJQ2FJA.cjs → chunk-MG356ROI.cjs} +5 -5
- package/dist/{chunk-AJB3DHN6.cjs → chunk-N3Z3PLHC.cjs} +2 -2
- package/dist/{chunk-2CNKQC3G.mjs → chunk-NNLFW3P4.mjs} +2 -2
- package/dist/{chunk-XX32BOMM.cjs → chunk-NXFA7G3Y.cjs} +52 -26
- package/dist/{chunk-SM25ZC4S.cjs → chunk-O2XFIPNL.cjs} +1 -1
- package/dist/{chunk-VWW4Q3BJ.mjs → chunk-O4FWNLQK.mjs} +4 -4
- package/dist/{chunk-DZPR2W6U.cjs → chunk-O6L3YYPM.cjs} +5 -5
- package/dist/{chunk-UWI3SJAK.cjs → chunk-O7IEMY55.cjs} +3 -3
- package/dist/{chunk-6BJJYOFL.cjs → chunk-OLIGNTWU.cjs} +7 -7
- package/dist/{chunk-OUWRNHTV.mjs → chunk-OYF23QLG.mjs} +17 -16
- package/dist/{chunk-IQIKPKFP.mjs → chunk-RAH5MT53.mjs} +110 -25
- package/dist/{chunk-E72UD6ME.mjs → chunk-RVGSVQWT.mjs} +1 -1
- package/dist/{chunk-ZVIEFTUA.cjs → chunk-S25BQIFW.cjs} +16 -16
- package/dist/chunk-S7ZW72JH.cjs +254 -0
- package/dist/{chunk-VM7X5CKC.mjs → chunk-SLYDIHLW.mjs} +31 -5
- package/dist/chunk-SNFTMSHX.mjs +254 -0
- package/dist/{chunk-2WZTGPK6.mjs → chunk-SQ5O7I3L.mjs} +7 -2
- package/dist/{chunk-PCXIJKPM.mjs → chunk-TNBJ4LZG.mjs} +2 -2
- package/dist/{chunk-O27PLNQZ.cjs → chunk-UJ3R2AH2.cjs} +4 -4
- package/dist/{chunk-T4TBK5NY.mjs → chunk-VQ4NWOWO.mjs} +2 -2
- package/dist/{chunk-ZZ2QKCKW.mjs → chunk-WAY6LOQH.mjs} +1 -1
- package/dist/chunk-WBTHHTBO.cjs +88 -0
- package/dist/{chunk-ZBUAOGMY.mjs → chunk-WFNAOWH4.mjs} +1 -1
- package/dist/{chunk-IWRLV46X.cjs → chunk-WMTBBQHY.cjs} +4 -4
- package/dist/{chunk-2JYBLE63.mjs → chunk-WNYRYI4D.mjs} +770 -243
- package/dist/{chunk-CI4UNQHO.cjs → chunk-XBSKPLHF.cjs} +2 -2
- package/dist/{chunk-IOF4KXMP.mjs → chunk-XVWSDSUM.mjs} +201 -24
- package/dist/{chunk-JEJQGZI7.cjs → chunk-XZLZ6YPP.cjs} +346 -32
- package/dist/{chunk-QAS7KE7J.cjs → chunk-Y5TOT5F6.cjs} +5 -5
- package/dist/{chunk-DPE53XWL.mjs → chunk-ZEXE4TGY.mjs} +1 -1
- package/dist/{client-component.d-BoqC2MLC.d.mts → client-component.d-D74pqdea.d.mts} +14 -3
- package/dist/{client-component.d-Bgt3x5Fu.d.ts → client-component.d-D8VcypQA.d.ts} +14 -3
- package/dist/{client-plugins.d-BcqIy4au.d.ts → client-plugins.d-CXElzotB.d.ts} +18 -2
- package/dist/{client-plugins.d-CWyYBxXf.d.mts → client-plugins.d-D4-6hNx7.d.mts} +18 -2
- package/dist/client-plugins.d.mts +1 -1
- package/dist/client-plugins.d.ts +1 -1
- package/dist/client.d.mts +6 -6
- package/dist/client.d.ts +6 -6
- package/dist/config.d.mts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/desktop.d.mts +2 -2
- package/dist/desktop.d.ts +2 -2
- package/dist/{devtools-NUVXYG7I.mjs → devtools-MX3FE733.mjs} +5 -5
- package/dist/{devtools-SVRSGPNC.cjs → devtools-WET5NAKO.cjs} +6 -6
- package/dist/docs.cjs +8 -8
- package/dist/docs.d.mts +2 -2
- package/dist/docs.d.ts +2 -2
- package/dist/docs.mjs +7 -7
- package/dist/index.cjs +21 -20
- package/dist/{index.d-nAncqTXz.d.ts → index.d-A_x10zGS.d.ts} +1 -1
- package/dist/{index.d-BDaiu2i5.d.mts → index.d-SSgYDv4D.d.mts} +1 -1
- package/dist/index.d.mts +16 -16
- package/dist/index.d.ts +16 -16
- package/dist/index.mjs +20 -19
- package/dist/integrations.d.mts +1 -1
- package/dist/integrations.d.ts +1 -1
- package/dist/internal/app-markdown-runtime.cjs +3 -3
- package/dist/internal/app-markdown-runtime.d.mts +2 -2
- package/dist/internal/app-markdown-runtime.d.ts +2 -2
- package/dist/internal/app-markdown-runtime.mjs +2 -2
- package/dist/internal/build-runtime.cjs +22 -21
- package/dist/internal/build-runtime.d.mts +3 -3
- package/dist/internal/build-runtime.d.ts +3 -3
- package/dist/internal/build-runtime.mjs +21 -20
- package/dist/internal/cli-runtime.cjs +7 -7
- package/dist/internal/cli-runtime.mjs +6 -6
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.d.mts +4 -4
- package/dist/internal/client-runtime.d.ts +4 -4
- package/dist/internal/compression-runtime.d.mts +1 -1
- package/dist/internal/compression-runtime.d.ts +1 -1
- package/dist/internal/config-runtime.cjs +7 -7
- package/dist/internal/config-runtime.d.mts +4 -4
- package/dist/internal/config-runtime.d.ts +4 -4
- package/dist/internal/config-runtime.mjs +6 -6
- package/dist/internal/infra-analytics-runtime.cjs +11 -9
- package/dist/internal/infra-analytics-runtime.mjs +9 -7
- package/dist/internal/native-server-fns.cjs +5 -4
- package/dist/internal/native-server-fns.mjs +4 -3
- package/dist/internal/product-telemetry-runtime.cjs +17 -211
- package/dist/internal/product-telemetry-runtime.mjs +10 -204
- package/dist/internal/production-runtime.cjs +13 -12
- package/dist/internal/production-runtime.d.mts +13 -12
- package/dist/internal/production-runtime.d.ts +13 -12
- package/dist/internal/production-runtime.mjs +14 -13
- package/dist/internal/react-cache.cjs +21 -1
- package/dist/internal/react-cache.d.mts +8 -1
- package/dist/internal/react-cache.d.ts +8 -1
- package/dist/internal/react-cache.mjs +21 -1
- package/dist/markdown.cjs +2 -2
- package/dist/markdown.d.mts +1 -1
- package/dist/markdown.d.ts +1 -1
- package/dist/markdown.mjs +1 -1
- package/dist/middleware.d.mts +3 -3
- package/dist/middleware.d.ts +3 -3
- package/dist/mobile.d.mts +2 -2
- package/dist/mobile.d.ts +2 -2
- package/dist/{native-tree-AS5L3ID3.mjs → native-tree-BPEE2LAL.mjs} +2 -2
- package/dist/{native-tree-Z2WYUJEV.cjs → native-tree-WOX3JMBG.cjs} +3 -3
- package/dist/{navigation-delegate.d-CSCm8ZxL.d.mts → navigation-delegate.d-DQVYKoaZ.d.mts} +1 -1
- package/dist/{navigation-delegate.d-BbUHRXxG.d.ts → navigation-delegate.d-GghbHJuK.d.ts} +1 -1
- package/dist/navigation.d.mts +4 -4
- package/dist/navigation.d.ts +4 -4
- package/dist/plugin.cjs +14 -14
- package/dist/plugin.d.mts +3 -3
- package/dist/plugin.d.ts +3 -3
- package/dist/plugin.mjs +13 -13
- package/dist/{production-runtime.d-DgT24A0f.d.ts → production-runtime.d-Bzns3NW9.d.ts} +1 -1
- package/dist/{production-runtime.d-CcQiDko5.d.mts → production-runtime.d-DiFa5vHW.d.mts} +1 -1
- package/dist/{render-plan.d-CyrX6MDs.d.ts → render-plan.d-CL_Ikfg_.d.ts} +1 -1
- package/dist/{render-plan.d-BH9WF-JZ.d.mts → render-plan.d-CcF0MeCf.d.mts} +1 -1
- package/dist/renderer-client.d.mts +4 -4
- package/dist/renderer-client.d.ts +4 -4
- package/dist/{request.d-BB8M8bcD.d.ts → request.d-B1RnTLri.d.ts} +1 -1
- package/dist/{request.d-CUrPnCW7.d.mts → request.d-DarDOCk9.d.mts} +1 -1
- package/dist/request.d.mts +2 -2
- package/dist/request.d.ts +2 -2
- package/dist/{route-rendering.d-DYqZMIf4.d.ts → route-rendering.d-BTUYCIj4.d.ts} +1 -1
- package/dist/{route-rendering.d-CYxlzaFm.d.mts → route-rendering.d-D_2Ual0-.d.mts} +1 -1
- package/dist/{router.d-DaKo507j.d.ts → router.d-CMANF6da.d.ts} +1 -1
- package/dist/{router.d-7o24CD8u.d.mts → router.d-Cuv1jntg.d.mts} +1 -1
- package/dist/{routes.d-BknKQcTu.d.ts → routes.d-B6yFe6jm.d.ts} +1 -1
- package/dist/{routes.d-D1IrO9KK.d.mts → routes.d-c2HKfrfL.d.mts} +1 -1
- package/dist/routes.d.mts +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/{rsc-pipeline-RFLHDAKD.mjs → rsc-pipeline-3LNVP2OO.mjs} +6 -6
- package/dist/{rsc-pipeline-OF2I7PCX.cjs → rsc-pipeline-G5WELVW3.cjs} +7 -7
- package/dist/{runtime-LBTK62AD.cjs → runtime-DMEULPE7.cjs} +22 -11
- package/dist/{runtime-M6UJCSLA.mjs → runtime-HQJ2LLQL.mjs} +20 -9
- package/dist/{runtime.d-CN73a-IL.d.ts → runtime.d-C3RQUj6_.d.ts} +1 -1
- package/dist/{runtime.d-CcNuzhX6.d.mts → runtime.d-wvh4ngU0.d.mts} +1 -1
- package/dist/server-plugins.d.mts +2 -2
- package/dist/server-plugins.d.ts +2 -2
- package/dist/server.cjs +31 -31
- package/dist/server.d.mts +9 -9
- package/dist/server.d.ts +9 -9
- package/dist/server.mjs +16 -16
- package/dist/{spa-router.d-CNi77LZm.d.mts → spa-router.d-WU_qS5gJ.d.mts} +2 -2
- package/dist/{spa-router.d-Cvgf5QP4.d.ts → spa-router.d-m8H_Kl_B.d.ts} +2 -2
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/{utils.d-C3H-14_Y.d.ts → utils.d-C9dQD5Zg.d.ts} +1 -1
- package/dist/{utils.d-D8VfzZYn.d.mts → utils.d-W9IiEqmW.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +18 -14
- package/dist/vite.d.mts +23 -5
- package/dist/vite.d.ts +23 -5
- package/dist/vite.mjs +17 -13
- package/package.json +1 -1
- package/dist/analyzer-2AHWJJR7.cjs +0 -15
- package/dist/chunk-CSLUBKGG.mjs +0 -44
- package/dist/chunk-SGBNF56S.cjs +0 -44
package/dist/vite.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Plugin, UserConfig, Connect } from 'vite';
|
|
2
|
-
import { aF as FarmConfig, p as FarmUserConfig, au as PluginManager } from './client-plugins.d-
|
|
2
|
+
import { aF as FarmConfig, p as FarmUserConfig, au as PluginManager } from './client-plugins.d-CXElzotB.js';
|
|
3
3
|
import { FarmCacheUserConfig } from './cache.js';
|
|
4
|
-
import { P as ProgrammaticClientRoutes } from './client-component.d-
|
|
5
|
-
export { c as collectFarmClientPackageImports, r as readRouteRenderingDirectiveFromFile } from './client-component.d-
|
|
4
|
+
import { P as ProgrammaticClientRoutes } from './client-component.d-D8VcypQA.js';
|
|
5
|
+
export { c as collectFarmClientPackageImports, r as readRouteRenderingDirectiveFromFile, a as resolveFarmClientOptimizeDeps } from './client-component.d-D8VcypQA.js';
|
|
6
6
|
import { FarmPlatform } from './platform.js';
|
|
7
7
|
import { _withAfterNodeMiddleware } from './after.js';
|
|
8
8
|
import { A as APIRequestRuntime } from './server-client-bridge.d-DKWDl5NB.js';
|
|
@@ -37,7 +37,7 @@ import './types.d-C41ePjvP.js';
|
|
|
37
37
|
import './config.d-qt-mE8O5.js';
|
|
38
38
|
import './types.d-DQnyD3VD.js';
|
|
39
39
|
import './font.js';
|
|
40
|
-
import './route-rendering.d-
|
|
40
|
+
import './route-rendering.d-BTUYCIj4.js';
|
|
41
41
|
import 'node:http';
|
|
42
42
|
import './deployment.js';
|
|
43
43
|
|
|
@@ -66,6 +66,24 @@ declare function resolveFarmClientCacheAdapterEntry(root: string, cache: FarmCac
|
|
|
66
66
|
*/
|
|
67
67
|
declare function generateClientCachePersistenceCode(entry: ResolvedClientCacheAdapterEntry | undefined): ClientCachePersistenceEntryCode;
|
|
68
68
|
|
|
69
|
+
/** The slice of Vite's ModuleNode this module reads, kept minimal for tests. */
|
|
70
|
+
interface DevStyleModule {
|
|
71
|
+
url?: string | null;
|
|
72
|
+
id?: string | null;
|
|
73
|
+
file?: string | null;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Stylesheet URLs from the module graph that the document should link,
|
|
77
|
+
* deduped and sorted for a deterministic head. CSS modules (`.module.css`)
|
|
78
|
+
* are left out: their stylesheet comes with the client module that imports
|
|
79
|
+
* them. In islands mode a server component's CSS module has no client module,
|
|
80
|
+
* so `cssModules` links it as `?direct`, which Vite answers with the compiled
|
|
81
|
+
* stylesheet, hashed classes included.
|
|
82
|
+
*/
|
|
83
|
+
declare function collectDevStylesheetUrls(modules: Iterable<DevStyleModule>, alreadyLinked?: string, options?: {
|
|
84
|
+
cssModules?: boolean;
|
|
85
|
+
}): string[];
|
|
86
|
+
|
|
69
87
|
declare function farmFontImportsPlugin(options?: {
|
|
70
88
|
root?: string;
|
|
71
89
|
basePath?: string;
|
|
@@ -165,4 +183,4 @@ declare function shouldEmitFarmClientRootHmr(renderer?: FarmRenderer): boolean;
|
|
|
165
183
|
declare function farmPlugin(options?: FarmVitePluginOptions, initialPluginManager?: PluginManager): Plugin;
|
|
166
184
|
declare function defineConfig(config?: FarmVitePluginOptions): Promise<UserConfig>;
|
|
167
185
|
|
|
168
|
-
export { type ClientCachePersistenceEntryCode, defineConfig, farmFontImportsPlugin, farmI18nClientBridgePlugin, farmImageImportsPlugin, farmPlugin, farmServerOnlyEntriesPlugin, generateClientCachePersistenceCode, resolveFarmClientCacheAdapterEntry, resolveFarmImageProviderForRuntime, resolveFarmImageServerRuntime, rewriteEarlySsrRelativeImports, shouldEmitFarmClientRootHmr, transformIsolatedClientBoundaryModule, withFarmRequestTracing };
|
|
186
|
+
export { type ClientCachePersistenceEntryCode, collectDevStylesheetUrls, defineConfig, farmFontImportsPlugin, farmI18nClientBridgePlugin, farmImageImportsPlugin, farmPlugin, farmServerOnlyEntriesPlugin, generateClientCachePersistenceCode, resolveFarmClientCacheAdapterEntry, resolveFarmImageProviderForRuntime, resolveFarmImageServerRuntime, rewriteEarlySsrRelativeImports, shouldEmitFarmClientRootHmr, transformIsolatedClientBoundaryModule, withFarmRequestTracing };
|
package/dist/vite.mjs
CHANGED
|
@@ -8,17 +8,19 @@ import {
|
|
|
8
8
|
shouldEmitFarmClientRootHmr,
|
|
9
9
|
transformIsolatedClientBoundaryModule,
|
|
10
10
|
withFarmRequestTracing
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RAH5MT53.mjs";
|
|
12
12
|
import "./chunk-QOSDWGKT.mjs";
|
|
13
13
|
import "./chunk-3TXKFRSO.mjs";
|
|
14
14
|
import {
|
|
15
|
+
collectDevStylesheetUrls,
|
|
15
16
|
collectFarmClientPackageImports,
|
|
16
17
|
farmFontImportsPlugin,
|
|
17
18
|
generateClientCachePersistenceCode,
|
|
18
19
|
resolveFarmClientCacheAdapterEntry,
|
|
20
|
+
resolveFarmClientOptimizeDeps,
|
|
19
21
|
resolveFarmImageProviderForRuntime,
|
|
20
22
|
resolveFarmImageServerRuntime
|
|
21
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WNYRYI4D.mjs";
|
|
22
24
|
import "./chunk-OM7WILES.mjs";
|
|
23
25
|
import "./chunk-GHNW564E.mjs";
|
|
24
26
|
import "./chunk-CROAFCMW.mjs";
|
|
@@ -33,14 +35,14 @@ import "./chunk-2DLGV2ZG.mjs";
|
|
|
33
35
|
import "./chunk-HPP2II4Z.mjs";
|
|
34
36
|
import "./chunk-WNLPQW7W.mjs";
|
|
35
37
|
import "./chunk-F3N52U7S.mjs";
|
|
36
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-TNBJ4LZG.mjs";
|
|
37
39
|
import "./chunk-LLZSYFOM.mjs";
|
|
38
40
|
import "./chunk-UUMKLGUU.mjs";
|
|
39
41
|
import "./chunk-23LVFSID.mjs";
|
|
40
42
|
import "./chunk-MK5E44WP.mjs";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-SLYDIHLW.mjs";
|
|
44
|
+
import "./chunk-MESQF2JC.mjs";
|
|
45
|
+
import "./chunk-SNFTMSHX.mjs";
|
|
44
46
|
import "./chunk-X3EFRVXY.mjs";
|
|
45
47
|
import "./chunk-A4PWGL46.mjs";
|
|
46
48
|
import "./chunk-MNIR7I7B.mjs";
|
|
@@ -59,21 +61,21 @@ import "./chunk-X3XUZWRB.mjs";
|
|
|
59
61
|
import "./chunk-XR2ZIBQK.mjs";
|
|
60
62
|
import "./chunk-CU5SYTJG.mjs";
|
|
61
63
|
import "./chunk-ES2LD2YD.mjs";
|
|
62
|
-
import "./chunk-
|
|
64
|
+
import "./chunk-VQ4NWOWO.mjs";
|
|
63
65
|
import "./chunk-22W4FNTG.mjs";
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-SQ5O7I3L.mjs";
|
|
67
|
+
import "./chunk-KL7SHLQB.mjs";
|
|
66
68
|
import "./chunk-52Y3C3HG.mjs";
|
|
67
69
|
import {
|
|
68
70
|
getPublicFarmImageConfig,
|
|
69
71
|
resolveFarmImageConfig
|
|
70
72
|
} from "./chunk-2NGZFOKG.mjs";
|
|
71
73
|
import "./chunk-N33DLJBC.mjs";
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
+
import "./chunk-FIR62CR3.mjs";
|
|
75
|
+
import "./chunk-RVGSVQWT.mjs";
|
|
74
76
|
import "./chunk-BRYPZIMB.mjs";
|
|
75
77
|
import "./chunk-UIJOLBUL.mjs";
|
|
76
|
-
import "./chunk-
|
|
78
|
+
import "./chunk-K7OZAVOI.mjs";
|
|
77
79
|
import "./chunk-VFXE6NWR.mjs";
|
|
78
80
|
import "./chunk-TZVUF5JJ.mjs";
|
|
79
81
|
import "./chunk-DQF3QLOH.mjs";
|
|
@@ -126,7 +128,7 @@ import {
|
|
|
126
128
|
createFarmNodeRequestAbortSignal
|
|
127
129
|
} from "./chunk-QDWMCFTH.mjs";
|
|
128
130
|
import "./chunk-D2LCAV6L.mjs";
|
|
129
|
-
import "./chunk-
|
|
131
|
+
import "./chunk-LQDLEWPO.mjs";
|
|
130
132
|
import "./chunk-RFKTJTWZ.mjs";
|
|
131
133
|
import "./chunk-QPNVDSFZ.mjs";
|
|
132
134
|
import "./chunk-GYMGK467.mjs";
|
|
@@ -158,6 +160,7 @@ import "./chunk-SF3JB56B.mjs";
|
|
|
158
160
|
import "./chunk-AYP2YFVN.mjs";
|
|
159
161
|
import "./chunk-Y6FXYEAI.mjs";
|
|
160
162
|
export {
|
|
163
|
+
collectDevStylesheetUrls,
|
|
161
164
|
collectFarmClientPackageImports,
|
|
162
165
|
createFarmNodeRequestAbortSignal,
|
|
163
166
|
defineConfig,
|
|
@@ -170,6 +173,7 @@ export {
|
|
|
170
173
|
getPublicFarmImageConfig,
|
|
171
174
|
readRouteRenderingDirectiveFromFile,
|
|
172
175
|
resolveFarmClientCacheAdapterEntry,
|
|
176
|
+
resolveFarmClientOptimizeDeps,
|
|
173
177
|
resolveFarmImageConfig,
|
|
174
178
|
resolveFarmImageProviderForRuntime,
|
|
175
179
|
resolveFarmImageServerRuntime,
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunkJEJQGZI7cjs = require('./chunk-JEJQGZI7.cjs');
|
|
7
|
-
require('./chunk-V727H3RI.cjs');
|
|
8
|
-
require('./chunk-SM25ZC4S.cjs');
|
|
9
|
-
require('./chunk-BTZ5O6VM.cjs');
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
exports.CORE_PORTABLE = _chunkJEJQGZI7cjs.CORE_PORTABLE; exports.analyzeFarmMobileRoutes = _chunkJEJQGZI7cjs.analyzeFarmMobileRoutes; exports.readAliases = _chunkJEJQGZI7cjs.readAliases; exports.resolveFile = _chunkJEJQGZI7cjs.resolveFile;
|
package/dist/chunk-CSLUBKGG.mjs
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// src/deployment-environment.ts
|
|
2
|
-
function isFarmProductionDeploymentEnvironment(env = process.env) {
|
|
3
|
-
const environment = normalizeEnvironment(env.VERCEL_ENV);
|
|
4
|
-
const targetEnvironment = normalizeEnvironment(env.VERCEL_TARGET_ENV);
|
|
5
|
-
if (environment && environment !== "production") return false;
|
|
6
|
-
if (targetEnvironment && targetEnvironment !== "production") return false;
|
|
7
|
-
if (isTrue(env.NETLIFY)) {
|
|
8
|
-
const context = normalizeEnvironment(env.CONTEXT);
|
|
9
|
-
if (context && context !== "production") return false;
|
|
10
|
-
}
|
|
11
|
-
if (isTrue(env.IS_PULL_REQUEST)) return false;
|
|
12
|
-
return true;
|
|
13
|
-
}
|
|
14
|
-
function isFarmPreviewDeploymentEnvironment(env) {
|
|
15
|
-
return resolveFarmPreviewDeployment(env, false);
|
|
16
|
-
}
|
|
17
|
-
function resolveFarmPreviewDeployment(env, builtAsPreview) {
|
|
18
|
-
const explicit = env?.FARM_PREVIEW;
|
|
19
|
-
if (isTrue(explicit)) return true;
|
|
20
|
-
if (isFalse(explicit)) return false;
|
|
21
|
-
if (builtAsPreview || !env) return builtAsPreview;
|
|
22
|
-
if (normalizeEnvironment(env.VERCEL_ENV) === "preview") return true;
|
|
23
|
-
if (isTrue(env.NETLIFY)) {
|
|
24
|
-
const context = normalizeEnvironment(env.CONTEXT);
|
|
25
|
-
if (context === "deploy-preview" || context === "branch-deploy") return true;
|
|
26
|
-
}
|
|
27
|
-
return isTrue(env.IS_PULL_REQUEST);
|
|
28
|
-
}
|
|
29
|
-
function normalizeEnvironment(value) {
|
|
30
|
-
const normalized = value?.trim().toLowerCase();
|
|
31
|
-
return normalized || void 0;
|
|
32
|
-
}
|
|
33
|
-
function isTrue(value) {
|
|
34
|
-
return value !== void 0 && ["1", "true", "yes", "on"].includes(value.toLowerCase());
|
|
35
|
-
}
|
|
36
|
-
function isFalse(value) {
|
|
37
|
-
return value !== void 0 && ["0", "false", "no", "off"].includes(value.toLowerCase());
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export {
|
|
41
|
-
isFarmProductionDeploymentEnvironment,
|
|
42
|
-
isFarmPreviewDeploymentEnvironment,
|
|
43
|
-
resolveFarmPreviewDeployment
|
|
44
|
-
};
|
package/dist/chunk-SGBNF56S.cjs
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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; }// src/deployment-environment.ts
|
|
2
|
-
function isFarmProductionDeploymentEnvironment(env = process.env) {
|
|
3
|
-
const environment = normalizeEnvironment(env.VERCEL_ENV);
|
|
4
|
-
const targetEnvironment = normalizeEnvironment(env.VERCEL_TARGET_ENV);
|
|
5
|
-
if (environment && environment !== "production") return false;
|
|
6
|
-
if (targetEnvironment && targetEnvironment !== "production") return false;
|
|
7
|
-
if (isTrue(env.NETLIFY)) {
|
|
8
|
-
const context = normalizeEnvironment(env.CONTEXT);
|
|
9
|
-
if (context && context !== "production") return false;
|
|
10
|
-
}
|
|
11
|
-
if (isTrue(env.IS_PULL_REQUEST)) return false;
|
|
12
|
-
return true;
|
|
13
|
-
}
|
|
14
|
-
function isFarmPreviewDeploymentEnvironment(env) {
|
|
15
|
-
return resolveFarmPreviewDeployment(env, false);
|
|
16
|
-
}
|
|
17
|
-
function resolveFarmPreviewDeployment(env, builtAsPreview) {
|
|
18
|
-
const explicit = _optionalChain([env, 'optionalAccess', _ => _.FARM_PREVIEW]);
|
|
19
|
-
if (isTrue(explicit)) return true;
|
|
20
|
-
if (isFalse(explicit)) return false;
|
|
21
|
-
if (builtAsPreview || !env) return builtAsPreview;
|
|
22
|
-
if (normalizeEnvironment(env.VERCEL_ENV) === "preview") return true;
|
|
23
|
-
if (isTrue(env.NETLIFY)) {
|
|
24
|
-
const context = normalizeEnvironment(env.CONTEXT);
|
|
25
|
-
if (context === "deploy-preview" || context === "branch-deploy") return true;
|
|
26
|
-
}
|
|
27
|
-
return isTrue(env.IS_PULL_REQUEST);
|
|
28
|
-
}
|
|
29
|
-
function normalizeEnvironment(value) {
|
|
30
|
-
const normalized = _optionalChain([value, 'optionalAccess', _2 => _2.trim, 'call', _3 => _3(), 'access', _4 => _4.toLowerCase, 'call', _5 => _5()]);
|
|
31
|
-
return normalized || void 0;
|
|
32
|
-
}
|
|
33
|
-
function isTrue(value) {
|
|
34
|
-
return value !== void 0 && ["1", "true", "yes", "on"].includes(value.toLowerCase());
|
|
35
|
-
}
|
|
36
|
-
function isFalse(value) {
|
|
37
|
-
return value !== void 0 && ["0", "false", "no", "off"].includes(value.toLowerCase());
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
exports.isFarmProductionDeploymentEnvironment = isFarmProductionDeploymentEnvironment; exports.isFarmPreviewDeploymentEnvironment = isFarmPreviewDeploymentEnvironment; exports.resolveFarmPreviewDeployment = resolveFarmPreviewDeployment;
|