@farm.js/core 0.1.0-beta.1 → 0.1.0-beta.11
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/README.md +1 -1
- package/dist/agent-runtime.d.mts +3 -2
- package/dist/agent-runtime.d.ts +3 -2
- package/dist/api/route-manager.cjs +410 -15
- package/dist/api/route-manager.cjs.map +1 -1
- package/dist/api/route-manager.d.mts +7 -5
- package/dist/api/route-manager.d.ts +7 -5
- package/dist/api/route-manager.mjs +9 -8
- package/dist/api/runtime.cjs +748 -9
- package/dist/api/runtime.cjs.map +1 -1
- package/dist/api/runtime.d.mts +3 -16
- package/dist/api/runtime.d.ts +3 -16
- package/dist/api/runtime.mjs +8 -1
- package/dist/api.cjs +1243 -342
- package/dist/api.cjs.map +1 -1
- package/dist/api.d.mts +8 -150
- package/dist/api.d.ts +8 -150
- package/dist/api.mjs +51 -21
- package/dist/{app-BiX4qb-d.d.mts → app-BNE2FoZ4.d.mts} +42 -5
- package/dist/{app-CFRNJXP1.d.ts → app-DRGUmJ3s.d.ts} +42 -5
- package/dist/app-markdown.cjs +32 -8
- package/dist/app-markdown.cjs.map +1 -1
- package/dist/app-markdown.d.mts +3 -2
- package/dist/app-markdown.d.ts +3 -2
- package/dist/app-markdown.mjs +2 -1
- package/dist/cache.cjs +414 -12
- package/dist/cache.cjs.map +1 -1
- package/dist/cache.d.mts +120 -6
- package/dist/cache.d.ts +120 -6
- package/dist/cache.mjs +11 -3
- package/dist/{chunk-QF4PHCMA.mjs → chunk-2ED5Q2GH.mjs} +3 -3
- package/dist/chunk-2ED5Q2GH.mjs.map +1 -0
- package/dist/{chunk-GZP5W4K3.mjs → chunk-32W4QEJP.mjs} +1 -1
- package/dist/chunk-32W4QEJP.mjs.map +1 -0
- package/dist/{chunk-G3B5BRDY.mjs → chunk-4677KXB7.mjs} +646 -86
- package/dist/chunk-4677KXB7.mjs.map +1 -0
- package/dist/{chunk-3QJO55ZF.mjs → chunk-4LND3PXF.mjs} +30 -38
- package/dist/chunk-4LND3PXF.mjs.map +1 -0
- package/dist/chunk-5EVQFRL2.mjs +10 -0
- package/dist/chunk-5EVQFRL2.mjs.map +1 -0
- package/dist/{chunk-25D7G34K.mjs → chunk-65A7QIKI.mjs} +5 -5
- package/dist/{chunk-25D7G34K.mjs.map → chunk-65A7QIKI.mjs.map} +1 -1
- package/dist/{chunk-CHFHNEMO.mjs → chunk-77BOAQHI.mjs} +1972 -188
- package/dist/chunk-77BOAQHI.mjs.map +1 -0
- package/dist/{chunk-LLC7BNXW.mjs → chunk-7FBJLMQH.mjs} +73 -10
- package/dist/chunk-7FBJLMQH.mjs.map +1 -0
- package/dist/{chunk-TRORP7E4.mjs → chunk-7N62DNSO.mjs} +2 -2
- package/dist/chunk-ALCLXXTY.mjs +187 -0
- package/dist/chunk-ALCLXXTY.mjs.map +1 -0
- package/dist/chunk-AW6I64AP.mjs +25 -0
- package/dist/chunk-AW6I64AP.mjs.map +1 -0
- package/dist/{chunk-B6N4ZB2H.mjs → chunk-C2ROET2V.mjs} +3 -3
- package/dist/{chunk-BHG3LVHH.mjs → chunk-CGIXMLSY.mjs} +15 -7
- package/dist/chunk-CGIXMLSY.mjs.map +1 -0
- package/dist/{chunk-C3DLZMBU.mjs → chunk-DJSGLHCN.mjs} +2 -2
- package/dist/{chunk-JN3UU635.mjs → chunk-EJ7T4TPB.mjs} +2 -2
- package/dist/chunk-EJ7T4TPB.mjs.map +1 -0
- package/dist/{chunk-ZJQNATYV.mjs → chunk-FRPWCMMG.mjs} +3 -3
- package/dist/chunk-FRPWCMMG.mjs.map +1 -0
- package/dist/{chunk-QM6VV26B.mjs → chunk-GQVGIUSN.mjs} +3 -3
- package/dist/{chunk-QM6VV26B.mjs.map → chunk-GQVGIUSN.mjs.map} +1 -1
- package/dist/{chunk-UREJA4GZ.mjs → chunk-GXASWWJU.mjs} +1 -1
- package/dist/{chunk-UREJA4GZ.mjs.map → chunk-GXASWWJU.mjs.map} +1 -1
- package/dist/chunk-I4CUBGVF.mjs +93 -0
- package/dist/chunk-I4CUBGVF.mjs.map +1 -0
- package/dist/{chunk-HXP3ZSPC.mjs → chunk-J5YWQVI5.mjs} +4 -4
- package/dist/chunk-J5YWQVI5.mjs.map +1 -0
- package/dist/{chunk-PRNYWD7K.mjs → chunk-JDEOUK5V.mjs} +67 -239
- package/dist/chunk-JDEOUK5V.mjs.map +1 -0
- package/dist/{chunk-UHE2TTLK.mjs → chunk-K5ZTUF22.mjs} +34 -17
- package/dist/chunk-K5ZTUF22.mjs.map +1 -0
- package/dist/{chunk-O3HADRW6.mjs → chunk-MIUW47JX.mjs} +2 -2
- package/dist/{chunk-O3HADRW6.mjs.map → chunk-MIUW47JX.mjs.map} +1 -1
- package/dist/chunk-PFE6GMNE.mjs +603 -0
- package/dist/chunk-PFE6GMNE.mjs.map +1 -0
- package/dist/{chunk-RKI6TN3A.mjs → chunk-QM746KUO.mjs} +9 -2
- package/dist/chunk-QM746KUO.mjs.map +1 -0
- package/dist/{chunk-TU4YJICB.mjs → chunk-QTZZ2ISQ.mjs} +41 -16
- package/dist/chunk-QTZZ2ISQ.mjs.map +1 -0
- package/dist/chunk-RBRLLZL5.mjs +81 -0
- package/dist/chunk-RBRLLZL5.mjs.map +1 -0
- package/dist/{chunk-RSKVYESE.mjs → chunk-RQ633A5I.mjs} +1 -1
- package/dist/chunk-RQ633A5I.mjs.map +1 -0
- package/dist/{chunk-6XDUHOEM.mjs → chunk-TQAEEJB4.mjs} +3 -3
- package/dist/{chunk-AGS7UJ52.mjs → chunk-UB5UOSHB.mjs} +24 -12
- package/dist/chunk-UB5UOSHB.mjs.map +1 -0
- package/dist/{chunk-SXZTEK3V.mjs → chunk-UXUAWNO5.mjs} +2 -2
- package/dist/chunk-V3XURYJO.mjs +756 -0
- package/dist/chunk-V3XURYJO.mjs.map +1 -0
- package/dist/{chunk-JLWMCADZ.mjs → chunk-VY2UYN5R.mjs} +24 -4
- package/dist/chunk-VY2UYN5R.mjs.map +1 -0
- package/dist/{chunk-QFQRHRZS.mjs → chunk-W2CRQFF6.mjs} +151 -23
- package/dist/chunk-W2CRQFF6.mjs.map +1 -0
- package/dist/{chunk-Y7A27276.mjs → chunk-WDU6QXNK.mjs} +349 -15
- package/dist/chunk-WDU6QXNK.mjs.map +1 -0
- package/dist/{chunk-Y2OJJD7R.mjs → chunk-XIVV5IWN.mjs} +7 -9
- package/dist/chunk-XIVV5IWN.mjs.map +1 -0
- package/dist/{chunk-OYXO65LI.mjs → chunk-YW7OBE6Q.mjs} +4 -4
- package/dist/chunk-YW7OBE6Q.mjs.map +1 -0
- package/dist/{chunk-YHU7SS6L.mjs → chunk-Z5CQMP54.mjs} +11 -11
- package/dist/{chunk-S2XHZS7W.mjs → chunk-ZVWA4ZQ3.mjs} +18 -9
- package/dist/chunk-ZVWA4ZQ3.mjs.map +1 -0
- package/dist/{chunk-SOU3Q3ZA.mjs → chunk-ZZ57EH5Z.mjs} +1 -1
- package/dist/chunk-ZZ57EH5Z.mjs.map +1 -0
- package/dist/{client-D_yUjVhe.d.mts → client-BT1mFQas.d.mts} +55 -10
- package/dist/{client-Dkc03WP8.d.ts → client-Nn0q4eO4.d.ts} +55 -10
- package/dist/{client-plugins-BZnpeTGA.d.ts → client-plugins-Bc5jHcNr.d.ts} +85 -6
- package/dist/{client-plugins-g4bzuCmo.d.mts → client-plugins-jsk-ZLzJ.d.mts} +85 -6
- package/dist/client-plugins.d.mts +3 -2
- package/dist/client-plugins.d.ts +3 -2
- package/dist/client.cjs +922 -91
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.mts +124 -6
- package/dist/client.d.ts +124 -6
- package/dist/client.mjs +23 -16
- package/dist/config.d.mts +3 -2
- package/dist/config.d.ts +3 -2
- package/dist/cron.cjs.map +1 -1
- package/dist/cron.mjs +1 -1
- package/dist/{devtools-AE4RVXCM.mjs → devtools-A22KUJZT.mjs} +13 -12
- package/dist/{devtools-AE4RVXCM.mjs.map → devtools-A22KUJZT.mjs.map} +1 -1
- package/dist/{devtools-client-6WPY2AQU.mjs → devtools-client-3XRTBND5.mjs} +2 -11
- package/dist/devtools-client-3XRTBND5.mjs.map +1 -0
- package/dist/docs.cjs +65 -58
- package/dist/docs.cjs.map +1 -1
- package/dist/docs.mjs +13 -12
- package/dist/env-types.cjs +14 -5
- package/dist/env-types.cjs.map +1 -1
- package/dist/env-types.d.mts +2 -1
- package/dist/env-types.d.ts +2 -1
- package/dist/env-types.mjs +3 -1
- package/dist/env.cjs.map +1 -1
- package/dist/env.d.mts +1 -1
- package/dist/env.d.ts +1 -1
- package/dist/env.mjs +1 -1
- package/dist/font.cjs +47 -0
- package/dist/font.cjs.map +1 -0
- package/dist/font.d.mts +70 -0
- package/dist/font.d.ts +70 -0
- package/dist/font.mjs +10 -0
- package/dist/font.mjs.map +1 -0
- package/dist/i18n/client.d.mts +2 -2
- package/dist/i18n/client.d.ts +2 -2
- package/dist/i18n/index.d.mts +3 -3
- package/dist/i18n/index.d.ts +3 -3
- package/dist/i18n/server.cjs +2 -2
- package/dist/i18n/server.cjs.map +1 -1
- package/dist/i18n/server.d.mts +5 -5
- package/dist/i18n/server.d.ts +5 -5
- package/dist/i18n/server.mjs +1 -1
- package/dist/index.cjs +5016 -1108
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +23 -19
- package/dist/index.d.ts +23 -19
- package/dist/index.mjs +177 -121
- package/dist/index.mjs.map +1 -1
- package/dist/integrations.d.mts +3 -2
- package/dist/integrations.d.ts +3 -2
- package/dist/internal/build-runtime.cjs +3504 -581
- package/dist/internal/build-runtime.cjs.map +1 -1
- package/dist/internal/build-runtime.d.mts +5 -4
- package/dist/internal/build-runtime.d.ts +5 -4
- package/dist/internal/build-runtime.mjs +32 -29
- package/dist/internal/client-runtime.cjs.map +1 -1
- package/dist/internal/client-runtime.mjs +1 -1
- package/dist/internal/config-runtime.cjs +148 -41
- package/dist/internal/config-runtime.cjs.map +1 -1
- package/dist/internal/config-runtime.d.mts +4 -3
- package/dist/internal/config-runtime.d.ts +4 -3
- package/dist/internal/config-runtime.mjs +12 -11
- package/dist/internal/production-runtime.cjs +300 -9
- package/dist/internal/production-runtime.cjs.map +1 -1
- package/dist/internal/production-runtime.d.mts +10 -8
- package/dist/internal/production-runtime.d.ts +10 -8
- package/dist/internal/production-runtime.mjs +27 -9
- package/dist/internal/production-runtime.mjs.map +1 -1
- package/dist/markdown.cjs +73 -8
- package/dist/markdown.cjs.map +1 -1
- package/dist/markdown.d.mts +19 -2
- package/dist/markdown.d.ts +19 -2
- package/dist/markdown.mjs +5 -1
- package/dist/{metadata-C9NZxMDW.d.mts → metadata-7ffpT3jr.d.mts} +1 -1
- package/dist/{metadata-DAXRaOHx.d.ts → metadata-JHn-8eht.d.ts} +1 -1
- package/dist/middleware.cjs +2 -2
- package/dist/middleware.cjs.map +1 -1
- package/dist/middleware.d.mts +5 -4
- package/dist/middleware.d.ts +5 -4
- package/dist/middleware.mjs +3 -3
- package/dist/navigation.cjs +40 -15
- package/dist/navigation.cjs.map +1 -1
- package/dist/navigation.mjs +3 -3
- package/dist/{nitro-KME62MWG.mjs → nitro-QO5LV6QK.mjs} +11 -13
- package/dist/{nitro-KME62MWG.mjs.map → nitro-QO5LV6QK.mjs.map} +1 -1
- package/dist/plugin.cjs +2854 -590
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.d.mts +3 -2
- package/dist/plugin.d.ts +3 -2
- package/dist/plugin.mjs +28 -25
- package/dist/{production-runtime-DRkCHUvJ.d.ts → production-runtime-9KG7GuvW.d.ts} +2 -2
- package/dist/{production-runtime-flrjp_nC.d.mts → production-runtime-B-fweKts.d.mts} +2 -2
- package/dist/{request-BrFBuc8G.d.mts → request-Dsq4kGW0.d.mts} +1 -1
- package/dist/{request-BslSZIRz.d.ts → request-udtobOLv.d.ts} +1 -1
- package/dist/request.d.mts +2 -2
- package/dist/request.d.ts +2 -2
- package/dist/{resolver-DlOPpjkB.d.mts → resolver-DJqjLMg_.d.mts} +1 -1
- package/dist/{resolver-C6iecsDV.d.ts → resolver-IH4RmPEl.d.ts} +1 -1
- package/dist/routes.cjs +276 -6
- package/dist/routes.cjs.map +1 -1
- package/dist/routes.d.mts +2 -2
- package/dist/routes.d.ts +2 -2
- package/dist/routes.mjs +4 -4
- package/dist/runtime-9nQjVM7X.d.mts +206 -0
- package/dist/{runtime-DeAAZ6gO.d.mts → runtime-Cxpq6xZN.d.mts} +2 -2
- package/dist/runtime-DgeS2skB.d.ts +206 -0
- package/dist/{runtime-B6GvwDS1.d.ts → runtime-bv63eUiO.d.ts} +2 -2
- package/dist/server-action-security.cjs +28 -10
- package/dist/server-action-security.cjs.map +1 -1
- package/dist/server-action-security.d.mts +2 -1
- package/dist/server-action-security.d.ts +2 -1
- package/dist/server-action-security.mjs +2 -2
- package/dist/server-fn-client.cjs.map +1 -1
- package/dist/server-fn-client.d.mts +1 -0
- package/dist/server-fn-client.d.ts +1 -0
- package/dist/server-fn-client.mjs +1 -1
- package/dist/server-fn.cjs +785 -3
- package/dist/server-fn.cjs.map +1 -1
- package/dist/server-fn.d.mts +10 -1
- package/dist/server-fn.d.ts +10 -1
- package/dist/server-fn.mjs +6 -3
- package/dist/server-plugins.d.mts +4 -3
- package/dist/server-plugins.d.ts +4 -3
- package/dist/server-query-client.cjs +279 -8
- package/dist/server-query-client.cjs.map +1 -1
- package/dist/server-query-client.mjs +4 -4
- package/dist/server-query.cjs +381 -10
- package/dist/server-query.cjs.map +1 -1
- package/dist/server-query.mjs +5 -5
- package/dist/server.cjs +3319 -841
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.mts +12 -11
- package/dist/server.d.ts +12 -11
- package/dist/server.mjs +57 -36
- package/dist/server.mjs.map +1 -1
- package/dist/testing.cjs +436 -25
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.mts +5 -4
- package/dist/testing.d.ts +5 -4
- package/dist/testing.mjs +19 -18
- package/dist/testing.mjs.map +1 -1
- package/dist/transport-BmbGTXA5.d.mts +49 -0
- package/dist/transport-BmbGTXA5.d.ts +49 -0
- package/dist/{types-BH1lhg5G.d.ts → types-BMxWr97v.d.mts} +2 -2
- package/dist/{types-BH1lhg5G.d.mts → types-BMxWr97v.d.ts} +2 -2
- package/dist/{utils-DA1yo54_.d.ts → utils-CA0z0c-2.d.ts} +1 -1
- package/dist/{utils-DOXXivjL.d.mts → utils-mYVkSOt2.d.mts} +1 -1
- package/dist/version.cjs +36 -0
- package/dist/version.cjs.map +1 -0
- package/dist/version.d.mts +3 -0
- package/dist/version.d.ts +3 -0
- package/dist/version.mjs +8 -0
- package/dist/version.mjs.map +1 -0
- package/dist/vite.cjs +2938 -668
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.d.mts +3 -2
- package/dist/vite.d.ts +3 -2
- package/dist/vite.mjs +26 -23
- package/dist/workflows.cjs +6 -8
- package/dist/workflows.cjs.map +1 -1
- package/dist/workflows.mjs +1 -1
- package/package.json +22 -6
- package/types/api.d.ts +44 -0
- package/types/client.d.ts +221 -17
- package/types/image.d.ts +4 -0
- package/types/images.d.ts +59 -0
- package/dist/chunk-3QJO55ZF.mjs.map +0 -1
- package/dist/chunk-4PTK6KT4.mjs +0 -364
- package/dist/chunk-4PTK6KT4.mjs.map +0 -1
- package/dist/chunk-AGS7UJ52.mjs.map +0 -1
- package/dist/chunk-BHG3LVHH.mjs.map +0 -1
- package/dist/chunk-CHFHNEMO.mjs.map +0 -1
- package/dist/chunk-EVGBEZDF.mjs +0 -215
- package/dist/chunk-EVGBEZDF.mjs.map +0 -1
- package/dist/chunk-G3B5BRDY.mjs.map +0 -1
- package/dist/chunk-GZP5W4K3.mjs.map +0 -1
- package/dist/chunk-HXP3ZSPC.mjs.map +0 -1
- package/dist/chunk-JLWMCADZ.mjs.map +0 -1
- package/dist/chunk-JN3UU635.mjs.map +0 -1
- package/dist/chunk-LLC7BNXW.mjs.map +0 -1
- package/dist/chunk-OYXO65LI.mjs.map +0 -1
- package/dist/chunk-PRNYWD7K.mjs.map +0 -1
- package/dist/chunk-QF4PHCMA.mjs.map +0 -1
- package/dist/chunk-QFQRHRZS.mjs.map +0 -1
- package/dist/chunk-RKI6TN3A.mjs.map +0 -1
- package/dist/chunk-RSKVYESE.mjs.map +0 -1
- package/dist/chunk-S2XHZS7W.mjs.map +0 -1
- package/dist/chunk-SOU3Q3ZA.mjs.map +0 -1
- package/dist/chunk-TU4YJICB.mjs.map +0 -1
- package/dist/chunk-TXCFGOHW.mjs +0 -42
- package/dist/chunk-TXCFGOHW.mjs.map +0 -1
- package/dist/chunk-UHE2TTLK.mjs.map +0 -1
- package/dist/chunk-Y2OJJD7R.mjs.map +0 -1
- package/dist/chunk-Y7A27276.mjs.map +0 -1
- package/dist/chunk-ZJQNATYV.mjs.map +0 -1
- package/dist/devtools-client-6WPY2AQU.mjs.map +0 -1
- /package/dist/{chunk-TRORP7E4.mjs.map → chunk-7N62DNSO.mjs.map} +0 -0
- /package/dist/{chunk-B6N4ZB2H.mjs.map → chunk-C2ROET2V.mjs.map} +0 -0
- /package/dist/{chunk-C3DLZMBU.mjs.map → chunk-DJSGLHCN.mjs.map} +0 -0
- /package/dist/{chunk-6XDUHOEM.mjs.map → chunk-TQAEEJB4.mjs.map} +0 -0
- /package/dist/{chunk-SXZTEK3V.mjs.map → chunk-UXUAWNO5.mjs.map} +0 -0
- /package/dist/{chunk-YHU7SS6L.mjs.map → chunk-Z5CQMP54.mjs.map} +0 -0
|
@@ -14,7 +14,8 @@ import { FarmCronUserConfig, FarmCronResolvedConfig } from './cron.js';
|
|
|
14
14
|
import { FarmEnvConfig, ResolvedFarmEnv } from './env.js';
|
|
15
15
|
import { FarmServerActionsConfig, ResolvedFarmServerActionsConfig } from './server-action-security.js';
|
|
16
16
|
import { F as FarmImageConfig, R as ResolvedFarmImageConfig } from './image-config-Duob7wER.js';
|
|
17
|
-
import { k as FarmI18nUserConfig, R as ResolvedFarmI18nConfig } from './types-
|
|
17
|
+
import { k as FarmI18nUserConfig, R as ResolvedFarmI18nConfig } from './types-BMxWr97v.js';
|
|
18
|
+
import { FarmCacheUserConfig } from './cache.js';
|
|
18
19
|
import { F as FarmRouteRuntimeConfig, a as FarmRouteRuntime, b as FarmRouteRegions, c as FarmRouteMaxDuration } from './route-runtime-DoOHzCAD.js';
|
|
19
20
|
|
|
20
21
|
type RuntimeClientFactory<TClient> = () => TClient | Promise<TClient>;
|
|
@@ -398,6 +399,68 @@ interface ResolvedFarmDevtoolsConfig {
|
|
|
398
399
|
}
|
|
399
400
|
declare function resolveFarmDevtoolsConfig(config: FarmDevtoolsUserConfig | ResolvedFarmDevtoolsConfig | undefined, mode?: "development" | "production"): ResolvedFarmDevtoolsConfig;
|
|
400
401
|
|
|
402
|
+
interface FarmAuthEmailAndPasswordConfig {
|
|
403
|
+
/** Require a verified email before creating a session. @default false */
|
|
404
|
+
requireEmailVerification?: boolean;
|
|
405
|
+
/** Smallest accepted password length. @default 8 */
|
|
406
|
+
minPasswordLength?: number;
|
|
407
|
+
/** Largest accepted password length. @default 128 */
|
|
408
|
+
maxPasswordLength?: number;
|
|
409
|
+
}
|
|
410
|
+
interface FarmAuthSessionConfig {
|
|
411
|
+
/** Session lifetime in seconds. @default 604800 */
|
|
412
|
+
expiresIn?: number;
|
|
413
|
+
/** Session refresh interval in seconds. @default 86400 */
|
|
414
|
+
updateAge?: number;
|
|
415
|
+
}
|
|
416
|
+
interface FarmAuthDatabaseConfig {
|
|
417
|
+
/**
|
|
418
|
+
* Postgres connection string. Defaults to DATABASE_URL.
|
|
419
|
+
* Local development falls back to SQLite when no URL is present.
|
|
420
|
+
*/
|
|
421
|
+
url?: string;
|
|
422
|
+
/** Local SQLite path. @default ".farm/auth.sqlite" */
|
|
423
|
+
path?: string;
|
|
424
|
+
/** Automatically update the auth schema in development. @default true */
|
|
425
|
+
migrateInDevelopment?: boolean;
|
|
426
|
+
}
|
|
427
|
+
interface FarmAuthConfig {
|
|
428
|
+
/** Set false to disable auth without removing its configuration. @default true */
|
|
429
|
+
enabled?: boolean;
|
|
430
|
+
/** Display name used by authentication emails and metadata. */
|
|
431
|
+
appName?: string;
|
|
432
|
+
/** Route prefix for the auth endpoints. @default "/api/auth" */
|
|
433
|
+
basePath?: string;
|
|
434
|
+
/**
|
|
435
|
+
* Email/password authentication. It is enabled by default; set false to
|
|
436
|
+
* disable it when adding another sign-in method.
|
|
437
|
+
*/
|
|
438
|
+
emailAndPassword?: boolean | FarmAuthEmailAndPasswordConfig;
|
|
439
|
+
session?: FarmAuthSessionConfig;
|
|
440
|
+
database?: FarmAuthDatabaseConfig;
|
|
441
|
+
}
|
|
442
|
+
type FarmAuthUserConfig = boolean | FarmAuthConfig;
|
|
443
|
+
interface ResolvedFarmAuthConfig {
|
|
444
|
+
enabled: boolean;
|
|
445
|
+
appName?: string;
|
|
446
|
+
basePath: string;
|
|
447
|
+
emailAndPassword: {
|
|
448
|
+
enabled: boolean;
|
|
449
|
+
requireEmailVerification: boolean;
|
|
450
|
+
minPasswordLength: number;
|
|
451
|
+
maxPasswordLength: number;
|
|
452
|
+
};
|
|
453
|
+
session: {
|
|
454
|
+
expiresIn: number;
|
|
455
|
+
updateAge: number;
|
|
456
|
+
};
|
|
457
|
+
database: {
|
|
458
|
+
url?: string;
|
|
459
|
+
path: string;
|
|
460
|
+
migrateInDevelopment: boolean;
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
|
|
401
464
|
declare const FARM_RESOLVED_CUSTOM_CONTEXT: unique symbol;
|
|
402
465
|
|
|
403
466
|
interface RedirectConfig {
|
|
@@ -486,6 +549,14 @@ interface FarmUserConfig extends Omit<FarmConfig, "vite" | "docs" | "env" | "lay
|
|
|
486
549
|
extends?: readonly FarmLayerEntry[];
|
|
487
550
|
plugins?: FarmPlugin[];
|
|
488
551
|
integrations?: FarmIntegrationsUserConfig;
|
|
552
|
+
/**
|
|
553
|
+
* Farm-native authentication. `true` enables email/password auth with
|
|
554
|
+
* server helpers from `@farm.js/auth/server` and React APIs from
|
|
555
|
+
* `@farm.js/auth/client`.
|
|
556
|
+
*/
|
|
557
|
+
auth?: FarmAuthUserConfig;
|
|
558
|
+
/** Shared application data, route, ISR, and PPR cache. */
|
|
559
|
+
cache?: FarmCacheUserConfig;
|
|
489
560
|
migrations?: FarmMigrationsUserConfig;
|
|
490
561
|
/** Map portable cron schedules to ordinary GET API routes. */
|
|
491
562
|
cron?: FarmCronUserConfig | FarmCronResolvedConfig | false;
|
|
@@ -529,7 +600,7 @@ interface FarmUserConfig extends Omit<FarmConfig, "vite" | "docs" | "env" | "lay
|
|
|
529
600
|
vite?: UserConfig | ((config: UserConfig) => UserConfig);
|
|
530
601
|
[key: string]: any;
|
|
531
602
|
}
|
|
532
|
-
interface ResolvedFarmConfig extends Required<Omit<FarmUserConfig, "extends" | "plugins" | "vite" | "deploy" | "docs" | "md" | "mdx" | "migrations" | "cron" | "workflows" | "env" | "serverActions" | "devtools" | "images" | "i18n">> {
|
|
603
|
+
interface ResolvedFarmConfig extends Required<Omit<FarmUserConfig, "extends" | "plugins" | "vite" | "deploy" | "docs" | "md" | "mdx" | "migrations" | "cron" | "workflows" | "env" | "serverActions" | "devtools" | "images" | "i18n" | "auth">> {
|
|
533
604
|
/** @internal Tracks whether `context` came from user/layer config instead of the default noop. */
|
|
534
605
|
[FARM_RESOLVED_CUSTOM_CONTEXT]?: boolean;
|
|
535
606
|
extends: readonly FarmLayerEntry[];
|
|
@@ -548,6 +619,8 @@ interface ResolvedFarmConfig extends Required<Omit<FarmUserConfig, "extends" | "
|
|
|
548
619
|
devtools: ResolvedFarmDevtoolsConfig;
|
|
549
620
|
images: ResolvedFarmImageConfig;
|
|
550
621
|
i18n: ResolvedFarmI18nConfig;
|
|
622
|
+
auth: ResolvedFarmAuthConfig;
|
|
623
|
+
routeRules: FarmRouteRules;
|
|
551
624
|
}
|
|
552
625
|
type FarmLayerConfig = Omit<FarmUserConfig, "root" | "outDir" | "distDir" | "deploy" | "output" | "preset" | "publicDir" | "generateBuildId" | "deploymentId">;
|
|
553
626
|
|
|
@@ -567,6 +640,7 @@ declare function loadConfig(rootDir?: string, configPath?: string, mode?: string
|
|
|
567
640
|
interface FarmVitePluginOptions extends FarmConfig {
|
|
568
641
|
openapi?: FarmUserConfig["openapi"];
|
|
569
642
|
images?: FarmUserConfig["images"];
|
|
643
|
+
publicDir?: FarmUserConfig["publicDir"];
|
|
570
644
|
}
|
|
571
645
|
declare function farmI18nClientBridgePlugin(): Plugin;
|
|
572
646
|
interface FarmModuleAstNode {
|
|
@@ -1408,6 +1482,7 @@ interface FarmAppContext {
|
|
|
1408
1482
|
}
|
|
1409
1483
|
interface FarmConfig {
|
|
1410
1484
|
root?: string;
|
|
1485
|
+
/** App source directory. @default "src" */
|
|
1411
1486
|
srcDir?: string;
|
|
1412
1487
|
extends?: readonly FarmLayerEntry[];
|
|
1413
1488
|
/** Resolved layer graph. Populated by config resolution. */
|
|
@@ -1437,7 +1512,11 @@ interface FarmConfig {
|
|
|
1437
1512
|
};
|
|
1438
1513
|
};
|
|
1439
1514
|
storage?: FarmStorageUserConfig;
|
|
1515
|
+
/** Shared application data, route, ISR, and PPR cache. */
|
|
1516
|
+
cache?: FarmCacheUserConfig;
|
|
1440
1517
|
integrations?: FarmIntegrationsUserConfig;
|
|
1518
|
+
/** Farm-native authentication. `true` enables email/password auth. */
|
|
1519
|
+
auth?: FarmAuthUserConfig | ResolvedFarmAuthConfig;
|
|
1441
1520
|
plugins?: FarmPlugin[];
|
|
1442
1521
|
migrations?: FarmMigrationsUserConfig;
|
|
1443
1522
|
/** Map portable cron schedules to ordinary GET API routes. */
|
|
@@ -1467,9 +1546,9 @@ interface FarmConfig {
|
|
|
1467
1546
|
serverComponents?: boolean;
|
|
1468
1547
|
serverActions?: boolean;
|
|
1469
1548
|
/**
|
|
1470
|
-
*
|
|
1471
|
-
*
|
|
1472
|
-
*
|
|
1549
|
+
* Automatically optimize eligible server-only host-element subtrees with
|
|
1550
|
+
* the native Strata renderer. Unsupported trees keep normal React
|
|
1551
|
+
* rendering; no application boundary component is required.
|
|
1473
1552
|
*
|
|
1474
1553
|
* @experimental
|
|
1475
1554
|
* @default false
|
|
@@ -1845,4 +1924,4 @@ interface SSGCollectionResult {
|
|
|
1845
1924
|
ssr: string[];
|
|
1846
1925
|
}
|
|
1847
1926
|
|
|
1848
|
-
export { type ResolvedFarmDevtoolsConfig as $, type FarmLayerEntry as A, type BuildOptions as B, type ResolvedFarmLayer as C, type FarmSourceRoot as D, type ErrorProps as E, type FarmConfig as F, type ResolveFarmLayersOptions as G, type FarmLayerResolution as H, resolveFarmLayers as I, getFarmSourceRoots as J, getFarmAppDirectories as K, type LoadingProps as L, type MiddlewareProps as M, type NitroPreset as N, getFarmLayerAliases as O, type PluginContextProps as P, loadFarmConfigFile as Q, type ResolvedFarmMigrationsConfig as R, type StaticPathPrimitive as S, type FarmUserConfig as T, type BundleResultPayload as U, type FarmPlugin as V, type FarmIntegration as W, type ReadonlyMiddlewareStore as X, type FarmMiddlewareConfig as Y, type MiddlewareModule as Z, type FarmMdxResolvedConfig as _, type FarmMigrationCommand as a, type
|
|
1927
|
+
export { type ResolvedFarmDevtoolsConfig as $, type FarmLayerEntry as A, type BuildOptions as B, type ResolvedFarmLayer as C, type FarmSourceRoot as D, type ErrorProps as E, type FarmConfig as F, type ResolveFarmLayersOptions as G, type FarmLayerResolution as H, resolveFarmLayers as I, getFarmSourceRoots as J, getFarmAppDirectories as K, type LoadingProps as L, type MiddlewareProps as M, type NitroPreset as N, getFarmLayerAliases as O, type PluginContextProps as P, loadFarmConfigFile as Q, type ResolvedFarmMigrationsConfig as R, type StaticPathPrimitive as S, type FarmUserConfig as T, type BundleResultPayload as U, type FarmPlugin as V, type FarmIntegration as W, type ReadonlyMiddlewareStore as X, type FarmMiddlewareConfig as Y, type MiddlewareModule as Z, type FarmMdxResolvedConfig as _, type FarmMigrationCommand as a, type FarmDeployConfig as a$, type ResolvedFarmAuthConfig as a0, type OpenAPIConfig as a1, definePlugin as a2, PluginManager as a3, resolveConfig as a4, loadConfig as a5, resolveDeployConfig as a6, resolveMigrationsConfig as a7, resolveDeployOutputPath as a8, normalizeDeployTarget as a9, type FarmPluginRuntimeSession as aA, type FarmPluginDiscoveredRoute as aB, type FarmPluginRouterHooks as aC, type FarmPluginRenderHooks as aD, type FarmPluginBuildHooks as aE, type FarmPluginDevHooks as aF, type FarmPluginClientConfig as aG, type RouteDiscoveredPayload as aH, type RoutesGeneratedPayload as aI, type MiddlewareDiscoveredPayload as aJ, type APIRouteDiscoveredPayload as aK, type RouteMatchPayload as aL, type RouteMatchResultPayload as aM, type RenderLifecyclePayload as aN, type APIHandlerLifecyclePayload as aO, type ErrorLifecyclePayload as aP, type HMRUpdatePayload as aQ, type BundleLifecyclePayload as aR, type NitroBuildLifecyclePayload as aS, type ShutdownPayload as aT, type ResolvedFarmConfig as aU, type RedirectConfig as aV, type HeaderConfig as aW, type RewriteConfig as aX, type ImageConfig as aY, type I18nConfig as aZ, type MiddlewareConfig as a_, getDeployTargetForPreset as aa, getPresetForDeployTarget as ab, type FarmLayerConfig as ac, type FarmAuthConfig as ad, type FarmAuthDatabaseConfig as ae, type FarmAuthEmailAndPasswordConfig as af, type FarmAuthSessionConfig as ag, type FarmAuthUserConfig as ah, type PluginRequestContext as ai, type FarmPluginContext as aj, type FarmRequestPluginContext as ak, type FarmRequestStore as al, type FarmPluginRuntimeKind as am, type FarmPluginRouteRuntimePayload as an, type FarmPluginSetupContext as ao, type FarmPluginStateContext as ap, type FarmPluginRuntimeBaseEvent as aq, type FarmPluginRuntimeContextEvent as ar, type FarmPluginRuntimeBeforeEvent as as, type FarmPluginRuntimeAfterEvent as at, type FarmPluginRuntimeErrorEvent as au, type FarmPluginRuntimeStartEvent as av, type FarmPluginRuntimeCloseEvent as aw, type FarmPluginRuntimeHooks as ax, type FarmPluginRuntimeRequestOptions as ay, type FarmPluginRuntimeRequestHandler as az, type FarmMigrationsConfig as b, defineIntegration as b$, type ResolvedFarmDeployConfig as b0, type FarmDeployTarget as b1, type FarmIntegrationCategory as b2, type FarmIntegrationSlot as b3, type FarmIntegrationRouteParamValue as b4, type FarmIntegrationRouteParams as b5, type FarmIntegrationRouteMethod as b6, type FarmIntegrationRouteInputSource as b7, type FarmIntegrationValidationPathSegment as b8, type FarmIntegrationRouteInput as b9, type FarmIntegrationProviderProps as bA, type FarmIntegrationProvider as bB, type FarmIntegrationDocumentNavigation as bC, type FarmIntegrationSchemaFieldType as bD, type FarmIntegrationSchemaReference as bE, type FarmIntegrationSchemaField as bF, type FarmIntegrationSchemaConstraint as bG, type FarmIntegrationSchemaModel as bH, type FarmIntegrationSchemaModelExtension as bI, type FarmIntegrationSchemaModelOverride as bJ, type FarmIntegrationSchema as bK, defineIntegrationSchema as bL, type FarmIntegrationLogPhase as bM, type FarmIntegrationLogEvent as bN, type FarmIntegrationLogger as bO, type FarmIntegrationsUserConfig as bP, getFarmIntegrationPluginServerRuntime as bQ, type FarmIntegrationRouteFactory as bR, type FarmIntegrationRoutesFactoryContext as bS, type FarmIntegrationRoutesFactory as bT, type FarmIntegrationEndpointValue as bU, type FarmIntegrationEndpoints as bV, type FarmIntegrationEndpointsFactoryContext as bW, type FarmIntegrationEndpointsFactory as bX, createIntegrationRoute as bY, integrationRoute as bZ, type DefinedIntegration as b_, type FarmIntegrationValidationIssue as ba, type FarmIntegrationValidationErrorLike as bb, type FarmIntegrationValidationResult as bc, type FarmIntegrationStandardValidationResult as bd, type FarmIntegrationInputSchema as be, type FarmIntegrationRouteInputSchemas as bf, type FarmIntegrationRequestContextStore as bg, FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY as bh, type FarmIntegrationRouteDb as bi, type FarmIntegrationRouteStorageArgs as bj, type FarmIntegrationRouteArgs as bk, type FarmIntegrationConfigContext as bl, type FarmIntegrationConfigDefinition as bm, type FarmIntegrationConfigInput as bn, type FarmIntegrationLifecycleLogLevel as bo, type FarmIntegrationLifecycleLogger as bp, type FarmIntegrationLifecycleContext as bq, type FarmIntegrationLifecycleHook as br, type FarmIntegrationData as bs, type FarmIntegrationHandlerContext as bt, type FarmIntegrationRouteHookContext as bu, type FarmIntegrationRouteHook as bv, type FarmIntegrationRoute as bw, type FarmTypedIntegrationRoute as bx, type FarmIntegrationRouteMiddleware as by, type FarmIntegrationMiddleware as bz, type FarmMigrationsUserConfig as c, type FarmDevtoolsConfig as c$, isFarmIntegration as c0, resolveIntegrationPlugins as c1, getIntegrationProviders as c2, getIntegrationDocumentNavigationMatchers as c3, getIntegrationSchemas as c4, getRegisteredIntegrationRuntime as c5, getRegisteredIntegrations as c6, getRegisteredIntegrationSchemas as c7, matchIntegrationRoute as c8, matchRegisteredIntegrationRoute as c9, type FarmRouteRuleRenderMode as cA, type FarmRouteRuleRedirect as cB, type FarmRouteRuleCors as cC, type FarmRouteRule as cD, type FarmRouteRules as cE, normalizeRouteRules as cF, routeRulesToRedirects as cG, routeRulesToHeaders as cH, routeRulesToNitroRouteRules as cI, type FarmMdxComponent as cJ, type FarmMdxComponents as cK, type FarmMdxUserConfig as cL, type FarmMarkdownPageSource as cM, type FarmMarkdownPageModuleInput as cN, resolveMdxConfig as cO, isFarmMarkdownPageFile as cP, normalizeFarmMarkdownRoutePath as cQ, parseMarkdownFrontmatter as cR, titleFromMarkdown as cS, createMarkdownMetadata as cT, createFarmMarkdownRouteModule as cU, createFarmMarkdownRouteModuleFromFile as cV, loadFarmMdxComponents as cW, createFarmMarkdownSourceResponse as cX, DEFAULT_FARM_DEVTOOLS_SHORTCUT as cY, FARM_DEVTOOLS_PATH as cZ, FARM_DEVTOOLS_LAUNCH_PARAM as c_, getRegisteredIntegrationAPIManifest as ca, dispatchIntegrationRequest as cb, type FarmIntegrationOrmSchema as cc, type FarmIntegrationOrmClient as cd, type InferFarmIntegrationOrmField as ce, type InferFarmIntegrationOrmFields as cf, type InferFarmIntegrationOrmSchema as cg, type InferFarmIntegrationOrmClient as ch, type CreateIntegrationOrmOptions as ci, createIntegrationOrm as cj, resolveIntegrationOrmRuntimeClient as ck, farmIntegrationSchemaToOrmSchema as cl, type IntegrationOrmModelNames as cm, type MiddlewareContext as cn, type MiddlewareFunction as co, type RequestMiddleware as cp, type RequestMiddlewareContext as cq, type MiddlewareStore as cr, type MiddlewareChain as cs, type CookieJar as ct, type CookieOptions as cu, type RateLimitConfig as cv, type RateLimitStorage as cw, type RateLimitStatus as cx, type NextFunction as cy, type MiddlewareResult as cz, defineConfig as d, type FarmDevtoolsUserConfig as d0, resolveFarmDevtoolsConfig as d1, type MiddlewareConfig$1 as d2, farmI18nClientBridgePlugin as d3, rewriteEarlySsrRelativeImports as d4, type FarmContextFactoryInput as e, farmPlugin as f, type FarmContextFactory as g, type FarmAppContext as h, type PageProps as i, type PagePropsWithMiddleware as j, type LayoutProps as k, type Page as l, type Layout as m, type Loading as n, type ErrorBoundary as o, type RouteModule as p, type StaticPathParams as q, type LayoutModule as r, type Metadata as s, type FarmRequest as t, type FarmResponse as u, type ServerAction as v, type RouteSegment as w, type ParsedRoute as x, type SSGPage as y, type SSGCollectionResult as z };
|
|
@@ -14,7 +14,8 @@ import { FarmCronUserConfig, FarmCronResolvedConfig } from './cron.mjs';
|
|
|
14
14
|
import { FarmEnvConfig, ResolvedFarmEnv } from './env.mjs';
|
|
15
15
|
import { FarmServerActionsConfig, ResolvedFarmServerActionsConfig } from './server-action-security.mjs';
|
|
16
16
|
import { F as FarmImageConfig, R as ResolvedFarmImageConfig } from './image-config-Duob7wER.mjs';
|
|
17
|
-
import { k as FarmI18nUserConfig, R as ResolvedFarmI18nConfig } from './types-
|
|
17
|
+
import { k as FarmI18nUserConfig, R as ResolvedFarmI18nConfig } from './types-BMxWr97v.mjs';
|
|
18
|
+
import { FarmCacheUserConfig } from './cache.mjs';
|
|
18
19
|
import { F as FarmRouteRuntimeConfig, a as FarmRouteRuntime, b as FarmRouteRegions, c as FarmRouteMaxDuration } from './route-runtime-DoOHzCAD.mjs';
|
|
19
20
|
|
|
20
21
|
type RuntimeClientFactory<TClient> = () => TClient | Promise<TClient>;
|
|
@@ -398,6 +399,68 @@ interface ResolvedFarmDevtoolsConfig {
|
|
|
398
399
|
}
|
|
399
400
|
declare function resolveFarmDevtoolsConfig(config: FarmDevtoolsUserConfig | ResolvedFarmDevtoolsConfig | undefined, mode?: "development" | "production"): ResolvedFarmDevtoolsConfig;
|
|
400
401
|
|
|
402
|
+
interface FarmAuthEmailAndPasswordConfig {
|
|
403
|
+
/** Require a verified email before creating a session. @default false */
|
|
404
|
+
requireEmailVerification?: boolean;
|
|
405
|
+
/** Smallest accepted password length. @default 8 */
|
|
406
|
+
minPasswordLength?: number;
|
|
407
|
+
/** Largest accepted password length. @default 128 */
|
|
408
|
+
maxPasswordLength?: number;
|
|
409
|
+
}
|
|
410
|
+
interface FarmAuthSessionConfig {
|
|
411
|
+
/** Session lifetime in seconds. @default 604800 */
|
|
412
|
+
expiresIn?: number;
|
|
413
|
+
/** Session refresh interval in seconds. @default 86400 */
|
|
414
|
+
updateAge?: number;
|
|
415
|
+
}
|
|
416
|
+
interface FarmAuthDatabaseConfig {
|
|
417
|
+
/**
|
|
418
|
+
* Postgres connection string. Defaults to DATABASE_URL.
|
|
419
|
+
* Local development falls back to SQLite when no URL is present.
|
|
420
|
+
*/
|
|
421
|
+
url?: string;
|
|
422
|
+
/** Local SQLite path. @default ".farm/auth.sqlite" */
|
|
423
|
+
path?: string;
|
|
424
|
+
/** Automatically update the auth schema in development. @default true */
|
|
425
|
+
migrateInDevelopment?: boolean;
|
|
426
|
+
}
|
|
427
|
+
interface FarmAuthConfig {
|
|
428
|
+
/** Set false to disable auth without removing its configuration. @default true */
|
|
429
|
+
enabled?: boolean;
|
|
430
|
+
/** Display name used by authentication emails and metadata. */
|
|
431
|
+
appName?: string;
|
|
432
|
+
/** Route prefix for the auth endpoints. @default "/api/auth" */
|
|
433
|
+
basePath?: string;
|
|
434
|
+
/**
|
|
435
|
+
* Email/password authentication. It is enabled by default; set false to
|
|
436
|
+
* disable it when adding another sign-in method.
|
|
437
|
+
*/
|
|
438
|
+
emailAndPassword?: boolean | FarmAuthEmailAndPasswordConfig;
|
|
439
|
+
session?: FarmAuthSessionConfig;
|
|
440
|
+
database?: FarmAuthDatabaseConfig;
|
|
441
|
+
}
|
|
442
|
+
type FarmAuthUserConfig = boolean | FarmAuthConfig;
|
|
443
|
+
interface ResolvedFarmAuthConfig {
|
|
444
|
+
enabled: boolean;
|
|
445
|
+
appName?: string;
|
|
446
|
+
basePath: string;
|
|
447
|
+
emailAndPassword: {
|
|
448
|
+
enabled: boolean;
|
|
449
|
+
requireEmailVerification: boolean;
|
|
450
|
+
minPasswordLength: number;
|
|
451
|
+
maxPasswordLength: number;
|
|
452
|
+
};
|
|
453
|
+
session: {
|
|
454
|
+
expiresIn: number;
|
|
455
|
+
updateAge: number;
|
|
456
|
+
};
|
|
457
|
+
database: {
|
|
458
|
+
url?: string;
|
|
459
|
+
path: string;
|
|
460
|
+
migrateInDevelopment: boolean;
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
|
|
401
464
|
declare const FARM_RESOLVED_CUSTOM_CONTEXT: unique symbol;
|
|
402
465
|
|
|
403
466
|
interface RedirectConfig {
|
|
@@ -486,6 +549,14 @@ interface FarmUserConfig extends Omit<FarmConfig, "vite" | "docs" | "env" | "lay
|
|
|
486
549
|
extends?: readonly FarmLayerEntry[];
|
|
487
550
|
plugins?: FarmPlugin[];
|
|
488
551
|
integrations?: FarmIntegrationsUserConfig;
|
|
552
|
+
/**
|
|
553
|
+
* Farm-native authentication. `true` enables email/password auth with
|
|
554
|
+
* server helpers from `@farm.js/auth/server` and React APIs from
|
|
555
|
+
* `@farm.js/auth/client`.
|
|
556
|
+
*/
|
|
557
|
+
auth?: FarmAuthUserConfig;
|
|
558
|
+
/** Shared application data, route, ISR, and PPR cache. */
|
|
559
|
+
cache?: FarmCacheUserConfig;
|
|
489
560
|
migrations?: FarmMigrationsUserConfig;
|
|
490
561
|
/** Map portable cron schedules to ordinary GET API routes. */
|
|
491
562
|
cron?: FarmCronUserConfig | FarmCronResolvedConfig | false;
|
|
@@ -529,7 +600,7 @@ interface FarmUserConfig extends Omit<FarmConfig, "vite" | "docs" | "env" | "lay
|
|
|
529
600
|
vite?: UserConfig | ((config: UserConfig) => UserConfig);
|
|
530
601
|
[key: string]: any;
|
|
531
602
|
}
|
|
532
|
-
interface ResolvedFarmConfig extends Required<Omit<FarmUserConfig, "extends" | "plugins" | "vite" | "deploy" | "docs" | "md" | "mdx" | "migrations" | "cron" | "workflows" | "env" | "serverActions" | "devtools" | "images" | "i18n">> {
|
|
603
|
+
interface ResolvedFarmConfig extends Required<Omit<FarmUserConfig, "extends" | "plugins" | "vite" | "deploy" | "docs" | "md" | "mdx" | "migrations" | "cron" | "workflows" | "env" | "serverActions" | "devtools" | "images" | "i18n" | "auth">> {
|
|
533
604
|
/** @internal Tracks whether `context` came from user/layer config instead of the default noop. */
|
|
534
605
|
[FARM_RESOLVED_CUSTOM_CONTEXT]?: boolean;
|
|
535
606
|
extends: readonly FarmLayerEntry[];
|
|
@@ -548,6 +619,8 @@ interface ResolvedFarmConfig extends Required<Omit<FarmUserConfig, "extends" | "
|
|
|
548
619
|
devtools: ResolvedFarmDevtoolsConfig;
|
|
549
620
|
images: ResolvedFarmImageConfig;
|
|
550
621
|
i18n: ResolvedFarmI18nConfig;
|
|
622
|
+
auth: ResolvedFarmAuthConfig;
|
|
623
|
+
routeRules: FarmRouteRules;
|
|
551
624
|
}
|
|
552
625
|
type FarmLayerConfig = Omit<FarmUserConfig, "root" | "outDir" | "distDir" | "deploy" | "output" | "preset" | "publicDir" | "generateBuildId" | "deploymentId">;
|
|
553
626
|
|
|
@@ -567,6 +640,7 @@ declare function loadConfig(rootDir?: string, configPath?: string, mode?: string
|
|
|
567
640
|
interface FarmVitePluginOptions extends FarmConfig {
|
|
568
641
|
openapi?: FarmUserConfig["openapi"];
|
|
569
642
|
images?: FarmUserConfig["images"];
|
|
643
|
+
publicDir?: FarmUserConfig["publicDir"];
|
|
570
644
|
}
|
|
571
645
|
declare function farmI18nClientBridgePlugin(): Plugin;
|
|
572
646
|
interface FarmModuleAstNode {
|
|
@@ -1408,6 +1482,7 @@ interface FarmAppContext {
|
|
|
1408
1482
|
}
|
|
1409
1483
|
interface FarmConfig {
|
|
1410
1484
|
root?: string;
|
|
1485
|
+
/** App source directory. @default "src" */
|
|
1411
1486
|
srcDir?: string;
|
|
1412
1487
|
extends?: readonly FarmLayerEntry[];
|
|
1413
1488
|
/** Resolved layer graph. Populated by config resolution. */
|
|
@@ -1437,7 +1512,11 @@ interface FarmConfig {
|
|
|
1437
1512
|
};
|
|
1438
1513
|
};
|
|
1439
1514
|
storage?: FarmStorageUserConfig;
|
|
1515
|
+
/** Shared application data, route, ISR, and PPR cache. */
|
|
1516
|
+
cache?: FarmCacheUserConfig;
|
|
1440
1517
|
integrations?: FarmIntegrationsUserConfig;
|
|
1518
|
+
/** Farm-native authentication. `true` enables email/password auth. */
|
|
1519
|
+
auth?: FarmAuthUserConfig | ResolvedFarmAuthConfig;
|
|
1441
1520
|
plugins?: FarmPlugin[];
|
|
1442
1521
|
migrations?: FarmMigrationsUserConfig;
|
|
1443
1522
|
/** Map portable cron schedules to ordinary GET API routes. */
|
|
@@ -1467,9 +1546,9 @@ interface FarmConfig {
|
|
|
1467
1546
|
serverComponents?: boolean;
|
|
1468
1547
|
serverActions?: boolean;
|
|
1469
1548
|
/**
|
|
1470
|
-
*
|
|
1471
|
-
*
|
|
1472
|
-
*
|
|
1549
|
+
* Automatically optimize eligible server-only host-element subtrees with
|
|
1550
|
+
* the native Strata renderer. Unsupported trees keep normal React
|
|
1551
|
+
* rendering; no application boundary component is required.
|
|
1473
1552
|
*
|
|
1474
1553
|
* @experimental
|
|
1475
1554
|
* @default false
|
|
@@ -1845,4 +1924,4 @@ interface SSGCollectionResult {
|
|
|
1845
1924
|
ssr: string[];
|
|
1846
1925
|
}
|
|
1847
1926
|
|
|
1848
|
-
export { type ResolvedFarmDevtoolsConfig as $, type FarmLayerEntry as A, type BuildOptions as B, type ResolvedFarmLayer as C, type FarmSourceRoot as D, type ErrorProps as E, type FarmConfig as F, type ResolveFarmLayersOptions as G, type FarmLayerResolution as H, resolveFarmLayers as I, getFarmSourceRoots as J, getFarmAppDirectories as K, type LoadingProps as L, type MiddlewareProps as M, type NitroPreset as N, getFarmLayerAliases as O, type PluginContextProps as P, loadFarmConfigFile as Q, type ResolvedFarmMigrationsConfig as R, type StaticPathPrimitive as S, type FarmUserConfig as T, type BundleResultPayload as U, type FarmPlugin as V, type FarmIntegration as W, type ReadonlyMiddlewareStore as X, type FarmMiddlewareConfig as Y, type MiddlewareModule as Z, type FarmMdxResolvedConfig as _, type FarmMigrationCommand as a, type
|
|
1927
|
+
export { type ResolvedFarmDevtoolsConfig as $, type FarmLayerEntry as A, type BuildOptions as B, type ResolvedFarmLayer as C, type FarmSourceRoot as D, type ErrorProps as E, type FarmConfig as F, type ResolveFarmLayersOptions as G, type FarmLayerResolution as H, resolveFarmLayers as I, getFarmSourceRoots as J, getFarmAppDirectories as K, type LoadingProps as L, type MiddlewareProps as M, type NitroPreset as N, getFarmLayerAliases as O, type PluginContextProps as P, loadFarmConfigFile as Q, type ResolvedFarmMigrationsConfig as R, type StaticPathPrimitive as S, type FarmUserConfig as T, type BundleResultPayload as U, type FarmPlugin as V, type FarmIntegration as W, type ReadonlyMiddlewareStore as X, type FarmMiddlewareConfig as Y, type MiddlewareModule as Z, type FarmMdxResolvedConfig as _, type FarmMigrationCommand as a, type FarmDeployConfig as a$, type ResolvedFarmAuthConfig as a0, type OpenAPIConfig as a1, definePlugin as a2, PluginManager as a3, resolveConfig as a4, loadConfig as a5, resolveDeployConfig as a6, resolveMigrationsConfig as a7, resolveDeployOutputPath as a8, normalizeDeployTarget as a9, type FarmPluginRuntimeSession as aA, type FarmPluginDiscoveredRoute as aB, type FarmPluginRouterHooks as aC, type FarmPluginRenderHooks as aD, type FarmPluginBuildHooks as aE, type FarmPluginDevHooks as aF, type FarmPluginClientConfig as aG, type RouteDiscoveredPayload as aH, type RoutesGeneratedPayload as aI, type MiddlewareDiscoveredPayload as aJ, type APIRouteDiscoveredPayload as aK, type RouteMatchPayload as aL, type RouteMatchResultPayload as aM, type RenderLifecyclePayload as aN, type APIHandlerLifecyclePayload as aO, type ErrorLifecyclePayload as aP, type HMRUpdatePayload as aQ, type BundleLifecyclePayload as aR, type NitroBuildLifecyclePayload as aS, type ShutdownPayload as aT, type ResolvedFarmConfig as aU, type RedirectConfig as aV, type HeaderConfig as aW, type RewriteConfig as aX, type ImageConfig as aY, type I18nConfig as aZ, type MiddlewareConfig as a_, getDeployTargetForPreset as aa, getPresetForDeployTarget as ab, type FarmLayerConfig as ac, type FarmAuthConfig as ad, type FarmAuthDatabaseConfig as ae, type FarmAuthEmailAndPasswordConfig as af, type FarmAuthSessionConfig as ag, type FarmAuthUserConfig as ah, type PluginRequestContext as ai, type FarmPluginContext as aj, type FarmRequestPluginContext as ak, type FarmRequestStore as al, type FarmPluginRuntimeKind as am, type FarmPluginRouteRuntimePayload as an, type FarmPluginSetupContext as ao, type FarmPluginStateContext as ap, type FarmPluginRuntimeBaseEvent as aq, type FarmPluginRuntimeContextEvent as ar, type FarmPluginRuntimeBeforeEvent as as, type FarmPluginRuntimeAfterEvent as at, type FarmPluginRuntimeErrorEvent as au, type FarmPluginRuntimeStartEvent as av, type FarmPluginRuntimeCloseEvent as aw, type FarmPluginRuntimeHooks as ax, type FarmPluginRuntimeRequestOptions as ay, type FarmPluginRuntimeRequestHandler as az, type FarmMigrationsConfig as b, defineIntegration as b$, type ResolvedFarmDeployConfig as b0, type FarmDeployTarget as b1, type FarmIntegrationCategory as b2, type FarmIntegrationSlot as b3, type FarmIntegrationRouteParamValue as b4, type FarmIntegrationRouteParams as b5, type FarmIntegrationRouteMethod as b6, type FarmIntegrationRouteInputSource as b7, type FarmIntegrationValidationPathSegment as b8, type FarmIntegrationRouteInput as b9, type FarmIntegrationProviderProps as bA, type FarmIntegrationProvider as bB, type FarmIntegrationDocumentNavigation as bC, type FarmIntegrationSchemaFieldType as bD, type FarmIntegrationSchemaReference as bE, type FarmIntegrationSchemaField as bF, type FarmIntegrationSchemaConstraint as bG, type FarmIntegrationSchemaModel as bH, type FarmIntegrationSchemaModelExtension as bI, type FarmIntegrationSchemaModelOverride as bJ, type FarmIntegrationSchema as bK, defineIntegrationSchema as bL, type FarmIntegrationLogPhase as bM, type FarmIntegrationLogEvent as bN, type FarmIntegrationLogger as bO, type FarmIntegrationsUserConfig as bP, getFarmIntegrationPluginServerRuntime as bQ, type FarmIntegrationRouteFactory as bR, type FarmIntegrationRoutesFactoryContext as bS, type FarmIntegrationRoutesFactory as bT, type FarmIntegrationEndpointValue as bU, type FarmIntegrationEndpoints as bV, type FarmIntegrationEndpointsFactoryContext as bW, type FarmIntegrationEndpointsFactory as bX, createIntegrationRoute as bY, integrationRoute as bZ, type DefinedIntegration as b_, type FarmIntegrationValidationIssue as ba, type FarmIntegrationValidationErrorLike as bb, type FarmIntegrationValidationResult as bc, type FarmIntegrationStandardValidationResult as bd, type FarmIntegrationInputSchema as be, type FarmIntegrationRouteInputSchemas as bf, type FarmIntegrationRequestContextStore as bg, FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY as bh, type FarmIntegrationRouteDb as bi, type FarmIntegrationRouteStorageArgs as bj, type FarmIntegrationRouteArgs as bk, type FarmIntegrationConfigContext as bl, type FarmIntegrationConfigDefinition as bm, type FarmIntegrationConfigInput as bn, type FarmIntegrationLifecycleLogLevel as bo, type FarmIntegrationLifecycleLogger as bp, type FarmIntegrationLifecycleContext as bq, type FarmIntegrationLifecycleHook as br, type FarmIntegrationData as bs, type FarmIntegrationHandlerContext as bt, type FarmIntegrationRouteHookContext as bu, type FarmIntegrationRouteHook as bv, type FarmIntegrationRoute as bw, type FarmTypedIntegrationRoute as bx, type FarmIntegrationRouteMiddleware as by, type FarmIntegrationMiddleware as bz, type FarmMigrationsUserConfig as c, type FarmDevtoolsConfig as c$, isFarmIntegration as c0, resolveIntegrationPlugins as c1, getIntegrationProviders as c2, getIntegrationDocumentNavigationMatchers as c3, getIntegrationSchemas as c4, getRegisteredIntegrationRuntime as c5, getRegisteredIntegrations as c6, getRegisteredIntegrationSchemas as c7, matchIntegrationRoute as c8, matchRegisteredIntegrationRoute as c9, type FarmRouteRuleRenderMode as cA, type FarmRouteRuleRedirect as cB, type FarmRouteRuleCors as cC, type FarmRouteRule as cD, type FarmRouteRules as cE, normalizeRouteRules as cF, routeRulesToRedirects as cG, routeRulesToHeaders as cH, routeRulesToNitroRouteRules as cI, type FarmMdxComponent as cJ, type FarmMdxComponents as cK, type FarmMdxUserConfig as cL, type FarmMarkdownPageSource as cM, type FarmMarkdownPageModuleInput as cN, resolveMdxConfig as cO, isFarmMarkdownPageFile as cP, normalizeFarmMarkdownRoutePath as cQ, parseMarkdownFrontmatter as cR, titleFromMarkdown as cS, createMarkdownMetadata as cT, createFarmMarkdownRouteModule as cU, createFarmMarkdownRouteModuleFromFile as cV, loadFarmMdxComponents as cW, createFarmMarkdownSourceResponse as cX, DEFAULT_FARM_DEVTOOLS_SHORTCUT as cY, FARM_DEVTOOLS_PATH as cZ, FARM_DEVTOOLS_LAUNCH_PARAM as c_, getRegisteredIntegrationAPIManifest as ca, dispatchIntegrationRequest as cb, type FarmIntegrationOrmSchema as cc, type FarmIntegrationOrmClient as cd, type InferFarmIntegrationOrmField as ce, type InferFarmIntegrationOrmFields as cf, type InferFarmIntegrationOrmSchema as cg, type InferFarmIntegrationOrmClient as ch, type CreateIntegrationOrmOptions as ci, createIntegrationOrm as cj, resolveIntegrationOrmRuntimeClient as ck, farmIntegrationSchemaToOrmSchema as cl, type IntegrationOrmModelNames as cm, type MiddlewareContext as cn, type MiddlewareFunction as co, type RequestMiddleware as cp, type RequestMiddlewareContext as cq, type MiddlewareStore as cr, type MiddlewareChain as cs, type CookieJar as ct, type CookieOptions as cu, type RateLimitConfig as cv, type RateLimitStorage as cw, type RateLimitStatus as cx, type NextFunction as cy, type MiddlewareResult as cz, defineConfig as d, type FarmDevtoolsUserConfig as d0, resolveFarmDevtoolsConfig as d1, type MiddlewareConfig$1 as d2, farmI18nClientBridgePlugin as d3, rewriteEarlySsrRelativeImports as d4, type FarmContextFactoryInput as e, farmPlugin as f, type FarmContextFactory as g, type FarmAppContext as h, type PageProps as i, type PagePropsWithMiddleware as j, type LayoutProps as k, type Page as l, type Layout as m, type Loading as n, type ErrorBoundary as o, type RouteModule as p, type StaticPathParams as q, type LayoutModule as r, type Metadata as s, type FarmRequest as t, type FarmResponse as u, type ServerAction as v, type RouteSegment as w, type ParsedRoute as x, type SSGPage as y, type SSGCollectionResult as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { a as FarmClientHydrationCompleteEvent, b as FarmClientHydrationEvent, d as FarmClientHydrationMode, e as FarmClientHydrationSession, f as FarmClientLocation, g as FarmClientNavigationAction, h as FarmClientNavigationErrorEvent, i as FarmClientNavigationEvent, j as FarmClientNavigationLoadedEvent, k as FarmClientNavigationResolvedEvent, l as FarmClientNavigationSession, m as FarmClientPerformanceEvent, n as FarmClientPlugin, o as FarmClientPluginCloseEvent, p as FarmClientPluginEnforce, q as FarmClientPluginErrorEvent, r as FarmClientPluginErrorPhase, F as FarmClientPluginManager, s as FarmClientPluginManagerOptions, t as FarmClientPluginMetadata, u as FarmClientPluginRegistration, v as FarmClientPluginRouter, w as FarmClientPluginSetupEvent, x as FarmClientPluginStateEvent, c as createClientPluginManager } from './plugin-BJDf43dc.mjs';
|
|
2
|
-
export { V as FarmPlugin,
|
|
2
|
+
export { V as FarmPlugin, aj as FarmPluginContext, ak as FarmRequestPluginContext, al as FarmRequestStore } from './client-plugins-jsk-ZLzJ.mjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'http';
|
|
5
5
|
import './types-D1A6-XvH.mjs';
|
|
@@ -17,5 +17,6 @@ import './cron.mjs';
|
|
|
17
17
|
import './env.mjs';
|
|
18
18
|
import './server-action-security.mjs';
|
|
19
19
|
import './image-config-Duob7wER.mjs';
|
|
20
|
-
import './types-
|
|
20
|
+
import './types-BMxWr97v.mjs';
|
|
21
|
+
import './cache.mjs';
|
|
21
22
|
import './route-runtime-DoOHzCAD.mjs';
|
package/dist/client-plugins.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { a as FarmClientHydrationCompleteEvent, b as FarmClientHydrationEvent, d as FarmClientHydrationMode, e as FarmClientHydrationSession, f as FarmClientLocation, g as FarmClientNavigationAction, h as FarmClientNavigationErrorEvent, i as FarmClientNavigationEvent, j as FarmClientNavigationLoadedEvent, k as FarmClientNavigationResolvedEvent, l as FarmClientNavigationSession, m as FarmClientPerformanceEvent, n as FarmClientPlugin, o as FarmClientPluginCloseEvent, p as FarmClientPluginEnforce, q as FarmClientPluginErrorEvent, r as FarmClientPluginErrorPhase, F as FarmClientPluginManager, s as FarmClientPluginManagerOptions, t as FarmClientPluginMetadata, u as FarmClientPluginRegistration, v as FarmClientPluginRouter, w as FarmClientPluginSetupEvent, x as FarmClientPluginStateEvent, c as createClientPluginManager } from './plugin-BJDf43dc.js';
|
|
2
|
-
export { V as FarmPlugin,
|
|
2
|
+
export { V as FarmPlugin, aj as FarmPluginContext, ak as FarmRequestPluginContext, al as FarmRequestStore } from './client-plugins-Bc5jHcNr.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'http';
|
|
5
5
|
import './types-D1A6-XvH.js';
|
|
@@ -17,5 +17,6 @@ import './cron.js';
|
|
|
17
17
|
import './env.js';
|
|
18
18
|
import './server-action-security.js';
|
|
19
19
|
import './image-config-Duob7wER.js';
|
|
20
|
-
import './types-
|
|
20
|
+
import './types-BMxWr97v.js';
|
|
21
|
+
import './cache.js';
|
|
21
22
|
import './route-runtime-DoOHzCAD.js';
|