@farm.js/core 0.1.21 → 0.1.23
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 +3 -2
- package/dist/agent-runtime.d.ts +3 -2
- package/dist/api/route-manager.cjs +3 -2
- package/dist/api/route-manager.d.mts +3 -2
- package/dist/api/route-manager.d.ts +3 -2
- package/dist/api/route-manager.mjs +2 -1
- package/dist/api.cjs +4 -3
- package/dist/api.d.mts +4 -3
- package/dist/api.d.ts +4 -3
- package/dist/api.mjs +3 -2
- package/dist/{app-DAyPE-gr.d.ts → app-BV-7wV5q.d.ts} +10 -3
- package/dist/{app-D_6nTit-.d.mts → app-BZDWwwFa.d.mts} +10 -3
- package/dist/app-markdown.d.mts +4 -3
- package/dist/app-markdown.d.ts +4 -3
- package/dist/chunk-2VQKKQ6D.mjs +51 -0
- package/dist/{chunk-EGJDUF4Q.mjs → chunk-3ATMYLLJ.mjs} +6 -12
- package/dist/{chunk-HSDL2AUR.mjs → chunk-47H7VENP.mjs} +20 -32
- package/dist/{chunk-RWXZKZXB.cjs → chunk-4DKZ6JR3.cjs} +302 -339
- package/dist/{chunk-PUCUVI7K.mjs → chunk-72VJRKJD.mjs} +1 -1
- package/dist/{chunk-5L6NBNHI.mjs → chunk-7LU4IOXQ.mjs} +156 -193
- package/dist/{chunk-RMIJFZU3.mjs → chunk-BDJNP7AQ.mjs} +10 -14
- package/dist/{chunk-OLYK7EAK.mjs → chunk-DAATZTKJ.mjs} +14 -0
- package/dist/{chunk-YP5JZ4LF.cjs → chunk-DNLQMFER.cjs} +15 -19
- package/dist/{chunk-XFFQSD2F.cjs → chunk-DW34V5SM.cjs} +7 -7
- package/dist/{chunk-PKO4FCTL.mjs → chunk-EHUZ2MKO.mjs} +1 -1
- package/dist/{chunk-3NM6SRI6.mjs → chunk-F3VB7ONA.mjs} +10 -8
- package/dist/{chunk-L7ARWZYT.cjs → chunk-III667SJ.cjs} +496 -303
- package/dist/chunk-IK6LVLKC.cjs +51 -0
- package/dist/{chunk-B3WK4DTX.cjs → chunk-IMBMOEWT.cjs} +5 -1
- package/dist/{chunk-IILNZK5G.mjs → chunk-JHWOVJ3M.mjs} +46 -62
- package/dist/{chunk-TKNSDBBN.cjs → chunk-K3F2E6GS.cjs} +20 -1
- package/dist/{chunk-RTHIVJ2G.cjs → chunk-KCMTCM6I.cjs} +7 -8
- package/dist/{chunk-ZE6ONQ5R.cjs → chunk-LQIRVSBY.cjs} +30 -40
- package/dist/chunk-LYLEZIG3.cjs +73 -0
- package/dist/{chunk-NBAHDVOJ.cjs → chunk-LYM7HY34.cjs} +20 -32
- package/dist/{chunk-K6FNHVDR.cjs → chunk-MPEYMSCF.cjs} +6 -12
- package/dist/{chunk-TFAXUHWX.cjs → chunk-PSV6XKPO.cjs} +15 -1
- package/dist/{chunk-BHJUZ64B.cjs → chunk-QTBEAKCJ.cjs} +7 -7
- package/dist/{chunk-J6JRB2ER.mjs → chunk-S67OYZU7.mjs} +1 -1
- package/dist/chunk-SFGWNC43.mjs +97 -0
- package/dist/{chunk-AYJR42WX.cjs → chunk-UFDV5N3C.cjs} +2 -2
- package/dist/chunk-UYIHRDE4.cjs +97 -0
- package/dist/{chunk-Y4YMF2NQ.cjs → chunk-VPTDD5XF.cjs} +46 -62
- package/dist/{chunk-53G3OLTA.mjs → chunk-VPY755R2.mjs} +256 -63
- package/dist/{chunk-NRS46D4L.mjs → chunk-VVJCWBIE.mjs} +3 -3
- package/dist/{chunk-Q2TUENW2.cjs → chunk-VXCA7RZP.cjs} +1 -1
- package/dist/{chunk-CQHFU55R.mjs → chunk-WNUBR4CA.mjs} +5 -1
- package/dist/{chunk-CIAGU2X4.cjs → chunk-XSIRSMAS.cjs} +10 -8
- package/dist/{chunk-W7MZXRXM.mjs → chunk-YGMK6ESJ.mjs} +20 -30
- package/dist/chunk-YOZYCI6Z.mjs +73 -0
- package/dist/{chunk-HLCDYJY7.mjs → chunk-YQVSHTMR.mjs} +20 -1
- package/dist/{chunk-F5D4XEAS.mjs → chunk-ZZSRYEYU.mjs} +7 -8
- package/dist/{client-plugins-CWrhb1ir.d.mts → client-plugins-B_XzCegf.d.mts} +11 -9
- package/dist/{client-plugins-DPf0qZey.d.ts → client-plugins-CKsXQfXY.d.ts} +11 -9
- package/dist/client-plugins.d.mts +3 -2
- package/dist/client-plugins.d.ts +3 -2
- package/dist/client.d.mts +7 -6
- package/dist/client.d.ts +7 -6
- package/dist/config.d.mts +3 -2
- package/dist/config.d.ts +3 -2
- package/dist/{devtools-MTB5SA2B.mjs → devtools-OY4SNU3P.mjs} +5 -4
- package/dist/{devtools-R6MDDAZK.cjs → devtools-UHRSZ7VA.cjs} +6 -5
- package/dist/docs.cjs +10 -7
- package/dist/docs.mjs +9 -6
- package/dist/index.cjs +24 -21
- package/dist/index.d.mts +14 -13
- package/dist/index.d.ts +14 -13
- package/dist/index.mjs +19 -16
- package/dist/instrumentation.cjs +3 -2
- package/dist/instrumentation.mjs +2 -1
- package/dist/integrations.d.mts +3 -2
- package/dist/integrations.d.ts +3 -2
- package/dist/internal/app-markdown-runtime.d.mts +3 -2
- package/dist/internal/app-markdown-runtime.d.ts +3 -2
- package/dist/internal/build-runtime.cjs +18 -15
- package/dist/internal/build-runtime.d.mts +5 -4
- package/dist/internal/build-runtime.d.ts +5 -4
- package/dist/internal/build-runtime.mjs +17 -14
- package/dist/internal/cli-runtime.cjs +11 -8
- package/dist/internal/cli-runtime.mjs +10 -7
- 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 +3 -2
- package/dist/internal/compression-runtime.d.ts +3 -2
- package/dist/internal/config-runtime.cjs +6 -5
- package/dist/internal/config-runtime.d.mts +4 -3
- package/dist/internal/config-runtime.d.ts +4 -3
- package/dist/internal/config-runtime.mjs +5 -4
- package/dist/internal/metadata-image-runtime.cjs +3 -2
- package/dist/internal/metadata-image-runtime.mjs +2 -1
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.d.mts +9 -8
- package/dist/internal/production-runtime.d.ts +9 -8
- package/dist/layers-4PNE2HOY.cjs +18 -0
- package/dist/{layers-CJKSJGLN.mjs → layers-BRQF5ETU.mjs} +2 -1
- package/dist/{manager-NPG43N46.mjs → manager-RT733VRK.mjs} +2 -2
- package/dist/{manager-G4B2IPYE.cjs → manager-XZ5TX7AO.cjs} +3 -3
- package/dist/{metadata-CO9fRyyJ.d.mts → metadata-B08w4EYV.d.mts} +1 -1
- package/dist/{metadata-zY9wltwH.d.ts → metadata-IQEblkZp.d.ts} +1 -1
- package/dist/middleware.d.mts +5 -4
- package/dist/middleware.d.ts +5 -4
- package/dist/navigation.d.mts +6 -5
- package/dist/navigation.d.ts +6 -5
- package/dist/{nitro-TSGDUJMN.cjs → nitro-KQDU7CFE.cjs} +2 -2
- package/dist/{nitro-4LFVTT24.mjs → nitro-ZKLGOTVY.mjs} +1 -1
- package/dist/node-module-bundle-L5L7JCZ4.mjs +11 -0
- package/dist/node-module-bundle-VAFZOXMJ.cjs +11 -0
- package/dist/plugin.cjs +12 -10
- package/dist/plugin.d.mts +3 -2
- package/dist/plugin.d.ts +3 -2
- package/dist/plugin.mjs +11 -9
- package/dist/{production-runtime-CywsHwnG.d.mts → production-runtime-C3bGFEaM.d.mts} +1 -1
- package/dist/{production-runtime-lkfwujwK.d.ts → production-runtime-DRSOkc-d.d.ts} +1 -1
- package/dist/{render-plan-LVy6sGQe.d.mts → render-plan-B6CKNl4e.d.mts} +1 -1
- package/dist/{render-plan-DHF0GeWo.d.ts → render-plan-CCFuMLNS.d.ts} +1 -1
- package/dist/renderer-client.d.mts +5 -4
- package/dist/renderer-client.d.ts +5 -4
- package/dist/renderer.cjs +4 -2
- package/dist/renderer.d.mts +9 -1
- package/dist/renderer.d.ts +9 -1
- package/dist/renderer.mjs +3 -1
- package/dist/{request-6AkmhEYE.d.mts → request-DgD1XsTx.d.mts} +1 -1
- package/dist/{request-BYxlRqA9.d.ts → request-Dn6VURbE.d.ts} +1 -1
- package/dist/request.d.mts +4 -3
- package/dist/request.d.ts +4 -3
- package/dist/{route-rendering-Dd8Jmml7.d.mts → route-rendering-76A5I_kE.d.mts} +1 -1
- package/dist/{route-rendering-CWaKiUbS.d.ts → route-rendering-LAmQEdyG.d.ts} +1 -1
- package/dist/{router-B2m4fvve.d.ts → router-BSOOGya2.d.ts} +1 -1
- package/dist/{router-xwEE112q.d.mts → router-CnrRSa9d.d.mts} +1 -1
- package/dist/routes.d.mts +3 -2
- package/dist/routes.d.ts +3 -2
- package/dist/server-plugins.d.mts +4 -3
- package/dist/server-plugins.d.ts +4 -3
- package/dist/server.cjs +43 -36
- package/dist/server.d.mts +9 -8
- package/dist/server.d.ts +9 -8
- package/dist/server.mjs +27 -20
- package/dist/{spa-router-Y8rrXTVK.d.ts → spa-router-BMrSsG5b.d.ts} +2 -2
- package/dist/{spa-router-DVEHQnWo.d.mts → spa-router-DnYhWCvI.d.mts} +2 -2
- package/dist/testing.cjs +2 -1
- package/dist/testing.d.mts +3 -2
- package/dist/testing.d.ts +3 -2
- package/dist/testing.mjs +2 -1
- package/dist/{utils-DSPx34-A.d.mts → utils-ABkktwku.d.mts} +1 -1
- package/dist/{utils-Dvuny_08.d.ts → utils-C3GguS-Q.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +12 -10
- package/dist/vite.d.mts +3 -2
- package/dist/vite.d.ts +3 -2
- package/dist/vite.mjs +11 -9
- package/dist/workflows.cjs +2 -2
- package/dist/workflows.mjs +1 -1
- package/package.json +27 -13
- package/dist/layers-E4WPJNY5.cjs +0 -17
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-Dn6VURbE.js';
|
|
2
|
+
import './client-plugins-CKsXQfXY.js';
|
|
3
3
|
import './lifecycle-DK06VuKP.js';
|
|
4
4
|
import './route-DOEpbyWZ.js';
|
|
5
5
|
import './endpoint-1zA994xL.js';
|
|
@@ -25,7 +25,8 @@ import './cron.js';
|
|
|
25
25
|
import './env.js';
|
|
26
26
|
import './server-action-security.js';
|
|
27
27
|
import './server-fn-error-DDh14a0V.js';
|
|
28
|
-
import '
|
|
28
|
+
import 'rolldown/utils';
|
|
29
|
+
import 'rolldown';
|
|
29
30
|
import './image-config-Duob7wER.js';
|
|
30
31
|
import './types-Z0aotQ8w.js';
|
|
31
32
|
import './server-fn.js';
|
|
@@ -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-BMrSsG5b.js';
|
|
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.mjs';
|
|
3
|
-
import { b as FarmNavigationBlockerContext, F as FarmNavigationState } from './spa-router-
|
|
3
|
+
import { b as FarmNavigationBlockerContext, F as FarmNavigationState } from './spa-router-DnYhWCvI.mjs';
|
|
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-B_XzCegf.mjs';
|
|
2
2
|
import { ComponentType } from 'react';
|
|
3
3
|
import { RouteDataCacheKey } from './cache.mjs';
|
|
4
4
|
import { ServerFn } from './server-fn.mjs';
|
|
@@ -24,7 +24,8 @@ import './cron.mjs';
|
|
|
24
24
|
import './env.mjs';
|
|
25
25
|
import './server-action-security.mjs';
|
|
26
26
|
import './server-fn-error-DDh14a0V.mjs';
|
|
27
|
-
import '
|
|
27
|
+
import 'rolldown/utils';
|
|
28
|
+
import 'rolldown';
|
|
28
29
|
import './image-config-Duob7wER.mjs';
|
|
29
30
|
import './types-Z0aotQ8w.mjs';
|
|
30
31
|
import './server-query.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-CKsXQfXY.js';
|
|
2
2
|
import { ComponentType } from 'react';
|
|
3
3
|
import { RouteDataCacheKey } from './cache.js';
|
|
4
4
|
import { ServerFn } from './server-fn.js';
|
|
@@ -24,7 +24,8 @@ import './cron.js';
|
|
|
24
24
|
import './env.js';
|
|
25
25
|
import './server-action-security.js';
|
|
26
26
|
import './server-fn-error-DDh14a0V.js';
|
|
27
|
-
import '
|
|
27
|
+
import 'rolldown/utils';
|
|
28
|
+
import 'rolldown';
|
|
28
29
|
import './image-config-Duob7wER.js';
|
|
29
30
|
import './types-Z0aotQ8w.js';
|
|
30
31
|
import './server-query.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
export { bN as FarmPluginLifecycle, bW as FarmPluginRuntimeEndpoint, bX as FarmPluginRuntimeEndpointEvent, bO as FarmRequestPluginContext, bP as FarmRequestStore } from './client-plugins-
|
|
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-B_XzCegf.mjs';
|
|
2
|
+
export { bN as FarmPluginLifecycle, bW as FarmPluginRuntimeEndpoint, bX as FarmPluginRuntimeEndpointEvent, bO as FarmRequestPluginContext, bP as FarmRequestStore } from './client-plugins-B_XzCegf.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';
|
|
@@ -27,7 +27,8 @@ import './cron.mjs';
|
|
|
27
27
|
import './env.mjs';
|
|
28
28
|
import './server-action-security.mjs';
|
|
29
29
|
import './server-fn-error-DDh14a0V.mjs';
|
|
30
|
-
import '
|
|
30
|
+
import 'rolldown/utils';
|
|
31
|
+
import 'rolldown';
|
|
31
32
|
import './image-config-Duob7wER.mjs';
|
|
32
33
|
import './server-fn.mjs';
|
|
33
34
|
import './server-query.mjs';
|
package/dist/server-plugins.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
export { bN as FarmPluginLifecycle, bW as FarmPluginRuntimeEndpoint, bX as FarmPluginRuntimeEndpointEvent, bO as FarmRequestPluginContext, bP as FarmRequestStore } from './client-plugins-
|
|
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-CKsXQfXY.js';
|
|
2
|
+
export { bN as FarmPluginLifecycle, bW as FarmPluginRuntimeEndpoint, bX as FarmPluginRuntimeEndpointEvent, bO as FarmRequestPluginContext, bP as FarmRequestStore } from './client-plugins-CKsXQfXY.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';
|
|
@@ -27,7 +27,8 @@ import './cron.js';
|
|
|
27
27
|
import './env.js';
|
|
28
28
|
import './server-action-security.js';
|
|
29
29
|
import './server-fn-error-DDh14a0V.js';
|
|
30
|
-
import '
|
|
30
|
+
import 'rolldown/utils';
|
|
31
|
+
import 'rolldown';
|
|
31
32
|
import './image-config-Duob7wER.js';
|
|
32
33
|
import './server-fn.js';
|
|
33
34
|
import './server-query.js';
|
package/dist/server.cjs
CHANGED
|
@@ -15,13 +15,16 @@ var _chunkZMN3H73Hcjs = require('./chunk-ZMN3H73H.cjs');
|
|
|
15
15
|
require('./chunk-G3HRIVEY.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
+
var _chunkIK6LVLKCcjs = require('./chunk-IK6LVLKC.cjs');
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
var _chunkDNLQMFERcjs = require('./chunk-DNLQMFER.cjs');
|
|
20
23
|
require('./chunk-KR6CKSXT.cjs');
|
|
21
24
|
|
|
22
25
|
|
|
23
26
|
|
|
24
|
-
var
|
|
27
|
+
var _chunkKCMTCM6Icjs = require('./chunk-KCMTCM6I.cjs');
|
|
25
28
|
|
|
26
29
|
|
|
27
30
|
var _chunk2SJ4RQ6Pcjs = require('./chunk-2SJ4RQ6P.cjs');
|
|
@@ -41,17 +44,19 @@ require('./chunk-SK35NQKK.cjs');
|
|
|
41
44
|
|
|
42
45
|
|
|
43
46
|
|
|
44
|
-
|
|
45
|
-
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
var _chunkIII667SJcjs = require('./chunk-III667SJ.cjs');
|
|
50
|
+
require('./chunk-DW34V5SM.cjs');
|
|
46
51
|
|
|
47
52
|
|
|
48
53
|
var _chunkE2ROOWQCcjs = require('./chunk-E2ROOWQC.cjs');
|
|
49
54
|
require('./chunk-JSROZYYO.cjs');
|
|
50
|
-
require('./chunk-
|
|
55
|
+
require('./chunk-XSIRSMAS.cjs');
|
|
51
56
|
require('./chunk-OYDRPBBV.cjs');
|
|
52
57
|
require('./chunk-SYQ3MOWW.cjs');
|
|
53
58
|
require('./chunk-CXP5U3RW.cjs');
|
|
54
|
-
require('./chunk-
|
|
59
|
+
require('./chunk-K3F2E6GS.cjs');
|
|
55
60
|
require('./chunk-FXUUWYAX.cjs');
|
|
56
61
|
require('./chunk-MWSK6C4J.cjs');
|
|
57
62
|
require('./chunk-OWOUTKIJ.cjs');
|
|
@@ -77,11 +82,11 @@ require('./chunk-Q5B3KJBP.cjs');
|
|
|
77
82
|
|
|
78
83
|
|
|
79
84
|
|
|
80
|
-
var
|
|
85
|
+
var _chunkVPTDD5XFcjs = require('./chunk-VPTDD5XF.cjs');
|
|
81
86
|
|
|
82
87
|
|
|
83
88
|
|
|
84
|
-
var
|
|
89
|
+
var _chunkPSV6XKPOcjs = require('./chunk-PSV6XKPO.cjs');
|
|
85
90
|
require('./chunk-ISTFC3MZ.cjs');
|
|
86
91
|
require('./chunk-YFPGHF5F.cjs');
|
|
87
92
|
require('./chunk-6EXBPJ24.cjs');
|
|
@@ -103,7 +108,8 @@ require('./chunk-I5YBCWQ6.cjs');
|
|
|
103
108
|
require('./chunk-AH7HOAQ3.cjs');
|
|
104
109
|
require('./chunk-OHY2ZWUG.cjs');
|
|
105
110
|
require('./chunk-BBVSJVBZ.cjs');
|
|
106
|
-
require('./chunk-
|
|
111
|
+
require('./chunk-UYIHRDE4.cjs');
|
|
112
|
+
require('./chunk-MPEYMSCF.cjs');
|
|
107
113
|
require('./chunk-JDNHKPTD.cjs');
|
|
108
114
|
require('./chunk-CMGMGHUZ.cjs');
|
|
109
115
|
|
|
@@ -149,11 +155,12 @@ require('./chunk-4PPEPOZZ.cjs');
|
|
|
149
155
|
|
|
150
156
|
|
|
151
157
|
var _chunkMQ3H6LT5cjs = require('./chunk-MQ3H6LT5.cjs');
|
|
152
|
-
require('./chunk-
|
|
158
|
+
require('./chunk-IMBMOEWT.cjs');
|
|
153
159
|
require('./chunk-N4RLRSWW.cjs');
|
|
154
160
|
require('./chunk-2CQ74SP6.cjs');
|
|
155
161
|
require('./chunk-UJ2C4ICS.cjs');
|
|
156
162
|
require('./chunk-IQXFRNY2.cjs');
|
|
163
|
+
require('./chunk-LYLEZIG3.cjs');
|
|
157
164
|
require('./chunk-4PNUXIVU.cjs');
|
|
158
165
|
require('./chunk-WPYFSQKK.cjs');
|
|
159
166
|
require('./chunk-I4J452B7.cjs');
|
|
@@ -190,7 +197,7 @@ require('./chunk-QNPEUFHQ.cjs');
|
|
|
190
197
|
var _chunkUQZ4AYTHcjs = require('./chunk-UQZ4AYTH.cjs');
|
|
191
198
|
|
|
192
199
|
|
|
193
|
-
var
|
|
200
|
+
var _chunkVXCA7RZPcjs = require('./chunk-VXCA7RZP.cjs');
|
|
194
201
|
require('./chunk-OYEUREB6.cjs');
|
|
195
202
|
require('./chunk-7W3CPVXS.cjs');
|
|
196
203
|
require('./chunk-NZKJGRB3.cjs');
|
|
@@ -289,7 +296,7 @@ function createBrandingPlugin() {
|
|
|
289
296
|
const pc = _chunkM2L4MYDQcjs.createCliColors.call(void 0, );
|
|
290
297
|
console.log("");
|
|
291
298
|
console.log(
|
|
292
|
-
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${
|
|
299
|
+
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${_chunkVXCA7RZPcjs.FARM_VERSION}`)} ${pc.dim(`ready in ${elapsed}ms`)}`
|
|
293
300
|
);
|
|
294
301
|
console.log("");
|
|
295
302
|
console.log(
|
|
@@ -354,15 +361,15 @@ async function createServer(config = {}, options = {}) {
|
|
|
354
361
|
try {
|
|
355
362
|
const root = config.root || process.cwd();
|
|
356
363
|
const mode = process.env.NODE_ENV === "production" ? "production" : "development";
|
|
357
|
-
const userConfig = await
|
|
358
|
-
const resolvedConfig = userConfig ? await
|
|
364
|
+
const userConfig = await _chunkDNLQMFERcjs.loadConfig.call(void 0, root, void 0, mode);
|
|
365
|
+
const resolvedConfig = userConfig ? await _chunkDNLQMFERcjs.resolveConfig.call(void 0, userConfig, mode) : null;
|
|
359
366
|
const instrumentationConfig = resolvedConfig || config;
|
|
360
367
|
const instrumentationRoot = instrumentationConfig.root || root;
|
|
361
|
-
const instrumentationFile =
|
|
368
|
+
const instrumentationFile = _chunkKCMTCM6Icjs.resolveFarmInstrumentationFile.call(void 0,
|
|
362
369
|
instrumentationRoot,
|
|
363
370
|
instrumentationConfig.srcDir || "src"
|
|
364
371
|
);
|
|
365
|
-
const instrumentationModule = await
|
|
372
|
+
const instrumentationModule = await _chunkKCMTCM6Icjs.loadFarmInstrumentation.call(void 0,
|
|
366
373
|
instrumentationFile,
|
|
367
374
|
instrumentationRoot
|
|
368
375
|
);
|
|
@@ -372,7 +379,7 @@ async function createServer(config = {}, options = {}) {
|
|
|
372
379
|
runtime: "nodejs"
|
|
373
380
|
});
|
|
374
381
|
await instrumentation.start();
|
|
375
|
-
pluginManager = new (0,
|
|
382
|
+
pluginManager = new (0, _chunkIII667SJcjs.PluginManager)({
|
|
376
383
|
config: resolvedConfig || config,
|
|
377
384
|
isDev: mode === "development",
|
|
378
385
|
isProd: mode === "production"
|
|
@@ -408,9 +415,16 @@ async function createServer(config = {}, options = {}) {
|
|
|
408
415
|
await pluginManager.runHookParallel("init");
|
|
409
416
|
let finalConfig = resolvedConfig || config;
|
|
410
417
|
finalConfig = await pluginManager.runHookSerial("config", finalConfig);
|
|
411
|
-
finalConfig.renderer =
|
|
418
|
+
finalConfig.renderer = _chunkPSV6XKPOcjs.resolveFarmRenderer.call(void 0, finalConfig.renderer);
|
|
412
419
|
const projectRoot = finalConfig.root || process.cwd();
|
|
413
|
-
|
|
420
|
+
finalConfig.images = _chunkIII667SJcjs.resolveFarmImageProviderForRuntime.call(void 0, finalConfig.images, {
|
|
421
|
+
root: projectRoot,
|
|
422
|
+
dev: true
|
|
423
|
+
});
|
|
424
|
+
if (finalConfig.docs && (finalConfig.docs === true || finalConfig.docs.enabled !== false)) {
|
|
425
|
+
await _chunkIK6LVLKCcjs.loadFarmDocsEngine.call(void 0, );
|
|
426
|
+
}
|
|
427
|
+
const rendererVitePlugins = await _chunkPSV6XKPOcjs.loadFarmRendererVitePlugins.call(void 0,
|
|
414
428
|
finalConfig.renderer,
|
|
415
429
|
projectRoot,
|
|
416
430
|
{ ssr: true }
|
|
@@ -420,28 +434,21 @@ async function createServer(config = {}, options = {}) {
|
|
|
420
434
|
if (shouldUseProjectPostcss) {
|
|
421
435
|
_chunk5QIKR7RRcjs.logger.info("\u{1F4E6} Using project PostCSS/Tailwind configuration");
|
|
422
436
|
} else {
|
|
423
|
-
|
|
424
|
-
const tailwindcss = (await import("@tailwindcss/vite")).default;
|
|
425
|
-
tailwindVitePlugin = tailwindcss();
|
|
426
|
-
} catch (error) {
|
|
427
|
-
_chunk5QIKR7RRcjs.logger.warn(
|
|
428
|
-
`Tailwind plugin auto-enable failed; continuing without it: ${error.message}`
|
|
429
|
-
);
|
|
430
|
-
}
|
|
437
|
+
tailwindVitePlugin = await _chunkIII667SJcjs.loadTailwindVitePlugin.call(void 0, );
|
|
431
438
|
}
|
|
432
439
|
const server = await _vite.createServer.call(void 0,
|
|
433
|
-
|
|
440
|
+
_chunkIII667SJcjs.mergeFarmViteConfig.call(void 0,
|
|
434
441
|
{
|
|
435
442
|
root: projectRoot,
|
|
436
443
|
css: shouldUseProjectPostcss ? void 0 : { postcss: { plugins: [] } },
|
|
437
444
|
plugins: [
|
|
438
|
-
|
|
445
|
+
_chunkIII667SJcjs.createFarmThemeCssPlugin.call(void 0, finalConfig.theme, finalConfig.basePath),
|
|
439
446
|
...tailwindVitePlugin ? [tailwindVitePlugin] : [],
|
|
440
447
|
...rendererVitePlugins,
|
|
441
448
|
createDevDependencyStubsPlugin(),
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
449
|
+
_chunkIII667SJcjs.farmI18nClientBridgePlugin.call(void 0, ),
|
|
450
|
+
_chunkIII667SJcjs.farmServerOnlyEntriesPlugin.call(void 0, ),
|
|
451
|
+
_chunkIII667SJcjs.farmPlugin.call(void 0, finalConfig, pluginManager),
|
|
445
452
|
_chunk22GUSVNJcjs.farmEnvironmentFunctionsPlugin.call(void 0, ),
|
|
446
453
|
createBrandingPlugin()
|
|
447
454
|
],
|
|
@@ -455,8 +462,8 @@ async function createServer(config = {}, options = {}) {
|
|
|
455
462
|
dedupe: [...finalConfig.renderer.dedupe || []]
|
|
456
463
|
},
|
|
457
464
|
optimizeDeps: {
|
|
458
|
-
...
|
|
459
|
-
|
|
465
|
+
..._chunkIII667SJcjs.createFarmClientOptimizeDepsConfig.call(void 0,
|
|
466
|
+
_chunkIII667SJcjs.createFarmClientOptimizeDepsEntries.call(void 0, projectRoot, _chunkVPTDD5XFcjs.getFarmAppDirectories.call(void 0, finalConfig)),
|
|
460
467
|
finalConfig.renderer
|
|
461
468
|
),
|
|
462
469
|
exclude: [
|
|
@@ -558,7 +565,7 @@ async function createServer(config = {}, options = {}) {
|
|
|
558
565
|
await step("Instrumentation shutdown", () => _optionalChain([instrumentation, 'optionalAccess', _15 => _15.shutdown, 'call', _16 => _16()]));
|
|
559
566
|
if (failures.length === 1) throw failures[0].error;
|
|
560
567
|
if (failures.length > 1) {
|
|
561
|
-
throw new (0,
|
|
568
|
+
throw new (0, _chunkIII667SJcjs.FarmRuntimeShutdownError)(
|
|
562
569
|
`Dev server shutdown failed during ${failures.map(({ label }) => label).join(", ")}`,
|
|
563
570
|
failures.map(({ error }) => error)
|
|
564
571
|
);
|
|
@@ -723,4 +730,4 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, startDevServer, "startDevServer");
|
|
|
723
730
|
|
|
724
731
|
|
|
725
732
|
|
|
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 =
|
|
733
|
+
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 = _chunkIII667SJcjs.FarmApp; exports.FarmDataCache = _chunkH6G5INWMcjs.FarmDataCache; exports.FarmEnvironmentError = _chunkW4E7WMXEcjs.FarmEnvironmentError; exports.RouteManager = _chunkIII667SJcjs.RouteManager; exports.ServerActionRequestError = _chunkT5CERMEHcjs.ServerActionRequestError; exports.ServerRenderer = _chunkIII667SJcjs.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 = _chunkIII667SJcjs.createFarmApp; exports.createFarmCacheInvalidationStream = _chunkH6G5INWMcjs.createFarmCacheInvalidationStream; exports.createFarmCacheKey = _chunkH6G5INWMcjs.createFarmCacheKey; exports.createFarmConfigResolutionPlugin = _chunkVPTDD5XFcjs.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 = _chunkIII667SJcjs.defineConfig; exports.defineStorageClient = _chunk4ZFL5GFNcjs.defineStorageClient; exports.disposeStorage = _chunk4ZFL5GFNcjs.disposeStorage; exports.driverStorage = _chunk4ZFL5GFNcjs.driverStorage; exports.farmPlugin = _chunkIII667SJcjs.farmPlugin; exports.fileExists = _chunk5QIKR7RRcjs.fileExists; exports.getCurrentRequest = _chunk5ZSWG4UXcjs.getCurrentRequest; exports.getFarmAppDirectories = _chunkVPTDD5XFcjs.getFarmAppDirectories; exports.getFarmDataCache = _chunkH6G5INWMcjs.getFarmDataCache; exports.getFarmLayerAliases = _chunkVPTDD5XFcjs.getFarmLayerAliases; exports.getFarmSourceRoots = _chunkVPTDD5XFcjs.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 = _chunkVPTDD5XFcjs.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 = _chunkVPTDD5XFcjs.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 { G as FarmConfig } from './client-plugins-
|
|
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-
|
|
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-BZDWwwFa.mjs';
|
|
2
|
+
import { G as FarmConfig } from './client-plugins-B_XzCegf.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-B_XzCegf.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-ABkktwku.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-DgD1XsTx.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';
|
|
@@ -38,12 +38,13 @@ import '@farming-labs/orm';
|
|
|
38
38
|
import './observability.mjs';
|
|
39
39
|
import '@opentelemetry/api';
|
|
40
40
|
import './env.mjs';
|
|
41
|
-
import '
|
|
41
|
+
import 'rolldown/utils';
|
|
42
|
+
import 'rolldown';
|
|
42
43
|
import './types-DQnyD3VD.mjs';
|
|
43
44
|
import './font.mjs';
|
|
44
45
|
import './island-CfGru1MO.mjs';
|
|
45
|
-
import './metadata-
|
|
46
|
-
import './render-plan-
|
|
46
|
+
import './metadata-B08w4EYV.mjs';
|
|
47
|
+
import './render-plan-B6CKNl4e.mjs';
|
|
47
48
|
import './runtime-AOJge4vQ.mjs';
|
|
48
49
|
import './resolver-DhW0CqZN.mjs';
|
|
49
50
|
|
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 { G as FarmConfig } from './client-plugins-
|
|
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-
|
|
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-BV-7wV5q.js';
|
|
2
|
+
import { G as FarmConfig } from './client-plugins-CKsXQfXY.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-CKsXQfXY.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-C3GguS-Q.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-Dn6VURbE.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';
|
|
@@ -38,12 +38,13 @@ import '@farming-labs/orm';
|
|
|
38
38
|
import './observability.js';
|
|
39
39
|
import '@opentelemetry/api';
|
|
40
40
|
import './env.js';
|
|
41
|
-
import '
|
|
41
|
+
import 'rolldown/utils';
|
|
42
|
+
import 'rolldown';
|
|
42
43
|
import './types-DQnyD3VD.js';
|
|
43
44
|
import './font.js';
|
|
44
45
|
import './island-CfGru1MO.js';
|
|
45
|
-
import './metadata-
|
|
46
|
-
import './render-plan-
|
|
46
|
+
import './metadata-IQEblkZp.js';
|
|
47
|
+
import './render-plan-CCFuMLNS.js';
|
|
47
48
|
import './runtime-BirxPwbZ.js';
|
|
48
49
|
import './resolver-PPEeiJ6M.js';
|
|
49
50
|
|
package/dist/server.mjs
CHANGED
|
@@ -12,15 +12,18 @@ import {
|
|
|
12
12
|
createServerQuery
|
|
13
13
|
} from "./chunk-WD5PNSOB.mjs";
|
|
14
14
|
import "./chunk-WD4YXVLV.mjs";
|
|
15
|
+
import {
|
|
16
|
+
loadFarmDocsEngine
|
|
17
|
+
} from "./chunk-2VQKKQ6D.mjs";
|
|
15
18
|
import {
|
|
16
19
|
loadConfig,
|
|
17
20
|
resolveConfig
|
|
18
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-BDJNP7AQ.mjs";
|
|
19
22
|
import "./chunk-XZNTNMHT.mjs";
|
|
20
23
|
import {
|
|
21
24
|
loadFarmInstrumentation,
|
|
22
25
|
resolveFarmInstrumentationFile
|
|
23
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ZZSRYEYU.mjs";
|
|
24
27
|
import {
|
|
25
28
|
createFarmInstrumentationLifecycle
|
|
26
29
|
} from "./chunk-H77NVNJ2.mjs";
|
|
@@ -39,18 +42,20 @@ import {
|
|
|
39
42
|
farmI18nClientBridgePlugin,
|
|
40
43
|
farmPlugin,
|
|
41
44
|
farmServerOnlyEntriesPlugin,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
loadTailwindVitePlugin,
|
|
46
|
+
mergeFarmViteConfig,
|
|
47
|
+
resolveFarmImageProviderForRuntime
|
|
48
|
+
} from "./chunk-VPY755R2.mjs";
|
|
49
|
+
import "./chunk-VVJCWBIE.mjs";
|
|
45
50
|
import {
|
|
46
51
|
readSchemaTables
|
|
47
52
|
} from "./chunk-HALDNTIV.mjs";
|
|
48
53
|
import "./chunk-ZMSZZXOR.mjs";
|
|
49
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-F3VB7ONA.mjs";
|
|
50
55
|
import "./chunk-PGQBL5DN.mjs";
|
|
51
56
|
import "./chunk-DAO7JGTS.mjs";
|
|
52
57
|
import "./chunk-BOYNDCZL.mjs";
|
|
53
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-YQVSHTMR.mjs";
|
|
54
59
|
import "./chunk-F6XEGFHO.mjs";
|
|
55
60
|
import "./chunk-SLQCDJSO.mjs";
|
|
56
61
|
import "./chunk-XAXTTBUT.mjs";
|
|
@@ -76,11 +81,11 @@ import {
|
|
|
76
81
|
getFarmSourceRoots,
|
|
77
82
|
loadFarmConfigFile,
|
|
78
83
|
resolveFarmLayers
|
|
79
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-JHWOVJ3M.mjs";
|
|
80
85
|
import {
|
|
81
86
|
loadFarmRendererVitePlugins,
|
|
82
87
|
resolveFarmRenderer
|
|
83
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-DAATZTKJ.mjs";
|
|
84
89
|
import "./chunk-7BC6GAL7.mjs";
|
|
85
90
|
import "./chunk-G2KY33I6.mjs";
|
|
86
91
|
import "./chunk-YHOCRI4H.mjs";
|
|
@@ -102,7 +107,8 @@ import "./chunk-MVUREHPN.mjs";
|
|
|
102
107
|
import "./chunk-N255VYFP.mjs";
|
|
103
108
|
import "./chunk-FA2W42OV.mjs";
|
|
104
109
|
import "./chunk-OFEY6KHO.mjs";
|
|
105
|
-
import "./chunk-
|
|
110
|
+
import "./chunk-SFGWNC43.mjs";
|
|
111
|
+
import "./chunk-3ATMYLLJ.mjs";
|
|
106
112
|
import "./chunk-2UC36WAC.mjs";
|
|
107
113
|
import "./chunk-ONUEYC6N.mjs";
|
|
108
114
|
import {
|
|
@@ -148,11 +154,12 @@ import {
|
|
|
148
154
|
_withAfterNodeMiddleware,
|
|
149
155
|
after
|
|
150
156
|
} from "./chunk-IOEH4VWN.mjs";
|
|
151
|
-
import "./chunk-
|
|
157
|
+
import "./chunk-WNUBR4CA.mjs";
|
|
152
158
|
import "./chunk-YOYF2E4U.mjs";
|
|
153
159
|
import "./chunk-CU625VAY.mjs";
|
|
154
160
|
import "./chunk-JNGIWIY6.mjs";
|
|
155
161
|
import "./chunk-FV45CKBC.mjs";
|
|
162
|
+
import "./chunk-YOZYCI6Z.mjs";
|
|
156
163
|
import "./chunk-XP777LRD.mjs";
|
|
157
164
|
import "./chunk-I6XDAKWQ.mjs";
|
|
158
165
|
import "./chunk-SYGGPS4A.mjs";
|
|
@@ -189,7 +196,7 @@ import {
|
|
|
189
196
|
} from "./chunk-Z2RZJZIZ.mjs";
|
|
190
197
|
import {
|
|
191
198
|
FARM_VERSION
|
|
192
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-EHUZ2MKO.mjs";
|
|
193
200
|
import "./chunk-54UPOYFS.mjs";
|
|
194
201
|
import "./chunk-WNSDDRNU.mjs";
|
|
195
202
|
import "./chunk-JPLUGGRV.mjs";
|
|
@@ -409,6 +416,13 @@ async function createServer(config = {}, options = {}) {
|
|
|
409
416
|
finalConfig = await pluginManager.runHookSerial("config", finalConfig);
|
|
410
417
|
finalConfig.renderer = resolveFarmRenderer(finalConfig.renderer);
|
|
411
418
|
const projectRoot = finalConfig.root || process.cwd();
|
|
419
|
+
finalConfig.images = resolveFarmImageProviderForRuntime(finalConfig.images, {
|
|
420
|
+
root: projectRoot,
|
|
421
|
+
dev: true
|
|
422
|
+
});
|
|
423
|
+
if (finalConfig.docs && (finalConfig.docs === true || finalConfig.docs.enabled !== false)) {
|
|
424
|
+
await loadFarmDocsEngine();
|
|
425
|
+
}
|
|
412
426
|
const rendererVitePlugins = await loadFarmRendererVitePlugins(
|
|
413
427
|
finalConfig.renderer,
|
|
414
428
|
projectRoot,
|
|
@@ -419,14 +433,7 @@ async function createServer(config = {}, options = {}) {
|
|
|
419
433
|
if (shouldUseProjectPostcss) {
|
|
420
434
|
logger.info("\u{1F4E6} Using project PostCSS/Tailwind configuration");
|
|
421
435
|
} else {
|
|
422
|
-
|
|
423
|
-
const tailwindcss = (await import("@tailwindcss/vite")).default;
|
|
424
|
-
tailwindVitePlugin = tailwindcss();
|
|
425
|
-
} catch (error) {
|
|
426
|
-
logger.warn(
|
|
427
|
-
`Tailwind plugin auto-enable failed; continuing without it: ${error.message}`
|
|
428
|
-
);
|
|
429
|
-
}
|
|
436
|
+
tailwindVitePlugin = await loadTailwindVitePlugin();
|
|
430
437
|
}
|
|
431
438
|
const server = await createViteServer(
|
|
432
439
|
mergeFarmViteConfig(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { M as Metadata } from './client-plugins-
|
|
1
|
+
import { M as Metadata } from './client-plugins-CKsXQfXY.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-CCFuMLNS.js';
|
|
6
6
|
|
|
7
7
|
type NavigationMetadata = (Metadata & Record<string, any>) | undefined;
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { M as Metadata } from './client-plugins-
|
|
1
|
+
import { M as Metadata } from './client-plugins-B_XzCegf.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-B6CKNl4e.mjs';
|
|
6
6
|
|
|
7
7
|
type NavigationMetadata = (Metadata & Record<string, any>) | undefined;
|
|
8
8
|
|
package/dist/testing.cjs
CHANGED
|
@@ -14,11 +14,12 @@ 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-
|
|
17
|
+
require('./chunk-IMBMOEWT.cjs');
|
|
18
18
|
require('./chunk-N4RLRSWW.cjs');
|
|
19
19
|
require('./chunk-2CQ74SP6.cjs');
|
|
20
20
|
require('./chunk-UJ2C4ICS.cjs');
|
|
21
21
|
require('./chunk-IQXFRNY2.cjs');
|
|
22
|
+
require('./chunk-LYLEZIG3.cjs');
|
|
22
23
|
|
|
23
24
|
|
|
24
25
|
var _chunk4PNUXIVUcjs = require('./chunk-4PNUXIVU.cjs');
|
package/dist/testing.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { B as FarmContextFactory, C as MiddlewareProps, q as PluginContextProps, s as RouteModule } from './client-plugins-
|
|
2
|
+
import { B as FarmContextFactory, C as MiddlewareProps, q as PluginContextProps, s as RouteModule } from './client-plugins-B_XzCegf.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';
|
|
@@ -29,7 +29,8 @@ import './cron.mjs';
|
|
|
29
29
|
import './env.mjs';
|
|
30
30
|
import './server-action-security.mjs';
|
|
31
31
|
import './server-fn-error-DDh14a0V.mjs';
|
|
32
|
-
import '
|
|
32
|
+
import 'rolldown/utils';
|
|
33
|
+
import 'rolldown';
|
|
33
34
|
import './image-config-Duob7wER.mjs';
|
|
34
35
|
import './server-query.mjs';
|
|
35
36
|
import './types-DQnyD3VD.mjs';
|