@farm.js/core 0.1.38 → 0.1.39
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-BwKlpnc7.d.mts → agent-mcp-BhneNPb4.d.mts} +1 -1
- package/dist/{agent-mcp-De1imoMS.d.ts → agent-mcp-HcTYQmNX.d.ts} +1 -1
- package/dist/agent-runtime.cjs +3 -3
- package/dist/agent-runtime.d.mts +1 -1
- package/dist/agent-runtime.d.ts +1 -1
- package/dist/agent-runtime.mjs +2 -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-kT_QXTdx.d.ts → app-CMkoghtp.d.ts} +3 -3
- package/dist/{app-CFZt-srr.d.mts → app-DVzmmbNO.d.mts} +3 -3
- package/dist/app-markdown.d.mts +2 -2
- package/dist/app-markdown.d.ts +2 -2
- package/dist/{chunk-4E5QXOCL.cjs → chunk-5ULKUBIA.cjs} +6 -6
- package/dist/{chunk-TYMMBFN2.mjs → chunk-677THUVP.mjs} +1 -1
- package/dist/{chunk-CXEN47J3.mjs → chunk-73WX6PRY.mjs} +25 -0
- package/dist/{chunk-ZJD2PN6Z.mjs → chunk-75HN5IZ3.mjs} +12 -2
- package/dist/{chunk-L4DD7ODZ.cjs → chunk-A657YSP4.cjs} +2 -2
- package/dist/{chunk-YR2VBEMO.cjs → chunk-AS2VPMEE.cjs} +96 -96
- package/dist/{chunk-IBUQWVYA.mjs → chunk-ATSDUUFK.mjs} +11 -1
- package/dist/{chunk-TYJALEHQ.cjs → chunk-B5J2YVG7.cjs} +14 -14
- package/dist/{chunk-FWE7LEQC.cjs → chunk-BD3D7EZV.cjs} +4 -4
- package/dist/{chunk-7FPTZLKH.mjs → chunk-BFJTHYTN.mjs} +1 -1
- package/dist/{chunk-VU6AAZVY.cjs → chunk-BWIQR4DH.cjs} +13 -3
- package/dist/{chunk-XKVVMZP5.cjs → chunk-BXDJXFQG.cjs} +4 -4
- package/dist/{chunk-4IE345DM.cjs → chunk-CIOT4HGT.cjs} +2 -2
- package/dist/{chunk-DRLKAXDM.mjs → chunk-EGCTIS5F.mjs} +2 -2
- package/dist/{chunk-B6G5CKMC.mjs → chunk-GKBWWRBG.mjs} +3 -3
- package/dist/{chunk-Q3NXS4MU.cjs → chunk-HRETEZ2Z.cjs} +13 -3
- package/dist/{chunk-EMO6K4YY.cjs → chunk-HRSAQ23K.cjs} +7 -7
- package/dist/{chunk-TUBTR2OP.mjs → chunk-HYTZYOW2.mjs} +6 -6
- package/dist/{chunk-EKF7KDFD.mjs → chunk-KTSUBU2E.mjs} +2 -2
- package/dist/{chunk-KCQBAKIY.cjs → chunk-LMPAPBUA.cjs} +10 -10
- package/dist/{chunk-EK4QAEFZ.cjs → chunk-LZESP4IR.cjs} +25 -0
- package/dist/{chunk-HZFM2LWQ.mjs → chunk-P3PLW4FR.mjs} +34 -2
- package/dist/{chunk-KHKLMNI5.mjs → chunk-PVZE2JGJ.mjs} +1 -1
- package/dist/{chunk-N32CC42M.cjs → chunk-QG775BRV.cjs} +12 -12
- package/dist/{chunk-KKSTAEMY.cjs → chunk-QUCXCDE2.cjs} +1 -1
- package/dist/{chunk-JCKYH4LG.mjs → chunk-QYMZOOC5.mjs} +1 -1
- package/dist/{chunk-2DD4JMQC.cjs → chunk-RVXFINNS.cjs} +12 -12
- package/dist/{chunk-LI2F57NI.mjs → chunk-SOP2EAA6.mjs} +1 -1
- package/dist/{chunk-ND2CWPOD.mjs → chunk-TS4JHGUJ.mjs} +1 -1
- package/dist/{chunk-4GWRFP22.cjs → chunk-UPJLHLJU.cjs} +35 -3
- package/dist/{chunk-7PEP3BUT.mjs → chunk-VWBHM3F6.mjs} +1 -1
- package/dist/{chunk-TGFQVLLF.cjs → chunk-YFYUYWL7.cjs} +95 -95
- package/dist/{chunk-A3EAIURZ.mjs → chunk-YKZRDB5Z.mjs} +1 -1
- package/dist/{chunk-OCIEZME4.mjs → chunk-ZUPXLIGB.mjs} +8 -8
- package/dist/{client-plugins-DUrIYX9B.d.mts → client-plugins-CsCuCLBz.d.mts} +18 -0
- package/dist/{client-plugins-BvlNhGEB.d.ts → client-plugins-D0ke-Hc8.d.ts} +18 -0
- package/dist/client-plugins.d.mts +1 -1
- package/dist/client-plugins.d.ts +1 -1
- package/dist/client.cjs +4 -4
- package/dist/client.d.mts +5 -5
- package/dist/client.d.ts +5 -5
- package/dist/client.mjs +3 -3
- package/dist/config.d.mts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/{devtools-JYJNOLPQ.mjs → devtools-5AFIPVUJ.mjs} +3 -3
- package/dist/{devtools-VQWJANJV.cjs → devtools-LW4QQ5J3.cjs} +4 -4
- package/dist/docs.cjs +5 -5
- package/dist/docs.d.mts +2 -2
- package/dist/docs.d.ts +2 -2
- package/dist/docs.mjs +4 -4
- package/dist/index.cjs +18 -18
- package/dist/index.d.mts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.mjs +17 -17
- package/dist/integrations.cjs +3 -3
- package/dist/integrations.d.mts +1 -1
- package/dist/integrations.d.ts +1 -1
- package/dist/integrations.mjs +2 -2
- package/dist/internal/app-markdown-runtime.d.mts +2 -2
- package/dist/internal/app-markdown-runtime.d.ts +2 -2
- package/dist/internal/build-runtime.cjs +12 -12
- package/dist/internal/build-runtime.d.mts +3 -3
- package/dist/internal/build-runtime.d.ts +3 -3
- package/dist/internal/build-runtime.mjs +11 -11
- package/dist/internal/cli-runtime.cjs +5 -5
- package/dist/internal/cli-runtime.mjs +4 -4
- 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 +1 -1
- package/dist/internal/compression-runtime.d.ts +1 -1
- package/dist/internal/config-runtime.cjs +4 -4
- package/dist/internal/config-runtime.d.mts +2 -2
- package/dist/internal/config-runtime.d.ts +2 -2
- package/dist/internal/config-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 +10 -8
- package/dist/internal/production-runtime.d.mts +9 -9
- package/dist/internal/production-runtime.d.ts +9 -9
- package/dist/internal/production-runtime.mjs +9 -7
- package/dist/markdown.d.mts +1 -1
- package/dist/markdown.d.ts +1 -1
- package/dist/middleware.cjs +5 -5
- package/dist/middleware.d.mts +3 -3
- package/dist/middleware.d.ts +3 -3
- package/dist/middleware.mjs +4 -4
- package/dist/navigation.cjs +5 -5
- package/dist/navigation.d.mts +4 -4
- package/dist/navigation.d.ts +4 -4
- package/dist/navigation.mjs +4 -4
- package/dist/plugin.cjs +8 -8
- package/dist/plugin.d.mts +1 -1
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.mjs +7 -7
- package/dist/{production-runtime-D2aMyzjr.d.ts → production-runtime-BaI3WHnV.d.ts} +1 -1
- package/dist/{production-runtime-BQ4_WLwQ.d.mts → production-runtime-DfRP0cV0.d.mts} +1 -1
- package/dist/query/client.cjs +6 -6
- package/dist/query/client.mjs +2 -2
- package/dist/{render-plan-25p4hrj4.d.ts → render-plan-CfIdJKAf.d.ts} +1 -1
- package/dist/{render-plan-DtkXMN8D.d.mts → render-plan-Dg8RBYFa.d.mts} +1 -1
- package/dist/renderer-client.cjs +5 -5
- package/dist/renderer-client.d.mts +3 -3
- package/dist/renderer-client.d.ts +3 -3
- package/dist/renderer-client.mjs +2 -2
- package/dist/{request-jF4jwx8f.d.ts → request-CEbHIIl4.d.ts} +1 -1
- package/dist/{request-DgCkIdcn.d.mts → request-DfE02G_A.d.mts} +1 -1
- package/dist/request.d.mts +2 -2
- package/dist/request.d.ts +2 -2
- package/dist/{route-rendering-CSBF78Ya.d.mts → route-rendering-BHyOfXjD.d.mts} +1 -1
- package/dist/{route-rendering-Bji6S6a_.d.ts → route-rendering-C4oHbv6C.d.ts} +1 -1
- package/dist/{router-B09Ui3Qm.d.mts → router-DwhA61SB.d.mts} +1 -1
- package/dist/{router-CPB9cXtG.d.ts → router-uRN_29Em.d.ts} +1 -1
- package/dist/routes.d.mts +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/{runtime-CM6E6yuI.d.mts → runtime-BEdHhN4C.d.mts} +1 -1
- package/dist/{runtime-EDMwLdjv.d.ts → runtime-COk03hmx.d.ts} +1 -1
- package/dist/server-plugins.d.mts +2 -2
- package/dist/server-plugins.d.ts +2 -2
- package/dist/server.cjs +25 -25
- package/dist/server.d.mts +7 -7
- package/dist/server.d.ts +7 -7
- package/dist/server.mjs +8 -8
- package/dist/{spa-router-B_N8XgVu.d.ts → spa-router-DrVOBVGg.d.ts} +2 -2
- package/dist/{spa-router-Cgimzfbi.d.mts → spa-router-w4aFOuyn.d.mts} +2 -2
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/{utils-DZciYXYl.d.mts → utils-BtYehqeU.d.mts} +1 -1
- package/dist/{utils-BNxAKAuT.d.ts → utils-Dhuqwmd2.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +8 -8
- package/dist/vite.d.mts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.mjs +7 -7
- package/package.json +1 -1
package/dist/plugin.mjs
CHANGED
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
PluginManager,
|
|
5
5
|
definePlugin,
|
|
6
6
|
farmPlugin
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HYTZYOW2.mjs";
|
|
8
8
|
import "./chunk-CQMVIOYP.mjs";
|
|
9
9
|
import "./chunk-F3VB7ONA.mjs";
|
|
10
10
|
import "./chunk-HALDNTIV.mjs";
|
|
11
11
|
import "./chunk-ZMSZZXOR.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-GKBWWRBG.mjs";
|
|
13
13
|
import "./chunk-P664ZVTV.mjs";
|
|
14
14
|
import "./chunk-DAO7JGTS.mjs";
|
|
15
15
|
import "./chunk-BOYNDCZL.mjs";
|
|
@@ -50,12 +50,12 @@ import "./chunk-ONUEYC6N.mjs";
|
|
|
50
50
|
import "./chunk-UWPLULNK.mjs";
|
|
51
51
|
import "./chunk-AELACLOB.mjs";
|
|
52
52
|
import "./chunk-SEJ5N6SL.mjs";
|
|
53
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-ATSDUUFK.mjs";
|
|
54
54
|
import "./chunk-44SYJEG3.mjs";
|
|
55
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-QYMZOOC5.mjs";
|
|
56
56
|
import "./chunk-RHAZ22ZN.mjs";
|
|
57
57
|
import "./chunk-SKVTP5PR.mjs";
|
|
58
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-P3PLW4FR.mjs";
|
|
59
59
|
import "./chunk-SGBZPZUW.mjs";
|
|
60
60
|
import "./chunk-R3DS7A2T.mjs";
|
|
61
61
|
import "./chunk-IOEH4VWN.mjs";
|
|
@@ -87,7 +87,7 @@ import "./chunk-QVKYGNVM.mjs";
|
|
|
87
87
|
import "./chunk-FUZEBRP3.mjs";
|
|
88
88
|
import "./chunk-Z2RZJZIZ.mjs";
|
|
89
89
|
import "./chunk-BTHHUD7Q.mjs";
|
|
90
|
-
import "./chunk-
|
|
90
|
+
import "./chunk-SOP2EAA6.mjs";
|
|
91
91
|
import "./chunk-54UPOYFS.mjs";
|
|
92
92
|
import "./chunk-WNSDDRNU.mjs";
|
|
93
93
|
import "./chunk-JPLUGGRV.mjs";
|
|
@@ -97,7 +97,7 @@ import "./chunk-O7BH5O46.mjs";
|
|
|
97
97
|
import "./chunk-7LTCDQRS.mjs";
|
|
98
98
|
import "./chunk-GCXWJJKH.mjs";
|
|
99
99
|
import "./chunk-JM5XPKWH.mjs";
|
|
100
|
-
import "./chunk-
|
|
100
|
+
import "./chunk-73WX6PRY.mjs";
|
|
101
101
|
import "./chunk-SKNL7VA2.mjs";
|
|
102
102
|
import "./chunk-2A3EQHXX.mjs";
|
|
103
103
|
import "./chunk-JNZ4TDWM.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ay as ReadonlyMiddlewareStore, az as FarmMiddlewareConfig, aA as MiddlewareModule, aB as MiddlewareConfig, aC as MiddlewareContext } from './client-plugins-
|
|
1
|
+
import { ay as ReadonlyMiddlewareStore, az as FarmMiddlewareConfig, aA as MiddlewareModule, aB as MiddlewareConfig, aC as MiddlewareContext } from './client-plugins-D0ke-Hc8.js';
|
|
2
2
|
import { R as ResolvedFarmI18nConfig } from './types-CnH8DOqo.js';
|
|
3
3
|
import { R as ResolvedFarmServerConfig } from './workflows-jZ4BcdoZ.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ay as ReadonlyMiddlewareStore, az as FarmMiddlewareConfig, aA as MiddlewareModule, aB as MiddlewareConfig, aC as MiddlewareContext } from './client-plugins-
|
|
1
|
+
import { ay as ReadonlyMiddlewareStore, az as FarmMiddlewareConfig, aA as MiddlewareModule, aB as MiddlewareConfig, aC as MiddlewareContext } from './client-plugins-CsCuCLBz.mjs';
|
|
2
2
|
import { R as ResolvedFarmI18nConfig } from './types-CnH8DOqo.mjs';
|
|
3
3
|
import { R as ResolvedFarmServerConfig } from './workflows-jZ4BcdoZ.mjs';
|
|
4
4
|
|
package/dist/query/client.cjs
CHANGED
|
@@ -18,12 +18,12 @@ var _chunkWMOGFOUJcjs = require('../chunk-WMOGFOUJ.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkBD3D7EZVcjs = require('../chunk-BD3D7EZV.cjs');
|
|
22
22
|
require('../chunk-S6FJO323.cjs');
|
|
23
23
|
require('../chunk-R5A5KNVX.cjs');
|
|
24
24
|
require('../chunk-JEZO6VUR.cjs');
|
|
25
25
|
require('../chunk-J7FSKED3.cjs');
|
|
26
|
-
require('../chunk-
|
|
26
|
+
require('../chunk-LZESP4IR.cjs');
|
|
27
27
|
require('../chunk-R5JIFR6B.cjs');
|
|
28
28
|
require('../chunk-C5GUTBZK.cjs');
|
|
29
29
|
require('../chunk-QBK2AA4U.cjs');
|
|
@@ -216,7 +216,7 @@ var commitURLUpdate = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (upd
|
|
|
216
216
|
const currentUrl = url.pathname + url.search + url.hash;
|
|
217
217
|
if (newUrl === currentUrl) return;
|
|
218
218
|
const historyAction = history === "replaceState" ? "replace" : "push";
|
|
219
|
-
if (!
|
|
219
|
+
if (!_chunkBD3D7EZVcjs.writeFarmURLSearchHistory.call(void 0, historyAction, newUrl)) {
|
|
220
220
|
const historyState = window.history.state;
|
|
221
221
|
const nextHistoryState = historyState && typeof historyState === "object" && "path" in historyState ? { ...historyState, path: newUrl } : historyState;
|
|
222
222
|
window.history[history](nextHistoryState, "", newUrl);
|
|
@@ -227,7 +227,7 @@ var commitURLUpdate = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (upd
|
|
|
227
227
|
}
|
|
228
228
|
emitter.emitUpdate(getCurrentSearchParams());
|
|
229
229
|
}
|
|
230
|
-
if (shallow)
|
|
230
|
+
if (shallow) _chunkBD3D7EZVcjs.notifyHistoryChange.call(void 0, "url-search");
|
|
231
231
|
if (scroll) {
|
|
232
232
|
window.scrollTo(0, 0);
|
|
233
233
|
}
|
|
@@ -311,7 +311,7 @@ function useQueryState(key, parser, options) {
|
|
|
311
311
|
}
|
|
312
312
|
}, "onKeyUpdate");
|
|
313
313
|
onPopState();
|
|
314
|
-
const unsubscribeHistory =
|
|
314
|
+
const unsubscribeHistory = _chunkBD3D7EZVcjs.subscribeHistoryChange.call(void 0, onPopState);
|
|
315
315
|
emitter.on("update", onEmitterUpdate);
|
|
316
316
|
emitter.onKey(key, onKeyUpdate);
|
|
317
317
|
return () => {
|
|
@@ -405,7 +405,7 @@ function useQueryStates(parsers, options = {}) {
|
|
|
405
405
|
applyChange2(searchParams);
|
|
406
406
|
}, "onEmitterUpdate");
|
|
407
407
|
applyChange2(getCurrentSearchParams());
|
|
408
|
-
const unsubscribeHistory =
|
|
408
|
+
const unsubscribeHistory = _chunkBD3D7EZVcjs.subscribeHistoryChange.call(void 0, onPopState);
|
|
409
409
|
emitter.on("update", onEmitterUpdate);
|
|
410
410
|
const unsubscribeKeys = Object.entries(parsers).map(([key, parser]) => {
|
|
411
411
|
const onKeyUpdate = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (payload) => {
|
package/dist/query/client.mjs
CHANGED
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
notifyHistoryChange,
|
|
19
19
|
subscribeHistoryChange,
|
|
20
20
|
writeFarmURLSearchHistory
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-TS4JHGUJ.mjs";
|
|
22
22
|
import "../chunk-IHQIOZLC.mjs";
|
|
23
23
|
import "../chunk-2PQNJXFM.mjs";
|
|
24
24
|
import "../chunk-QHSH7IH4.mjs";
|
|
25
25
|
import "../chunk-QVYLBY73.mjs";
|
|
26
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-73WX6PRY.mjs";
|
|
27
27
|
import "../chunk-SKNL7VA2.mjs";
|
|
28
28
|
import "../chunk-2A3EQHXX.mjs";
|
|
29
29
|
import "../chunk-JNZ4TDWM.mjs";
|
package/dist/renderer-client.cjs
CHANGED
|
@@ -22,7 +22,7 @@ require('./chunk-PCOTGFSM.cjs');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkBD3D7EZVcjs = require('./chunk-BD3D7EZV.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
@@ -38,7 +38,7 @@ require('./chunk-SK35NQKK.cjs');
|
|
|
38
38
|
|
|
39
39
|
var _chunkQCVE2OCIcjs = require('./chunk-QCVE2OCI.cjs');
|
|
40
40
|
require('./chunk-AI7QMY7O.cjs');
|
|
41
|
-
require('./chunk-
|
|
41
|
+
require('./chunk-LZESP4IR.cjs');
|
|
42
42
|
require('./chunk-R5JIFR6B.cjs');
|
|
43
43
|
require('./chunk-C5GUTBZK.cjs');
|
|
44
44
|
require('./chunk-QBK2AA4U.cjs');
|
|
@@ -64,7 +64,7 @@ var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
|
64
64
|
function createRendererRouter(options = {}) {
|
|
65
65
|
const basePath = options.basePath === void 0 ? _chunkI57LW5VZcjs.getFarmBasePath.call(void 0, ) : _chunkI57LW5VZcjs.normalizeFarmBasePath.call(void 0, options.basePath);
|
|
66
66
|
const matcher = _optionalChain([options, 'access', _ => _.routes, 'optionalAccess', _2 => _2.length]) ? _chunkSU7MH53Pcjs.createFarmRouter.call(void 0, [...options.routes]) : null;
|
|
67
|
-
const router =
|
|
67
|
+
const router = _chunkBD3D7EZVcjs.getRouter.call(void 0, );
|
|
68
68
|
let snapshot = readRendererRouterSnapshot(basePath, matcher, router.getNavigationState());
|
|
69
69
|
const read = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, () => {
|
|
70
70
|
snapshot = readRendererRouterSnapshot(basePath, matcher, router.getNavigationState());
|
|
@@ -80,7 +80,7 @@ function createRendererRouter(options = {}) {
|
|
|
80
80
|
listener();
|
|
81
81
|
}, "notify");
|
|
82
82
|
const unsubscribeNavigation = router.subscribeNavigation(notify);
|
|
83
|
-
const unsubscribeHistory =
|
|
83
|
+
const unsubscribeHistory = _chunkBD3D7EZVcjs.subscribeHistoryChange.call(void 0, notify);
|
|
84
84
|
read();
|
|
85
85
|
return () => {
|
|
86
86
|
unsubscribeNavigation();
|
|
@@ -316,7 +316,7 @@ function readRendererRouterSnapshot(basePath, matcher, navigation) {
|
|
|
316
316
|
pathname,
|
|
317
317
|
searchParams: url.searchParams,
|
|
318
318
|
params: _optionalChain([matcher, 'optionalAccess', _20 => _20.match, 'call', _21 => _21(routePathname), 'optionalAccess', _22 => _22.params]) || {},
|
|
319
|
-
pageState:
|
|
319
|
+
pageState: _chunkBD3D7EZVcjs.readPageState.call(void 0, ),
|
|
320
320
|
navigation
|
|
321
321
|
};
|
|
322
322
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { FarmRouterRouteInput } from './router.mjs';
|
|
2
|
-
import { F as FarmNavigationState, a as FarmNavigateOptions } from './spa-router-
|
|
2
|
+
import { F as FarmNavigationState, a as FarmNavigateOptions } from './spa-router-w4aFOuyn.mjs';
|
|
3
3
|
import { F as FarmClientCacheStatus } from './client-cache-di_Nasxa.mjs';
|
|
4
4
|
import { ServerFn } from './server-fn.mjs';
|
|
5
5
|
import { ServerQuery } from './server-query.mjs';
|
|
6
6
|
import { S as ServerQueryFetchOptions } from './server-query-runtime-aP52iuL5.mjs';
|
|
7
7
|
import { F as FarmThemeSnapshot, a as FarmThemePreference } from './types-DQnyD3VD.mjs';
|
|
8
8
|
import { F as FarmI18nClientSnapshot, a as FarmTranslator, b as FarmI18nLocale } from './types-CnH8DOqo.mjs';
|
|
9
|
-
import './client-plugins-
|
|
9
|
+
import './client-plugins-CsCuCLBz.mjs';
|
|
10
10
|
import './lifecycle-DK06VuKP.mjs';
|
|
11
11
|
import './integration-api-0y4FXJpC.mjs';
|
|
12
12
|
import './endpoint-CCHFqyTE.mjs';
|
|
@@ -37,7 +37,7 @@ import './font.mjs';
|
|
|
37
37
|
import './after.mjs';
|
|
38
38
|
import 'node:http';
|
|
39
39
|
import './island-CfGru1MO.mjs';
|
|
40
|
-
import './render-plan-
|
|
40
|
+
import './render-plan-Dg8RBYFa.mjs';
|
|
41
41
|
|
|
42
42
|
interface FarmClientStore<TSnapshot> {
|
|
43
43
|
getSnapshot(): TSnapshot;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { FarmRouterRouteInput } from './router.js';
|
|
2
|
-
import { F as FarmNavigationState, a as FarmNavigateOptions } from './spa-router-
|
|
2
|
+
import { F as FarmNavigationState, a as FarmNavigateOptions } from './spa-router-DrVOBVGg.js';
|
|
3
3
|
import { F as FarmClientCacheStatus } from './client-cache-Deoqq-nM.js';
|
|
4
4
|
import { ServerFn } from './server-fn.js';
|
|
5
5
|
import { ServerQuery } from './server-query.js';
|
|
6
6
|
import { S as ServerQueryFetchOptions } from './server-query-runtime-DXRNhX_3.js';
|
|
7
7
|
import { F as FarmThemeSnapshot, a as FarmThemePreference } from './types-DQnyD3VD.js';
|
|
8
8
|
import { F as FarmI18nClientSnapshot, a as FarmTranslator, b as FarmI18nLocale } from './types-CnH8DOqo.js';
|
|
9
|
-
import './client-plugins-
|
|
9
|
+
import './client-plugins-D0ke-Hc8.js';
|
|
10
10
|
import './lifecycle-DK06VuKP.js';
|
|
11
11
|
import './integration-api-BPJo5oXb.js';
|
|
12
12
|
import './endpoint-CA-TNX60.js';
|
|
@@ -37,7 +37,7 @@ import './font.js';
|
|
|
37
37
|
import './after.js';
|
|
38
38
|
import 'node:http';
|
|
39
39
|
import './island-CfGru1MO.js';
|
|
40
|
-
import './render-plan-
|
|
40
|
+
import './render-plan-CfIdJKAf.js';
|
|
41
41
|
|
|
42
42
|
interface FarmClientStore<TSnapshot> {
|
|
43
43
|
getSnapshot(): TSnapshot;
|
package/dist/renderer-client.mjs
CHANGED
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
getRouter,
|
|
23
23
|
readPageState,
|
|
24
24
|
subscribeHistoryChange
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-TS4JHGUJ.mjs";
|
|
26
26
|
import {
|
|
27
27
|
getFarmI18nClientState,
|
|
28
28
|
subscribeFarmI18n
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
createFarmLocaleCookie
|
|
39
39
|
} from "./chunk-GCXWJJKH.mjs";
|
|
40
40
|
import "./chunk-JM5XPKWH.mjs";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-73WX6PRY.mjs";
|
|
42
42
|
import "./chunk-SKNL7VA2.mjs";
|
|
43
43
|
import "./chunk-2A3EQHXX.mjs";
|
|
44
44
|
import "./chunk-JNZ4TDWM.mjs";
|
package/dist/request.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { g as getCurrentRequest } from './request-
|
|
2
|
-
import './client-plugins-
|
|
1
|
+
export { g as getCurrentRequest } from './request-DfE02G_A.mjs';
|
|
2
|
+
import './client-plugins-CsCuCLBz.mjs';
|
|
3
3
|
import './lifecycle-DK06VuKP.mjs';
|
|
4
4
|
import './integration-api-0y4FXJpC.mjs';
|
|
5
5
|
import './endpoint-CCHFqyTE.mjs';
|
package/dist/request.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { g as getCurrentRequest } from './request-
|
|
2
|
-
import './client-plugins-
|
|
1
|
+
export { g as getCurrentRequest } from './request-CEbHIIl4.js';
|
|
2
|
+
import './client-plugins-D0ke-Hc8.js';
|
|
3
3
|
import './lifecycle-DK06VuKP.js';
|
|
4
4
|
import './integration-api-BPJo5oXb.js';
|
|
5
5
|
import './endpoint-CA-TNX60.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
import { FarmRouterRouteInput } from './router.mjs';
|
|
3
|
-
import { b as FarmNavigationBlockerContext, F as FarmNavigationState } from './spa-router-
|
|
3
|
+
import { b as FarmNavigationBlockerContext, F as FarmNavigationState } from './spa-router-w4aFOuyn.mjs';
|
|
4
4
|
|
|
5
5
|
interface UseRouterOptions {
|
|
6
6
|
basePath?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
import { FarmRouterRouteInput } from './router.js';
|
|
3
|
-
import { b as FarmNavigationBlockerContext, F as FarmNavigationState } from './spa-router-
|
|
3
|
+
import { b as FarmNavigationBlockerContext, F as FarmNavigationState } from './spa-router-DrVOBVGg.js';
|
|
4
4
|
|
|
5
5
|
interface UseRouterOptions {
|
|
6
6
|
basePath?: string;
|
package/dist/routes.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FarmRouteRuntimeConfig, L as LayoutProps, M as Metadata, j as FarmRouteRuntime, k as FarmRouteRegions, l as FarmRouteMaxDuration, m as FarmAppContext, o as PageProps, q as PluginContextProps, s as RouteModule, P as ParsedRoute } from './client-plugins-
|
|
1
|
+
import { F as FarmRouteRuntimeConfig, L as LayoutProps, M as Metadata, j as FarmRouteRuntime, k as FarmRouteRegions, l as FarmRouteMaxDuration, m as FarmAppContext, o as PageProps, q as PluginContextProps, s as RouteModule, P as ParsedRoute } from './client-plugins-CsCuCLBz.mjs';
|
|
2
2
|
import { ComponentType } from 'react';
|
|
3
3
|
import { RouteDataCacheKey } from './cache.mjs';
|
|
4
4
|
import { ServerFn } from './server-fn.mjs';
|
package/dist/routes.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FarmRouteRuntimeConfig, L as LayoutProps, M as Metadata, j as FarmRouteRuntime, k as FarmRouteRegions, l as FarmRouteMaxDuration, m as FarmAppContext, o as PageProps, q as PluginContextProps, s as RouteModule, P as ParsedRoute } from './client-plugins-
|
|
1
|
+
import { F as FarmRouteRuntimeConfig, L as LayoutProps, M as Metadata, j as FarmRouteRuntime, k as FarmRouteRegions, l as FarmRouteMaxDuration, m as FarmAppContext, o as PageProps, q as PluginContextProps, s as RouteModule, P as ParsedRoute } from './client-plugins-D0ke-Hc8.js';
|
|
2
2
|
import { ComponentType } from 'react';
|
|
3
3
|
import { RouteDataCacheKey } from './cache.js';
|
|
4
4
|
import { ServerFn } from './server-fn.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { e as EndpointFailure } from './endpoint-CCHFqyTE.mjs';
|
|
2
2
|
import { P as PluginRoutesFactory } from './integration-api-0y4FXJpC.mjs';
|
|
3
3
|
import { a as APIRouteParams, A as APIRouteMatch } from './route-pattern-W-SsJGSp.mjs';
|
|
4
|
-
import './client-plugins-
|
|
4
|
+
import './client-plugins-CsCuCLBz.mjs';
|
|
5
5
|
|
|
6
6
|
interface MountedRoute {
|
|
7
7
|
path: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { e as EndpointFailure } from './endpoint-CA-TNX60.js';
|
|
2
2
|
import { P as PluginRoutesFactory } from './integration-api-BPJo5oXb.js';
|
|
3
3
|
import { a as APIRouteParams, A as APIRouteMatch } from './route-pattern-W-SsJGSp.js';
|
|
4
|
-
import './client-plugins-
|
|
4
|
+
import './client-plugins-D0ke-Hc8.js';
|
|
5
5
|
|
|
6
6
|
interface MountedRoute {
|
|
7
7
|
path: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cy as RedirectConfig, e as FarmRequest, f as FarmResponse, h as FarmPluginContext, a as FarmPlugin, cz as HeaderConfig, cA as RewriteConfig } from './client-plugins-
|
|
2
|
-
export { bW as FarmPluginLifecycle, c3 as FarmPluginRuntimeEndpoint, c4 as FarmPluginRuntimeEndpointEvent, bX as FarmRequestPluginContext, bY as FarmRequestStore } from './client-plugins-
|
|
1
|
+
import { cy as RedirectConfig, e as FarmRequest, f as FarmResponse, h as FarmPluginContext, a as FarmPlugin, cz as HeaderConfig, cA as RewriteConfig } from './client-plugins-CsCuCLBz.mjs';
|
|
2
|
+
export { bW as FarmPluginLifecycle, c3 as FarmPluginRuntimeEndpoint, c4 as FarmPluginRuntimeEndpointEvent, bX as FarmRequestPluginContext, bY as FarmRequestStore } from './client-plugins-CsCuCLBz.mjs';
|
|
3
3
|
import { R as ResolvedFarmI18nConfig } from './types-CnH8DOqo.mjs';
|
|
4
4
|
export { createCompressionPlugin } from './internal/compression-runtime.mjs';
|
|
5
5
|
import './lifecycle-DK06VuKP.mjs';
|
package/dist/server-plugins.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cy as RedirectConfig, e as FarmRequest, f as FarmResponse, h as FarmPluginContext, a as FarmPlugin, cz as HeaderConfig, cA as RewriteConfig } from './client-plugins-
|
|
2
|
-
export { bW as FarmPluginLifecycle, c3 as FarmPluginRuntimeEndpoint, c4 as FarmPluginRuntimeEndpointEvent, bX as FarmRequestPluginContext, bY as FarmRequestStore } from './client-plugins-
|
|
1
|
+
import { cy as RedirectConfig, e as FarmRequest, f as FarmResponse, h as FarmPluginContext, a as FarmPlugin, cz as HeaderConfig, cA as RewriteConfig } from './client-plugins-D0ke-Hc8.js';
|
|
2
|
+
export { bW as FarmPluginLifecycle, c3 as FarmPluginRuntimeEndpoint, c4 as FarmPluginRuntimeEndpointEvent, bX as FarmRequestPluginContext, bY as FarmRequestStore } from './client-plugins-D0ke-Hc8.js';
|
|
3
3
|
import { R as ResolvedFarmI18nConfig } from './types-CnH8DOqo.js';
|
|
4
4
|
export { createCompressionPlugin } from './internal/compression-runtime.js';
|
|
5
5
|
import './lifecycle-DK06VuKP.js';
|
package/dist/server.cjs
CHANGED
|
@@ -22,7 +22,7 @@ var _chunkIK6LVLKCcjs = require('./chunk-IK6LVLKC.cjs');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkHRETEZ2Zcjs = require('./chunk-HRETEZ2Z.cjs');
|
|
26
26
|
require('./chunk-KR6CKSXT.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
@@ -49,14 +49,14 @@ require('./chunk-SK35NQKK.cjs');
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
var
|
|
52
|
+
var _chunkAS2VPMEEcjs = require('./chunk-AS2VPMEE.cjs');
|
|
53
53
|
require('./chunk-5D2JIPLH.cjs');
|
|
54
54
|
require('./chunk-XSIRSMAS.cjs');
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
var _chunkE2ROOWQCcjs = require('./chunk-E2ROOWQC.cjs');
|
|
58
58
|
require('./chunk-JSROZYYO.cjs');
|
|
59
|
-
require('./chunk-
|
|
59
|
+
require('./chunk-RVXFINNS.cjs');
|
|
60
60
|
require('./chunk-H5CLOUZS.cjs');
|
|
61
61
|
require('./chunk-SYQ3MOWW.cjs');
|
|
62
62
|
require('./chunk-CXP5U3RW.cjs');
|
|
@@ -151,12 +151,12 @@ require('./chunk-CMGMGHUZ.cjs');
|
|
|
151
151
|
var _chunk4ZFL5GFNcjs = require('./chunk-4ZFL5GFN.cjs');
|
|
152
152
|
require('./chunk-OI6CMLWX.cjs');
|
|
153
153
|
require('./chunk-6QQDAAAZ.cjs');
|
|
154
|
-
require('./chunk-
|
|
154
|
+
require('./chunk-BWIQR4DH.cjs');
|
|
155
155
|
require('./chunk-G643DQCH.cjs');
|
|
156
|
-
require('./chunk-
|
|
156
|
+
require('./chunk-LMPAPBUA.cjs');
|
|
157
157
|
require('./chunk-M7MKQXAF.cjs');
|
|
158
158
|
require('./chunk-ZXH4TS3F.cjs');
|
|
159
|
-
require('./chunk-
|
|
159
|
+
require('./chunk-UPJLHLJU.cjs');
|
|
160
160
|
require('./chunk-UXHS27O6.cjs');
|
|
161
161
|
require('./chunk-4PPEPOZZ.cjs');
|
|
162
162
|
|
|
@@ -229,7 +229,7 @@ var _chunkUQZ4AYTHcjs = require('./chunk-UQZ4AYTH.cjs');
|
|
|
229
229
|
require('./chunk-KNBBQHO2.cjs');
|
|
230
230
|
|
|
231
231
|
|
|
232
|
-
var
|
|
232
|
+
var _chunkQUCXCDE2cjs = require('./chunk-QUCXCDE2.cjs');
|
|
233
233
|
require('./chunk-OYEUREB6.cjs');
|
|
234
234
|
require('./chunk-7W3CPVXS.cjs');
|
|
235
235
|
require('./chunk-NZKJGRB3.cjs');
|
|
@@ -239,7 +239,7 @@ require('./chunk-G7HXGLEC.cjs');
|
|
|
239
239
|
require('./chunk-S3A45T7F.cjs');
|
|
240
240
|
require('./chunk-QCVE2OCI.cjs');
|
|
241
241
|
require('./chunk-AI7QMY7O.cjs');
|
|
242
|
-
require('./chunk-
|
|
242
|
+
require('./chunk-LZESP4IR.cjs');
|
|
243
243
|
require('./chunk-R5JIFR6B.cjs');
|
|
244
244
|
require('./chunk-C5GUTBZK.cjs');
|
|
245
245
|
require('./chunk-QBK2AA4U.cjs');
|
|
@@ -381,7 +381,7 @@ function createFarmDevLifecyclePlugin(pluginManager, instrumentation) {
|
|
|
381
381
|
await step("Instrumentation shutdown", () => instrumentation.shutdown());
|
|
382
382
|
if (failures.length === 1) throw failures[0].error;
|
|
383
383
|
if (failures.length > 1) {
|
|
384
|
-
throw new (0,
|
|
384
|
+
throw new (0, _chunkAS2VPMEEcjs.FarmRuntimeShutdownError)(
|
|
385
385
|
`Dev server shutdown failed during ${failures.map(({ label }) => label).join(", ")}`,
|
|
386
386
|
failures.map(({ error }) => error)
|
|
387
387
|
);
|
|
@@ -456,7 +456,7 @@ function createBrandingPlugin() {
|
|
|
456
456
|
const pc = _chunkM2L4MYDQcjs.createCliColors.call(void 0, );
|
|
457
457
|
console.log("");
|
|
458
458
|
console.log(
|
|
459
|
-
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${
|
|
459
|
+
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${_chunkQUCXCDE2cjs.FARM_VERSION}`)} ${pc.dim(`ready in ${elapsed}ms`)}`
|
|
460
460
|
);
|
|
461
461
|
console.log("");
|
|
462
462
|
console.log(
|
|
@@ -525,7 +525,7 @@ function inlineEnvScope(scope) {
|
|
|
525
525
|
}
|
|
526
526
|
_chunkS3JO3N4Hcjs.__name.call(void 0, inlineEnvScope, "inlineEnvScope");
|
|
527
527
|
async function resolveInlineConfig(config, mode) {
|
|
528
|
-
if (
|
|
528
|
+
if (_chunkHRETEZ2Zcjs.isResolvedFarmConfig.call(void 0, config)) {
|
|
529
529
|
_chunkVEKFLAQMcjs.setEnv.call(void 0, config.env);
|
|
530
530
|
return { ...config };
|
|
531
531
|
}
|
|
@@ -535,7 +535,7 @@ async function resolveInlineConfig(config, mode) {
|
|
|
535
535
|
const resolvedI18n = i18n && "enabled" in i18n ? i18n : void 0;
|
|
536
536
|
const auth = config.auth;
|
|
537
537
|
const resolvedAuth = auth && typeof auth === "object" && typeof auth.emailAndPassword === "object" && "enabled" in auth.emailAndPassword ? auth : void 0;
|
|
538
|
-
const resolved = await
|
|
538
|
+
const resolved = await _chunkHRETEZ2Zcjs.resolveConfig.call(void 0,
|
|
539
539
|
{
|
|
540
540
|
...config,
|
|
541
541
|
...resolvedDocs ? { docs: false } : {},
|
|
@@ -569,8 +569,8 @@ async function createServer2(config = {}, options = {}) {
|
|
|
569
569
|
try {
|
|
570
570
|
const root = config.root || process.cwd();
|
|
571
571
|
const mode = process.env.NODE_ENV === "production" ? "production" : "development";
|
|
572
|
-
const userConfig = await
|
|
573
|
-
const resolvedConfig = userConfig ? await
|
|
572
|
+
const userConfig = await _chunkHRETEZ2Zcjs.loadConfig.call(void 0, root, void 0, mode);
|
|
573
|
+
const resolvedConfig = userConfig ? await _chunkHRETEZ2Zcjs.resolveConfig.call(void 0, userConfig, mode) : await resolveInlineConfig(config, mode);
|
|
574
574
|
const instrumentationRoot = resolvedConfig.root;
|
|
575
575
|
const instrumentationFile = _chunkKCMTCM6Icjs.resolveFarmInstrumentationFile.call(void 0,
|
|
576
576
|
instrumentationRoot,
|
|
@@ -586,7 +586,7 @@ async function createServer2(config = {}, options = {}) {
|
|
|
586
586
|
runtime: "nodejs"
|
|
587
587
|
});
|
|
588
588
|
await instrumentation.start();
|
|
589
|
-
pluginManager = new (0,
|
|
589
|
+
pluginManager = new (0, _chunkAS2VPMEEcjs.PluginManager)({
|
|
590
590
|
config: resolvedConfig,
|
|
591
591
|
isDev: mode === "development",
|
|
592
592
|
isProd: mode === "production"
|
|
@@ -620,7 +620,7 @@ async function createServer2(config = {}, options = {}) {
|
|
|
620
620
|
finalConfig = await pluginManager.runHookSerial("config", finalConfig);
|
|
621
621
|
finalConfig.renderer = _chunkPSV6XKPOcjs.resolveFarmRenderer.call(void 0, finalConfig.renderer);
|
|
622
622
|
const projectRoot = finalConfig.root || process.cwd();
|
|
623
|
-
finalConfig.images =
|
|
623
|
+
finalConfig.images = _chunkAS2VPMEEcjs.resolveFarmImageProviderForRuntime.call(void 0, finalConfig.images, {
|
|
624
624
|
root: projectRoot,
|
|
625
625
|
dev: true
|
|
626
626
|
});
|
|
@@ -637,21 +637,21 @@ async function createServer2(config = {}, options = {}) {
|
|
|
637
637
|
if (shouldUseProjectPostcss) {
|
|
638
638
|
_chunk5QIKR7RRcjs.logger.info("\u{1F4E6} Using project PostCSS/Tailwind configuration");
|
|
639
639
|
} else {
|
|
640
|
-
tailwindVitePlugin = await
|
|
640
|
+
tailwindVitePlugin = await _chunkAS2VPMEEcjs.loadTailwindVitePlugin.call(void 0, );
|
|
641
641
|
}
|
|
642
642
|
server = await createViteDevServer(
|
|
643
|
-
|
|
643
|
+
_chunkAS2VPMEEcjs.mergeFarmViteConfig.call(void 0,
|
|
644
644
|
{
|
|
645
645
|
root: projectRoot,
|
|
646
646
|
css: shouldUseProjectPostcss ? void 0 : { postcss: { plugins: [] } },
|
|
647
647
|
plugins: [
|
|
648
|
-
|
|
648
|
+
_chunkAS2VPMEEcjs.createFarmThemeCssPlugin.call(void 0, finalConfig.theme, finalConfig.basePath),
|
|
649
649
|
...tailwindVitePlugin ? [tailwindVitePlugin] : [],
|
|
650
650
|
...rendererVitePlugins,
|
|
651
651
|
createDevDependencyStubsPlugin(),
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
652
|
+
_chunkAS2VPMEEcjs.farmI18nClientBridgePlugin.call(void 0, ),
|
|
653
|
+
_chunkAS2VPMEEcjs.farmServerOnlyEntriesPlugin.call(void 0, ),
|
|
654
|
+
_chunkAS2VPMEEcjs.farmPlugin.call(void 0, finalConfig, pluginManager),
|
|
655
655
|
_chunk3SDFA7UFcjs.farmEnvironmentFunctionsPlugin.call(void 0, ),
|
|
656
656
|
createBrandingPlugin(),
|
|
657
657
|
createFarmDevLifecyclePlugin(pluginManager, instrumentation)
|
|
@@ -666,8 +666,8 @@ async function createServer2(config = {}, options = {}) {
|
|
|
666
666
|
dedupe: [...finalConfig.renderer.dedupe || []]
|
|
667
667
|
},
|
|
668
668
|
optimizeDeps: {
|
|
669
|
-
...
|
|
670
|
-
|
|
669
|
+
..._chunkAS2VPMEEcjs.createFarmClientOptimizeDepsConfig.call(void 0,
|
|
670
|
+
_chunkAS2VPMEEcjs.createFarmClientOptimizeDepsEntries.call(void 0, projectRoot, _chunkWBKEZXWEcjs.getFarmAppDirectories.call(void 0, finalConfig)),
|
|
671
671
|
finalConfig.renderer
|
|
672
672
|
),
|
|
673
673
|
exclude: [
|
|
@@ -903,4 +903,4 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, startDevServer, "startDevServer");
|
|
|
903
903
|
|
|
904
904
|
|
|
905
905
|
|
|
906
|
-
exports.DEFAULT_FARM_DEV_SERVER_PORT = DEFAULT_FARM_DEV_SERVER_PORT; exports.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT = _chunkT5OJPTVNcjs.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT; exports.FARM_SERVER_QUERY_SYMBOL = _chunk3LOLJTFVcjs.FARM_SERVER_QUERY_SYMBOL; exports.FarmApp =
|
|
906
|
+
exports.DEFAULT_FARM_DEV_SERVER_PORT = DEFAULT_FARM_DEV_SERVER_PORT; exports.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT = _chunkT5OJPTVNcjs.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT; exports.FARM_SERVER_QUERY_SYMBOL = _chunk3LOLJTFVcjs.FARM_SERVER_QUERY_SYMBOL; exports.FarmApp = _chunkAS2VPMEEcjs.FarmApp; exports.FarmDataCache = _chunkYWN746UScjs.FarmDataCache; exports.FarmEnvironmentError = _chunkW4E7WMXEcjs.FarmEnvironmentError; exports.RouteManager = _chunkAS2VPMEEcjs.RouteManager; exports.ServerActionRequestError = _chunkT5OJPTVNcjs.ServerActionRequestError; exports.ServerRenderer = _chunkAS2VPMEEcjs.ServerRenderer; exports._runWithAfterNodeResponse = _chunkMQ3H6LT5cjs._runWithAfterNodeResponse; exports._runWithAfterRequest = _chunkMQ3H6LT5cjs._runWithAfterRequest; exports._withAfterNodeMiddleware = _chunkMQ3H6LT5cjs._withAfterNodeMiddleware; exports.after = _chunkMQ3H6LT5cjs.after; exports.applyFarmCacheInvalidationTargets = _chunkYWN746UScjs.applyFarmCacheInvalidationTargets; exports.applyFarmCacheInvalidations = _chunkZEG3OPIBcjs.applyFarmCacheInvalidations; exports.configureFarmCache = _chunkYWN746UScjs.configureFarmCache; exports.createClientOnlyFn = _chunkW4E7WMXEcjs.createClientOnlyFn; exports.createFarmApp = _chunkAS2VPMEEcjs.createFarmApp; exports.createFarmCacheInvalidationStream = _chunkYWN746UScjs.createFarmCacheInvalidationStream; exports.createFarmCacheKey = _chunkNYJMY3JAcjs.createFarmCacheKey; exports.createFarmConfigResolutionPlugin = _chunkWBKEZXWEcjs.createFarmConfigResolutionPlugin; exports.createFarmStorage = _chunk4ZFL5GFNcjs.createFarmStorage; exports.createIsomorphicFn = _chunkW4E7WMXEcjs.createIsomorphicFn; exports.createPathCacheTag = _chunkYWN746UScjs.createPathCacheTag; exports.createRouteDataCacheKey = _chunkNYJMY3JAcjs.createRouteDataCacheKey; exports.createRouteDataCacheTag = _chunkYWN746UScjs.createRouteDataCacheTag; exports.createServer = createServer2; exports.createServerActionRequestErrorResponse = _chunkT5OJPTVNcjs.createServerActionRequestErrorResponse; exports.createServerOnlyFn = _chunkW4E7WMXEcjs.createServerOnlyFn; exports.createServerQuery = _chunk3LOLJTFVcjs.createServerQuery; exports.createStorageClient = _chunk4ZFL5GFNcjs.createStorageClient; exports.databaseStorage = _chunk4ZFL5GFNcjs.databaseStorage; exports.defineCacheKey = _chunkYWN746UScjs.defineCacheKey; exports.defineConfig = _chunkAS2VPMEEcjs.defineConfig; exports.defineStorageClient = _chunk4ZFL5GFNcjs.defineStorageClient; exports.disposeStorage = _chunk4ZFL5GFNcjs.disposeStorage; exports.driverStorage = _chunk4ZFL5GFNcjs.driverStorage; exports.farmPlugin = _chunkAS2VPMEEcjs.farmPlugin; exports.fileExists = _chunk5QIKR7RRcjs.fileExists; exports.getCurrentRequest = _chunk6XWDE2P2cjs.getCurrentRequest; exports.getFarmAppDirectories = _chunkWBKEZXWEcjs.getFarmAppDirectories; exports.getFarmDataCache = _chunkYWN746UScjs.getFarmDataCache; exports.getFarmLayerAliases = _chunkWBKEZXWEcjs.getFarmLayerAliases; exports.getFarmSourceRoots = _chunkWBKEZXWEcjs.getFarmSourceRoots; exports.getServerActionExecutionContext = _chunkT5OJPTVNcjs.getServerActionExecutionContext; exports.getServerActionInvalidations = _chunkT5OJPTVNcjs.getServerActionInvalidations; exports.getServerActionSignal = _chunkT5OJPTVNcjs.getServerActionSignal; exports.getStorage = _chunk4ZFL5GFNcjs.getStorage; exports.getTheme = _chunk472NCAZ7cjs.getTheme; exports.getThemeSnapshot = _chunk472NCAZ7cjs.getThemeSnapshot; exports.globFiles = _chunk5QIKR7RRcjs.globFiles; exports.initStorage = _chunk4ZFL5GFNcjs.initStorage; exports.invalidate = _chunkYWN746UScjs.invalidate; exports.invalidateRouteData = _chunkYWN746UScjs.invalidateRouteData; exports.libsqlStorage = _chunk4ZFL5GFNcjs.libsqlStorage; exports.loadFarmConfigFile = _chunkWBKEZXWEcjs.loadFarmConfigFile; exports.localStorage = _chunk4ZFL5GFNcjs.localStorage; exports.logger = _chunk5QIKR7RRcjs.logger; exports.matchRoute = _chunk5QIKR7RRcjs.matchRoute; exports.matchRouteParts = _chunk5QIKR7RRcjs.matchRouteParts; exports.matchRoutePrefix = _chunk5QIKR7RRcjs.matchRoutePrefix; exports.matchRoutePrefixParts = _chunk5QIKR7RRcjs.matchRoutePrefixParts; exports.memoryStorage = _chunk4ZFL5GFNcjs.memoryStorage; exports.mongodbStorage = _chunk4ZFL5GFNcjs.mongodbStorage; exports.mysql2Storage = _chunk4ZFL5GFNcjs.mysql2Storage; exports.mysqlStorage = _chunk4ZFL5GFNcjs.mysqlStorage; exports.netlifyBlobsStorage = _chunk4ZFL5GFNcjs.netlifyBlobsStorage; exports.normalizeRevalidatePath = _chunkYWN746UScjs.normalizeRevalidatePath; exports.parseRoutePath = _chunk5QIKR7RRcjs.parseRoutePath; exports.parseSearchParams = _chunk5QIKR7RRcjs.parseSearchParams; exports.pgStorage = _chunk4ZFL5GFNcjs.pgStorage; exports.pgliteStorage = _chunk4ZFL5GFNcjs.pgliteStorage; exports.planetscaleStorage = _chunk4ZFL5GFNcjs.planetscaleStorage; exports.postgresStorage = _chunk4ZFL5GFNcjs.postgresStorage; exports.prepareServerActionRequest = _chunkT5OJPTVNcjs.prepareServerActionRequest; exports.redisStorage = _chunk4ZFL5GFNcjs.redisStorage; exports.resolveAppPath = _chunk5QIKR7RRcjs.resolveAppPath; exports.resolveFarmLayers = _chunkWBKEZXWEcjs.resolveFarmLayers; exports.resolveFarmMCPConfig = _chunkHRETEZ2Zcjs.resolveFarmMCPConfig; exports.resolveFarmMCPPlugin = _chunkHRETEZ2Zcjs.resolveFarmMCPPlugin; exports.resolveServerActionsConfig = _chunkT5OJPTVNcjs.resolveServerActionsConfig; exports.resolveStorageRuntimeClient = _chunk4ZFL5GFNcjs.resolveStorageRuntimeClient; exports.revalidatePath = _chunkYWN746UScjs.revalidatePath; exports.revalidateTag = _chunkYWN746UScjs.revalidateTag; exports.runWithServerActionRequest = _chunkT5OJPTVNcjs.runWithServerActionRequest; exports.s3Storage = _chunk4ZFL5GFNcjs.s3Storage; exports.sanitizeServerActionError = _chunkT5OJPTVNcjs.sanitizeServerActionError; exports.segmentsToPattern = _chunk5QIKR7RRcjs.segmentsToPattern; exports.sendWebResponse = _chunkUQZ4AYTHcjs.sendWebResponse; exports.splitRoutePath = _chunk5QIKR7RRcjs.splitRoutePath; exports.sqliteStorage = _chunk4ZFL5GFNcjs.sqliteStorage; exports.startDevServer = startDevServer; exports.storageCacheAdapter = _chunkYWN746UScjs.storageCacheAdapter; exports.toPosixPath = _chunk5QIKR7RRcjs.toPosixPath; exports.toRootRelativeUrlPath = _chunk5QIKR7RRcjs.toRootRelativeUrlPath; exports.toViteModuleId = _chunk5QIKR7RRcjs.toViteModuleId; exports.unstable_cache = _chunkYWN746UScjs.unstable_cache; exports.updateTag = _chunkYWN746UScjs.updateTag; exports.upstashStorage = _chunk4ZFL5GFNcjs.upstashStorage; exports.validateServerActionRequest = _chunkT5OJPTVNcjs.validateServerActionRequest; exports.vercelBlobStorage = _chunk4ZFL5GFNcjs.vercelBlobStorage; exports.vercelKVStorage = _chunk4ZFL5GFNcjs.vercelKVStorage;
|
package/dist/server.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { F as FarmApp, R as RouteManager, S as ServerRenderer, c as createFarmApp } from './app-
|
|
2
|
-
import { I as FarmConfig, C as FarmUserConfig } from './client-plugins-
|
|
3
|
-
export { T as AppRoutePattern, ai as BuildOptions, a8 as ErrorBoundary, a1 as ErrorProps, m as FarmAppContext, S as FarmComponentType, D as FarmContextFactory, _ as FarmContextFactoryInput, $ as FarmIsolatedClientHydrationMode, an as FarmLayerEntry, ar as FarmLayerResolution, Q as FarmMCPUserConfig, W as FarmMigrationCommand, X as FarmMigrationsConfig, Y as FarmMigrationsUserConfig, e as FarmRequest, f as FarmResponse, ap as FarmSourceRoot, ac as GenerateStaticParams, a6 as Layout, a4 as LayoutMetadataProps, ad as LayoutModule, L as LayoutProps, a7 as Loading, a0 as LoadingProps, M as Metadata, ae as MetadataJsonLd, a3 as MetadataProps, am as MetadataRobots, al as MetadataRobotsDirectives, E as MiddlewareProps, V as NitroPreset, a5 as Page, o as PageProps, a2 as PagePropsWithMiddleware, U as PageRouteParams, P as ParsedRoute, q as PluginContextProps, aq as ResolveFarmLayersOptions, ao as ResolvedFarmLayer, Z as ResolvedFarmMigrationsConfig, s as RouteModule, R as RouteSegment, ak as SSGCollectionResult, aj as SSGPage, ah as ServerAction, aa as StaticPathParams, a9 as StaticPathPrimitive, ab as StaticRouteParams, af as ThemeColorDescriptor, ag as Viewport, aw as createFarmConfigResolutionPlugin, K as defineConfig, J as farmPlugin, au as getFarmAppDirectories, av as getFarmLayerAliases, at as getFarmSourceRoots, ax as loadFarmConfigFile, as as resolveFarmLayers, N as resolveFarmMCPConfig, O as resolveFarmMCPPlugin } from './client-plugins-
|
|
4
|
-
export { g as fileExists, h as globFiles, l as logger, m as matchRoute, b as matchRouteParts, c as matchRoutePrefix, d as matchRoutePrefixParts, p as parseRoutePath, i as parseSearchParams, r as resolveAppPath, s as segmentsToPattern, a as splitRoutePath, e as toPosixPath, t as toRootRelativeUrlPath, f as toViteModuleId } from './utils-
|
|
1
|
+
export { F as FarmApp, R as RouteManager, S as ServerRenderer, c as createFarmApp } from './app-DVzmmbNO.mjs';
|
|
2
|
+
import { I as FarmConfig, C as FarmUserConfig } from './client-plugins-CsCuCLBz.mjs';
|
|
3
|
+
export { T as AppRoutePattern, ai as BuildOptions, a8 as ErrorBoundary, a1 as ErrorProps, m as FarmAppContext, S as FarmComponentType, D as FarmContextFactory, _ as FarmContextFactoryInput, $ as FarmIsolatedClientHydrationMode, an as FarmLayerEntry, ar as FarmLayerResolution, Q as FarmMCPUserConfig, W as FarmMigrationCommand, X as FarmMigrationsConfig, Y as FarmMigrationsUserConfig, e as FarmRequest, f as FarmResponse, ap as FarmSourceRoot, ac as GenerateStaticParams, a6 as Layout, a4 as LayoutMetadataProps, ad as LayoutModule, L as LayoutProps, a7 as Loading, a0 as LoadingProps, M as Metadata, ae as MetadataJsonLd, a3 as MetadataProps, am as MetadataRobots, al as MetadataRobotsDirectives, E as MiddlewareProps, V as NitroPreset, a5 as Page, o as PageProps, a2 as PagePropsWithMiddleware, U as PageRouteParams, P as ParsedRoute, q as PluginContextProps, aq as ResolveFarmLayersOptions, ao as ResolvedFarmLayer, Z as ResolvedFarmMigrationsConfig, s as RouteModule, R as RouteSegment, ak as SSGCollectionResult, aj as SSGPage, ah as ServerAction, aa as StaticPathParams, a9 as StaticPathPrimitive, ab as StaticRouteParams, af as ThemeColorDescriptor, ag as Viewport, aw as createFarmConfigResolutionPlugin, K as defineConfig, J as farmPlugin, au as getFarmAppDirectories, av as getFarmLayerAliases, at as getFarmSourceRoots, ax as loadFarmConfigFile, as as resolveFarmLayers, N as resolveFarmMCPConfig, O as resolveFarmMCPPlugin } from './client-plugins-CsCuCLBz.mjs';
|
|
4
|
+
export { g as fileExists, h as globFiles, l as logger, m as matchRoute, b as matchRouteParts, c as matchRoutePrefix, d as matchRoutePrefixParts, p as parseRoutePath, i as parseSearchParams, r as resolveAppPath, s as segmentsToPattern, a as splitRoutePath, e as toPosixPath, t as toRootRelativeUrlPath, f as toViteModuleId } from './utils-BtYehqeU.mjs';
|
|
5
5
|
export { createFarmStorage, createStorageClient, databaseStorage, defineStorageClient, disposeStorage, driverStorage, getStorage, initStorage, libsqlStorage, localStorage, memoryStorage, mongodbStorage, mysql2Storage, mysqlStorage, netlifyBlobsStorage, pgStorage, pgliteStorage, planetscaleStorage, postgresStorage, redisStorage, resolveStorageRuntimeClient, s3Storage, sqliteStorage, upstashStorage, vercelBlobStorage, vercelKVStorage } from './storage.mjs';
|
|
6
6
|
export { CacheKeyFactory, DefinedCacheKey, FarmCacheAdapter, FarmCacheEntry, FarmCacheInvalidationStreamOptions, FarmCacheInvalidationTarget, FarmCacheOptions, FarmCacheSetOptions, FarmCacheStorage, FarmCacheUserConfig, FarmClientCacheUserConfig, FarmDataCache, GetFarmCacheEntryOptions, InferCacheKeyData, RevalidateTagProfile, RouteDataCacheKey, StorageFarmCacheAdapterOptions, applyFarmCacheInvalidationTargets, configureFarmCache, createFarmCacheInvalidationStream, createFarmCacheKey, createPathCacheTag, createRouteDataCacheKey, createRouteDataCacheTag, defineCacheKey, getFarmDataCache, invalidate, invalidateRouteData, normalizeRevalidatePath, revalidatePath, revalidateTag, storageCacheAdapter, unstable_cache, updateTag } from './cache.mjs';
|
|
7
7
|
export { AfterCallback, FarmAfterPlatformContext, _runWithAfterNodeResponse, _runWithAfterRequest, _withAfterNodeMiddleware, after } from './after.mjs';
|
|
8
8
|
export { FARM_SERVER_QUERY_SYMBOL, ServerQuery, ServerQueryKey, ServerQueryOptions, ServerQueryOutputOptions, ServerQueryStaleTime, createServerQuery } from './server-query.mjs';
|
|
9
9
|
import { ViteDevServer } from 'vite';
|
|
10
|
-
export { g as getCurrentRequest } from './request-
|
|
10
|
+
export { g as getCurrentRequest } from './request-DfE02G_A.mjs';
|
|
11
11
|
import { ServerResponse } from 'node:http';
|
|
12
12
|
export { getTheme, getThemeSnapshot } from './theme/server.mjs';
|
|
13
13
|
export { DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT, FarmServerActionsConfig, PreparedServerActionRequest, ResolvedFarmServerActionsConfig, SanitizedServerActionError, ServerActionRequestError, ServerActionRequestKind, createServerActionRequestErrorResponse, getServerActionExecutionContext, getServerActionInvalidations, getServerActionSignal, prepareServerActionRequest, resolveServerActionsConfig, runWithServerActionRequest, sanitizeServerActionError, validateServerActionRequest } from './server-action-security.mjs';
|
|
@@ -41,8 +41,8 @@ import './types-CnH8DOqo.mjs';
|
|
|
41
41
|
import './types-DQnyD3VD.mjs';
|
|
42
42
|
import './font.mjs';
|
|
43
43
|
import './island-CfGru1MO.mjs';
|
|
44
|
-
import './agent-mcp-
|
|
45
|
-
import './render-plan-
|
|
44
|
+
import './agent-mcp-BhneNPb4.mjs';
|
|
45
|
+
import './render-plan-Dg8RBYFa.mjs';
|
|
46
46
|
import './runtime-CV2UCV-5.mjs';
|
|
47
47
|
import './resolver-khasx3fU.mjs';
|
|
48
48
|
|