@farm.js/core 0.1.19 → 0.1.20
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-runtime.d.mts +2 -3
- package/dist/agent-runtime.d.ts +2 -3
- package/dist/api/route-manager.cjs +5 -5
- package/dist/api/route-manager.d.mts +2 -3
- package/dist/api/route-manager.d.ts +2 -3
- package/dist/api/route-manager.mjs +4 -4
- package/dist/api.cjs +6 -6
- package/dist/api.d.mts +3 -4
- package/dist/api.d.ts +3 -4
- package/dist/api.mjs +5 -5
- package/dist/{app-BHY_10Lm.d.ts → app-DAyPE-gr.d.ts} +11 -4
- package/dist/{app-BMk0do23.d.mts → app-D_6nTit-.d.mts} +11 -4
- package/dist/app-markdown.d.mts +3 -4
- package/dist/app-markdown.d.ts +3 -4
- package/dist/{chunk-FS7FLPOG.mjs → chunk-2J7W2WND.mjs} +3 -2
- package/dist/{chunk-YS3TRKCG.mjs → chunk-2M435BUE.mjs} +6 -1
- package/dist/{chunk-WJ3HK3LJ.cjs → chunk-2QLBIPFT.cjs} +4 -4
- package/dist/{chunk-FJSWYIR7.cjs → chunk-3IL5UC5I.cjs} +2 -2
- package/dist/chunk-43FMW62B.mjs +67 -0
- package/dist/{chunk-A7T6345N.mjs → chunk-5UX4C5QI.mjs} +10 -7
- package/dist/{chunk-FVZGEVTO.mjs → chunk-5V37LKBG.mjs} +102 -38
- package/dist/chunk-75WGQVQA.cjs +46 -0
- package/dist/{chunk-RFYO7QUD.cjs → chunk-A7T6JZNI.cjs} +1 -1
- package/dist/{chunk-AFOD3LYZ.cjs → chunk-B3WK4DTX.cjs} +10 -9
- package/dist/{chunk-AORPIPNB.cjs → chunk-BHJUZ64B.cjs} +18 -14
- package/dist/chunk-BMWDEBXO.cjs +67 -0
- package/dist/{chunk-ATERBVHQ.mjs → chunk-CQHFU55R.mjs} +5 -4
- package/dist/{chunk-XSKZORAS.cjs → chunk-DX4VKYAJ.cjs} +5 -5
- package/dist/{chunk-2GNATDDE.mjs → chunk-F7E2AZKQ.mjs} +1 -1
- package/dist/{chunk-7WPA7GBZ.mjs → chunk-GHFS7RUB.mjs} +1 -1
- package/dist/{chunk-NSFC3LHB.cjs → chunk-GQFSCBKJ.cjs} +234 -170
- package/dist/{chunk-NZ2JVBT2.mjs → chunk-GZ3ZPTQV.mjs} +2 -2
- package/dist/{chunk-RKQVJN2O.mjs → chunk-JIKGGIOL.mjs} +1 -1
- package/dist/{chunk-WZXN4R5Y.mjs → chunk-K6MG3SEG.mjs} +106 -75
- package/dist/{chunk-OXSIH4D6.cjs → chunk-KNPRCKXK.cjs} +6 -1
- package/dist/{chunk-2ANEVVF7.mjs → chunk-NRS46D4L.mjs} +1 -1
- package/dist/{chunk-A72YEUZ3.mjs → chunk-OCE65DDM.mjs} +1 -1
- package/dist/{chunk-UDBJCUPA.mjs → chunk-PUCUVI7K.mjs} +11 -7
- package/dist/{chunk-XDGMADQM.cjs → chunk-PZX6I4JW.cjs} +384 -353
- package/dist/{chunk-GDSHDTJ4.cjs → chunk-Q5B3KJBP.cjs} +2 -2
- package/dist/{chunk-TSWW5BVH.mjs → chunk-QMV4QELL.mjs} +1 -1
- package/dist/{chunk-V4AICMQA.mjs → chunk-RMIJFZU3.mjs} +26 -2
- package/dist/{chunk-MKB2EGIR.cjs → chunk-SOR334EB.cjs} +3 -2
- package/dist/{chunk-57J3Y7Y3.mjs → chunk-TIKNUAU7.mjs} +3 -2
- package/dist/chunk-VVBO3QH7.mjs +46 -0
- package/dist/{chunk-QBPKKQTD.mjs → chunk-W7MZXRXM.mjs} +19 -4
- package/dist/{chunk-Y53ZSFN6.cjs → chunk-WM6HL7E7.cjs} +4 -3
- package/dist/{chunk-GPVTX3HT.cjs → chunk-XFFQSD2F.cjs} +2 -2
- package/dist/{chunk-62YJ2IEB.cjs → chunk-XI3GWPUS.cjs} +23 -20
- package/dist/{chunk-KVFPGF2M.cjs → chunk-YJJLXIIS.cjs} +7 -7
- package/dist/{chunk-U5BMPGS3.cjs → chunk-YP5JZ4LF.cjs} +32 -8
- package/dist/{chunk-S27FMYAM.cjs → chunk-ZE6ONQ5R.cjs} +28 -13
- package/dist/{client-plugins-JXXmZliS.d.mts → client-plugins-CWrhb1ir.d.mts} +26 -3
- package/dist/{client-plugins-C089bQhN.d.ts → client-plugins-DPf0qZey.d.ts} +26 -3
- package/dist/client-plugins.d.mts +2 -3
- package/dist/client-plugins.d.ts +2 -3
- package/dist/client.cjs +4 -4
- package/dist/client.d.mts +9 -38
- package/dist/client.d.ts +9 -38
- package/dist/client.mjs +3 -3
- package/dist/config.d.mts +2 -3
- package/dist/config.d.ts +2 -3
- package/dist/{devtools-FY5R7TQ4.mjs → devtools-MTB5SA2B.mjs} +3 -3
- package/dist/{devtools-5KGPDVKL.cjs → devtools-R6MDDAZK.cjs} +7 -7
- package/dist/docs.cjs +6 -5
- package/dist/docs.d.mts +2 -2
- package/dist/docs.d.ts +2 -2
- package/dist/docs.mjs +5 -4
- package/dist/index.cjs +21 -20
- package/dist/index.d.mts +14 -14
- package/dist/index.d.ts +14 -14
- package/dist/index.mjs +20 -19
- package/dist/integrations.d.mts +2 -3
- package/dist/integrations.d.ts +2 -3
- package/dist/internal/app-markdown-runtime.d.mts +2 -3
- package/dist/internal/app-markdown-runtime.d.ts +2 -3
- package/dist/internal/build-runtime.cjs +15 -14
- package/dist/internal/build-runtime.d.mts +4 -5
- package/dist/internal/build-runtime.d.ts +4 -5
- package/dist/internal/build-runtime.mjs +14 -13
- 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/compression-runtime.d.mts +2 -3
- package/dist/internal/compression-runtime.d.ts +2 -3
- package/dist/internal/config-runtime.cjs +4 -4
- package/dist/internal/config-runtime.d.mts +3 -4
- package/dist/internal/config-runtime.d.ts +3 -4
- 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 +2 -2
- package/dist/internal/production-runtime.d.mts +8 -9
- package/dist/internal/production-runtime.d.ts +8 -9
- package/dist/internal/production-runtime.mjs +1 -1
- package/dist/{metadata-C1Z9vLbb.d.mts → metadata-CO9fRyyJ.d.mts} +1 -1
- package/dist/{metadata-BcNJP4fq.d.ts → metadata-zY9wltwH.d.ts} +1 -1
- package/dist/middleware.cjs +4 -4
- package/dist/middleware.d.mts +4 -11
- package/dist/middleware.d.ts +4 -11
- package/dist/middleware.mjs +3 -3
- package/dist/navigation.cjs +5 -5
- package/dist/navigation.d.mts +42 -3
- package/dist/navigation.d.ts +42 -3
- package/dist/navigation.mjs +4 -4
- package/dist/{nitro-CVZ36JM5.mjs → nitro-4LFVTT24.mjs} +2 -2
- package/dist/{nitro-4I2MYLY2.cjs → nitro-TSGDUJMN.cjs} +3 -3
- package/dist/plugin.cjs +17 -11
- package/dist/plugin.d.mts +3 -4
- package/dist/plugin.d.ts +3 -4
- package/dist/plugin.mjs +17 -11
- package/dist/{production-runtime-jcrTlRTb.d.mts → production-runtime-CywsHwnG.d.mts} +1 -1
- package/dist/{production-runtime-oKmC0WU-.d.ts → production-runtime-lkfwujwK.d.ts} +1 -1
- package/dist/query/client.cjs +6 -6
- package/dist/query/client.mjs +2 -2
- package/dist/{render-plan-DOB9cV-h.d.ts → render-plan-DHF0GeWo.d.ts} +1 -1
- package/dist/{render-plan-BLIfc4jt.d.mts → render-plan-LVy6sGQe.d.mts} +1 -1
- package/dist/renderer-client.cjs +5 -5
- package/dist/renderer-client.d.mts +4 -5
- package/dist/renderer-client.d.ts +4 -5
- package/dist/renderer-client.mjs +2 -2
- package/dist/renderer.d.mts +3 -0
- package/dist/renderer.d.ts +3 -0
- package/dist/{request-Cr53NRHr.d.mts → request-6AkmhEYE.d.mts} +1 -1
- package/dist/{request-Dt2gNuQD.d.ts → request-BYxlRqA9.d.ts} +1 -1
- package/dist/request.d.mts +3 -4
- package/dist/request.d.ts +3 -4
- package/dist/{route-rendering-CWYd8Mv1.d.ts → route-rendering-CWaKiUbS.d.ts} +1 -1
- package/dist/{route-rendering-CeFBEAoZ.d.mts → route-rendering-Dd8Jmml7.d.mts} +1 -1
- package/dist/router-B2m4fvve.d.ts +50 -0
- package/dist/router-xwEE112q.d.mts +50 -0
- package/dist/routes.cjs +3 -3
- package/dist/routes.d.mts +2 -3
- package/dist/routes.d.ts +2 -3
- package/dist/routes.mjs +2 -2
- package/dist/server-plugins.d.mts +3 -4
- package/dist/server-plugins.d.ts +3 -4
- package/dist/server.cjs +25 -24
- package/dist/server.d.mts +8 -9
- package/dist/server.d.ts +8 -9
- package/dist/server.mjs +12 -11
- package/dist/{spa-router-CQWiYGxS.d.mts → spa-router-DVEHQnWo.d.mts} +3 -3
- package/dist/{spa-router-Wjiw-8hB.d.ts → spa-router-Y8rrXTVK.d.ts} +3 -3
- package/dist/testing.cjs +6 -6
- package/dist/testing.d.mts +2 -3
- package/dist/testing.d.ts +2 -3
- package/dist/testing.mjs +5 -5
- package/dist/{types-D-1WTE72.d.mts → types-DFbjpjXX.d.mts} +8 -0
- package/dist/{types-D-1WTE72.d.ts → types-DFbjpjXX.d.ts} +8 -0
- package/dist/{utils-uUxF0K0P.d.mts → utils-DSPx34-A.d.mts} +1 -1
- package/dist/{utils-B0XJmG_b.d.ts → utils-Dvuny_08.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +12 -11
- package/dist/vite.d.mts +2 -3
- package/dist/vite.d.ts +2 -3
- package/dist/vite.mjs +11 -10
- package/package.json +3 -3
- package/dist/chunk-7GNWGLWB.mjs +0 -14
- package/dist/chunk-VQDBNVOO.cjs +0 -14
- package/dist/navigation-errors-Dvwpzaer.d.mts +0 -13
- package/dist/navigation-errors-Dvwpzaer.d.ts +0 -13
- /package/dist/{chunk-IAMRBF3Z.cjs → chunk-N4RLRSWW.cjs} +0 -0
- /package/dist/{chunk-BNGS6KJ6.mjs → chunk-YOYF2E4U.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { cp as RedirectConfig, e as FarmRequest, f as FarmResponse, h as FarmPluginContext, a as FarmPlugin, cq as HeaderConfig, cr as RewriteConfig } from './client-plugins-CWrhb1ir.mjs';
|
|
2
|
+
export { bN as FarmPluginLifecycle, bW as FarmPluginRuntimeEndpoint, bX as FarmPluginRuntimeEndpointEvent, bO as FarmRequestPluginContext, bP as FarmRequestStore } from './client-plugins-CWrhb1ir.mjs';
|
|
3
3
|
import { R as ResolvedFarmI18nConfig } from './types-Z0aotQ8w.mjs';
|
|
4
4
|
export { createCompressionPlugin } from './internal/compression-runtime.mjs';
|
|
5
5
|
import './lifecycle-DK06VuKP.mjs';
|
|
@@ -17,7 +17,7 @@ import './schema.mjs';
|
|
|
17
17
|
import 'react';
|
|
18
18
|
import './integration-api-BbaiokCC.mjs';
|
|
19
19
|
import '@farming-labs/orm';
|
|
20
|
-
import './types-
|
|
20
|
+
import './types-DFbjpjXX.mjs';
|
|
21
21
|
import '@farming-labs/docs';
|
|
22
22
|
import './observability.mjs';
|
|
23
23
|
import '@opentelemetry/api';
|
|
@@ -25,7 +25,6 @@ import 'vite';
|
|
|
25
25
|
import './workflows-CR9ex-gz.mjs';
|
|
26
26
|
import './cron.mjs';
|
|
27
27
|
import './env.mjs';
|
|
28
|
-
import './navigation-errors-Dvwpzaer.mjs';
|
|
29
28
|
import './server-action-security.mjs';
|
|
30
29
|
import './server-fn-error-DDh14a0V.mjs';
|
|
31
30
|
import 'esbuild';
|
package/dist/server-plugins.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { cp as RedirectConfig, e as FarmRequest, f as FarmResponse, h as FarmPluginContext, a as FarmPlugin, cq as HeaderConfig, cr as RewriteConfig } from './client-plugins-DPf0qZey.js';
|
|
2
|
+
export { bN as FarmPluginLifecycle, bW as FarmPluginRuntimeEndpoint, bX as FarmPluginRuntimeEndpointEvent, bO as FarmRequestPluginContext, bP as FarmRequestStore } from './client-plugins-DPf0qZey.js';
|
|
3
3
|
import { R as ResolvedFarmI18nConfig } from './types-Z0aotQ8w.js';
|
|
4
4
|
export { createCompressionPlugin } from './internal/compression-runtime.js';
|
|
5
5
|
import './lifecycle-DK06VuKP.js';
|
|
@@ -17,7 +17,7 @@ import './schema.js';
|
|
|
17
17
|
import 'react';
|
|
18
18
|
import './integration-api-BbaiokCC.js';
|
|
19
19
|
import '@farming-labs/orm';
|
|
20
|
-
import './types-
|
|
20
|
+
import './types-DFbjpjXX.js';
|
|
21
21
|
import '@farming-labs/docs';
|
|
22
22
|
import './observability.js';
|
|
23
23
|
import '@opentelemetry/api';
|
|
@@ -25,7 +25,6 @@ import 'vite';
|
|
|
25
25
|
import './workflows-CR9ex-gz.js';
|
|
26
26
|
import './cron.js';
|
|
27
27
|
import './env.js';
|
|
28
|
-
import './navigation-errors-Dvwpzaer.js';
|
|
29
28
|
import './server-action-security.js';
|
|
30
29
|
import './server-fn-error-DDh14a0V.js';
|
|
31
30
|
import 'esbuild';
|
package/dist/server.cjs
CHANGED
|
@@ -16,7 +16,7 @@ require('./chunk-G3HRIVEY.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkYP5JZ4LFcjs = require('./chunk-YP5JZ4LF.cjs');
|
|
20
20
|
require('./chunk-KR6CKSXT.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
@@ -41,8 +41,8 @@ require('./chunk-SK35NQKK.cjs');
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
45
|
-
require('./chunk-
|
|
44
|
+
var _chunkPZX6I4JWcjs = require('./chunk-PZX6I4JW.cjs');
|
|
45
|
+
require('./chunk-XFFQSD2F.cjs');
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
var _chunkE2ROOWQCcjs = require('./chunk-E2ROOWQC.cjs');
|
|
@@ -65,10 +65,11 @@ var _chunk22GUSVNJcjs = require('./chunk-22GUSVNJ.cjs');
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
var _chunkXWAWFQFScjs = require('./chunk-XWAWFQFS.cjs');
|
|
68
|
+
require('./chunk-75WGQVQA.cjs');
|
|
68
69
|
require('./chunk-HREOKQWT.cjs');
|
|
69
70
|
require('./chunk-QBPXNZGV.cjs');
|
|
70
71
|
require('./chunk-YJRZR7VU.cjs');
|
|
71
|
-
require('./chunk-
|
|
72
|
+
require('./chunk-Q5B3KJBP.cjs');
|
|
72
73
|
|
|
73
74
|
|
|
74
75
|
|
|
@@ -138,7 +139,7 @@ require('./chunk-6QQDAAAZ.cjs');
|
|
|
138
139
|
require('./chunk-Z5HIWVDP.cjs');
|
|
139
140
|
require('./chunk-SVRTJOUF.cjs');
|
|
140
141
|
require('./chunk-G643DQCH.cjs');
|
|
141
|
-
require('./chunk-
|
|
142
|
+
require('./chunk-WM6HL7E7.cjs');
|
|
142
143
|
require('./chunk-XGC343EY.cjs');
|
|
143
144
|
require('./chunk-RG3ZOTG5.cjs');
|
|
144
145
|
require('./chunk-4PPEPOZZ.cjs');
|
|
@@ -148,8 +149,8 @@ require('./chunk-4PPEPOZZ.cjs');
|
|
|
148
149
|
|
|
149
150
|
|
|
150
151
|
var _chunkMQ3H6LT5cjs = require('./chunk-MQ3H6LT5.cjs');
|
|
151
|
-
require('./chunk-
|
|
152
|
-
require('./chunk-
|
|
152
|
+
require('./chunk-B3WK4DTX.cjs');
|
|
153
|
+
require('./chunk-N4RLRSWW.cjs');
|
|
153
154
|
require('./chunk-2CQ74SP6.cjs');
|
|
154
155
|
require('./chunk-UJ2C4ICS.cjs');
|
|
155
156
|
require('./chunk-IQXFRNY2.cjs');
|
|
@@ -159,12 +160,12 @@ require('./chunk-I4J452B7.cjs');
|
|
|
159
160
|
require('./chunk-WMAPPDMM.cjs');
|
|
160
161
|
require('./chunk-TKJZFIML.cjs');
|
|
161
162
|
require('./chunk-6V4TDWEC.cjs');
|
|
162
|
-
require('./chunk-
|
|
163
|
+
require('./chunk-SOR334EB.cjs');
|
|
163
164
|
require('./chunk-EM6SBQKM.cjs');
|
|
164
165
|
|
|
165
166
|
|
|
166
167
|
var _chunkM2L4MYDQcjs = require('./chunk-M2L4MYDQ.cjs');
|
|
167
|
-
require('./chunk-
|
|
168
|
+
require('./chunk-BMWDEBXO.cjs');
|
|
168
169
|
require('./chunk-HBTUGXHS.cjs');
|
|
169
170
|
|
|
170
171
|
|
|
@@ -189,7 +190,7 @@ require('./chunk-QNPEUFHQ.cjs');
|
|
|
189
190
|
var _chunkUQZ4AYTHcjs = require('./chunk-UQZ4AYTH.cjs');
|
|
190
191
|
|
|
191
192
|
|
|
192
|
-
var
|
|
193
|
+
var _chunkA7T6JZNIcjs = require('./chunk-A7T6JZNI.cjs');
|
|
193
194
|
require('./chunk-OYEUREB6.cjs');
|
|
194
195
|
require('./chunk-7W3CPVXS.cjs');
|
|
195
196
|
require('./chunk-NZKJGRB3.cjs');
|
|
@@ -198,7 +199,7 @@ require('./chunk-G7HXGLEC.cjs');
|
|
|
198
199
|
require('./chunk-ARJWXNQL.cjs');
|
|
199
200
|
require('./chunk-S3A45T7F.cjs');
|
|
200
201
|
require('./chunk-75BRBIFP.cjs');
|
|
201
|
-
require('./chunk-
|
|
202
|
+
require('./chunk-KNPRCKXK.cjs');
|
|
202
203
|
require('./chunk-R5JIFR6B.cjs');
|
|
203
204
|
require('./chunk-C5GUTBZK.cjs');
|
|
204
205
|
require('./chunk-QBK2AA4U.cjs');
|
|
@@ -288,7 +289,7 @@ function createBrandingPlugin() {
|
|
|
288
289
|
const pc = _chunkM2L4MYDQcjs.createCliColors.call(void 0, );
|
|
289
290
|
console.log("");
|
|
290
291
|
console.log(
|
|
291
|
-
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${
|
|
292
|
+
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${_chunkA7T6JZNIcjs.FARM_VERSION}`)} ${pc.dim(`ready in ${elapsed}ms`)}`
|
|
292
293
|
);
|
|
293
294
|
console.log("");
|
|
294
295
|
console.log(
|
|
@@ -353,8 +354,8 @@ async function createServer(config = {}, options = {}) {
|
|
|
353
354
|
try {
|
|
354
355
|
const root = config.root || process.cwd();
|
|
355
356
|
const mode = process.env.NODE_ENV === "production" ? "production" : "development";
|
|
356
|
-
const userConfig = await
|
|
357
|
-
const resolvedConfig = userConfig ? await
|
|
357
|
+
const userConfig = await _chunkYP5JZ4LFcjs.loadConfig.call(void 0, root, void 0, mode);
|
|
358
|
+
const resolvedConfig = userConfig ? await _chunkYP5JZ4LFcjs.resolveConfig.call(void 0, userConfig, mode) : null;
|
|
358
359
|
const instrumentationConfig = resolvedConfig || config;
|
|
359
360
|
const instrumentationRoot = instrumentationConfig.root || root;
|
|
360
361
|
const instrumentationFile = _chunkRTHIVJ2Gcjs.resolveFarmInstrumentationFile.call(void 0,
|
|
@@ -371,7 +372,7 @@ async function createServer(config = {}, options = {}) {
|
|
|
371
372
|
runtime: "nodejs"
|
|
372
373
|
});
|
|
373
374
|
await instrumentation.start();
|
|
374
|
-
pluginManager = new (0,
|
|
375
|
+
pluginManager = new (0, _chunkPZX6I4JWcjs.PluginManager)({
|
|
375
376
|
config: resolvedConfig || config,
|
|
376
377
|
isDev: mode === "development",
|
|
377
378
|
isProd: mode === "production"
|
|
@@ -429,18 +430,18 @@ async function createServer(config = {}, options = {}) {
|
|
|
429
430
|
}
|
|
430
431
|
}
|
|
431
432
|
const server = await _vite.createServer.call(void 0,
|
|
432
|
-
|
|
433
|
+
_chunkPZX6I4JWcjs.mergeFarmViteConfig.call(void 0,
|
|
433
434
|
{
|
|
434
435
|
root: projectRoot,
|
|
435
436
|
css: shouldUseProjectPostcss ? void 0 : { postcss: { plugins: [] } },
|
|
436
437
|
plugins: [
|
|
437
|
-
|
|
438
|
+
_chunkPZX6I4JWcjs.createFarmThemeCssPlugin.call(void 0, finalConfig.theme, finalConfig.basePath),
|
|
438
439
|
...tailwindVitePlugin ? [tailwindVitePlugin] : [],
|
|
439
440
|
...rendererVitePlugins,
|
|
440
441
|
createDevDependencyStubsPlugin(),
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
442
|
+
_chunkPZX6I4JWcjs.farmI18nClientBridgePlugin.call(void 0, ),
|
|
443
|
+
_chunkPZX6I4JWcjs.farmServerOnlyEntriesPlugin.call(void 0, ),
|
|
444
|
+
_chunkPZX6I4JWcjs.farmPlugin.call(void 0, finalConfig, pluginManager),
|
|
444
445
|
_chunk22GUSVNJcjs.farmEnvironmentFunctionsPlugin.call(void 0, ),
|
|
445
446
|
createBrandingPlugin()
|
|
446
447
|
],
|
|
@@ -454,8 +455,8 @@ async function createServer(config = {}, options = {}) {
|
|
|
454
455
|
dedupe: [...finalConfig.renderer.dedupe || []]
|
|
455
456
|
},
|
|
456
457
|
optimizeDeps: {
|
|
457
|
-
...
|
|
458
|
-
|
|
458
|
+
..._chunkPZX6I4JWcjs.createFarmClientOptimizeDepsConfig.call(void 0,
|
|
459
|
+
_chunkPZX6I4JWcjs.createFarmClientOptimizeDepsEntries.call(void 0, projectRoot, _chunkY4YMF2NQcjs.getFarmAppDirectories.call(void 0, finalConfig)),
|
|
459
460
|
finalConfig.renderer
|
|
460
461
|
),
|
|
461
462
|
exclude: [
|
|
@@ -557,7 +558,7 @@ async function createServer(config = {}, options = {}) {
|
|
|
557
558
|
await step("Instrumentation shutdown", () => _optionalChain([instrumentation, 'optionalAccess', _15 => _15.shutdown, 'call', _16 => _16()]));
|
|
558
559
|
if (failures.length === 1) throw failures[0].error;
|
|
559
560
|
if (failures.length > 1) {
|
|
560
|
-
throw new (0,
|
|
561
|
+
throw new (0, _chunkPZX6I4JWcjs.FarmRuntimeShutdownError)(
|
|
561
562
|
`Dev server shutdown failed during ${failures.map(({ label }) => label).join(", ")}`,
|
|
562
563
|
failures.map(({ error }) => error)
|
|
563
564
|
);
|
|
@@ -722,4 +723,4 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, startDevServer, "startDevServer");
|
|
|
722
723
|
|
|
723
724
|
|
|
724
725
|
|
|
725
|
-
exports.DEFAULT_FARM_DEV_SERVER_PORT = DEFAULT_FARM_DEV_SERVER_PORT; exports.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT = _chunkT5CERMEHcjs.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT; exports.FARM_SERVER_QUERY_SYMBOL = _chunkZMN3H73Hcjs.FARM_SERVER_QUERY_SYMBOL; exports.FarmApp =
|
|
726
|
+
exports.DEFAULT_FARM_DEV_SERVER_PORT = DEFAULT_FARM_DEV_SERVER_PORT; exports.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT = _chunkT5CERMEHcjs.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT; exports.FARM_SERVER_QUERY_SYMBOL = _chunkZMN3H73Hcjs.FARM_SERVER_QUERY_SYMBOL; exports.FarmApp = _chunkPZX6I4JWcjs.FarmApp; exports.FarmDataCache = _chunkH6G5INWMcjs.FarmDataCache; exports.FarmEnvironmentError = _chunkW4E7WMXEcjs.FarmEnvironmentError; exports.RouteManager = _chunkPZX6I4JWcjs.RouteManager; exports.ServerActionRequestError = _chunkT5CERMEHcjs.ServerActionRequestError; exports.ServerRenderer = _chunkPZX6I4JWcjs.ServerRenderer; exports._runWithAfterNodeResponse = _chunkMQ3H6LT5cjs._runWithAfterNodeResponse; exports._runWithAfterRequest = _chunkMQ3H6LT5cjs._runWithAfterRequest; exports._withAfterNodeMiddleware = _chunkMQ3H6LT5cjs._withAfterNodeMiddleware; exports.after = _chunkMQ3H6LT5cjs.after; exports.applyFarmCacheInvalidationTargets = _chunkH6G5INWMcjs.applyFarmCacheInvalidationTargets; exports.applyFarmCacheInvalidations = _chunkZEG3OPIBcjs.applyFarmCacheInvalidations; exports.configureFarmCache = _chunkH6G5INWMcjs.configureFarmCache; exports.createClientOnlyFn = _chunkW4E7WMXEcjs.createClientOnlyFn; exports.createFarmApp = _chunkPZX6I4JWcjs.createFarmApp; exports.createFarmCacheInvalidationStream = _chunkH6G5INWMcjs.createFarmCacheInvalidationStream; exports.createFarmCacheKey = _chunkH6G5INWMcjs.createFarmCacheKey; exports.createFarmConfigResolutionPlugin = _chunkY4YMF2NQcjs.createFarmConfigResolutionPlugin; exports.createFarmStorage = _chunk4ZFL5GFNcjs.createFarmStorage; exports.createIsomorphicFn = _chunkW4E7WMXEcjs.createIsomorphicFn; exports.createPathCacheTag = _chunkH6G5INWMcjs.createPathCacheTag; exports.createRouteDataCacheKey = _chunkH6G5INWMcjs.createRouteDataCacheKey; exports.createRouteDataCacheTag = _chunkH6G5INWMcjs.createRouteDataCacheTag; exports.createServer = createServer; exports.createServerActionRequestErrorResponse = _chunkT5CERMEHcjs.createServerActionRequestErrorResponse; exports.createServerOnlyFn = _chunkW4E7WMXEcjs.createServerOnlyFn; exports.createServerQuery = _chunkZMN3H73Hcjs.createServerQuery; exports.createStorageClient = _chunk4ZFL5GFNcjs.createStorageClient; exports.databaseStorage = _chunk4ZFL5GFNcjs.databaseStorage; exports.defineCacheKey = _chunkH6G5INWMcjs.defineCacheKey; exports.defineConfig = _chunkPZX6I4JWcjs.defineConfig; exports.defineStorageClient = _chunk4ZFL5GFNcjs.defineStorageClient; exports.disposeStorage = _chunk4ZFL5GFNcjs.disposeStorage; exports.driverStorage = _chunk4ZFL5GFNcjs.driverStorage; exports.farmPlugin = _chunkPZX6I4JWcjs.farmPlugin; exports.fileExists = _chunk5QIKR7RRcjs.fileExists; exports.getCurrentRequest = _chunk5ZSWG4UXcjs.getCurrentRequest; exports.getFarmAppDirectories = _chunkY4YMF2NQcjs.getFarmAppDirectories; exports.getFarmDataCache = _chunkH6G5INWMcjs.getFarmDataCache; exports.getFarmLayerAliases = _chunkY4YMF2NQcjs.getFarmLayerAliases; exports.getFarmSourceRoots = _chunkY4YMF2NQcjs.getFarmSourceRoots; exports.getServerActionExecutionContext = _chunkT5CERMEHcjs.getServerActionExecutionContext; exports.getServerActionInvalidations = _chunkT5CERMEHcjs.getServerActionInvalidations; exports.getServerActionSignal = _chunkT5CERMEHcjs.getServerActionSignal; exports.getStorage = _chunk4ZFL5GFNcjs.getStorage; exports.getTheme = _chunkXWAWFQFScjs.getTheme; exports.getThemeSnapshot = _chunkXWAWFQFScjs.getThemeSnapshot; exports.globFiles = _chunk5QIKR7RRcjs.globFiles; exports.initStorage = _chunk4ZFL5GFNcjs.initStorage; exports.invalidate = _chunkH6G5INWMcjs.invalidate; exports.invalidateRouteData = _chunkH6G5INWMcjs.invalidateRouteData; exports.libsqlStorage = _chunk4ZFL5GFNcjs.libsqlStorage; exports.loadFarmConfigFile = _chunkY4YMF2NQcjs.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 = _chunkH6G5INWMcjs.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 = _chunkT5CERMEHcjs.prepareServerActionRequest; exports.redisStorage = _chunk4ZFL5GFNcjs.redisStorage; exports.resolveAppPath = _chunk5QIKR7RRcjs.resolveAppPath; exports.resolveFarmLayers = _chunkY4YMF2NQcjs.resolveFarmLayers; exports.resolveServerActionsConfig = _chunkT5CERMEHcjs.resolveServerActionsConfig; exports.resolveStorageRuntimeClient = _chunk4ZFL5GFNcjs.resolveStorageRuntimeClient; exports.revalidatePath = _chunkH6G5INWMcjs.revalidatePath; exports.revalidateTag = _chunkH6G5INWMcjs.revalidateTag; exports.runWithServerActionRequest = _chunkT5CERMEHcjs.runWithServerActionRequest; exports.s3Storage = _chunk4ZFL5GFNcjs.s3Storage; exports.sanitizeServerActionError = _chunkT5CERMEHcjs.sanitizeServerActionError; exports.segmentsToPattern = _chunk5QIKR7RRcjs.segmentsToPattern; exports.sendWebResponse = _chunkUQZ4AYTHcjs.sendWebResponse; exports.splitRoutePath = _chunk5QIKR7RRcjs.splitRoutePath; exports.sqliteStorage = _chunk4ZFL5GFNcjs.sqliteStorage; exports.startDevServer = startDevServer; exports.storageCacheAdapter = _chunkH6G5INWMcjs.storageCacheAdapter; exports.toPosixPath = _chunk5QIKR7RRcjs.toPosixPath; exports.toRootRelativeUrlPath = _chunk5QIKR7RRcjs.toRootRelativeUrlPath; exports.toViteModuleId = _chunk5QIKR7RRcjs.toViteModuleId; exports.unstable_cache = _chunkH6G5INWMcjs.unstable_cache; exports.updateTag = _chunkH6G5INWMcjs.updateTag; exports.upstashStorage = _chunk4ZFL5GFNcjs.upstashStorage; exports.validateServerActionRequest = _chunkT5CERMEHcjs.validateServerActionRequest; exports.vercelBlobStorage = _chunk4ZFL5GFNcjs.vercelBlobStorage; exports.vercelKVStorage = _chunk4ZFL5GFNcjs.vercelKVStorage;
|
package/dist/server.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { F as FarmApp, R as RouteManager, S as ServerRenderer, c as createFarmApp } from './app-
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
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-D_6nTit-.mjs';
|
|
2
|
+
import { G as FarmConfig } from './client-plugins-CWrhb1ir.mjs';
|
|
3
|
+
export { K as AppRoutePattern, ab as BuildOptions, a3 as ErrorBoundary, Y as ErrorProps, m as FarmAppContext, J as FarmComponentType, B as FarmContextFactory, V as FarmContextFactoryInput, W as FarmIsolatedClientHydrationMode, ag as FarmLayerEntry, ak as FarmLayerResolution, Q as FarmMigrationCommand, S as FarmMigrationsConfig, T as FarmMigrationsUserConfig, e as FarmRequest, f as FarmResponse, ai as FarmSourceRoot, a7 as GenerateStaticParams, a1 as Layout, $ as LayoutMetadataProps, a8 as LayoutModule, L as LayoutProps, a2 as Loading, X as LoadingProps, M as Metadata, a9 as MetadataJsonLd, _ as MetadataProps, af as MetadataRobots, ae as MetadataRobotsDirectives, C as MiddlewareProps, O as NitroPreset, a0 as Page, o as PageProps, Z as PagePropsWithMiddleware, N as PageRouteParams, P as ParsedRoute, q as PluginContextProps, aj as ResolveFarmLayersOptions, ah as ResolvedFarmLayer, U as ResolvedFarmMigrationsConfig, s as RouteModule, R as RouteSegment, ad as SSGCollectionResult, ac as SSGPage, aa as ServerAction, a5 as StaticPathParams, a4 as StaticPathPrimitive, a6 as StaticRouteParams, ap as createFarmConfigResolutionPlugin, I as defineConfig, H as farmPlugin, an as getFarmAppDirectories, ao as getFarmLayerAliases, am as getFarmSourceRoots, aq as loadFarmConfigFile, al as resolveFarmLayers } from './client-plugins-CWrhb1ir.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-DSPx34-A.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, applyFarmCacheInvalidations, 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
10
|
import './types-Z0aotQ8w.mjs';
|
|
11
|
-
export { g as getCurrentRequest } from './request-
|
|
11
|
+
export { g as getCurrentRequest } from './request-6AkmhEYE.mjs';
|
|
12
12
|
import { ServerResponse } from 'node:http';
|
|
13
13
|
export { getTheme, getThemeSnapshot } from './theme/server.mjs';
|
|
14
14
|
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';
|
|
@@ -16,7 +16,7 @@ export { FarmEnvironment, FarmEnvironmentError, FarmIsomorphicFnOptions, createC
|
|
|
16
16
|
export { e as FarmStorageBuiltinDriverConfig, F as FarmStorageClient, a as FarmStorageClientConfig, f as FarmStorageConfigObject, g as FarmStorageCustomDriverConfig, c as FarmStorageDatabaseConfig, h as FarmStorageDatabaseDriverName, b as FarmStorageLocalDriverConfig, j as FarmStorageMountConfig, k as FarmStorageMounts, i as FarmStorageRuntimeClient, d as FarmStorageUserConfig } from './types-Cc8l9IqS.mjs';
|
|
17
17
|
export { BuiltinDriverName, BuiltinDriverOptions, Driver, Storage, StorageMeta, StorageValue, TransactionOptions } from 'unstorage';
|
|
18
18
|
export { ConnectorName, ConnectorOptions, Database } from 'db0';
|
|
19
|
-
import './types-
|
|
19
|
+
import './types-DFbjpjXX.mjs';
|
|
20
20
|
import '@farming-labs/docs';
|
|
21
21
|
import './markdown.mjs';
|
|
22
22
|
import './workflows-CR9ex-gz.mjs';
|
|
@@ -38,13 +38,12 @@ import '@farming-labs/orm';
|
|
|
38
38
|
import './observability.mjs';
|
|
39
39
|
import '@opentelemetry/api';
|
|
40
40
|
import './env.mjs';
|
|
41
|
-
import './navigation-errors-Dvwpzaer.mjs';
|
|
42
41
|
import 'esbuild';
|
|
43
42
|
import './types-DQnyD3VD.mjs';
|
|
44
43
|
import './font.mjs';
|
|
45
44
|
import './island-CfGru1MO.mjs';
|
|
46
|
-
import './metadata-
|
|
47
|
-
import './render-plan-
|
|
45
|
+
import './metadata-CO9fRyyJ.mjs';
|
|
46
|
+
import './render-plan-LVy6sGQe.mjs';
|
|
48
47
|
import './runtime-AOJge4vQ.mjs';
|
|
49
48
|
import './resolver-DhW0CqZN.mjs';
|
|
50
49
|
|
package/dist/server.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { F as FarmApp, R as RouteManager, S as ServerRenderer, c as createFarmApp } from './app-
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
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-DAyPE-gr.js';
|
|
2
|
+
import { G as FarmConfig } from './client-plugins-DPf0qZey.js';
|
|
3
|
+
export { K as AppRoutePattern, ab as BuildOptions, a3 as ErrorBoundary, Y as ErrorProps, m as FarmAppContext, J as FarmComponentType, B as FarmContextFactory, V as FarmContextFactoryInput, W as FarmIsolatedClientHydrationMode, ag as FarmLayerEntry, ak as FarmLayerResolution, Q as FarmMigrationCommand, S as FarmMigrationsConfig, T as FarmMigrationsUserConfig, e as FarmRequest, f as FarmResponse, ai as FarmSourceRoot, a7 as GenerateStaticParams, a1 as Layout, $ as LayoutMetadataProps, a8 as LayoutModule, L as LayoutProps, a2 as Loading, X as LoadingProps, M as Metadata, a9 as MetadataJsonLd, _ as MetadataProps, af as MetadataRobots, ae as MetadataRobotsDirectives, C as MiddlewareProps, O as NitroPreset, a0 as Page, o as PageProps, Z as PagePropsWithMiddleware, N as PageRouteParams, P as ParsedRoute, q as PluginContextProps, aj as ResolveFarmLayersOptions, ah as ResolvedFarmLayer, U as ResolvedFarmMigrationsConfig, s as RouteModule, R as RouteSegment, ad as SSGCollectionResult, ac as SSGPage, aa as ServerAction, a5 as StaticPathParams, a4 as StaticPathPrimitive, a6 as StaticRouteParams, ap as createFarmConfigResolutionPlugin, I as defineConfig, H as farmPlugin, an as getFarmAppDirectories, ao as getFarmLayerAliases, am as getFarmSourceRoots, aq as loadFarmConfigFile, al as resolveFarmLayers } from './client-plugins-DPf0qZey.js';
|
|
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-Dvuny_08.js';
|
|
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.js';
|
|
6
6
|
export { CacheKeyFactory, DefinedCacheKey, FarmCacheAdapter, FarmCacheEntry, FarmCacheInvalidationStreamOptions, FarmCacheInvalidationTarget, FarmCacheOptions, FarmCacheSetOptions, FarmCacheStorage, FarmCacheUserConfig, FarmClientCacheUserConfig, FarmDataCache, GetFarmCacheEntryOptions, InferCacheKeyData, RevalidateTagProfile, RouteDataCacheKey, StorageFarmCacheAdapterOptions, applyFarmCacheInvalidationTargets, applyFarmCacheInvalidations, configureFarmCache, createFarmCacheInvalidationStream, createFarmCacheKey, createPathCacheTag, createRouteDataCacheKey, createRouteDataCacheTag, defineCacheKey, getFarmDataCache, invalidate, invalidateRouteData, normalizeRevalidatePath, revalidatePath, revalidateTag, storageCacheAdapter, unstable_cache, updateTag } from './cache.js';
|
|
7
7
|
export { AfterCallback, FarmAfterPlatformContext, _runWithAfterNodeResponse, _runWithAfterRequest, _withAfterNodeMiddleware, after } from './after.js';
|
|
8
8
|
export { FARM_SERVER_QUERY_SYMBOL, ServerQuery, ServerQueryKey, ServerQueryOptions, ServerQueryOutputOptions, ServerQueryStaleTime, createServerQuery } from './server-query.js';
|
|
9
9
|
import { ViteDevServer } from 'vite';
|
|
10
10
|
import './types-Z0aotQ8w.js';
|
|
11
|
-
export { g as getCurrentRequest } from './request-
|
|
11
|
+
export { g as getCurrentRequest } from './request-BYxlRqA9.js';
|
|
12
12
|
import { ServerResponse } from 'node:http';
|
|
13
13
|
export { getTheme, getThemeSnapshot } from './theme/server.js';
|
|
14
14
|
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.js';
|
|
@@ -16,7 +16,7 @@ export { FarmEnvironment, FarmEnvironmentError, FarmIsomorphicFnOptions, createC
|
|
|
16
16
|
export { e as FarmStorageBuiltinDriverConfig, F as FarmStorageClient, a as FarmStorageClientConfig, f as FarmStorageConfigObject, g as FarmStorageCustomDriverConfig, c as FarmStorageDatabaseConfig, h as FarmStorageDatabaseDriverName, b as FarmStorageLocalDriverConfig, j as FarmStorageMountConfig, k as FarmStorageMounts, i as FarmStorageRuntimeClient, d as FarmStorageUserConfig } from './types-Cc8l9IqS.js';
|
|
17
17
|
export { BuiltinDriverName, BuiltinDriverOptions, Driver, Storage, StorageMeta, StorageValue, TransactionOptions } from 'unstorage';
|
|
18
18
|
export { ConnectorName, ConnectorOptions, Database } from 'db0';
|
|
19
|
-
import './types-
|
|
19
|
+
import './types-DFbjpjXX.js';
|
|
20
20
|
import '@farming-labs/docs';
|
|
21
21
|
import './markdown.js';
|
|
22
22
|
import './workflows-CR9ex-gz.js';
|
|
@@ -38,13 +38,12 @@ import '@farming-labs/orm';
|
|
|
38
38
|
import './observability.js';
|
|
39
39
|
import '@opentelemetry/api';
|
|
40
40
|
import './env.js';
|
|
41
|
-
import './navigation-errors-Dvwpzaer.js';
|
|
42
41
|
import 'esbuild';
|
|
43
42
|
import './types-DQnyD3VD.js';
|
|
44
43
|
import './font.js';
|
|
45
44
|
import './island-CfGru1MO.js';
|
|
46
|
-
import './metadata-
|
|
47
|
-
import './render-plan-
|
|
45
|
+
import './metadata-zY9wltwH.js';
|
|
46
|
+
import './render-plan-DHF0GeWo.js';
|
|
48
47
|
import './runtime-BirxPwbZ.js';
|
|
49
48
|
import './resolver-PPEeiJ6M.js';
|
|
50
49
|
|
package/dist/server.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import "./chunk-WD4YXVLV.mjs";
|
|
|
15
15
|
import {
|
|
16
16
|
loadConfig,
|
|
17
17
|
resolveConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RMIJFZU3.mjs";
|
|
19
19
|
import "./chunk-XZNTNMHT.mjs";
|
|
20
20
|
import {
|
|
21
21
|
loadFarmInstrumentation,
|
|
@@ -40,8 +40,8 @@ import {
|
|
|
40
40
|
farmPlugin,
|
|
41
41
|
farmServerOnlyEntriesPlugin,
|
|
42
42
|
mergeFarmViteConfig
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-K6MG3SEG.mjs";
|
|
44
|
+
import "./chunk-NRS46D4L.mjs";
|
|
45
45
|
import {
|
|
46
46
|
readSchemaTables
|
|
47
47
|
} from "./chunk-HALDNTIV.mjs";
|
|
@@ -64,10 +64,11 @@ import {
|
|
|
64
64
|
getTheme,
|
|
65
65
|
getThemeSnapshot
|
|
66
66
|
} from "./chunk-WBIH66JK.mjs";
|
|
67
|
+
import "./chunk-VVBO3QH7.mjs";
|
|
67
68
|
import "./chunk-TVGP4BBZ.mjs";
|
|
68
69
|
import "./chunk-FZC7EEPM.mjs";
|
|
69
70
|
import "./chunk-JBSVKMC5.mjs";
|
|
70
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-GHFS7RUB.mjs";
|
|
71
72
|
import {
|
|
72
73
|
createFarmConfigResolutionPlugin,
|
|
73
74
|
getFarmAppDirectories,
|
|
@@ -137,7 +138,7 @@ import "./chunk-SEJ5N6SL.mjs";
|
|
|
137
138
|
import "./chunk-JLCQGPXE.mjs";
|
|
138
139
|
import "./chunk-FP2INE7H.mjs";
|
|
139
140
|
import "./chunk-44SYJEG3.mjs";
|
|
140
|
-
import "./chunk-
|
|
141
|
+
import "./chunk-TIKNUAU7.mjs";
|
|
141
142
|
import "./chunk-NRVGEI5I.mjs";
|
|
142
143
|
import "./chunk-5TISYEQF.mjs";
|
|
143
144
|
import "./chunk-R3DS7A2T.mjs";
|
|
@@ -147,8 +148,8 @@ import {
|
|
|
147
148
|
_withAfterNodeMiddleware,
|
|
148
149
|
after
|
|
149
150
|
} from "./chunk-IOEH4VWN.mjs";
|
|
150
|
-
import "./chunk-
|
|
151
|
-
import "./chunk-
|
|
151
|
+
import "./chunk-CQHFU55R.mjs";
|
|
152
|
+
import "./chunk-YOYF2E4U.mjs";
|
|
152
153
|
import "./chunk-CU625VAY.mjs";
|
|
153
154
|
import "./chunk-JNGIWIY6.mjs";
|
|
154
155
|
import "./chunk-FV45CKBC.mjs";
|
|
@@ -158,12 +159,12 @@ import "./chunk-SYGGPS4A.mjs";
|
|
|
158
159
|
import "./chunk-W3B4PKAW.mjs";
|
|
159
160
|
import "./chunk-5WI2S4CO.mjs";
|
|
160
161
|
import "./chunk-EA5K5BKU.mjs";
|
|
161
|
-
import "./chunk-
|
|
162
|
+
import "./chunk-2J7W2WND.mjs";
|
|
162
163
|
import "./chunk-XF7Q24PF.mjs";
|
|
163
164
|
import {
|
|
164
165
|
createCliColors
|
|
165
166
|
} from "./chunk-I2BHUNBU.mjs";
|
|
166
|
-
import "./chunk-
|
|
167
|
+
import "./chunk-43FMW62B.mjs";
|
|
167
168
|
import "./chunk-YMCXWPWK.mjs";
|
|
168
169
|
import {
|
|
169
170
|
fileExists,
|
|
@@ -188,7 +189,7 @@ import {
|
|
|
188
189
|
} from "./chunk-Z2RZJZIZ.mjs";
|
|
189
190
|
import {
|
|
190
191
|
FARM_VERSION
|
|
191
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-F7E2AZKQ.mjs";
|
|
192
193
|
import "./chunk-54UPOYFS.mjs";
|
|
193
194
|
import "./chunk-WNSDDRNU.mjs";
|
|
194
195
|
import "./chunk-JPLUGGRV.mjs";
|
|
@@ -197,7 +198,7 @@ import "./chunk-O7BH5O46.mjs";
|
|
|
197
198
|
import "./chunk-EMLAPBEM.mjs";
|
|
198
199
|
import "./chunk-7LTCDQRS.mjs";
|
|
199
200
|
import "./chunk-IXUY2F5U.mjs";
|
|
200
|
-
import "./chunk-
|
|
201
|
+
import "./chunk-2M435BUE.mjs";
|
|
201
202
|
import "./chunk-SKNL7VA2.mjs";
|
|
202
203
|
import "./chunk-2A3EQHXX.mjs";
|
|
203
204
|
import "./chunk-JNZ4TDWM.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { M as Metadata } from './client-plugins-
|
|
1
|
+
import { M as Metadata } from './client-plugins-CWrhb1ir.mjs';
|
|
2
2
|
import { F as FarmClientPluginManager } from './lifecycle-DK06VuKP.mjs';
|
|
3
3
|
import { F as FarmI18nClientSnapshot } from './types-Z0aotQ8w.mjs';
|
|
4
4
|
import { F as FarmIslandStrategy } from './island-CfGru1MO.mjs';
|
|
5
|
-
import { F as FarmRouteRenderPlan } from './render-plan-
|
|
5
|
+
import { F as FarmRouteRenderPlan } from './render-plan-LVy6sGQe.mjs';
|
|
6
6
|
|
|
7
7
|
type NavigationMetadata = (Metadata & Record<string, any>) | undefined;
|
|
8
8
|
|
|
@@ -231,4 +231,4 @@ declare function pushState(state: unknown, href?: string): void;
|
|
|
231
231
|
declare function replaceState(state: unknown, href?: string): void;
|
|
232
232
|
declare function readPageState<TState = unknown>(): TState | null;
|
|
233
233
|
|
|
234
|
-
export { type FarmNavigationState as F, SPARouter as S, type FarmNavigateOptions as a,
|
|
234
|
+
export { type FarmNavigationState as F, SPARouter as S, type FarmNavigateOptions as a, type FarmNavigationBlockerContext as b, pushState as c, replaceState as d, type FarmNavigationBlocker as e, type FarmNavigationListener as f, getRouter as g, type FarmNavigationLocation as h, type FarmViewTransitionMode as i, navigateTo as n, prefetch as p, readPageState as r };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { M as Metadata } from './client-plugins-
|
|
1
|
+
import { M as Metadata } from './client-plugins-DPf0qZey.js';
|
|
2
2
|
import { F as FarmClientPluginManager } from './lifecycle-DK06VuKP.js';
|
|
3
3
|
import { F as FarmI18nClientSnapshot } from './types-Z0aotQ8w.js';
|
|
4
4
|
import { F as FarmIslandStrategy } from './island-CfGru1MO.js';
|
|
5
|
-
import { F as FarmRouteRenderPlan } from './render-plan-
|
|
5
|
+
import { F as FarmRouteRenderPlan } from './render-plan-DHF0GeWo.js';
|
|
6
6
|
|
|
7
7
|
type NavigationMetadata = (Metadata & Record<string, any>) | undefined;
|
|
8
8
|
|
|
@@ -231,4 +231,4 @@ declare function pushState(state: unknown, href?: string): void;
|
|
|
231
231
|
declare function replaceState(state: unknown, href?: string): void;
|
|
232
232
|
declare function readPageState<TState = unknown>(): TState | null;
|
|
233
233
|
|
|
234
|
-
export { type FarmNavigationState as F, SPARouter as S, type FarmNavigateOptions as a,
|
|
234
|
+
export { type FarmNavigationState as F, SPARouter as S, type FarmNavigateOptions as a, type FarmNavigationBlockerContext as b, pushState as c, replaceState as d, type FarmNavigationBlocker as e, type FarmNavigationListener as f, getRouter as g, type FarmNavigationLocation as h, type FarmViewTransitionMode as i, navigateTo as n, prefetch as p, readPageState as r };
|
package/dist/testing.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkDX4VKYAJcjs = require('./chunk-DX4VKYAJ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -14,8 +14,8 @@ var _chunkT5CERMEHcjs = require('./chunk-T5CERMEH.cjs');
|
|
|
14
14
|
|
|
15
15
|
var _chunk6QQDAAAZcjs = require('./chunk-6QQDAAAZ.cjs');
|
|
16
16
|
require('./chunk-SVRTJOUF.cjs');
|
|
17
|
-
require('./chunk-
|
|
18
|
-
require('./chunk-
|
|
17
|
+
require('./chunk-B3WK4DTX.cjs');
|
|
18
|
+
require('./chunk-N4RLRSWW.cjs');
|
|
19
19
|
require('./chunk-2CQ74SP6.cjs');
|
|
20
20
|
require('./chunk-UJ2C4ICS.cjs');
|
|
21
21
|
require('./chunk-IQXFRNY2.cjs');
|
|
@@ -27,9 +27,9 @@ require('./chunk-I4J452B7.cjs');
|
|
|
27
27
|
require('./chunk-WMAPPDMM.cjs');
|
|
28
28
|
require('./chunk-TKJZFIML.cjs');
|
|
29
29
|
require('./chunk-6V4TDWEC.cjs');
|
|
30
|
-
require('./chunk-
|
|
30
|
+
require('./chunk-SOR334EB.cjs');
|
|
31
31
|
require('./chunk-EM6SBQKM.cjs');
|
|
32
|
-
require('./chunk-
|
|
32
|
+
require('./chunk-BMWDEBXO.cjs');
|
|
33
33
|
require('./chunk-HBTUGXHS.cjs');
|
|
34
34
|
require('./chunk-5QIKR7RR.cjs');
|
|
35
35
|
|
|
@@ -123,7 +123,7 @@ function createFarmTestHarness(options = {}) {
|
|
|
123
123
|
},
|
|
124
124
|
routeContext
|
|
125
125
|
);
|
|
126
|
-
const routeModule =
|
|
126
|
+
const routeModule = _chunkDX4VKYAJcjs.createRouteModuleFromProgrammaticPage.call(void 0, route);
|
|
127
127
|
const resolveProps = routeModule.__farmResolveRouteProps;
|
|
128
128
|
const resolvedProps = resolveProps ? await resolveProps(rawProps) : { ...rawProps, search, searchParams: Promise.resolve(search) };
|
|
129
129
|
const canonicalPath = readCanonicalPath(resolvedProps);
|
package/dist/testing.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { B as FarmContextFactory, C as MiddlewareProps, q as PluginContextProps, s as RouteModule } from './client-plugins-CWrhb1ir.mjs';
|
|
3
3
|
import './types-Z0aotQ8w.mjs';
|
|
4
4
|
import { ServerFn } from './server-fn.mjs';
|
|
5
5
|
import { a as APIRouteParams } from './route-pattern-W-SsJGSp.mjs';
|
|
@@ -19,7 +19,7 @@ import 'unstorage';
|
|
|
19
19
|
import './schema.mjs';
|
|
20
20
|
import './integration-api-BbaiokCC.mjs';
|
|
21
21
|
import '@farming-labs/orm';
|
|
22
|
-
import './types-
|
|
22
|
+
import './types-DFbjpjXX.mjs';
|
|
23
23
|
import '@farming-labs/docs';
|
|
24
24
|
import './observability.mjs';
|
|
25
25
|
import '@opentelemetry/api';
|
|
@@ -27,7 +27,6 @@ import 'vite';
|
|
|
27
27
|
import './workflows-CR9ex-gz.mjs';
|
|
28
28
|
import './cron.mjs';
|
|
29
29
|
import './env.mjs';
|
|
30
|
-
import './navigation-errors-Dvwpzaer.mjs';
|
|
31
30
|
import './server-action-security.mjs';
|
|
32
31
|
import './server-fn-error-DDh14a0V.mjs';
|
|
33
32
|
import 'esbuild';
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { B as FarmContextFactory, C as MiddlewareProps, q as PluginContextProps, s as RouteModule } from './client-plugins-DPf0qZey.js';
|
|
3
3
|
import './types-Z0aotQ8w.js';
|
|
4
4
|
import { ServerFn } from './server-fn.js';
|
|
5
5
|
import { a as APIRouteParams } from './route-pattern-W-SsJGSp.js';
|
|
@@ -19,7 +19,7 @@ import 'unstorage';
|
|
|
19
19
|
import './schema.js';
|
|
20
20
|
import './integration-api-BbaiokCC.js';
|
|
21
21
|
import '@farming-labs/orm';
|
|
22
|
-
import './types-
|
|
22
|
+
import './types-DFbjpjXX.js';
|
|
23
23
|
import '@farming-labs/docs';
|
|
24
24
|
import './observability.js';
|
|
25
25
|
import '@opentelemetry/api';
|
|
@@ -27,7 +27,6 @@ import 'vite';
|
|
|
27
27
|
import './workflows-CR9ex-gz.js';
|
|
28
28
|
import './cron.js';
|
|
29
29
|
import './env.js';
|
|
30
|
-
import './navigation-errors-Dvwpzaer.js';
|
|
31
30
|
import './server-action-security.js';
|
|
32
31
|
import './server-fn-error-DDh14a0V.js';
|
|
33
32
|
import 'esbuild';
|
package/dist/testing.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRouteModuleFromProgrammaticPage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QMV4QELL.mjs";
|
|
4
4
|
import {
|
|
5
5
|
buildFarmRoutePath,
|
|
6
6
|
matchFarmRoute
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
withFarmRouteContext
|
|
15
15
|
} from "./chunk-SEJ5N6SL.mjs";
|
|
16
16
|
import "./chunk-FP2INE7H.mjs";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-CQHFU55R.mjs";
|
|
18
|
+
import "./chunk-YOYF2E4U.mjs";
|
|
19
19
|
import "./chunk-CU625VAY.mjs";
|
|
20
20
|
import "./chunk-JNGIWIY6.mjs";
|
|
21
21
|
import "./chunk-FV45CKBC.mjs";
|
|
@@ -27,9 +27,9 @@ import "./chunk-SYGGPS4A.mjs";
|
|
|
27
27
|
import "./chunk-W3B4PKAW.mjs";
|
|
28
28
|
import "./chunk-5WI2S4CO.mjs";
|
|
29
29
|
import "./chunk-EA5K5BKU.mjs";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-2J7W2WND.mjs";
|
|
31
31
|
import "./chunk-XF7Q24PF.mjs";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-43FMW62B.mjs";
|
|
33
33
|
import "./chunk-YMCXWPWK.mjs";
|
|
34
34
|
import "./chunk-KI3MESHB.mjs";
|
|
35
35
|
import {
|
|
@@ -92,6 +92,14 @@ interface FarmDocsResolvedConfig {
|
|
|
92
92
|
contentDir?: string;
|
|
93
93
|
configPath?: string;
|
|
94
94
|
config: FarmDocsRuntimeConfig & Pick<DocsConfig, "entry">;
|
|
95
|
+
/**
|
|
96
|
+
* `config` before it was made serializable: icons and other React elements, MDX
|
|
97
|
+
* components, and callbacks intact. Only the in-process adapter runtime reads it;
|
|
98
|
+
* whatever Farm serializes uses `config`.
|
|
99
|
+
*/
|
|
100
|
+
runtimeConfig?: FarmDocsRuntimeConfig & Pick<DocsConfig, "entry">;
|
|
101
|
+
/** The serializable docs settings from `farm.config.ts`, applied over the config file. */
|
|
102
|
+
configOverrides?: Partial<DocsConfig>;
|
|
95
103
|
}
|
|
96
104
|
|
|
97
105
|
export type { FarmDocsResolvedConfig as F, FarmDocsUserConfig as a, FarmDocsConfigInput as b, FarmDocsNavigationConfig as c, FarmDocsSocialImageConfig as d, FarmDocsSocialImageFonts as e, FarmDocsSidebarItem as f };
|
|
@@ -92,6 +92,14 @@ interface FarmDocsResolvedConfig {
|
|
|
92
92
|
contentDir?: string;
|
|
93
93
|
configPath?: string;
|
|
94
94
|
config: FarmDocsRuntimeConfig & Pick<DocsConfig, "entry">;
|
|
95
|
+
/**
|
|
96
|
+
* `config` before it was made serializable: icons and other React elements, MDX
|
|
97
|
+
* components, and callbacks intact. Only the in-process adapter runtime reads it;
|
|
98
|
+
* whatever Farm serializes uses `config`.
|
|
99
|
+
*/
|
|
100
|
+
runtimeConfig?: FarmDocsRuntimeConfig & Pick<DocsConfig, "entry">;
|
|
101
|
+
/** The serializable docs settings from `farm.config.ts`, applied over the config file. */
|
|
102
|
+
configOverrides?: Partial<DocsConfig>;
|
|
95
103
|
}
|
|
96
104
|
|
|
97
105
|
export type { FarmDocsResolvedConfig as F, FarmDocsUserConfig as a, FarmDocsConfigInput as b, FarmDocsNavigationConfig as c, FarmDocsSocialImageConfig as d, FarmDocsSocialImageFonts as e, FarmDocsSidebarItem as f };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as ParsedRoute, R as RouteSegment } from './client-plugins-
|
|
1
|
+
import { P as ParsedRoute, R as RouteSegment } from './client-plugins-CWrhb1ir.mjs';
|
|
2
2
|
|
|
3
3
|
declare function parseRoutePath(filePath: string): ParsedRoute;
|
|
4
4
|
declare function segmentsToPattern(segments: RouteSegment[]): string;
|