@farm.js/core 0.1.18 → 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.cjs +4 -4
- package/dist/app-markdown.d.mts +3 -4
- package/dist/app-markdown.d.ts +3 -4
- package/dist/app-markdown.mjs +3 -3
- 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-KPNVGRBL.mjs → chunk-5V37LKBG.mjs} +105 -41
- package/dist/chunk-75WGQVQA.cjs +46 -0
- package/dist/{chunk-ZCNJKLA2.mjs → chunk-7BC6GAL7.mjs} +1 -1
- package/dist/{chunk-J2OP5GG3.cjs → chunk-A777V5WU.cjs} +28 -28
- package/dist/{chunk-NWOD6NIT.cjs → chunk-A7T6JZNI.cjs} +1 -1
- package/dist/{chunk-E2BMSZ2W.cjs → chunk-AH7HOAQ3.cjs} +2 -2
- package/dist/{chunk-AFOD3LYZ.cjs → chunk-B3WK4DTX.cjs} +10 -9
- package/dist/{chunk-TWGMSEHX.cjs → chunk-BBVSJVBZ.cjs} +88 -13
- 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-AWRISO2H.cjs → chunk-E2ROOWQC.cjs} +30 -4
- package/dist/{chunk-3XG26Z3J.mjs → chunk-F7E2AZKQ.mjs} +1 -1
- package/dist/{chunk-7WPA7GBZ.mjs → chunk-GHFS7RUB.mjs} +1 -1
- package/dist/{chunk-UN5GHC5V.cjs → chunk-GQFSCBKJ.cjs} +249 -185
- package/dist/{chunk-NZ2JVBT2.mjs → chunk-GZ3ZPTQV.mjs} +2 -2
- package/dist/{chunk-DHDVMXYK.mjs → chunk-HALDNTIV.mjs} +30 -4
- package/dist/{chunk-5QOEPUYE.mjs → chunk-HSDL2AUR.mjs} +1 -1
- package/dist/{chunk-BSTRERPP.cjs → chunk-I5YBCWQ6.cjs} +2 -2
- package/dist/{chunk-TYQUSXUG.cjs → chunk-ISTFC3MZ.cjs} +4 -4
- package/dist/{chunk-RKQVJN2O.mjs → chunk-JIKGGIOL.mjs} +1 -1
- package/dist/{chunk-GYKJCFTS.mjs → chunk-K6MG3SEG.mjs} +124 -82
- package/dist/{chunk-OXSIH4D6.cjs → chunk-KNPRCKXK.cjs} +6 -1
- package/dist/{chunk-TNBAYAWO.mjs → chunk-L4DVIHOC.mjs} +1 -1
- package/dist/{chunk-XWAYMDLB.mjs → chunk-MVUREHPN.mjs} +1 -1
- package/dist/{chunk-6VQIKZZO.mjs → chunk-N255VYFP.mjs} +1 -1
- package/dist/{chunk-GNEO2XOF.cjs → chunk-NBAHDVOJ.cjs} +4 -4
- package/dist/{chunk-EN7WTEAY.mjs → chunk-NRS46D4L.mjs} +2 -2
- package/dist/{chunk-A72YEUZ3.mjs → chunk-OCE65DDM.mjs} +1 -1
- package/dist/{chunk-SXHV42UQ.mjs → chunk-OFEY6KHO.mjs} +88 -13
- package/dist/{chunk-OIEOCXKG.cjs → chunk-OYDRPBBV.cjs} +2 -2
- package/dist/{chunk-76DG3LF3.mjs → chunk-PGQBL5DN.mjs} +1 -1
- package/dist/{chunk-UDBJCUPA.mjs → chunk-PUCUVI7K.mjs} +11 -7
- package/dist/{chunk-IKNRN4VS.cjs → chunk-PZX6I4JW.cjs} +462 -420
- package/dist/{chunk-GDSHDTJ4.cjs → chunk-Q5B3KJBP.cjs} +2 -2
- package/dist/{chunk-TSWW5BVH.mjs → chunk-QMV4QELL.mjs} +1 -1
- package/dist/{chunk-QGVJVSNX.mjs → chunk-RMIJFZU3.mjs} +28 -4
- 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-UTBVHYS3.mjs → chunk-W7MZXRXM.mjs} +20 -5
- package/dist/{chunk-Y53ZSFN6.cjs → chunk-WM6HL7E7.cjs} +4 -3
- package/dist/{chunk-WZMNW2IW.cjs → chunk-XFFQSD2F.cjs} +4 -4
- package/dist/{chunk-62YJ2IEB.cjs → chunk-XI3GWPUS.cjs} +23 -20
- package/dist/{chunk-KVFPGF2M.cjs → chunk-YJJLXIIS.cjs} +7 -7
- package/dist/{chunk-NV3A5DXM.cjs → chunk-YP5JZ4LF.cjs} +42 -18
- package/dist/{chunk-B4CH33IG.cjs → chunk-ZE6ONQ5R.cjs} +39 -24
- 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-UFVTMQX5.mjs → devtools-MTB5SA2B.mjs} +5 -5
- package/dist/{devtools-OUIPHVV6.cjs → devtools-R6MDDAZK.cjs} +9 -9
- package/dist/docs.cjs +9 -8
- package/dist/docs.d.mts +2 -2
- package/dist/docs.d.ts +2 -2
- package/dist/docs.mjs +8 -7
- package/dist/index.cjs +29 -28
- package/dist/index.d.mts +14 -14
- package/dist/index.d.ts +14 -14
- package/dist/index.mjs +28 -27
- package/dist/integrations.d.mts +2 -3
- package/dist/integrations.d.ts +2 -3
- package/dist/internal/app-markdown-runtime.cjs +3 -3
- package/dist/internal/app-markdown-runtime.d.mts +2 -3
- package/dist/internal/app-markdown-runtime.d.ts +2 -3
- package/dist/internal/app-markdown-runtime.mjs +2 -2
- package/dist/internal/build-runtime.cjs +22 -21
- package/dist/internal/build-runtime.d.mts +4 -5
- package/dist/internal/build-runtime.d.ts +4 -5
- package/dist/internal/build-runtime.mjs +21 -20
- package/dist/internal/cli-runtime.cjs +12 -12
- package/dist/internal/cli-runtime.mjs +11 -11
- 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 +6 -6
- package/dist/internal/config-runtime.d.mts +3 -4
- package/dist/internal/config-runtime.d.ts +3 -4
- package/dist/internal/config-runtime.mjs +5 -5
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +5 -5
- package/dist/internal/production-runtime.d.mts +8 -9
- package/dist/internal/production-runtime.d.ts +8 -9
- package/dist/internal/production-runtime.mjs +4 -4
- package/dist/markdown.cjs +2 -2
- package/dist/markdown.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 +23 -17
- package/dist/plugin.d.mts +3 -4
- package/dist/plugin.d.ts +3 -4
- package/dist/plugin.mjs +23 -17
- 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/{schema-dev-notice-2IE2F2XI.mjs → schema-dev-notice-O67CPXJ6.mjs} +1 -1
- package/dist/{schema-dev-notice-MXSZMVDG.cjs → schema-dev-notice-Y7MQEFGN.cjs} +3 -3
- package/dist/server-plugins.d.mts +3 -4
- package/dist/server-plugins.d.ts +3 -4
- package/dist/server.cjs +33 -32
- package/dist/server.d.mts +8 -9
- package/dist/server.d.ts +8 -9
- package/dist/server.mjs +19 -18
- 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 +18 -17
- package/dist/vite.d.mts +2 -3
- package/dist/vite.d.ts +2 -3
- package/dist/vite.mjs +17 -16
- 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
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-BYxlRqA9.js';
|
|
2
|
+
import './client-plugins-DPf0qZey.js';
|
|
3
3
|
import './lifecycle-DK06VuKP.js';
|
|
4
4
|
import './route-DOEpbyWZ.js';
|
|
5
5
|
import './endpoint-1zA994xL.js';
|
|
@@ -15,7 +15,7 @@ import './schema.js';
|
|
|
15
15
|
import 'react';
|
|
16
16
|
import './integration-api-BbaiokCC.js';
|
|
17
17
|
import '@farming-labs/orm';
|
|
18
|
-
import './types-
|
|
18
|
+
import './types-DFbjpjXX.js';
|
|
19
19
|
import '@farming-labs/docs';
|
|
20
20
|
import './observability.js';
|
|
21
21
|
import '@opentelemetry/api';
|
|
@@ -23,7 +23,6 @@ import 'vite';
|
|
|
23
23
|
import './workflows-CR9ex-gz.js';
|
|
24
24
|
import './cron.js';
|
|
25
25
|
import './env.js';
|
|
26
|
-
import './navigation-errors-Dvwpzaer.js';
|
|
27
26
|
import './server-action-security.js';
|
|
28
27
|
import './server-fn-error-DDh14a0V.js';
|
|
29
28
|
import 'esbuild';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { FarmRouterRouteInput } from './router.js';
|
|
3
|
+
import { b as FarmNavigationBlockerContext, F as FarmNavigationState } from './spa-router-Y8rrXTVK.js';
|
|
4
|
+
|
|
5
|
+
interface UseRouterOptions {
|
|
6
|
+
basePath?: string;
|
|
7
|
+
routes?: FarmRouterRouteInput[];
|
|
8
|
+
}
|
|
9
|
+
interface UseBlockerOptions {
|
|
10
|
+
when: boolean | ((context: FarmNavigationBlockerContext) => boolean);
|
|
11
|
+
message?: string;
|
|
12
|
+
shouldBlock?: (context: FarmNavigationBlockerContext) => boolean | Promise<boolean>;
|
|
13
|
+
}
|
|
14
|
+
interface UseBlockerReturn {
|
|
15
|
+
active: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Hook for accessing router state and navigation
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Imperative navigation for useRouter. Delegates to the installed SPA router
|
|
22
|
+
* so blockers run before the URL changes, history state is written by the
|
|
23
|
+
* router, and the action is labelled push/replace rather than pop. Without a
|
|
24
|
+
* Farm router (embedded usage) the URL is written directly and announced on
|
|
25
|
+
* the shared history channel, whose no-router fallback is the nuqs-style
|
|
26
|
+
* synthetic popstate this code previously hand-rolled.
|
|
27
|
+
*/
|
|
28
|
+
/** The options Next.js's router accepts on `push` and `replace`. */
|
|
29
|
+
interface FarmRouterNavigateOptions {
|
|
30
|
+
/** Scroll to the top, or to the URL's hash, after navigating. Defaults to true. */
|
|
31
|
+
scroll?: boolean;
|
|
32
|
+
}
|
|
33
|
+
declare function useRouter(options?: UseRouterOptions): {
|
|
34
|
+
push: (href: string, navigateOptions?: FarmRouterNavigateOptions) => void;
|
|
35
|
+
replace: (href: string, navigateOptions?: FarmRouterNavigateOptions) => void;
|
|
36
|
+
pushState: <TState>(pageState: TState, href?: string) => void;
|
|
37
|
+
replaceState: <TState>(pageState: TState, href?: string) => void;
|
|
38
|
+
back: () => void;
|
|
39
|
+
forward: () => void;
|
|
40
|
+
pathname: string;
|
|
41
|
+
searchParams: URLSearchParams;
|
|
42
|
+
params: Record<string, string>;
|
|
43
|
+
pageState: unknown;
|
|
44
|
+
};
|
|
45
|
+
declare function usePageState<TState = unknown>(): TState | null;
|
|
46
|
+
declare function useNavigation(): FarmNavigationState;
|
|
47
|
+
declare function useBlocker(options: UseBlockerOptions): UseBlockerReturn;
|
|
48
|
+
declare function useScrollRestoration<TElement extends HTMLElement = HTMLElement>(key: string): RefObject<TElement | null>;
|
|
49
|
+
|
|
50
|
+
export { type FarmRouterNavigateOptions as F, type UseBlockerOptions as U, useNavigation as a, usePageState as b, useRouter as c, useScrollRestoration as d, type UseBlockerReturn as e, type UseRouterOptions as f, useBlocker as u };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { FarmRouterRouteInput } from './router.mjs';
|
|
3
|
+
import { b as FarmNavigationBlockerContext, F as FarmNavigationState } from './spa-router-DVEHQnWo.mjs';
|
|
4
|
+
|
|
5
|
+
interface UseRouterOptions {
|
|
6
|
+
basePath?: string;
|
|
7
|
+
routes?: FarmRouterRouteInput[];
|
|
8
|
+
}
|
|
9
|
+
interface UseBlockerOptions {
|
|
10
|
+
when: boolean | ((context: FarmNavigationBlockerContext) => boolean);
|
|
11
|
+
message?: string;
|
|
12
|
+
shouldBlock?: (context: FarmNavigationBlockerContext) => boolean | Promise<boolean>;
|
|
13
|
+
}
|
|
14
|
+
interface UseBlockerReturn {
|
|
15
|
+
active: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Hook for accessing router state and navigation
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Imperative navigation for useRouter. Delegates to the installed SPA router
|
|
22
|
+
* so blockers run before the URL changes, history state is written by the
|
|
23
|
+
* router, and the action is labelled push/replace rather than pop. Without a
|
|
24
|
+
* Farm router (embedded usage) the URL is written directly and announced on
|
|
25
|
+
* the shared history channel, whose no-router fallback is the nuqs-style
|
|
26
|
+
* synthetic popstate this code previously hand-rolled.
|
|
27
|
+
*/
|
|
28
|
+
/** The options Next.js's router accepts on `push` and `replace`. */
|
|
29
|
+
interface FarmRouterNavigateOptions {
|
|
30
|
+
/** Scroll to the top, or to the URL's hash, after navigating. Defaults to true. */
|
|
31
|
+
scroll?: boolean;
|
|
32
|
+
}
|
|
33
|
+
declare function useRouter(options?: UseRouterOptions): {
|
|
34
|
+
push: (href: string, navigateOptions?: FarmRouterNavigateOptions) => void;
|
|
35
|
+
replace: (href: string, navigateOptions?: FarmRouterNavigateOptions) => void;
|
|
36
|
+
pushState: <TState>(pageState: TState, href?: string) => void;
|
|
37
|
+
replaceState: <TState>(pageState: TState, href?: string) => void;
|
|
38
|
+
back: () => void;
|
|
39
|
+
forward: () => void;
|
|
40
|
+
pathname: string;
|
|
41
|
+
searchParams: URLSearchParams;
|
|
42
|
+
params: Record<string, string>;
|
|
43
|
+
pageState: unknown;
|
|
44
|
+
};
|
|
45
|
+
declare function usePageState<TState = unknown>(): TState | null;
|
|
46
|
+
declare function useNavigation(): FarmNavigationState;
|
|
47
|
+
declare function useBlocker(options: UseBlockerOptions): UseBlockerReturn;
|
|
48
|
+
declare function useScrollRestoration<TElement extends HTMLElement = HTMLElement>(key: string): RefObject<TElement | null>;
|
|
49
|
+
|
|
50
|
+
export { type FarmRouterNavigateOptions as F, type UseBlockerOptions as U, useNavigation as a, usePageState as b, useRouter as c, useScrollRestoration as d, type UseBlockerReturn as e, type UseRouterOptions as f, useBlocker as u };
|
package/dist/routes.cjs
CHANGED
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkDX4VKYAJcjs = require('./chunk-DX4VKYAJ.cjs');
|
|
23
23
|
require('./chunk-6QQDAAAZ.cjs');
|
|
24
24
|
require('./chunk-6V4TDWEC.cjs');
|
|
25
|
-
require('./chunk-
|
|
25
|
+
require('./chunk-SOR334EB.cjs');
|
|
26
26
|
require('./chunk-H6G5INWM.cjs');
|
|
27
27
|
require('./chunk-ZEG3OPIB.cjs');
|
|
28
28
|
require('./chunk-LIUGYUX3.cjs');
|
|
@@ -50,4 +50,4 @@ require('./chunk-S3JO3N4H.cjs');
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
|
|
53
|
-
exports.PROGRAMMATIC_ROUTE_FILE_NAMES =
|
|
53
|
+
exports.PROGRAMMATIC_ROUTE_FILE_NAMES = _chunkDX4VKYAJcjs.PROGRAMMATIC_ROUTE_FILE_NAMES; exports.api = _chunkDX4VKYAJcjs.api; exports.createLayoutModuleFromProgrammaticLayout = _chunkDX4VKYAJcjs.createLayoutModuleFromProgrammaticLayout; exports.createProgrammaticRouteModuleId = _chunkDX4VKYAJcjs.createProgrammaticRouteModuleId; exports.createRoute = _chunkDX4VKYAJcjs.createRoute; exports.createRouteModuleFromProgrammaticPage = _chunkDX4VKYAJcjs.createRouteModuleFromProgrammaticPage; exports.defineRoutes = _chunkDX4VKYAJcjs.defineRoutes; exports.getProgrammaticRouteManifest = _chunkDX4VKYAJcjs.getProgrammaticRouteManifest; exports.getProgrammaticRouteSearchClientOptions = _chunkDX4VKYAJcjs.getProgrammaticRouteSearchClientOptions; exports.getProgrammaticRouteSearchSchema = _chunkDX4VKYAJcjs.getProgrammaticRouteSearchSchema; exports.isProgrammaticRouteDefinition = _chunkDX4VKYAJcjs.isProgrammaticRouteDefinition; exports.isProgrammaticRouteManifest = _chunkDX4VKYAJcjs.isProgrammaticRouteManifest; exports.isProgrammaticRoutesFileName = _chunkDX4VKYAJcjs.isProgrammaticRoutesFileName; exports.layout = _chunkDX4VKYAJcjs.layout; exports.page = _chunkDX4VKYAJcjs.page; exports.parseProgrammaticRouteModuleId = _chunkDX4VKYAJcjs.parseProgrammaticRouteModuleId; exports.parseProgrammaticRoutePath = _chunkDX4VKYAJcjs.parseProgrammaticRoutePath; exports.redirect = _chunkDX4VKYAJcjs.redirect; exports.routesBuilder = _chunkDX4VKYAJcjs.routesBuilder; exports.scanProgrammaticPagePaths = _chunkDX4VKYAJcjs.scanProgrammaticPagePaths;
|
package/dist/routes.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FarmRouteRuntimeConfig, L as LayoutProps, M as Metadata,
|
|
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-CWrhb1ir.mjs';
|
|
2
2
|
import { ComponentType } from 'react';
|
|
3
3
|
import { RouteDataCacheKey } from './cache.mjs';
|
|
4
4
|
import { ServerFn } from './server-fn.mjs';
|
|
@@ -14,7 +14,7 @@ import 'unstorage';
|
|
|
14
14
|
import './schema.mjs';
|
|
15
15
|
import './integration-api-BbaiokCC.mjs';
|
|
16
16
|
import '@farming-labs/orm';
|
|
17
|
-
import './types-
|
|
17
|
+
import './types-DFbjpjXX.mjs';
|
|
18
18
|
import '@farming-labs/docs';
|
|
19
19
|
import './observability.mjs';
|
|
20
20
|
import '@opentelemetry/api';
|
|
@@ -22,7 +22,6 @@ import 'vite';
|
|
|
22
22
|
import './workflows-CR9ex-gz.mjs';
|
|
23
23
|
import './cron.mjs';
|
|
24
24
|
import './env.mjs';
|
|
25
|
-
import './navigation-errors-Dvwpzaer.mjs';
|
|
26
25
|
import './server-action-security.mjs';
|
|
27
26
|
import './server-fn-error-DDh14a0V.mjs';
|
|
28
27
|
import 'esbuild';
|
package/dist/routes.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FarmRouteRuntimeConfig, L as LayoutProps, M as Metadata,
|
|
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-DPf0qZey.js';
|
|
2
2
|
import { ComponentType } from 'react';
|
|
3
3
|
import { RouteDataCacheKey } from './cache.js';
|
|
4
4
|
import { ServerFn } from './server-fn.js';
|
|
@@ -14,7 +14,7 @@ import 'unstorage';
|
|
|
14
14
|
import './schema.js';
|
|
15
15
|
import './integration-api-BbaiokCC.js';
|
|
16
16
|
import '@farming-labs/orm';
|
|
17
|
-
import './types-
|
|
17
|
+
import './types-DFbjpjXX.js';
|
|
18
18
|
import '@farming-labs/docs';
|
|
19
19
|
import './observability.js';
|
|
20
20
|
import '@opentelemetry/api';
|
|
@@ -22,7 +22,6 @@ import 'vite';
|
|
|
22
22
|
import './workflows-CR9ex-gz.js';
|
|
23
23
|
import './cron.js';
|
|
24
24
|
import './env.js';
|
|
25
|
-
import './navigation-errors-Dvwpzaer.js';
|
|
26
25
|
import './server-action-security.js';
|
|
27
26
|
import './server-fn-error-DDh14a0V.js';
|
|
28
27
|
import 'esbuild';
|
package/dist/routes.mjs
CHANGED
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
redirect,
|
|
20
20
|
routesBuilder,
|
|
21
21
|
scanProgrammaticPagePaths
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-QMV4QELL.mjs";
|
|
23
23
|
import "./chunk-SEJ5N6SL.mjs";
|
|
24
24
|
import "./chunk-EA5K5BKU.mjs";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-2J7W2WND.mjs";
|
|
26
26
|
import "./chunk-F6SJAKFJ.mjs";
|
|
27
27
|
import "./chunk-4SIYUGRY.mjs";
|
|
28
28
|
import "./chunk-C4NCTZLM.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkE2ROOWQCcjs = require('./chunk-E2ROOWQC.cjs');
|
|
5
5
|
require('./chunk-JSROZYYO.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
@@ -17,12 +17,12 @@ var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
|
17
17
|
async function noticePendingSchemaChanges(config, options = {}) {
|
|
18
18
|
const lines = [];
|
|
19
19
|
try {
|
|
20
|
-
const owners =
|
|
20
|
+
const owners = _chunkE2ROOWQCcjs.findSchemaTableOwners.call(void 0, config);
|
|
21
21
|
const timeoutMs = _nullishCoalesce(options.timeoutMs, () => ( 5e3));
|
|
22
22
|
for (const owner of owners) {
|
|
23
23
|
try {
|
|
24
24
|
const result = await withTimeout(
|
|
25
|
-
|
|
25
|
+
_chunkE2ROOWQCcjs.migrateSchemaTables.call(void 0, owner, { config, log: /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, () => {
|
|
26
26
|
}, "log") }),
|
|
27
27
|
timeoutMs
|
|
28
28
|
);
|
|
@@ -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,14 +41,14 @@ 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
|
-
var
|
|
48
|
+
var _chunkE2ROOWQCcjs = require('./chunk-E2ROOWQC.cjs');
|
|
49
49
|
require('./chunk-JSROZYYO.cjs');
|
|
50
50
|
require('./chunk-CIAGU2X4.cjs');
|
|
51
|
-
require('./chunk-
|
|
51
|
+
require('./chunk-OYDRPBBV.cjs');
|
|
52
52
|
require('./chunk-SYQ3MOWW.cjs');
|
|
53
53
|
require('./chunk-CXP5U3RW.cjs');
|
|
54
54
|
require('./chunk-TKNSDBBN.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
|
|
|
@@ -81,7 +82,7 @@ var _chunkY4YMF2NQcjs = require('./chunk-Y4YMF2NQ.cjs');
|
|
|
81
82
|
|
|
82
83
|
|
|
83
84
|
var _chunkTFAXUHWXcjs = require('./chunk-TFAXUHWX.cjs');
|
|
84
|
-
require('./chunk-
|
|
85
|
+
require('./chunk-ISTFC3MZ.cjs');
|
|
85
86
|
require('./chunk-YFPGHF5F.cjs');
|
|
86
87
|
require('./chunk-6EXBPJ24.cjs');
|
|
87
88
|
|
|
@@ -98,10 +99,10 @@ require('./chunk-6EXBPJ24.cjs');
|
|
|
98
99
|
|
|
99
100
|
var _chunkT5CERMEHcjs = require('./chunk-T5CERMEH.cjs');
|
|
100
101
|
require('./chunk-VEKFLAQM.cjs');
|
|
101
|
-
require('./chunk-
|
|
102
|
-
require('./chunk-
|
|
102
|
+
require('./chunk-I5YBCWQ6.cjs');
|
|
103
|
+
require('./chunk-AH7HOAQ3.cjs');
|
|
103
104
|
require('./chunk-OHY2ZWUG.cjs');
|
|
104
|
-
require('./chunk-
|
|
105
|
+
require('./chunk-BBVSJVBZ.cjs');
|
|
105
106
|
require('./chunk-K6FNHVDR.cjs');
|
|
106
107
|
require('./chunk-JDNHKPTD.cjs');
|
|
107
108
|
require('./chunk-CMGMGHUZ.cjs');
|
|
@@ -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
|
);
|
|
@@ -597,8 +598,8 @@ function noticeSchemaChangesInBackground(config) {
|
|
|
597
598
|
..._nullishCoalesce(config.plugins, () => ( [])),
|
|
598
599
|
...Object.values(_nullishCoalesce(config.integrations, () => ( {})))
|
|
599
600
|
];
|
|
600
|
-
if (!candidates.some((candidate) =>
|
|
601
|
-
void import("./schema-dev-notice-
|
|
601
|
+
if (!candidates.some((candidate) => _chunkE2ROOWQCcjs.readSchemaTables.call(void 0, candidate))) return false;
|
|
602
|
+
void import("./schema-dev-notice-Y7MQEFGN.cjs").then(({ noticePendingSchemaChanges }) => noticePendingSchemaChanges(config)).catch(() => {
|
|
602
603
|
});
|
|
603
604
|
return true;
|
|
604
605
|
}
|
|
@@ -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
|
|