@farm.js/core 0.1.42 → 0.1.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-mcp-ssVy_tea.d.mts → agent-mcp-CWI-awqd.d.mts} +1 -1
- package/dist/{agent-mcp-SSD6L3VZ.d.ts → agent-mcp-EnzWYv_X.d.ts} +1 -1
- package/dist/agent-runtime.cjs +3 -2
- package/dist/agent-runtime.d.mts +1 -1
- package/dist/agent-runtime.d.ts +1 -1
- package/dist/agent-runtime.mjs +2 -1
- package/dist/api/route-manager.d.mts +3 -3
- package/dist/api/route-manager.d.ts +3 -3
- package/dist/api/runtime.d.mts +2 -2
- package/dist/api/runtime.d.ts +2 -2
- package/dist/api.cjs +2 -2
- package/dist/api.d.mts +8 -3
- package/dist/api.d.ts +8 -3
- package/dist/api.mjs +1 -1
- package/dist/{app-KjFzdCqy.d.ts → app-CAN_2Cqo.d.ts} +8 -4
- package/dist/{app-1h3lVT4a.d.mts → app-DG3dE8v5.d.mts} +8 -4
- package/dist/{app-manifest-D3RkVNuS.d.mts → app-manifest-8x5VjZ0L.d.mts} +1 -1
- package/dist/{app-manifest-DaW8-tvX.d.ts → app-manifest-DazjgQya.d.ts} +1 -1
- package/dist/app-markdown.d.mts +2 -2
- package/dist/app-markdown.d.ts +2 -2
- package/dist/{chunk-ECKF2BAM.cjs → chunk-2GVF3C2F.cjs} +255 -42
- package/dist/{chunk-TUL355PH.mjs → chunk-2MKTHHEU.mjs} +136 -161
- package/dist/chunk-2NXO5SBY.mjs +57 -0
- package/dist/{chunk-AX7S67YV.mjs → chunk-37VKVISD.mjs} +9 -173
- package/dist/chunk-3BROEWFY.cjs +39 -0
- package/dist/chunk-3SAWHWDH.cjs +186 -0
- package/dist/{chunk-AHFRQMRX.cjs → chunk-3YJMBQ27.cjs} +1 -1
- package/dist/{chunk-6PKXK4TY.mjs → chunk-53ZV6K65.mjs} +1 -1
- package/dist/{chunk-JG3MEQUH.cjs → chunk-5GBL2LKD.cjs} +430 -217
- package/dist/{chunk-LYIZHJTK.cjs → chunk-5LPHJZSI.cjs} +14 -14
- package/dist/chunk-5NIWBWDD.mjs +97 -0
- package/dist/{chunk-NRDBW4MP.mjs → chunk-7IQQIPRZ.mjs} +10 -0
- package/dist/{chunk-TCJ4A4A2.cjs → chunk-AI3WVJNP.cjs} +324 -350
- package/dist/chunk-APDGOKKE.cjs +148 -0
- package/dist/chunk-AZBSVLRM.cjs +132 -0
- package/dist/{chunk-RHGK2JEN.cjs → chunk-B6XAA7V6.cjs} +18 -182
- package/dist/chunk-CEDPEDNW.cjs +98 -0
- package/dist/{chunk-WSOBCAYO.cjs → chunk-CW6SNEN2.cjs} +25 -25
- package/dist/chunk-D5RFPV2H.mjs +148 -0
- package/dist/chunk-E22SWCXB.cjs +144 -0
- package/dist/{chunk-375K2ZVU.mjs → chunk-ERA5RP3L.mjs} +263 -50
- package/dist/{chunk-724JLMS4.mjs → chunk-F646BZ4Y.mjs} +4 -2
- package/dist/{chunk-C5KVWHIH.cjs → chunk-G2Z5DGMS.cjs} +5 -3
- package/dist/{chunk-ZATTDMBW.cjs → chunk-GA6JM4L6.cjs} +279 -376
- package/dist/chunk-GZWHCWLB.mjs +186 -0
- package/dist/{chunk-24SP5TGU.mjs → chunk-H4LXPWI2.mjs} +2 -2
- package/dist/chunk-H7BLEEAE.cjs +57 -0
- package/dist/chunk-IOMVXBLZ.mjs +144 -0
- package/dist/{chunk-BD3D7EZV.cjs → chunk-IXFOBGLQ.cjs} +9 -3
- package/dist/{chunk-JIYYX7WU.mjs → chunk-JVXW76I7.mjs} +2 -2
- package/dist/{chunk-MHN4UR5U.cjs → chunk-KFZZFZ7J.cjs} +7 -7
- package/dist/{chunk-BXJ5HJTJ.cjs → chunk-LPE3ED4R.cjs} +17 -13
- package/dist/chunk-LRJRXXQZ.cjs +109 -0
- package/dist/{chunk-HCSVR4YZ.mjs → chunk-M3BXTWJM.mjs} +18 -0
- package/dist/{chunk-2JZHQDUY.mjs → chunk-OYZGFRPA.mjs} +1 -1
- package/dist/{chunk-JR4QCLJY.cjs → chunk-PDU4P2IC.cjs} +19 -1
- package/dist/chunk-PJEHUSHA.mjs +229 -0
- package/dist/{chunk-QTEJGB5A.mjs → chunk-QGFKXYC7.mjs} +80 -177
- package/dist/chunk-QGH2RQVF.mjs +132 -0
- package/dist/{chunk-YWMZUGIS.mjs → chunk-R3ZFQJEF.mjs} +247 -34
- package/dist/{chunk-U2UC7UGP.mjs → chunk-R4J2UOV4.mjs} +1 -1
- package/dist/chunk-S34OBRMZ.mjs +109 -0
- package/dist/{chunk-TS4JHGUJ.mjs → chunk-S3ZEMCE6.mjs} +9 -3
- package/dist/{chunk-WWFTAUFG.cjs → chunk-SBH2JLLF.cjs} +12 -2
- package/dist/{chunk-YSLWRWWP.cjs → chunk-SKK6UF5P.cjs} +200 -46
- package/dist/{chunk-ZS6HDNOM.cjs → chunk-T44ECMEP.cjs} +6 -6
- package/dist/{chunk-OFZUJMCU.mjs → chunk-WPJQN64R.mjs} +195 -41
- package/dist/{chunk-NU25TRIO.mjs → chunk-WWYXIECF.mjs} +12 -8
- package/dist/{chunk-7YHSD3Z6.cjs → chunk-XPSGGECF.cjs} +85 -31
- package/dist/chunk-XUGFRFD2.mjs +39 -0
- package/dist/{chunk-IVQY6UTY.mjs → chunk-XUHIRBXY.mjs} +1 -1
- package/dist/{chunk-PIZXONIS.mjs → chunk-YFLBG2W3.mjs} +56 -2
- package/dist/chunk-YKUEJ3MG.cjs +229 -0
- package/dist/{chunk-QKZMB7LY.cjs → chunk-YN2QEMMO.cjs} +2 -2
- package/dist/{client-plugins-DIem0I0W.d.ts → client-plugins-BGS0wqzc.d.ts} +36 -16
- package/dist/{client-plugins-C9Py_50W.d.mts → client-plugins-nQ0tYt4l.d.mts} +36 -16
- package/dist/client-plugins.d.mts +1 -1
- package/dist/client-plugins.d.ts +1 -1
- package/dist/client.cjs +4 -3
- package/dist/client.d.mts +5 -5
- package/dist/client.d.ts +5 -5
- package/dist/client.mjs +3 -2
- package/dist/config.d.mts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/{devtools-2RY3EKHL.cjs → devtools-5Q7VRKVH.cjs} +6 -5
- package/dist/{devtools-Q3LBNUJ7.mjs → devtools-LJ4IGYGW.mjs} +5 -4
- package/dist/docs.cjs +7 -6
- package/dist/docs.d.mts +2 -2
- package/dist/docs.d.ts +2 -2
- package/dist/docs.mjs +6 -5
- package/dist/index-Cy26isrh.d.ts +48 -0
- package/dist/index-y1jgR74U.d.mts +48 -0
- package/dist/index.cjs +44 -25
- package/dist/index.d.mts +15 -15
- package/dist/index.d.ts +15 -15
- package/dist/index.mjs +51 -32
- package/dist/integrations.cjs +5 -3
- package/dist/integrations.d.mts +1 -1
- package/dist/integrations.d.ts +1 -1
- package/dist/integrations.mjs +6 -4
- package/dist/internal/app-markdown-runtime.d.mts +2 -2
- package/dist/internal/app-markdown-runtime.d.ts +2 -2
- package/dist/internal/build-runtime.cjs +30 -15
- package/dist/internal/build-runtime.d.mts +12 -16
- package/dist/internal/build-runtime.d.ts +12 -16
- package/dist/internal/build-runtime.mjs +29 -14
- package/dist/internal/cli-runtime.cjs +24 -11
- package/dist/internal/cli-runtime.mjs +24 -11
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +5 -1
- package/dist/internal/client-runtime.d.mts +1 -0
- package/dist/internal/client-runtime.d.ts +1 -0
- package/dist/internal/client-runtime.mjs +4 -0
- package/dist/internal/compression-runtime.d.mts +1 -1
- package/dist/internal/compression-runtime.d.ts +1 -1
- package/dist/internal/config-runtime.cjs +6 -5
- package/dist/internal/config-runtime.d.mts +2 -2
- package/dist/internal/config-runtime.d.ts +2 -2
- package/dist/internal/config-runtime.mjs +5 -4
- package/dist/internal/form-actions-client.cjs +18 -0
- package/dist/internal/form-actions-client.d.mts +5 -0
- package/dist/internal/form-actions-client.d.ts +5 -0
- package/dist/internal/form-actions-client.mjs +18 -0
- package/dist/internal/form-actions.cjs +18 -0
- package/dist/internal/form-actions.d.mts +14 -0
- package/dist/internal/form-actions.d.ts +14 -0
- package/dist/internal/form-actions.mjs +18 -0
- package/dist/internal/island-codec.cjs +22 -0
- package/dist/internal/island-codec.d.mts +29 -0
- package/dist/internal/island-codec.d.ts +29 -0
- package/dist/internal/island-codec.mjs +22 -0
- package/dist/internal/island-value-store.cjs +13 -0
- package/dist/internal/island-value-store.d.mts +6 -0
- package/dist/internal/island-value-store.d.ts +6 -0
- package/dist/internal/island-value-store.mjs +13 -0
- package/dist/internal/islands-runtime.cjs +77 -0
- package/dist/internal/islands-runtime.d.mts +57 -0
- package/dist/internal/islands-runtime.d.ts +57 -0
- package/dist/internal/islands-runtime.mjs +77 -0
- package/dist/internal/islands-server.cjs +19 -0
- package/dist/internal/islands-server.d.mts +3 -0
- package/dist/internal/islands-server.d.ts +3 -0
- package/dist/internal/islands-server.mjs +19 -0
- package/dist/internal/islx-client.cjs +5 -0
- package/dist/internal/islx-client.d.mts +2 -0
- package/dist/internal/islx-client.d.ts +2 -0
- package/dist/internal/islx-client.mjs +3 -0
- package/dist/internal/islx-react.cjs +4 -0
- package/dist/internal/islx-react.d.mts +1 -0
- package/dist/internal/islx-react.d.ts +1 -0
- package/dist/internal/islx-react.mjs +2 -0
- package/dist/internal/islx-server.cjs +5 -0
- package/dist/internal/islx-server.d.mts +2 -0
- package/dist/internal/islx-server.d.ts +2 -0
- package/dist/internal/islx-server.mjs +3 -0
- package/dist/internal/isolated-boundary.cjs +4 -3
- package/dist/internal/isolated-boundary.d.mts +13 -1
- package/dist/internal/isolated-boundary.d.ts +13 -1
- package/dist/internal/isolated-boundary.mjs +3 -2
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +24 -13
- package/dist/internal/production-runtime.d.mts +20 -10
- package/dist/internal/production-runtime.d.ts +20 -10
- package/dist/internal/production-runtime.mjs +24 -13
- package/dist/internal/server-tree.cjs +6 -3
- package/dist/internal/server-tree.d.mts +25 -2
- package/dist/internal/server-tree.d.ts +25 -2
- package/dist/internal/server-tree.mjs +7 -4
- package/dist/island-value-protocol-BRayRghM.d.mts +12 -0
- package/dist/island-value-protocol-BRayRghM.d.ts +12 -0
- package/dist/markdown.d.mts +1 -1
- package/dist/markdown.d.ts +1 -1
- package/dist/middleware.d.mts +3 -3
- package/dist/middleware.d.ts +3 -3
- package/dist/navigation.cjs +5 -4
- package/dist/navigation.d.mts +4 -4
- package/dist/navigation.d.ts +4 -4
- package/dist/navigation.mjs +4 -3
- package/dist/og.d.mts +5 -0
- package/dist/og.d.ts +5 -0
- package/dist/plugin.cjs +19 -12
- package/dist/plugin.d.mts +3 -3
- package/dist/plugin.d.ts +3 -3
- package/dist/plugin.mjs +18 -11
- package/dist/{production-runtime-bjjWq-DA.d.ts → production-runtime-BVMDgHrA.d.ts} +1 -1
- package/dist/{production-runtime-CHFKIgpW.d.mts → production-runtime-ClFA_1KQ.d.mts} +1 -1
- package/dist/query/client.cjs +6 -5
- package/dist/query/client.mjs +2 -1
- package/dist/{render-plan-DOHg6wdO.d.mts → render-plan-CoSovy_O.d.mts} +4 -2
- package/dist/{render-plan-B2UndB4x.d.ts → render-plan-y2DefWf8.d.ts} +4 -2
- package/dist/renderer/react/server.cjs +7 -6
- package/dist/renderer/react/server.d.mts +3 -1
- package/dist/renderer/react/server.d.ts +3 -1
- package/dist/renderer/react/server.mjs +5 -4
- package/dist/renderer-client.cjs +5 -4
- package/dist/renderer-client.d.mts +3 -3
- package/dist/renderer-client.d.ts +3 -3
- package/dist/renderer-client.mjs +2 -1
- package/dist/renderer.d.mts +3 -1
- package/dist/renderer.d.ts +3 -1
- package/dist/{request-DVNXRQrI.d.ts → request-aG5Wovm5.d.ts} +1 -1
- package/dist/{request-DQcGfdgQ.d.mts → request-cNM09Q7e.d.mts} +1 -1
- package/dist/request.d.mts +2 -2
- package/dist/request.d.ts +2 -2
- package/dist/{route-rendering-B_6fj-GG.d.ts → route-rendering-B3uQmCWX.d.ts} +1 -1
- package/dist/{route-rendering-CEX4mFn-.d.mts → route-rendering-EyInfsjI.d.mts} +1 -1
- package/dist/{router-CHEMHm1P.d.ts → router-DNUf-Bg1.d.ts} +1 -1
- package/dist/{router-CKHPBKXX.d.mts → router-Devibh4r.d.mts} +1 -1
- package/dist/routes.d.mts +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/rsc-pipeline-4ZJ6GUVQ.cjs +78 -0
- package/dist/rsc-pipeline-KK6GFDET.mjs +78 -0
- package/dist/{runtime-jj8TKNsy.d.mts → runtime-9KZb8AI5.d.mts} +1 -1
- package/dist/{runtime-Br2ZDTAv.d.ts → runtime-CLr9P5kn.d.ts} +1 -1
- package/dist/{schema-dev-notice-5JPE67AI.cjs → schema-dev-notice-77ZL23PL.cjs} +4 -4
- package/dist/{schema-dev-notice-WLPZ6WKU.mjs → schema-dev-notice-BLXOS6U2.mjs} +2 -2
- package/dist/server-plugins.d.mts +2 -2
- package/dist/server-plugins.d.ts +2 -2
- package/dist/server.cjs +57 -38
- package/dist/server.d.mts +15 -10
- package/dist/server.d.ts +15 -10
- package/dist/server.mjs +37 -18
- package/dist/{spa-router-BEvS9Erj.d.mts → spa-router-BIxh4IY-.d.mts} +8 -3
- package/dist/{spa-router-DmCuH5B7.d.ts → spa-router-Ds6R_oe-.d.ts} +8 -3
- package/dist/{ssg-57v6cZcW.d.mts → ssg-ByrOVYdM.d.mts} +2 -2
- package/dist/{ssg-gT093ETk.d.ts → ssg-XnMHCyEc.d.ts} +2 -2
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/{utils-CCTKvR-P.d.ts → utils-BN70ueSN.d.ts} +1 -1
- package/dist/{utils-raHHQVyL.d.mts → utils-BrjR5xRs.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +19 -12
- package/dist/vite.d.mts +6 -4
- package/dist/vite.d.ts +6 -4
- package/dist/vite.mjs +18 -11
- package/package.json +53 -1
- package/dist/{chunk-35WS7P2V.mjs → chunk-26CXZR6L.mjs} +3 -3
- package/dist/{chunk-QEILRWVV.cjs → chunk-3XEMGDBF.cjs} +2 -2
- package/dist/{chunk-BPOTSHDO.cjs → chunk-IOAUK4OI.cjs} +2 -2
- package/dist/{chunk-BYR3RQPB.mjs → chunk-T76H22WI.mjs} +4 -4
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import {
|
|
2
|
+
buildFarmRsc,
|
|
3
|
+
createFarmRscDevServer,
|
|
4
|
+
createFarmRscViteConfig
|
|
5
|
+
} from "./chunk-IOMVXBLZ.mjs";
|
|
6
|
+
import {
|
|
7
|
+
FARM_RSC_PACKAGES,
|
|
8
|
+
farmAppUsesRscPipeline,
|
|
9
|
+
farmConfigUsesServerComponents,
|
|
10
|
+
inspectFarmServerComponents
|
|
11
|
+
} from "./chunk-QGH2RQVF.mjs";
|
|
12
|
+
import "./chunk-WWYXIECF.mjs";
|
|
13
|
+
import "./chunk-XZNTNMHT.mjs";
|
|
14
|
+
import "./chunk-5NIWBWDD.mjs";
|
|
15
|
+
import "./chunk-S34OBRMZ.mjs";
|
|
16
|
+
import "./chunk-M3BXTWJM.mjs";
|
|
17
|
+
import "./chunk-CZS6OACQ.mjs";
|
|
18
|
+
import "./chunk-JBSVKMC5.mjs";
|
|
19
|
+
import "./chunk-GHFS7RUB.mjs";
|
|
20
|
+
import "./chunk-DAATZTKJ.mjs";
|
|
21
|
+
import "./chunk-DMRPN25V.mjs";
|
|
22
|
+
import "./chunk-ETPEZLS3.mjs";
|
|
23
|
+
import "./chunk-7UEEHAW7.mjs";
|
|
24
|
+
import "./chunk-BUGNQIHC.mjs";
|
|
25
|
+
import "./chunk-G2KY33I6.mjs";
|
|
26
|
+
import "./chunk-YHOCRI4H.mjs";
|
|
27
|
+
import "./chunk-WMHG64DA.mjs";
|
|
28
|
+
import "./chunk-4OOBRCJX.mjs";
|
|
29
|
+
import "./chunk-FA2W42OV.mjs";
|
|
30
|
+
import "./chunk-I6UVKUYK.mjs";
|
|
31
|
+
import "./chunk-KYN5ODF6.mjs";
|
|
32
|
+
import "./chunk-SFGWNC43.mjs";
|
|
33
|
+
import "./chunk-BPNRQ5BA.mjs";
|
|
34
|
+
import "./chunk-2UC36WAC.mjs";
|
|
35
|
+
import "./chunk-ONUEYC6N.mjs";
|
|
36
|
+
import "./chunk-AELACLOB.mjs";
|
|
37
|
+
import "./chunk-37VKVISD.mjs";
|
|
38
|
+
import "./chunk-H3EGVQE5.mjs";
|
|
39
|
+
import "./chunk-GZWHCWLB.mjs";
|
|
40
|
+
import "./chunk-44SYJEG3.mjs";
|
|
41
|
+
import "./chunk-HKFBMHCD.mjs";
|
|
42
|
+
import "./chunk-YOZYCI6Z.mjs";
|
|
43
|
+
import "./chunk-ZLAT2CWY.mjs";
|
|
44
|
+
import "./chunk-2J7W2WND.mjs";
|
|
45
|
+
import "./chunk-MGMF4VP7.mjs";
|
|
46
|
+
import "./chunk-FP2INE7H.mjs";
|
|
47
|
+
import "./chunk-BCMSYSN2.mjs";
|
|
48
|
+
import "./chunk-KI3MESHB.mjs";
|
|
49
|
+
import "./chunk-QVKYGNVM.mjs";
|
|
50
|
+
import "./chunk-4GP3XZ4Z.mjs";
|
|
51
|
+
import "./chunk-Z2RZJZIZ.mjs";
|
|
52
|
+
import "./chunk-BTHHUD7Q.mjs";
|
|
53
|
+
import "./chunk-ZZGQD7A4.mjs";
|
|
54
|
+
import "./chunk-P7XDC7UJ.mjs";
|
|
55
|
+
import "./chunk-JPLUGGRV.mjs";
|
|
56
|
+
import "./chunk-O7BH5O46.mjs";
|
|
57
|
+
import "./chunk-7LTCDQRS.mjs";
|
|
58
|
+
import "./chunk-SKNL7VA2.mjs";
|
|
59
|
+
import "./chunk-2A3EQHXX.mjs";
|
|
60
|
+
import "./chunk-4SIYUGRY.mjs";
|
|
61
|
+
import "./chunk-SAXPH6G5.mjs";
|
|
62
|
+
import "./chunk-Z3HATSKO.mjs";
|
|
63
|
+
import "./chunk-CBBLJMR5.mjs";
|
|
64
|
+
import "./chunk-CQ6OSQ3K.mjs";
|
|
65
|
+
import "./chunk-6LVRDOAW.mjs";
|
|
66
|
+
import "./chunk-L3KT7IXV.mjs";
|
|
67
|
+
import "./chunk-4RB44K6Z.mjs";
|
|
68
|
+
import "./chunk-55YI3RRB.mjs";
|
|
69
|
+
import "./chunk-LPEX4YW6.mjs";
|
|
70
|
+
export {
|
|
71
|
+
FARM_RSC_PACKAGES,
|
|
72
|
+
buildFarmRsc,
|
|
73
|
+
createFarmRscDevServer,
|
|
74
|
+
createFarmRscViteConfig,
|
|
75
|
+
farmAppUsesRscPipeline,
|
|
76
|
+
farmConfigUsesServerComponents,
|
|
77
|
+
inspectFarmServerComponents
|
|
78
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { f as EndpointFailure } from './endpoint-DGZRZHux.mjs';
|
|
2
2
|
import { c as PluginRoutesFactory } from './integration-api-DWyMmvrR.mjs';
|
|
3
3
|
import { a as APIRouteParams, A as APIRouteMatch } from './route-pattern-W-SsJGSp.mjs';
|
|
4
|
-
import './client-plugins-
|
|
4
|
+
import './client-plugins-nQ0tYt4l.mjs';
|
|
5
5
|
|
|
6
6
|
interface MountedRoute {
|
|
7
7
|
path: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { f as EndpointFailure } from './endpoint-BOE0IAaG.js';
|
|
2
2
|
import { c as PluginRoutesFactory } from './integration-api-BuPHMeKz.js';
|
|
3
3
|
import { a as APIRouteParams, A as APIRouteMatch } from './route-pattern-W-SsJGSp.js';
|
|
4
|
-
import './client-plugins-
|
|
4
|
+
import './client-plugins-BGS0wqzc.js';
|
|
5
5
|
|
|
6
6
|
interface MountedRoute {
|
|
7
7
|
path: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
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
|
|
5
|
-
require('./chunk-ZQRCSUSB.cjs');
|
|
4
|
+
var _chunkIOAUK4OIcjs = require('./chunk-IOAUK4OI.cjs');
|
|
6
5
|
require('./chunk-4U5XZDLG.cjs');
|
|
6
|
+
require('./chunk-ZQRCSUSB.cjs');
|
|
7
7
|
require('./chunk-6D24SDKO.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
@@ -19,12 +19,12 @@ var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
|
19
19
|
async function noticePendingSchemaChanges(config, options = {}) {
|
|
20
20
|
const lines = [];
|
|
21
21
|
try {
|
|
22
|
-
const owners =
|
|
22
|
+
const owners = _chunkIOAUK4OIcjs.findSchemaTableOwners.call(void 0, config);
|
|
23
23
|
const timeoutMs = _nullishCoalesce(options.timeoutMs, () => ( 5e3));
|
|
24
24
|
for (const owner of owners) {
|
|
25
25
|
try {
|
|
26
26
|
const result = await withTimeout(
|
|
27
|
-
|
|
27
|
+
_chunkIOAUK4OIcjs.migrateSchemaTables.call(void 0, owner, { config, log: /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, () => {
|
|
28
28
|
}, "log") }),
|
|
29
29
|
timeoutMs
|
|
30
30
|
);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
findSchemaTableOwners,
|
|
3
3
|
migrateSchemaTables
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-VQGKD7RV.mjs";
|
|
4
|
+
} from "./chunk-T76H22WI.mjs";
|
|
6
5
|
import "./chunk-GC3EM6H4.mjs";
|
|
6
|
+
import "./chunk-VQGKD7RV.mjs";
|
|
7
7
|
import "./chunk-WDMIW6Q6.mjs";
|
|
8
8
|
import {
|
|
9
9
|
logger
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { g as FarmPluginLifecycle, v as FarmPluginRuntimeEndpoint, u as FarmPluginRuntimeEndpointEvent, h as FarmRequestPluginContext, e as FarmRequestStore } from './client-plugins-
|
|
1
|
+
import { ct as RedirectConfig, aa as FarmRequest, ab as FarmResponse, f as FarmPluginContext, a as FarmPlugin, cu as HeaderConfig, cv as RewriteConfig } from './client-plugins-nQ0tYt4l.mjs';
|
|
2
|
+
export { g as FarmPluginLifecycle, v as FarmPluginRuntimeEndpoint, u as FarmPluginRuntimeEndpointEvent, h as FarmRequestPluginContext, e as FarmRequestStore } from './client-plugins-nQ0tYt4l.mjs';
|
|
3
3
|
import { R as ResolvedFarmI18nConfig } from './types-CnH8DOqo.mjs';
|
|
4
4
|
export { createCompressionPlugin } from './internal/compression-runtime.mjs';
|
|
5
5
|
import './lifecycle-DK06VuKP.mjs';
|
package/dist/server-plugins.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { g as FarmPluginLifecycle, v as FarmPluginRuntimeEndpoint, u as FarmPluginRuntimeEndpointEvent, h as FarmRequestPluginContext, e as FarmRequestStore } from './client-plugins-
|
|
1
|
+
import { ct as RedirectConfig, aa as FarmRequest, ab as FarmResponse, f as FarmPluginContext, a as FarmPlugin, cu as HeaderConfig, cv as RewriteConfig } from './client-plugins-BGS0wqzc.js';
|
|
2
|
+
export { g as FarmPluginLifecycle, v as FarmPluginRuntimeEndpoint, u as FarmPluginRuntimeEndpointEvent, h as FarmRequestPluginContext, e as FarmRequestStore } from './client-plugins-BGS0wqzc.js';
|
|
3
3
|
import { R as ResolvedFarmI18nConfig } from './types-CnH8DOqo.js';
|
|
4
4
|
export { createCompressionPlugin } from './internal/compression-runtime.js';
|
|
5
5
|
import './lifecycle-DK06VuKP.js';
|
package/dist/server.cjs
CHANGED
|
@@ -22,7 +22,7 @@ var _chunkIK6LVLKCcjs = require('./chunk-IK6LVLKC.cjs');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkLPE3ED4Rcjs = require('./chunk-LPE3ED4R.cjs');
|
|
26
26
|
require('./chunk-KR6CKSXT.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
@@ -37,10 +37,11 @@ require('./chunk-SK35NQKK.cjs');
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
+
var _chunkAI3WVJNPcjs = require('./chunk-AI3WVJNP.cjs');
|
|
40
41
|
|
|
41
|
-
var _chunkTCJ4A4A2cjs = require('./chunk-TCJ4A4A2.cjs');
|
|
42
|
-
require('./chunk-KEXK442I.cjs');
|
|
43
42
|
|
|
43
|
+
var _chunkCEDPEDNWcjs = require('./chunk-CEDPEDNW.cjs');
|
|
44
|
+
require('./chunk-KEXK442I.cjs');
|
|
44
45
|
|
|
45
46
|
|
|
46
47
|
|
|
@@ -51,25 +52,31 @@ require('./chunk-KEXK442I.cjs');
|
|
|
51
52
|
|
|
52
53
|
|
|
53
54
|
|
|
54
|
-
var
|
|
55
|
+
var _chunkGA6JM4L6cjs = require('./chunk-GA6JM4L6.cjs');
|
|
55
56
|
|
|
56
57
|
|
|
57
58
|
|
|
58
59
|
var _chunk45QJHGZMcjs = require('./chunk-45QJHGZM.cjs');
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
require('./chunk-
|
|
62
|
-
require('./chunk-
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
var _chunkLRJRXXQZcjs = require('./chunk-LRJRXXQZ.cjs');
|
|
63
|
+
require('./chunk-3XEMGDBF.cjs');
|
|
64
|
+
require('./chunk-IOAUK4OI.cjs');
|
|
63
65
|
|
|
64
66
|
|
|
65
67
|
var _chunk4U5XZDLGcjs = require('./chunk-4U5XZDLG.cjs');
|
|
68
|
+
require('./chunk-XSIRSMAS.cjs');
|
|
69
|
+
require('./chunk-ZQRCSUSB.cjs');
|
|
66
70
|
require('./chunk-6D24SDKO.cjs');
|
|
67
|
-
require('./chunk-
|
|
68
|
-
require('./chunk-BMOBTMDR.cjs');
|
|
71
|
+
require('./chunk-XPSGGECF.cjs');
|
|
69
72
|
require('./chunk-TI7UANHI.cjs');
|
|
73
|
+
require('./chunk-BMOBTMDR.cjs');
|
|
70
74
|
require('./chunk-VHRS3MCW.cjs');
|
|
75
|
+
require('./chunk-3BROEWFY.cjs');
|
|
71
76
|
require('./chunk-CXP5U3RW.cjs');
|
|
72
77
|
require('./chunk-CBXBGM72.cjs');
|
|
78
|
+
require('./chunk-APDGOKKE.cjs');
|
|
79
|
+
require('./chunk-YKUEJ3MG.cjs');
|
|
73
80
|
require('./chunk-MWSK6C4J.cjs');
|
|
74
81
|
require('./chunk-OWOUTKIJ.cjs');
|
|
75
82
|
require('./chunk-6EODJYCX.cjs');
|
|
@@ -84,10 +91,12 @@ var _chunkVDRM36QBcjs = require('./chunk-VDRM36QB.cjs');
|
|
|
84
91
|
var _chunk2FUIT2G2cjs = require('./chunk-2FUIT2G2.cjs');
|
|
85
92
|
require('./chunk-CY2ZQ5C6.cjs');
|
|
86
93
|
require('./chunk-HREOKQWT.cjs');
|
|
87
|
-
|
|
88
|
-
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
var _chunkPDU4P2ICcjs = require('./chunk-PDU4P2IC.cjs');
|
|
89
97
|
require('./chunk-FVPXT2JR.cjs');
|
|
90
98
|
require('./chunk-YJRZR7VU.cjs');
|
|
99
|
+
require('./chunk-Q5B3KJBP.cjs');
|
|
91
100
|
|
|
92
101
|
|
|
93
102
|
|
|
@@ -164,8 +173,9 @@ require('./chunk-CMGMGHUZ.cjs');
|
|
|
164
173
|
var _chunkOILHPMFXcjs = require('./chunk-OILHPMFX.cjs');
|
|
165
174
|
require('./chunk-OI6CMLWX.cjs');
|
|
166
175
|
require('./chunk-6QQDAAAZ.cjs');
|
|
167
|
-
require('./chunk-
|
|
176
|
+
require('./chunk-B6XAA7V6.cjs');
|
|
168
177
|
require('./chunk-6QOLZITB.cjs');
|
|
178
|
+
require('./chunk-3SAWHWDH.cjs');
|
|
169
179
|
require('./chunk-G643DQCH.cjs');
|
|
170
180
|
require('./chunk-L6A26QT5.cjs');
|
|
171
181
|
require('./chunk-6BWKJ6QS.cjs');
|
|
@@ -248,7 +258,7 @@ require('./chunk-5NAVKJCZ.cjs');
|
|
|
248
258
|
require('./chunk-4TLUFAIP.cjs');
|
|
249
259
|
|
|
250
260
|
|
|
251
|
-
var
|
|
261
|
+
var _chunk3YJMBQ27cjs = require('./chunk-3YJMBQ27.cjs');
|
|
252
262
|
require('./chunk-OYEUREB6.cjs');
|
|
253
263
|
require('./chunk-7W3CPVXS.cjs');
|
|
254
264
|
require('./chunk-NZKJGRB3.cjs');
|
|
@@ -259,6 +269,7 @@ require('./chunk-S3A45T7F.cjs');
|
|
|
259
269
|
require('./chunk-QCVE2OCI.cjs');
|
|
260
270
|
require('./chunk-AI7QMY7O.cjs');
|
|
261
271
|
require('./chunk-LZESP4IR.cjs');
|
|
272
|
+
require('./chunk-H7BLEEAE.cjs');
|
|
262
273
|
require('./chunk-R5JIFR6B.cjs');
|
|
263
274
|
require('./chunk-C5GUTBZK.cjs');
|
|
264
275
|
require('./chunk-QBK2AA4U.cjs');
|
|
@@ -475,7 +486,7 @@ function createBrandingPlugin() {
|
|
|
475
486
|
const pc = _chunkM2L4MYDQcjs.createCliColors.call(void 0, );
|
|
476
487
|
console.log("");
|
|
477
488
|
console.log(
|
|
478
|
-
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${
|
|
489
|
+
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${_chunk3YJMBQ27cjs.FARM_VERSION}`)} ${pc.dim(`ready in ${elapsed}ms`)}`
|
|
479
490
|
);
|
|
480
491
|
console.log("");
|
|
481
492
|
console.log(
|
|
@@ -544,7 +555,7 @@ function inlineEnvScope(scope) {
|
|
|
544
555
|
}
|
|
545
556
|
_chunkS3JO3N4Hcjs.__name.call(void 0, inlineEnvScope, "inlineEnvScope");
|
|
546
557
|
async function resolveInlineConfig(config, mode) {
|
|
547
|
-
if (
|
|
558
|
+
if (_chunkLPE3ED4Rcjs.isResolvedFarmConfig.call(void 0, config)) {
|
|
548
559
|
_chunkVEKFLAQMcjs.setEnv.call(void 0, config.env);
|
|
549
560
|
return { ...config };
|
|
550
561
|
}
|
|
@@ -554,7 +565,7 @@ async function resolveInlineConfig(config, mode) {
|
|
|
554
565
|
const resolvedI18n = i18n && "enabled" in i18n ? i18n : void 0;
|
|
555
566
|
const auth = config.auth;
|
|
556
567
|
const resolvedAuth = auth && typeof auth === "object" && typeof auth.emailAndPassword === "object" && "enabled" in auth.emailAndPassword ? auth : void 0;
|
|
557
|
-
const resolved = await
|
|
568
|
+
const resolved = await _chunkLPE3ED4Rcjs.resolveConfig.call(void 0,
|
|
558
569
|
{
|
|
559
570
|
...config,
|
|
560
571
|
...resolvedDocs ? { docs: false } : {},
|
|
@@ -588,8 +599,16 @@ async function createServer2(config = {}, options = {}) {
|
|
|
588
599
|
try {
|
|
589
600
|
const root = config.root || process.cwd();
|
|
590
601
|
const mode = process.env.NODE_ENV === "production" ? "production" : "development";
|
|
591
|
-
const userConfig = await
|
|
592
|
-
const
|
|
602
|
+
const userConfig = await _chunkLPE3ED4Rcjs.loadConfig.call(void 0, root, void 0, mode);
|
|
603
|
+
const rscConfig = _nullishCoalesce(userConfig, () => ( config));
|
|
604
|
+
if (_chunkPDU4P2ICcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([rscConfig, 'access', _16 => _16.experimental, 'optionalAccess', _17 => _17.serverComponents]))) {
|
|
605
|
+
const { createFarmRscDevServer, farmAppUsesRscPipeline } = await import("./rsc-pipeline-4ZJ6GUVQ.cjs");
|
|
606
|
+
await _optionalChain([options, 'access', _18 => _18.ensureServerComponentsPackages, 'optionalCall', _19 => _19(rscConfig, root)]);
|
|
607
|
+
if (farmAppUsesRscPipeline(rscConfig, root)) {
|
|
608
|
+
return await createFarmRscDevServer(rscConfig, { root, port: options.port });
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
const resolvedConfig = userConfig ? await _chunkLPE3ED4Rcjs.resolveConfig.call(void 0, userConfig, mode) : await resolveInlineConfig(config, mode);
|
|
593
612
|
const instrumentationRoot = resolvedConfig.root;
|
|
594
613
|
const instrumentationFile = _chunkKCMTCM6Icjs.resolveFarmInstrumentationFile.call(void 0,
|
|
595
614
|
instrumentationRoot,
|
|
@@ -639,7 +658,7 @@ async function createServer2(config = {}, options = {}) {
|
|
|
639
658
|
finalConfig = await pluginManager.runHookSerial("config", finalConfig);
|
|
640
659
|
finalConfig.renderer = _chunkPSV6XKPOcjs.resolveFarmRenderer.call(void 0, finalConfig.renderer);
|
|
641
660
|
const projectRoot = finalConfig.root || process.cwd();
|
|
642
|
-
finalConfig.images =
|
|
661
|
+
finalConfig.images = _chunkGA6JM4L6cjs.resolveFarmImageProviderForRuntime.call(void 0, finalConfig.images, {
|
|
643
662
|
root: projectRoot,
|
|
644
663
|
dev: true
|
|
645
664
|
});
|
|
@@ -651,28 +670,28 @@ async function createServer2(config = {}, options = {}) {
|
|
|
651
670
|
projectRoot,
|
|
652
671
|
{ ssr: true }
|
|
653
672
|
);
|
|
654
|
-
const reactRefreshPlugins = _chunkPSV6XKPOcjs.isReactRenderer.call(void 0, finalConfig.renderer) ? await
|
|
673
|
+
const reactRefreshPlugins = _chunkPSV6XKPOcjs.isReactRenderer.call(void 0, finalConfig.renderer) ? await _chunkCEDPEDNWcjs.createFarmReactRefreshPlugins.call(void 0, ) : [];
|
|
655
674
|
let tailwindVitePlugin = void 0;
|
|
656
675
|
const shouldUseProjectPostcss = hasProjectPostcssConfig(projectRoot);
|
|
657
676
|
if (shouldUseProjectPostcss) {
|
|
658
677
|
_chunk5QIKR7RRcjs.logger.info("\u{1F4E6} Using project PostCSS/Tailwind configuration");
|
|
659
678
|
} else {
|
|
660
|
-
tailwindVitePlugin = await
|
|
679
|
+
tailwindVitePlugin = await _chunkLRJRXXQZcjs.loadTailwindVitePlugin.call(void 0, );
|
|
661
680
|
}
|
|
662
681
|
server = await createViteDevServer(
|
|
663
|
-
|
|
682
|
+
_chunkGA6JM4L6cjs.mergeFarmViteConfig.call(void 0,
|
|
664
683
|
{
|
|
665
684
|
root: projectRoot,
|
|
666
685
|
css: shouldUseProjectPostcss ? void 0 : { postcss: { plugins: [] } },
|
|
667
686
|
plugins: [
|
|
668
|
-
|
|
687
|
+
_chunkGA6JM4L6cjs.createFarmThemeCssPlugin.call(void 0, finalConfig.theme, finalConfig.basePath),
|
|
669
688
|
...tailwindVitePlugin ? [tailwindVitePlugin] : [],
|
|
670
689
|
...rendererVitePlugins,
|
|
671
690
|
...reactRefreshPlugins,
|
|
672
691
|
createDevDependencyStubsPlugin(),
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
692
|
+
_chunkAI3WVJNPcjs.farmI18nClientBridgePlugin.call(void 0, ),
|
|
693
|
+
_chunkAI3WVJNPcjs.farmServerOnlyEntriesPlugin.call(void 0, ),
|
|
694
|
+
_chunkAI3WVJNPcjs.farmPlugin.call(void 0, finalConfig, pluginManager),
|
|
676
695
|
_chunkVDRM36QBcjs.farmEnvironmentFunctionsPlugin.call(void 0, finalConfig),
|
|
677
696
|
createBrandingPlugin(),
|
|
678
697
|
createFarmDevLifecyclePlugin(pluginManager, instrumentation)
|
|
@@ -687,8 +706,8 @@ async function createServer2(config = {}, options = {}) {
|
|
|
687
706
|
dedupe: [...finalConfig.renderer.dedupe || []]
|
|
688
707
|
},
|
|
689
708
|
optimizeDeps: {
|
|
690
|
-
...
|
|
691
|
-
|
|
709
|
+
..._chunkGA6JM4L6cjs.createFarmClientOptimizeDepsConfig.call(void 0,
|
|
710
|
+
_chunkGA6JM4L6cjs.createFarmClientOptimizeDepsEntries.call(void 0, projectRoot, _chunkWBKEZXWEcjs.getFarmAppDirectories.call(void 0, finalConfig)),
|
|
692
711
|
finalConfig.renderer
|
|
693
712
|
),
|
|
694
713
|
exclude: [
|
|
@@ -757,7 +776,7 @@ async function createServer2(config = {}, options = {}) {
|
|
|
757
776
|
}, "attempt");
|
|
758
777
|
await attempt(
|
|
759
778
|
"run plugin error hooks",
|
|
760
|
-
() => _optionalChain([pluginManager, 'optionalAccess',
|
|
779
|
+
() => _optionalChain([pluginManager, 'optionalAccess', _20 => _20.runHookParallel, 'call', _21 => _21("onError", {
|
|
761
780
|
phase: "createServer",
|
|
762
781
|
error
|
|
763
782
|
})])
|
|
@@ -774,9 +793,9 @@ async function createServer2(config = {}, options = {}) {
|
|
|
774
793
|
}
|
|
775
794
|
await attempt(
|
|
776
795
|
"close the plugin runtime",
|
|
777
|
-
() => _optionalChain([pluginManager, 'optionalAccess',
|
|
796
|
+
() => _optionalChain([pluginManager, 'optionalAccess', _22 => _22.closeRuntime, 'call', _23 => _23("dev-server-creation-failed")])
|
|
778
797
|
);
|
|
779
|
-
await attempt("shut down instrumentation", () => _optionalChain([instrumentation, 'optionalAccess',
|
|
798
|
+
await attempt("shut down instrumentation", () => _optionalChain([instrumentation, 'optionalAccess', _24 => _24.shutdown, 'call', _25 => _25()]));
|
|
780
799
|
}
|
|
781
800
|
_chunk5QIKR7RRcjs.logger.error(`Failed to create server: ${error}`);
|
|
782
801
|
throw error;
|
|
@@ -790,21 +809,21 @@ function noticeSchemaChangesInBackground(config) {
|
|
|
790
809
|
...Object.values(_nullishCoalesce(config.integrations, () => ( {})))
|
|
791
810
|
];
|
|
792
811
|
if (!candidates.some((candidate) => _chunk4U5XZDLGcjs.readSchemaTables.call(void 0, candidate))) return false;
|
|
793
|
-
void import("./schema-dev-notice-
|
|
812
|
+
void import("./schema-dev-notice-77ZL23PL.cjs").then(({ noticePendingSchemaChanges }) => noticePendingSchemaChanges(config)).catch(() => {
|
|
794
813
|
});
|
|
795
814
|
return true;
|
|
796
815
|
}
|
|
797
816
|
_chunkS3JO3N4Hcjs.__name.call(void 0, noticeSchemaChangesInBackground, "noticeSchemaChangesInBackground");
|
|
798
|
-
async function startDevServer(config = {}, port) {
|
|
799
|
-
const server = await createServer2(config, { port });
|
|
817
|
+
async function startDevServer(config = {}, port, options = {}) {
|
|
818
|
+
const server = await createServer2(config, { ...options, port });
|
|
800
819
|
const pluginManager = server.__farmPluginManager;
|
|
801
820
|
try {
|
|
802
821
|
await server.listen(port);
|
|
803
|
-
await _optionalChain([pluginManager, 'optionalAccess',
|
|
822
|
+
await _optionalChain([pluginManager, 'optionalAccess', _26 => _26.startRuntime, 'call', _27 => _27()]);
|
|
804
823
|
noticeSchemaChangesInBackground(server.__farmResolvedConfig);
|
|
805
824
|
} catch (error) {
|
|
806
825
|
try {
|
|
807
|
-
await _optionalChain([pluginManager, 'optionalAccess',
|
|
826
|
+
await _optionalChain([pluginManager, 'optionalAccess', _28 => _28.runHookParallel, 'call', _29 => _29("onError", { phase: "startDevServer", error })]);
|
|
808
827
|
} catch (reportError) {
|
|
809
828
|
console.error(
|
|
810
829
|
"Failed to run plugin error hooks after a dev server start failure:",
|
|
@@ -927,4 +946,4 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, startDevServer, "startDevServer");
|
|
|
927
946
|
|
|
928
947
|
|
|
929
948
|
|
|
930
|
-
exports.DEFAULT_FARM_DEV_SERVER_PORT = DEFAULT_FARM_DEV_SERVER_PORT; exports.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT = _chunkP4TYB4SFcjs.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT; exports.FARM_SERVER_QUERY_SYMBOL = _chunkMN4TQJ3Wcjs.FARM_SERVER_QUERY_SYMBOL; exports.FarmApp =
|
|
949
|
+
exports.DEFAULT_FARM_DEV_SERVER_PORT = DEFAULT_FARM_DEV_SERVER_PORT; exports.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT = _chunkP4TYB4SFcjs.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT; exports.FARM_SERVER_QUERY_SYMBOL = _chunkMN4TQJ3Wcjs.FARM_SERVER_QUERY_SYMBOL; exports.FarmApp = _chunkGA6JM4L6cjs.FarmApp; exports.FarmDataCache = _chunk6MVFHNYZcjs.FarmDataCache; exports.FarmEnvironmentError = _chunkW4E7WMXEcjs.FarmEnvironmentError; exports.PPR_SHELL_ADAPTER_TTL_SECONDS = _chunk6MVFHNYZcjs.PPR_SHELL_ADAPTER_TTL_SECONDS; exports.RouteManager = _chunkGA6JM4L6cjs.RouteManager; exports.ServerActionRequestError = _chunkP4TYB4SFcjs.ServerActionRequestError; exports.ServerRenderer = _chunkGA6JM4L6cjs.ServerRenderer; exports._collectFarmStorageModules = _chunkOILHPMFXcjs._collectFarmStorageModules; exports._registerFarmStorageModules = _chunkOILHPMFXcjs._registerFarmStorageModules; exports._runWithAfterNodeResponse = _chunkMQ3H6LT5cjs._runWithAfterNodeResponse; exports._runWithAfterRequest = _chunkMQ3H6LT5cjs._runWithAfterRequest; exports._withAfterNodeMiddleware = _chunkMQ3H6LT5cjs._withAfterNodeMiddleware; exports.after = _chunkMQ3H6LT5cjs.after; exports.applyFarmCacheInvalidationTargets = _chunk6MVFHNYZcjs.applyFarmCacheInvalidationTargets; exports.applyFarmCacheInvalidations = _chunkZEG3OPIBcjs.applyFarmCacheInvalidations; exports.configureFarmCache = _chunk6MVFHNYZcjs.configureFarmCache; exports.createClientOnlyFn = _chunkW4E7WMXEcjs.createClientOnlyFn; exports.createFarmApp = _chunkGA6JM4L6cjs.createFarmApp; exports.createFarmCacheInvalidationStream = _chunk6MVFHNYZcjs.createFarmCacheInvalidationStream; exports.createFarmCacheKey = _chunkNYJMY3JAcjs.createFarmCacheKey; exports.createFarmConfigResolutionPlugin = _chunkWBKEZXWEcjs.createFarmConfigResolutionPlugin; exports.createFarmStorage = _chunkOILHPMFXcjs.createFarmStorage; exports.createIsomorphicFn = _chunkW4E7WMXEcjs.createIsomorphicFn; exports.createPathCacheTag = _chunk6MVFHNYZcjs.createPathCacheTag; exports.createRouteDataCacheKey = _chunkNYJMY3JAcjs.createRouteDataCacheKey; exports.createRouteDataCacheTag = _chunk6MVFHNYZcjs.createRouteDataCacheTag; exports.createServer = createServer2; exports.createServerActionRequestErrorResponse = _chunkP4TYB4SFcjs.createServerActionRequestErrorResponse; exports.createServerOnlyFn = _chunkW4E7WMXEcjs.createServerOnlyFn; exports.createServerQuery = _chunkMN4TQJ3Wcjs.createServerQuery; exports.createStorageClient = _chunkOILHPMFXcjs.createStorageClient; exports.databaseStorage = _chunkOILHPMFXcjs.databaseStorage; exports.defineCacheKey = _chunk6MVFHNYZcjs.defineCacheKey; exports.defineConfig = _chunkAI3WVJNPcjs.defineConfig; exports.defineStorageClient = _chunkOILHPMFXcjs.defineStorageClient; exports.disposeStorage = _chunkOILHPMFXcjs.disposeStorage; exports.driverStorage = _chunkOILHPMFXcjs.driverStorage; exports.farmPlugin = _chunkAI3WVJNPcjs.farmPlugin; exports.fileExists = _chunk5QIKR7RRcjs.fileExists; exports.getCurrentRequest = _chunkZTP3BJG6cjs.getCurrentRequest; exports.getFarmAppDirectories = _chunkWBKEZXWEcjs.getFarmAppDirectories; exports.getFarmDataCache = _chunk6MVFHNYZcjs.getFarmDataCache; exports.getFarmLayerAliases = _chunkWBKEZXWEcjs.getFarmLayerAliases; exports.getFarmSourceRoots = _chunkWBKEZXWEcjs.getFarmSourceRoots; exports.getServerActionExecutionContext = _chunkP4TYB4SFcjs.getServerActionExecutionContext; exports.getServerActionInvalidations = _chunkP4TYB4SFcjs.getServerActionInvalidations; exports.getServerActionSignal = _chunkP4TYB4SFcjs.getServerActionSignal; exports.getStorage = _chunkOILHPMFXcjs.getStorage; exports.getTheme = _chunk2FUIT2G2cjs.getTheme; exports.getThemeSnapshot = _chunk2FUIT2G2cjs.getThemeSnapshot; exports.globFiles = _chunk5QIKR7RRcjs.globFiles; exports.initStorage = _chunkOILHPMFXcjs.initStorage; exports.invalidate = _chunk6MVFHNYZcjs.invalidate; exports.invalidateRouteData = _chunk6MVFHNYZcjs.invalidateRouteData; exports.libsqlStorage = _chunkOILHPMFXcjs.libsqlStorage; exports.loadFarmConfigFile = _chunkWBKEZXWEcjs.loadFarmConfigFile; exports.localStorage = _chunkOILHPMFXcjs.localStorage; exports.logger = _chunk5QIKR7RRcjs.logger; exports.matchRoute = _chunk5QIKR7RRcjs.matchRoute; exports.matchRouteParts = _chunk5QIKR7RRcjs.matchRouteParts; exports.matchRoutePrefix = _chunk5QIKR7RRcjs.matchRoutePrefix; exports.matchRoutePrefixParts = _chunk5QIKR7RRcjs.matchRoutePrefixParts; exports.memoryStorage = _chunkOILHPMFXcjs.memoryStorage; exports.mongodbStorage = _chunkOILHPMFXcjs.mongodbStorage; exports.mysql2Storage = _chunkOILHPMFXcjs.mysql2Storage; exports.mysqlStorage = _chunkOILHPMFXcjs.mysqlStorage; exports.netlifyBlobsStorage = _chunkOILHPMFXcjs.netlifyBlobsStorage; exports.normalizeRevalidatePath = _chunk6MVFHNYZcjs.normalizeRevalidatePath; exports.parseRoutePath = _chunk5QIKR7RRcjs.parseRoutePath; exports.parseSearchParams = _chunk5QIKR7RRcjs.parseSearchParams; exports.pgStorage = _chunkOILHPMFXcjs.pgStorage; exports.pgliteStorage = _chunkOILHPMFXcjs.pgliteStorage; exports.planetscaleStorage = _chunkOILHPMFXcjs.planetscaleStorage; exports.postgresStorage = _chunkOILHPMFXcjs.postgresStorage; exports.prepareServerActionRequest = _chunkP4TYB4SFcjs.prepareServerActionRequest; exports.redisStorage = _chunkOILHPMFXcjs.redisStorage; exports.resolveAppPath = _chunk5QIKR7RRcjs.resolveAppPath; exports.resolveFarmLayers = _chunkWBKEZXWEcjs.resolveFarmLayers; exports.resolveFarmMCPConfig = _chunkLPE3ED4Rcjs.resolveFarmMCPConfig; exports.resolveFarmMCPPlugin = _chunkLPE3ED4Rcjs.resolveFarmMCPPlugin; exports.resolveServerActionsConfig = _chunkP4TYB4SFcjs.resolveServerActionsConfig; exports.resolveStorageRuntimeClient = _chunkOILHPMFXcjs.resolveStorageRuntimeClient; exports.revalidatePath = _chunk6MVFHNYZcjs.revalidatePath; exports.revalidateTag = _chunk6MVFHNYZcjs.revalidateTag; exports.runWithServerActionRequest = _chunkP4TYB4SFcjs.runWithServerActionRequest; exports.s3Storage = _chunkOILHPMFXcjs.s3Storage; exports.sanitizeServerActionError = _chunkP4TYB4SFcjs.sanitizeServerActionError; exports.segmentsToPattern = _chunk5QIKR7RRcjs.segmentsToPattern; exports.sendWebResponse = _chunkUQZ4AYTHcjs.sendWebResponse; exports.splitRoutePath = _chunk5QIKR7RRcjs.splitRoutePath; exports.sqliteStorage = _chunkOILHPMFXcjs.sqliteStorage; exports.startDevServer = startDevServer; exports.storageCacheAdapter = _chunk6MVFHNYZcjs.storageCacheAdapter; exports.toPosixPath = _chunk5QIKR7RRcjs.toPosixPath; exports.toRootRelativeUrlPath = _chunk5QIKR7RRcjs.toRootRelativeUrlPath; exports.toViteModuleId = _chunk5QIKR7RRcjs.toViteModuleId; exports.unstable_cache = _chunk6MVFHNYZcjs.unstable_cache; exports.updateTag = _chunk6MVFHNYZcjs.updateTag; exports.upstashStorage = _chunkOILHPMFXcjs.upstashStorage; exports.validateServerActionRequest = _chunkP4TYB4SFcjs.validateServerActionRequest; exports.vercelBlobStorage = _chunkOILHPMFXcjs.vercelBlobStorage; exports.vercelKVStorage = _chunkOILHPMFXcjs.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-
|
|
1
|
+
export { F as FarmApp, R as RouteManager, S as ServerRenderer, c as createFarmApp } from './app-DG3dE8v5.mjs';
|
|
2
2
|
export { defineConfig, farmPlugin } from './vite.mjs';
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
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-
|
|
3
|
+
import { aB as FarmConfig, au as FarmUserConfig } from './client-plugins-nQ0tYt4l.mjs';
|
|
4
|
+
export { aG as AppRoutePattern, b5 as BuildOptions, aX as ErrorBoundary, aQ as ErrorProps, ah as FarmAppContext, aF as FarmComponentType, av as FarmContextFactory, aN as FarmContextFactoryInput, aO as FarmIsolatedClientHydrationMode, aE as FarmMCPUserConfig, aJ as FarmMigrationCommand, aK as FarmMigrationsConfig, aL as FarmMigrationsUserConfig, aa as FarmRequest, ab as FarmResponse, a$ as GenerateStaticParams, aV as Layout, aT as LayoutMetadataProps, b0 as LayoutModule, ac as LayoutProps, aW as Loading, aP as LoadingProps, ad as Metadata, b1 as MetadataJsonLd, aS as MetadataProps, b9 as MetadataRobots, b8 as MetadataRobotsDirectives, aw as MiddlewareProps, aI as NitroPreset, aU as Page, ai as PageProps, aR as PagePropsWithMiddleware, aH as PageRouteParams, a8 as ParsedRoute, aj as PluginContextProps, aM as ResolvedFarmMigrationsConfig, ak as RouteModule, a9 as RouteSegment, b7 as SSGCollectionResult, b6 as SSGPage, b4 as ServerAction, aZ as StaticPathParams, aY as StaticPathPrimitive, a_ as StaticRouteParams, b2 as ThemeColorDescriptor, b3 as Viewport, aC as resolveFarmMCPConfig, aD as resolveFarmMCPPlugin } from './client-plugins-nQ0tYt4l.mjs';
|
|
5
|
+
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-BrjR5xRs.mjs';
|
|
6
6
|
export { _collectFarmStorageModules, _registerFarmStorageModules, 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';
|
|
7
7
|
export { CacheKeyFactory, DefinedCacheKey, FarmCacheAdapter, FarmCacheEntry, FarmCacheInvalidationStreamOptions, FarmCacheInvalidationTarget, FarmCacheOptions, FarmCacheSetOptions, FarmCacheStorage, FarmCacheUserConfig, FarmClientCacheUserConfig, FarmDataCache, GetFarmCacheEntryOptions, InferCacheKeyData, PPR_SHELL_ADAPTER_TTL_SECONDS, RevalidateTagProfile, RouteDataCacheKey, StorageFarmCacheAdapterOptions, applyFarmCacheInvalidationTargets, configureFarmCache, createFarmCacheInvalidationStream, createFarmCacheKey, createPathCacheTag, createRouteDataCacheKey, createRouteDataCacheTag, defineCacheKey, getFarmDataCache, invalidate, invalidateRouteData, normalizeRevalidatePath, revalidatePath, revalidateTag, storageCacheAdapter, unstable_cache, updateTag } from './cache.mjs';
|
|
8
8
|
export { AfterCallback, FarmAfterPlatformContext, _runWithAfterNodeResponse, _runWithAfterRequest, _withAfterNodeMiddleware, after } from './after.mjs';
|
|
9
9
|
export { FARM_SERVER_QUERY_SYMBOL, ServerQuery, ServerQueryKey, ServerQueryOptions, ServerQueryOutputOptions, ServerQueryStaleTime, createServerQuery } from './server-query.mjs';
|
|
10
10
|
import { ViteDevServer } from 'vite';
|
|
11
|
-
export { g as getCurrentRequest } from './request-
|
|
11
|
+
export { g as getCurrentRequest } from './request-cNM09Q7e.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';
|
|
@@ -42,11 +42,11 @@ import 'rolldown';
|
|
|
42
42
|
import './types-CnH8DOqo.mjs';
|
|
43
43
|
import './types-DQnyD3VD.mjs';
|
|
44
44
|
import './font.mjs';
|
|
45
|
-
import './ssg-
|
|
46
|
-
import './route-rendering-
|
|
45
|
+
import './ssg-ByrOVYdM.mjs';
|
|
46
|
+
import './route-rendering-EyInfsjI.mjs';
|
|
47
47
|
import './island-CfGru1MO.mjs';
|
|
48
|
-
import './agent-mcp-
|
|
49
|
-
import './render-plan-
|
|
48
|
+
import './agent-mcp-CWI-awqd.mjs';
|
|
49
|
+
import './render-plan-CoSovy_O.mjs';
|
|
50
50
|
import './runtime-CV2UCV-5.mjs';
|
|
51
51
|
import './resolver-khasx3fU.mjs';
|
|
52
52
|
import './server-client-bridge-DKWDl5NB.mjs';
|
|
@@ -57,11 +57,16 @@ declare const DEFAULT_FARM_DEV_SERVER_PORT = 3000;
|
|
|
57
57
|
*/
|
|
58
58
|
declare function createServer(config?: FarmConfig | FarmUserConfig, options?: {
|
|
59
59
|
port?: number;
|
|
60
|
+
/**
|
|
61
|
+
* Installs what `experimental.serverComponents` needs before the server starts. The CLI passes
|
|
62
|
+
* it; core stays free of package-manager orchestration.
|
|
63
|
+
*/
|
|
64
|
+
ensureServerComponentsPackages?: (config: FarmConfig | FarmUserConfig, root: string) => Promise<unknown>;
|
|
60
65
|
}): Promise<ViteDevServer>;
|
|
61
66
|
/**
|
|
62
67
|
* Start the development server
|
|
63
68
|
*/
|
|
64
|
-
declare function startDevServer(config?: FarmConfig | FarmUserConfig, port?: number): Promise<ViteDevServer>;
|
|
69
|
+
declare function startDevServer(config?: FarmConfig | FarmUserConfig, port?: number, options?: Omit<Parameters<typeof createServer>[1], "port">): Promise<ViteDevServer>;
|
|
65
70
|
|
|
66
71
|
declare function sendWebResponse(res: ServerResponse, response: Response): Promise<void>;
|
|
67
72
|
|
package/dist/server.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { F as FarmApp, R as RouteManager, S as ServerRenderer, c as createFarmApp } from './app-
|
|
1
|
+
export { F as FarmApp, R as RouteManager, S as ServerRenderer, c as createFarmApp } from './app-CAN_2Cqo.js';
|
|
2
2
|
export { defineConfig, farmPlugin } from './vite.js';
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
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-
|
|
3
|
+
import { aB as FarmConfig, au as FarmUserConfig } from './client-plugins-BGS0wqzc.js';
|
|
4
|
+
export { aG as AppRoutePattern, b5 as BuildOptions, aX as ErrorBoundary, aQ as ErrorProps, ah as FarmAppContext, aF as FarmComponentType, av as FarmContextFactory, aN as FarmContextFactoryInput, aO as FarmIsolatedClientHydrationMode, aE as FarmMCPUserConfig, aJ as FarmMigrationCommand, aK as FarmMigrationsConfig, aL as FarmMigrationsUserConfig, aa as FarmRequest, ab as FarmResponse, a$ as GenerateStaticParams, aV as Layout, aT as LayoutMetadataProps, b0 as LayoutModule, ac as LayoutProps, aW as Loading, aP as LoadingProps, ad as Metadata, b1 as MetadataJsonLd, aS as MetadataProps, b9 as MetadataRobots, b8 as MetadataRobotsDirectives, aw as MiddlewareProps, aI as NitroPreset, aU as Page, ai as PageProps, aR as PagePropsWithMiddleware, aH as PageRouteParams, a8 as ParsedRoute, aj as PluginContextProps, aM as ResolvedFarmMigrationsConfig, ak as RouteModule, a9 as RouteSegment, b7 as SSGCollectionResult, b6 as SSGPage, b4 as ServerAction, aZ as StaticPathParams, aY as StaticPathPrimitive, a_ as StaticRouteParams, b2 as ThemeColorDescriptor, b3 as Viewport, aC as resolveFarmMCPConfig, aD as resolveFarmMCPPlugin } from './client-plugins-BGS0wqzc.js';
|
|
5
|
+
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-BN70ueSN.js';
|
|
6
6
|
export { _collectFarmStorageModules, _registerFarmStorageModules, createFarmStorage, createStorageClient, databaseStorage, defineStorageClient, disposeStorage, driverStorage, getStorage, initStorage, libsqlStorage, localStorage, memoryStorage, mongodbStorage, mysql2Storage, mysqlStorage, netlifyBlobsStorage, pgStorage, pgliteStorage, planetscaleStorage, postgresStorage, redisStorage, resolveStorageRuntimeClient, s3Storage, sqliteStorage, upstashStorage, vercelBlobStorage, vercelKVStorage } from './storage.js';
|
|
7
7
|
export { CacheKeyFactory, DefinedCacheKey, FarmCacheAdapter, FarmCacheEntry, FarmCacheInvalidationStreamOptions, FarmCacheInvalidationTarget, FarmCacheOptions, FarmCacheSetOptions, FarmCacheStorage, FarmCacheUserConfig, FarmClientCacheUserConfig, FarmDataCache, GetFarmCacheEntryOptions, InferCacheKeyData, PPR_SHELL_ADAPTER_TTL_SECONDS, RevalidateTagProfile, RouteDataCacheKey, StorageFarmCacheAdapterOptions, applyFarmCacheInvalidationTargets, configureFarmCache, createFarmCacheInvalidationStream, createFarmCacheKey, createPathCacheTag, createRouteDataCacheKey, createRouteDataCacheTag, defineCacheKey, getFarmDataCache, invalidate, invalidateRouteData, normalizeRevalidatePath, revalidatePath, revalidateTag, storageCacheAdapter, unstable_cache, updateTag } from './cache.js';
|
|
8
8
|
export { AfterCallback, FarmAfterPlatformContext, _runWithAfterNodeResponse, _runWithAfterRequest, _withAfterNodeMiddleware, after } from './after.js';
|
|
9
9
|
export { FARM_SERVER_QUERY_SYMBOL, ServerQuery, ServerQueryKey, ServerQueryOptions, ServerQueryOutputOptions, ServerQueryStaleTime, createServerQuery } from './server-query.js';
|
|
10
10
|
import { ViteDevServer } from 'vite';
|
|
11
|
-
export { g as getCurrentRequest } from './request-
|
|
11
|
+
export { g as getCurrentRequest } from './request-aG5Wovm5.js';
|
|
12
12
|
import { ServerResponse } from 'node:http';
|
|
13
13
|
export { getTheme, getThemeSnapshot } from './theme/server.js';
|
|
14
14
|
export { DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT, FarmServerActionsConfig, PreparedServerActionRequest, ResolvedFarmServerActionsConfig, SanitizedServerActionError, ServerActionRequestError, ServerActionRequestKind, createServerActionRequestErrorResponse, getServerActionExecutionContext, getServerActionInvalidations, getServerActionSignal, prepareServerActionRequest, resolveServerActionsConfig, runWithServerActionRequest, sanitizeServerActionError, validateServerActionRequest } from './server-action-security.js';
|
|
@@ -42,11 +42,11 @@ import 'rolldown';
|
|
|
42
42
|
import './types-CnH8DOqo.js';
|
|
43
43
|
import './types-DQnyD3VD.js';
|
|
44
44
|
import './font.js';
|
|
45
|
-
import './ssg-
|
|
46
|
-
import './route-rendering-
|
|
45
|
+
import './ssg-XnMHCyEc.js';
|
|
46
|
+
import './route-rendering-B3uQmCWX.js';
|
|
47
47
|
import './island-CfGru1MO.js';
|
|
48
|
-
import './agent-mcp-
|
|
49
|
-
import './render-plan-
|
|
48
|
+
import './agent-mcp-EnzWYv_X.js';
|
|
49
|
+
import './render-plan-y2DefWf8.js';
|
|
50
50
|
import './runtime-BgDQzBiu.js';
|
|
51
51
|
import './resolver-DadfRL6F.js';
|
|
52
52
|
import './server-client-bridge-DKWDl5NB.js';
|
|
@@ -57,11 +57,16 @@ declare const DEFAULT_FARM_DEV_SERVER_PORT = 3000;
|
|
|
57
57
|
*/
|
|
58
58
|
declare function createServer(config?: FarmConfig | FarmUserConfig, options?: {
|
|
59
59
|
port?: number;
|
|
60
|
+
/**
|
|
61
|
+
* Installs what `experimental.serverComponents` needs before the server starts. The CLI passes
|
|
62
|
+
* it; core stays free of package-manager orchestration.
|
|
63
|
+
*/
|
|
64
|
+
ensureServerComponentsPackages?: (config: FarmConfig | FarmUserConfig, root: string) => Promise<unknown>;
|
|
60
65
|
}): Promise<ViteDevServer>;
|
|
61
66
|
/**
|
|
62
67
|
* Start the development server
|
|
63
68
|
*/
|
|
64
|
-
declare function startDevServer(config?: FarmConfig | FarmUserConfig, port?: number): Promise<ViteDevServer>;
|
|
69
|
+
declare function startDevServer(config?: FarmConfig | FarmUserConfig, port?: number, options?: Omit<Parameters<typeof createServer>[1], "port">): Promise<ViteDevServer>;
|
|
65
70
|
|
|
66
71
|
declare function sendWebResponse(res: ServerResponse, response: Response): Promise<void>;
|
|
67
72
|
|