@farm.js/core 0.1.41 → 0.1.43
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-BOqIxJLI.d.mts → agent-mcp-3KDz4hr9.d.mts} +1 -1
- package/dist/{agent-mcp-D0eZKfci.d.ts → agent-mcp-6yRebHk7.d.ts} +1 -1
- package/dist/agent-runtime.d.mts +1 -1
- package/dist/agent-runtime.d.ts +1 -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-DM8e1z3G.d.ts → app-8Db1zR-2.d.ts} +8 -4
- package/dist/{app-CzTSMJaf.d.mts → app-DlTWv4cn.d.mts} +8 -4
- package/dist/app-manifest-TRzS7ZZ9.d.mts +120 -0
- package/dist/app-manifest-cO2jkG1F.d.ts +120 -0
- 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-2NXO5SBY.mjs +57 -0
- package/dist/chunk-3BROEWFY.cjs +39 -0
- package/dist/{chunk-ENOBPDKZ.mjs → chunk-4MRQ5OKQ.mjs} +14 -9
- package/dist/{chunk-R65GCA6A.mjs → chunk-4OCEMK72.mjs} +260 -49
- package/dist/{chunk-6PKXK4TY.mjs → chunk-53ZV6K65.mjs} +1 -1
- 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-FJGIVDA5.mjs → chunk-7SCCY6SI.mjs} +80 -177
- package/dist/chunk-APDGOKKE.cjs +148 -0
- package/dist/chunk-AZBSVLRM.cjs +132 -0
- package/dist/{chunk-PN676AZF.cjs → chunk-BKPXWRTT.cjs} +6 -6
- package/dist/chunk-CEDPEDNW.cjs +98 -0
- package/dist/chunk-D5RFPV2H.mjs +148 -0
- package/dist/{chunk-BYQVROIP.mjs → chunk-DMRPN25V.mjs} +69 -0
- package/dist/{chunk-724JLMS4.mjs → chunk-F646BZ4Y.mjs} +4 -2
- package/dist/{chunk-C5KVWHIH.cjs → chunk-G2Z5DGMS.cjs} +5 -3
- package/dist/{chunk-L6HYACBE.cjs → chunk-GVNCWSQV.cjs} +145 -127
- package/dist/{chunk-24SP5TGU.mjs → chunk-H4LXPWI2.mjs} +2 -2
- package/dist/chunk-H7BLEEAE.cjs +57 -0
- package/dist/{chunk-JOTUZIM4.cjs → chunk-HUMEHX24.cjs} +2 -2
- package/dist/{chunk-BD3D7EZV.cjs → chunk-IXFOBGLQ.cjs} +9 -3
- package/dist/{chunk-3TB5QGUW.cjs → chunk-JAXDRRRC.cjs} +70 -1
- package/dist/{chunk-32TZ3QTP.cjs → chunk-JDJAPCR2.cjs} +421 -210
- package/dist/{chunk-MHN4UR5U.cjs → chunk-KFZZFZ7J.cjs} +7 -7
- package/dist/chunk-LRJRXXQZ.cjs +109 -0
- package/dist/{chunk-EX4MKHXN.cjs → chunk-LVABUXLA.cjs} +22 -17
- package/dist/{chunk-HCSVR4YZ.mjs → chunk-M3BXTWJM.mjs} +18 -0
- package/dist/{chunk-PYHPXPSW.mjs → chunk-NXO75WY4.mjs} +1 -1
- package/dist/{chunk-BGGWKZ2V.mjs → chunk-OYSGGV6O.mjs} +137 -167
- package/dist/{chunk-JR4QCLJY.cjs → chunk-PDU4P2IC.cjs} +19 -1
- package/dist/chunk-PJEHUSHA.mjs +229 -0
- package/dist/chunk-QGH2RQVF.mjs +132 -0
- package/dist/{chunk-YWMZUGIS.mjs → chunk-R3ZFQJEF.mjs} +247 -34
- package/dist/{chunk-ROQ4C4LJ.cjs → chunk-RACQTC7K.cjs} +274 -371
- package/dist/{chunk-WSOBCAYO.cjs → chunk-RQYTOFQM.cjs} +23 -23
- 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-T7J7E63D.cjs +144 -0
- package/dist/{chunk-SVPGWJZF.mjs → chunk-TESO7EFU.mjs} +125 -107
- package/dist/{chunk-OQ4YXWH4.cjs → chunk-VIVQERJ5.cjs} +320 -351
- package/dist/{chunk-JIYYX7WU.mjs → chunk-VLXNGUKO.mjs} +1 -1
- package/dist/{chunk-OFZUJMCU.mjs → chunk-WPJQN64R.mjs} +195 -41
- package/dist/chunk-XARSG2TG.mjs +144 -0
- package/dist/chunk-XUGFRFD2.mjs +39 -0
- package/dist/{chunk-EH3464KF.cjs → chunk-YBDSTNMH.cjs} +1 -1
- package/dist/{chunk-VLPII2JJ.mjs → chunk-YGZH4T2X.mjs} +1 -1
- package/dist/chunk-YKUEJ3MG.cjs +229 -0
- package/dist/{chunk-4C7KTKX7.mjs → chunk-ZYWJIPKQ.mjs} +1 -1
- package/dist/{client-plugins-CkYwvDJ0.d.mts → client-plugins-Cv0OJtnM.d.mts} +98 -7
- package/dist/{client-plugins-DfeKd0sD.d.ts → client-plugins-kwQuZcWq.d.ts} +98 -7
- 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-N3QLRIQU.mjs → devtools-M22FEFPK.mjs} +4 -4
- package/dist/{devtools-2YHAJYH6.cjs → devtools-MLB3JJMC.cjs} +5 -5
- package/dist/docs.cjs +6 -6
- package/dist/docs.d.mts +2 -2
- package/dist/docs.d.ts +2 -2
- package/dist/docs.mjs +5 -5
- package/dist/index-CQOp8EmB.d.mts +48 -0
- package/dist/index-DAl0QTZS.d.ts +48 -0
- package/dist/index.cjs +41 -24
- package/dist/index.d.mts +15 -14
- package/dist/index.d.ts +15 -14
- package/dist/index.mjs +46 -29
- package/dist/integrations.d.mts +1 -1
- package/dist/integrations.d.ts +1 -1
- 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 +29 -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 +28 -14
- package/dist/internal/cli-runtime.cjs +23 -11
- package/dist/internal/cli-runtime.mjs +23 -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 +5 -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 +4 -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 -7
- package/dist/internal/production-runtime.d.mts +20 -127
- package/dist/internal/production-runtime.d.ts +20 -127
- package/dist/internal/production-runtime.mjs +24 -7
- 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 +18 -12
- package/dist/plugin.d.mts +3 -3
- package/dist/plugin.d.ts +3 -3
- package/dist/plugin.mjs +17 -11
- package/dist/{production-runtime-DFC7pgbp.d.ts → production-runtime-5nArjFpn.d.ts} +1 -1
- package/dist/{production-runtime-BTkXQdYy.d.mts → production-runtime-BzsF2z5F.d.mts} +1 -1
- package/dist/query/client.cjs +6 -5
- package/dist/query/client.mjs +2 -1
- package/dist/{render-plan-5rFeWmk7.d.mts → render-plan-B9yQorV4.d.mts} +4 -2
- package/dist/{render-plan-BoAK9xFC.d.ts → render-plan-fg6E_HvL.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-BxBWigtl.d.mts → request-C4j_g-BH.d.mts} +1 -1
- package/dist/{request-fciwmd3n.d.ts → request-gz8vFK0n.d.ts} +1 -1
- package/dist/request.d.mts +2 -2
- package/dist/request.d.ts +2 -2
- package/dist/{route-rendering-BLZT0IP0.d.ts → route-rendering-DamyKVi3.d.ts} +1 -1
- package/dist/{route-rendering-BCM1QzEf.d.mts → route-rendering-iTTOwz1f.d.mts} +1 -1
- package/dist/{router-DyZJWc1_.d.mts → router-EoSzHlos.d.mts} +1 -1
- package/dist/{router-CkheNX3-.d.ts → router-OVjDqVo8.d.ts} +1 -1
- package/dist/routes.d.mts +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/rsc-pipeline-LK4K5JFK.mjs +77 -0
- package/dist/rsc-pipeline-YCDRJME4.cjs +77 -0
- package/dist/{runtime-DfU4sKa5.d.ts → runtime-CwiuozLd.d.ts} +1 -1
- package/dist/{runtime-wexvUN5J.d.mts → runtime-DDH4tiuF.d.mts} +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 +56 -38
- package/dist/server.d.mts +15 -10
- package/dist/server.d.ts +15 -10
- package/dist/server.mjs +36 -18
- package/dist/{spa-router-DgsMXqfX.d.mts → spa-router-Br4qFCWf.d.mts} +8 -3
- package/dist/{spa-router-CcejECnG.d.ts → spa-router-BsWUKH73.d.ts} +8 -3
- package/dist/{ssg-1FGaFISl.d.ts → ssg-Csy2vwpi.d.ts} +2 -2
- package/dist/{ssg-Bg4bMMhM.d.mts → ssg-Donyfcxy.d.mts} +2 -2
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/{utils-Dxbh6Hgj.d.ts → utils-Luk72LXC.d.ts} +1 -1
- package/dist/{utils-8wtTYiH4.d.mts → utils-d_k1ZZw0.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +18 -12
- package/dist/vite.d.mts +6 -4
- package/dist/vite.d.ts +6 -4
- package/dist/vite.mjs +17 -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
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 _chunkLVABUXLAcjs = require('./chunk-LVABUXLA.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 _chunkVIVQERJ5cjs = require('./chunk-VIVQERJ5.cjs');
|
|
40
41
|
|
|
41
|
-
var _chunkOQ4YXWH4cjs = require('./chunk-OQ4YXWH4.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 _chunkRACQTC7Kcjs = require('./chunk-RACQTC7K.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-GVNCWSQV.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,16 +91,18 @@ 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
|
|
|
94
103
|
|
|
95
104
|
var _chunkPSV6XKPOcjs = require('./chunk-PSV6XKPO.cjs');
|
|
96
|
-
require('./chunk-
|
|
105
|
+
require('./chunk-JAXDRRRC.cjs');
|
|
97
106
|
require('./chunk-D5IHNDHI.cjs');
|
|
98
107
|
require('./chunk-25LPIZSX.cjs');
|
|
99
108
|
|
|
@@ -248,7 +257,7 @@ require('./chunk-5NAVKJCZ.cjs');
|
|
|
248
257
|
require('./chunk-4TLUFAIP.cjs');
|
|
249
258
|
|
|
250
259
|
|
|
251
|
-
var
|
|
260
|
+
var _chunkYBDSTNMHcjs = require('./chunk-YBDSTNMH.cjs');
|
|
252
261
|
require('./chunk-OYEUREB6.cjs');
|
|
253
262
|
require('./chunk-7W3CPVXS.cjs');
|
|
254
263
|
require('./chunk-NZKJGRB3.cjs');
|
|
@@ -259,6 +268,7 @@ require('./chunk-S3A45T7F.cjs');
|
|
|
259
268
|
require('./chunk-QCVE2OCI.cjs');
|
|
260
269
|
require('./chunk-AI7QMY7O.cjs');
|
|
261
270
|
require('./chunk-LZESP4IR.cjs');
|
|
271
|
+
require('./chunk-H7BLEEAE.cjs');
|
|
262
272
|
require('./chunk-R5JIFR6B.cjs');
|
|
263
273
|
require('./chunk-C5GUTBZK.cjs');
|
|
264
274
|
require('./chunk-QBK2AA4U.cjs');
|
|
@@ -475,7 +485,7 @@ function createBrandingPlugin() {
|
|
|
475
485
|
const pc = _chunkM2L4MYDQcjs.createCliColors.call(void 0, );
|
|
476
486
|
console.log("");
|
|
477
487
|
console.log(
|
|
478
|
-
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${
|
|
488
|
+
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${_chunkYBDSTNMHcjs.FARM_VERSION}`)} ${pc.dim(`ready in ${elapsed}ms`)}`
|
|
479
489
|
);
|
|
480
490
|
console.log("");
|
|
481
491
|
console.log(
|
|
@@ -544,7 +554,7 @@ function inlineEnvScope(scope) {
|
|
|
544
554
|
}
|
|
545
555
|
_chunkS3JO3N4Hcjs.__name.call(void 0, inlineEnvScope, "inlineEnvScope");
|
|
546
556
|
async function resolveInlineConfig(config, mode) {
|
|
547
|
-
if (
|
|
557
|
+
if (_chunkLVABUXLAcjs.isResolvedFarmConfig.call(void 0, config)) {
|
|
548
558
|
_chunkVEKFLAQMcjs.setEnv.call(void 0, config.env);
|
|
549
559
|
return { ...config };
|
|
550
560
|
}
|
|
@@ -554,7 +564,7 @@ async function resolveInlineConfig(config, mode) {
|
|
|
554
564
|
const resolvedI18n = i18n && "enabled" in i18n ? i18n : void 0;
|
|
555
565
|
const auth = config.auth;
|
|
556
566
|
const resolvedAuth = auth && typeof auth === "object" && typeof auth.emailAndPassword === "object" && "enabled" in auth.emailAndPassword ? auth : void 0;
|
|
557
|
-
const resolved = await
|
|
567
|
+
const resolved = await _chunkLVABUXLAcjs.resolveConfig.call(void 0,
|
|
558
568
|
{
|
|
559
569
|
...config,
|
|
560
570
|
...resolvedDocs ? { docs: false } : {},
|
|
@@ -588,8 +598,16 @@ async function createServer2(config = {}, options = {}) {
|
|
|
588
598
|
try {
|
|
589
599
|
const root = config.root || process.cwd();
|
|
590
600
|
const mode = process.env.NODE_ENV === "production" ? "production" : "development";
|
|
591
|
-
const userConfig = await
|
|
592
|
-
const
|
|
601
|
+
const userConfig = await _chunkLVABUXLAcjs.loadConfig.call(void 0, root, void 0, mode);
|
|
602
|
+
const rscConfig = _nullishCoalesce(userConfig, () => ( config));
|
|
603
|
+
if (_chunkPDU4P2ICcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([rscConfig, 'access', _16 => _16.experimental, 'optionalAccess', _17 => _17.serverComponents]))) {
|
|
604
|
+
const { createFarmRscDevServer, farmAppUsesRscPipeline } = await import("./rsc-pipeline-YCDRJME4.cjs");
|
|
605
|
+
await _optionalChain([options, 'access', _18 => _18.ensureServerComponentsPackages, 'optionalCall', _19 => _19(rscConfig, root)]);
|
|
606
|
+
if (farmAppUsesRscPipeline(rscConfig, root)) {
|
|
607
|
+
return await createFarmRscDevServer(rscConfig, { root, port: options.port });
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
const resolvedConfig = userConfig ? await _chunkLVABUXLAcjs.resolveConfig.call(void 0, userConfig, mode) : await resolveInlineConfig(config, mode);
|
|
593
611
|
const instrumentationRoot = resolvedConfig.root;
|
|
594
612
|
const instrumentationFile = _chunkKCMTCM6Icjs.resolveFarmInstrumentationFile.call(void 0,
|
|
595
613
|
instrumentationRoot,
|
|
@@ -639,7 +657,7 @@ async function createServer2(config = {}, options = {}) {
|
|
|
639
657
|
finalConfig = await pluginManager.runHookSerial("config", finalConfig);
|
|
640
658
|
finalConfig.renderer = _chunkPSV6XKPOcjs.resolveFarmRenderer.call(void 0, finalConfig.renderer);
|
|
641
659
|
const projectRoot = finalConfig.root || process.cwd();
|
|
642
|
-
finalConfig.images =
|
|
660
|
+
finalConfig.images = _chunkRACQTC7Kcjs.resolveFarmImageProviderForRuntime.call(void 0, finalConfig.images, {
|
|
643
661
|
root: projectRoot,
|
|
644
662
|
dev: true
|
|
645
663
|
});
|
|
@@ -651,28 +669,28 @@ async function createServer2(config = {}, options = {}) {
|
|
|
651
669
|
projectRoot,
|
|
652
670
|
{ ssr: true }
|
|
653
671
|
);
|
|
654
|
-
const reactRefreshPlugins = _chunkPSV6XKPOcjs.isReactRenderer.call(void 0, finalConfig.renderer) ? await
|
|
672
|
+
const reactRefreshPlugins = _chunkPSV6XKPOcjs.isReactRenderer.call(void 0, finalConfig.renderer) ? await _chunkCEDPEDNWcjs.createFarmReactRefreshPlugins.call(void 0, ) : [];
|
|
655
673
|
let tailwindVitePlugin = void 0;
|
|
656
674
|
const shouldUseProjectPostcss = hasProjectPostcssConfig(projectRoot);
|
|
657
675
|
if (shouldUseProjectPostcss) {
|
|
658
676
|
_chunk5QIKR7RRcjs.logger.info("\u{1F4E6} Using project PostCSS/Tailwind configuration");
|
|
659
677
|
} else {
|
|
660
|
-
tailwindVitePlugin = await
|
|
678
|
+
tailwindVitePlugin = await _chunkLRJRXXQZcjs.loadTailwindVitePlugin.call(void 0, );
|
|
661
679
|
}
|
|
662
680
|
server = await createViteDevServer(
|
|
663
|
-
|
|
681
|
+
_chunkRACQTC7Kcjs.mergeFarmViteConfig.call(void 0,
|
|
664
682
|
{
|
|
665
683
|
root: projectRoot,
|
|
666
684
|
css: shouldUseProjectPostcss ? void 0 : { postcss: { plugins: [] } },
|
|
667
685
|
plugins: [
|
|
668
|
-
|
|
686
|
+
_chunkRACQTC7Kcjs.createFarmThemeCssPlugin.call(void 0, finalConfig.theme, finalConfig.basePath),
|
|
669
687
|
...tailwindVitePlugin ? [tailwindVitePlugin] : [],
|
|
670
688
|
...rendererVitePlugins,
|
|
671
689
|
...reactRefreshPlugins,
|
|
672
690
|
createDevDependencyStubsPlugin(),
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
691
|
+
_chunkVIVQERJ5cjs.farmI18nClientBridgePlugin.call(void 0, ),
|
|
692
|
+
_chunkVIVQERJ5cjs.farmServerOnlyEntriesPlugin.call(void 0, ),
|
|
693
|
+
_chunkVIVQERJ5cjs.farmPlugin.call(void 0, finalConfig, pluginManager),
|
|
676
694
|
_chunkVDRM36QBcjs.farmEnvironmentFunctionsPlugin.call(void 0, finalConfig),
|
|
677
695
|
createBrandingPlugin(),
|
|
678
696
|
createFarmDevLifecyclePlugin(pluginManager, instrumentation)
|
|
@@ -687,8 +705,8 @@ async function createServer2(config = {}, options = {}) {
|
|
|
687
705
|
dedupe: [...finalConfig.renderer.dedupe || []]
|
|
688
706
|
},
|
|
689
707
|
optimizeDeps: {
|
|
690
|
-
...
|
|
691
|
-
|
|
708
|
+
..._chunkRACQTC7Kcjs.createFarmClientOptimizeDepsConfig.call(void 0,
|
|
709
|
+
_chunkRACQTC7Kcjs.createFarmClientOptimizeDepsEntries.call(void 0, projectRoot, _chunkWBKEZXWEcjs.getFarmAppDirectories.call(void 0, finalConfig)),
|
|
692
710
|
finalConfig.renderer
|
|
693
711
|
),
|
|
694
712
|
exclude: [
|
|
@@ -757,7 +775,7 @@ async function createServer2(config = {}, options = {}) {
|
|
|
757
775
|
}, "attempt");
|
|
758
776
|
await attempt(
|
|
759
777
|
"run plugin error hooks",
|
|
760
|
-
() => _optionalChain([pluginManager, 'optionalAccess',
|
|
778
|
+
() => _optionalChain([pluginManager, 'optionalAccess', _20 => _20.runHookParallel, 'call', _21 => _21("onError", {
|
|
761
779
|
phase: "createServer",
|
|
762
780
|
error
|
|
763
781
|
})])
|
|
@@ -774,9 +792,9 @@ async function createServer2(config = {}, options = {}) {
|
|
|
774
792
|
}
|
|
775
793
|
await attempt(
|
|
776
794
|
"close the plugin runtime",
|
|
777
|
-
() => _optionalChain([pluginManager, 'optionalAccess',
|
|
795
|
+
() => _optionalChain([pluginManager, 'optionalAccess', _22 => _22.closeRuntime, 'call', _23 => _23("dev-server-creation-failed")])
|
|
778
796
|
);
|
|
779
|
-
await attempt("shut down instrumentation", () => _optionalChain([instrumentation, 'optionalAccess',
|
|
797
|
+
await attempt("shut down instrumentation", () => _optionalChain([instrumentation, 'optionalAccess', _24 => _24.shutdown, 'call', _25 => _25()]));
|
|
780
798
|
}
|
|
781
799
|
_chunk5QIKR7RRcjs.logger.error(`Failed to create server: ${error}`);
|
|
782
800
|
throw error;
|
|
@@ -790,21 +808,21 @@ function noticeSchemaChangesInBackground(config) {
|
|
|
790
808
|
...Object.values(_nullishCoalesce(config.integrations, () => ( {})))
|
|
791
809
|
];
|
|
792
810
|
if (!candidates.some((candidate) => _chunk4U5XZDLGcjs.readSchemaTables.call(void 0, candidate))) return false;
|
|
793
|
-
void import("./schema-dev-notice-
|
|
811
|
+
void import("./schema-dev-notice-77ZL23PL.cjs").then(({ noticePendingSchemaChanges }) => noticePendingSchemaChanges(config)).catch(() => {
|
|
794
812
|
});
|
|
795
813
|
return true;
|
|
796
814
|
}
|
|
797
815
|
_chunkS3JO3N4Hcjs.__name.call(void 0, noticeSchemaChangesInBackground, "noticeSchemaChangesInBackground");
|
|
798
|
-
async function startDevServer(config = {}, port) {
|
|
799
|
-
const server = await createServer2(config, { port });
|
|
816
|
+
async function startDevServer(config = {}, port, options = {}) {
|
|
817
|
+
const server = await createServer2(config, { ...options, port });
|
|
800
818
|
const pluginManager = server.__farmPluginManager;
|
|
801
819
|
try {
|
|
802
820
|
await server.listen(port);
|
|
803
|
-
await _optionalChain([pluginManager, 'optionalAccess',
|
|
821
|
+
await _optionalChain([pluginManager, 'optionalAccess', _26 => _26.startRuntime, 'call', _27 => _27()]);
|
|
804
822
|
noticeSchemaChangesInBackground(server.__farmResolvedConfig);
|
|
805
823
|
} catch (error) {
|
|
806
824
|
try {
|
|
807
|
-
await _optionalChain([pluginManager, 'optionalAccess',
|
|
825
|
+
await _optionalChain([pluginManager, 'optionalAccess', _28 => _28.runHookParallel, 'call', _29 => _29("onError", { phase: "startDevServer", error })]);
|
|
808
826
|
} catch (reportError) {
|
|
809
827
|
console.error(
|
|
810
828
|
"Failed to run plugin error hooks after a dev server start failure:",
|
|
@@ -927,4 +945,4 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, startDevServer, "startDevServer");
|
|
|
927
945
|
|
|
928
946
|
|
|
929
947
|
|
|
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 =
|
|
948
|
+
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 = _chunkRACQTC7Kcjs.FarmApp; exports.FarmDataCache = _chunk6MVFHNYZcjs.FarmDataCache; exports.FarmEnvironmentError = _chunkW4E7WMXEcjs.FarmEnvironmentError; exports.PPR_SHELL_ADAPTER_TTL_SECONDS = _chunk6MVFHNYZcjs.PPR_SHELL_ADAPTER_TTL_SECONDS; exports.RouteManager = _chunkRACQTC7Kcjs.RouteManager; exports.ServerActionRequestError = _chunkP4TYB4SFcjs.ServerActionRequestError; exports.ServerRenderer = _chunkRACQTC7Kcjs.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 = _chunkRACQTC7Kcjs.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 = _chunkVIVQERJ5cjs.defineConfig; exports.defineStorageClient = _chunkOILHPMFXcjs.defineStorageClient; exports.disposeStorage = _chunkOILHPMFXcjs.disposeStorage; exports.driverStorage = _chunkOILHPMFXcjs.driverStorage; exports.farmPlugin = _chunkVIVQERJ5cjs.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 = _chunkLVABUXLAcjs.resolveFarmMCPConfig; exports.resolveFarmMCPPlugin = _chunkLVABUXLAcjs.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-DlTWv4cn.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-Cv0OJtnM.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-Cv0OJtnM.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-d_k1ZZw0.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-C4j_g-BH.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-Donyfcxy.mjs';
|
|
46
|
+
import './route-rendering-iTTOwz1f.mjs';
|
|
47
47
|
import './island-CfGru1MO.mjs';
|
|
48
|
-
import './agent-mcp-
|
|
49
|
-
import './render-plan-
|
|
48
|
+
import './agent-mcp-3KDz4hr9.mjs';
|
|
49
|
+
import './render-plan-B9yQorV4.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-8Db1zR-2.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-kwQuZcWq.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-kwQuZcWq.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-Luk72LXC.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-gz8vFK0n.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-Csy2vwpi.js';
|
|
46
|
+
import './route-rendering-DamyKVi3.js';
|
|
47
47
|
import './island-CfGru1MO.js';
|
|
48
|
-
import './agent-mcp-
|
|
49
|
-
import './render-plan-
|
|
48
|
+
import './agent-mcp-6yRebHk7.js';
|
|
49
|
+
import './render-plan-fg6E_HvL.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
|
|
package/dist/server.mjs
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
resolveConfig,
|
|
22
22
|
resolveFarmMCPConfig,
|
|
23
23
|
resolveFarmMCPPlugin
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-4MRQ5OKQ.mjs";
|
|
25
25
|
import "./chunk-XZNTNMHT.mjs";
|
|
26
26
|
import {
|
|
27
27
|
loadFarmInstrumentation,
|
|
@@ -32,12 +32,14 @@ import {
|
|
|
32
32
|
} from "./chunk-H77NVNJ2.mjs";
|
|
33
33
|
import "./chunk-KGB5UXJJ.mjs";
|
|
34
34
|
import {
|
|
35
|
-
createFarmReactRefreshPlugins,
|
|
36
35
|
defineConfig,
|
|
37
36
|
farmI18nClientBridgePlugin,
|
|
38
37
|
farmPlugin,
|
|
39
38
|
farmServerOnlyEntriesPlugin
|
|
40
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-OYSGGV6O.mjs";
|
|
40
|
+
import {
|
|
41
|
+
createFarmReactRefreshPlugins
|
|
42
|
+
} from "./chunk-5NIWBWDD.mjs";
|
|
41
43
|
import "./chunk-INQ64HTJ.mjs";
|
|
42
44
|
import {
|
|
43
45
|
FarmApp,
|
|
@@ -47,28 +49,33 @@ import {
|
|
|
47
49
|
createFarmClientOptimizeDepsConfig,
|
|
48
50
|
createFarmClientOptimizeDepsEntries,
|
|
49
51
|
createFarmThemeCssPlugin,
|
|
50
|
-
loadTailwindVitePlugin,
|
|
51
52
|
mergeFarmViteConfig,
|
|
52
53
|
resolveFarmImageProviderForRuntime
|
|
53
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-7SCCY6SI.mjs";
|
|
54
55
|
import {
|
|
55
56
|
FarmRuntimeShutdownError,
|
|
56
57
|
PluginManager
|
|
57
58
|
} from "./chunk-FGH3ZXTP.mjs";
|
|
58
|
-
import
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
import "./chunk-
|
|
59
|
+
import {
|
|
60
|
+
loadTailwindVitePlugin
|
|
61
|
+
} from "./chunk-S34OBRMZ.mjs";
|
|
62
|
+
import "./chunk-26CXZR6L.mjs";
|
|
63
|
+
import "./chunk-T76H22WI.mjs";
|
|
62
64
|
import {
|
|
63
65
|
readSchemaTables
|
|
64
66
|
} from "./chunk-GC3EM6H4.mjs";
|
|
67
|
+
import "./chunk-F3VB7ONA.mjs";
|
|
68
|
+
import "./chunk-VQGKD7RV.mjs";
|
|
65
69
|
import "./chunk-WDMIW6Q6.mjs";
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-4ZZNPK25.mjs";
|
|
70
|
+
import "./chunk-TESO7EFU.mjs";
|
|
68
71
|
import "./chunk-Y5RG6B7S.mjs";
|
|
72
|
+
import "./chunk-4ZZNPK25.mjs";
|
|
69
73
|
import "./chunk-COABSY3U.mjs";
|
|
74
|
+
import "./chunk-XUGFRFD2.mjs";
|
|
70
75
|
import "./chunk-BOYNDCZL.mjs";
|
|
71
76
|
import "./chunk-OJ7JP7RJ.mjs";
|
|
77
|
+
import "./chunk-D5RFPV2H.mjs";
|
|
78
|
+
import "./chunk-PJEHUSHA.mjs";
|
|
72
79
|
import "./chunk-SLQCDJSO.mjs";
|
|
73
80
|
import "./chunk-XAXTTBUT.mjs";
|
|
74
81
|
import "./chunk-45ZSJLDT.mjs";
|
|
@@ -83,16 +90,18 @@ import {
|
|
|
83
90
|
} from "./chunk-FIAPD365.mjs";
|
|
84
91
|
import "./chunk-J7K2NZD6.mjs";
|
|
85
92
|
import "./chunk-TVGP4BBZ.mjs";
|
|
86
|
-
import
|
|
87
|
-
|
|
93
|
+
import {
|
|
94
|
+
resolveFarmServerComponentsMode
|
|
95
|
+
} from "./chunk-M3BXTWJM.mjs";
|
|
88
96
|
import "./chunk-CZS6OACQ.mjs";
|
|
89
97
|
import "./chunk-JBSVKMC5.mjs";
|
|
98
|
+
import "./chunk-GHFS7RUB.mjs";
|
|
90
99
|
import {
|
|
91
100
|
isReactRenderer,
|
|
92
101
|
loadFarmRendererVitePlugins,
|
|
93
102
|
resolveFarmRenderer
|
|
94
103
|
} from "./chunk-DAATZTKJ.mjs";
|
|
95
|
-
import "./chunk-
|
|
104
|
+
import "./chunk-DMRPN25V.mjs";
|
|
96
105
|
import "./chunk-ETPEZLS3.mjs";
|
|
97
106
|
import "./chunk-7UEEHAW7.mjs";
|
|
98
107
|
import {
|
|
@@ -247,7 +256,7 @@ import "./chunk-ZZGQD7A4.mjs";
|
|
|
247
256
|
import "./chunk-P7XDC7UJ.mjs";
|
|
248
257
|
import {
|
|
249
258
|
FARM_VERSION
|
|
250
|
-
} from "./chunk-
|
|
259
|
+
} from "./chunk-YGZH4T2X.mjs";
|
|
251
260
|
import "./chunk-54UPOYFS.mjs";
|
|
252
261
|
import "./chunk-WNSDDRNU.mjs";
|
|
253
262
|
import "./chunk-JPLUGGRV.mjs";
|
|
@@ -258,6 +267,7 @@ import "./chunk-7LTCDQRS.mjs";
|
|
|
258
267
|
import "./chunk-GCXWJJKH.mjs";
|
|
259
268
|
import "./chunk-JM5XPKWH.mjs";
|
|
260
269
|
import "./chunk-73WX6PRY.mjs";
|
|
270
|
+
import "./chunk-2NXO5SBY.mjs";
|
|
261
271
|
import "./chunk-SKNL7VA2.mjs";
|
|
262
272
|
import "./chunk-2A3EQHXX.mjs";
|
|
263
273
|
import "./chunk-JNZ4TDWM.mjs";
|
|
@@ -588,6 +598,14 @@ async function createServer2(config = {}, options = {}) {
|
|
|
588
598
|
const root = config.root || process.cwd();
|
|
589
599
|
const mode = process.env.NODE_ENV === "production" ? "production" : "development";
|
|
590
600
|
const userConfig = await loadConfig(root, void 0, mode);
|
|
601
|
+
const rscConfig = userConfig ?? config;
|
|
602
|
+
if (resolveFarmServerComponentsMode(rscConfig.experimental?.serverComponents)) {
|
|
603
|
+
const { createFarmRscDevServer, farmAppUsesRscPipeline } = await import("./rsc-pipeline-LK4K5JFK.mjs");
|
|
604
|
+
await options.ensureServerComponentsPackages?.(rscConfig, root);
|
|
605
|
+
if (farmAppUsesRscPipeline(rscConfig, root)) {
|
|
606
|
+
return await createFarmRscDevServer(rscConfig, { root, port: options.port });
|
|
607
|
+
}
|
|
608
|
+
}
|
|
591
609
|
const resolvedConfig = userConfig ? await resolveConfig(userConfig, mode) : await resolveInlineConfig(config, mode);
|
|
592
610
|
const instrumentationRoot = resolvedConfig.root;
|
|
593
611
|
const instrumentationFile = resolveFarmInstrumentationFile(
|
|
@@ -789,13 +807,13 @@ function noticeSchemaChangesInBackground(config) {
|
|
|
789
807
|
...Object.values(config.integrations ?? {})
|
|
790
808
|
];
|
|
791
809
|
if (!candidates.some((candidate) => readSchemaTables(candidate))) return false;
|
|
792
|
-
void import("./schema-dev-notice-
|
|
810
|
+
void import("./schema-dev-notice-BLXOS6U2.mjs").then(({ noticePendingSchemaChanges }) => noticePendingSchemaChanges(config)).catch(() => {
|
|
793
811
|
});
|
|
794
812
|
return true;
|
|
795
813
|
}
|
|
796
814
|
__name(noticeSchemaChangesInBackground, "noticeSchemaChangesInBackground");
|
|
797
|
-
async function startDevServer(config = {}, port) {
|
|
798
|
-
const server = await createServer2(config, { port });
|
|
815
|
+
async function startDevServer(config = {}, port, options = {}) {
|
|
816
|
+
const server = await createServer2(config, { ...options, port });
|
|
799
817
|
const pluginManager = server.__farmPluginManager;
|
|
800
818
|
try {
|
|
801
819
|
await server.listen(port);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ad as Metadata } from './client-plugins-
|
|
1
|
+
import { ad as Metadata } from './client-plugins-Cv0OJtnM.mjs';
|
|
2
2
|
import { F as FarmClientPluginManager } from './lifecycle-DK06VuKP.mjs';
|
|
3
3
|
import { F as FarmI18nClientSnapshot } from './types-CnH8DOqo.mjs';
|
|
4
4
|
import { F as FarmIslandStrategy } from './island-CfGru1MO.mjs';
|
|
5
|
-
import { F as FarmRouteRenderPlan } from './render-plan-
|
|
5
|
+
import { F as FarmRouteRenderPlan } from './render-plan-B9yQorV4.mjs';
|
|
6
6
|
|
|
7
7
|
type NavigationMetadata = (Metadata & Record<string, any>) | undefined;
|
|
8
8
|
|
|
@@ -87,6 +87,11 @@ interface FarmNavigationState {
|
|
|
87
87
|
startedAt: number | null;
|
|
88
88
|
}
|
|
89
89
|
type FarmNavigationListener = (state: FarmNavigationState) => void;
|
|
90
|
+
/** What a navigation handler learns about the navigation besides its data. */
|
|
91
|
+
interface FarmNavigationRenderInfo {
|
|
92
|
+
/** A refresh of the page on screen (`router.refresh()`, or after a server action). */
|
|
93
|
+
refresh?: boolean;
|
|
94
|
+
}
|
|
90
95
|
declare class SPARouter {
|
|
91
96
|
private cache;
|
|
92
97
|
private prefetchingUrls;
|
|
@@ -123,7 +128,7 @@ declare class SPARouter {
|
|
|
123
128
|
/**
|
|
124
129
|
* Set the navigation handler that updates React
|
|
125
130
|
*/
|
|
126
|
-
setNavigationHandler(handler: (data: PageData) => Promise<void>): void;
|
|
131
|
+
setNavigationHandler(handler: (data: PageData, info?: FarmNavigationRenderInfo) => Promise<void>): void;
|
|
127
132
|
/**
|
|
128
133
|
* Connect Farm's browser plugin lifecycle to SPA navigation.
|
|
129
134
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ad as Metadata } from './client-plugins-
|
|
1
|
+
import { ad as Metadata } from './client-plugins-kwQuZcWq.js';
|
|
2
2
|
import { F as FarmClientPluginManager } from './lifecycle-DK06VuKP.js';
|
|
3
3
|
import { F as FarmI18nClientSnapshot } from './types-CnH8DOqo.js';
|
|
4
4
|
import { F as FarmIslandStrategy } from './island-CfGru1MO.js';
|
|
5
|
-
import { F as FarmRouteRenderPlan } from './render-plan-
|
|
5
|
+
import { F as FarmRouteRenderPlan } from './render-plan-fg6E_HvL.js';
|
|
6
6
|
|
|
7
7
|
type NavigationMetadata = (Metadata & Record<string, any>) | undefined;
|
|
8
8
|
|
|
@@ -87,6 +87,11 @@ interface FarmNavigationState {
|
|
|
87
87
|
startedAt: number | null;
|
|
88
88
|
}
|
|
89
89
|
type FarmNavigationListener = (state: FarmNavigationState) => void;
|
|
90
|
+
/** What a navigation handler learns about the navigation besides its data. */
|
|
91
|
+
interface FarmNavigationRenderInfo {
|
|
92
|
+
/** A refresh of the page on screen (`router.refresh()`, or after a server action). */
|
|
93
|
+
refresh?: boolean;
|
|
94
|
+
}
|
|
90
95
|
declare class SPARouter {
|
|
91
96
|
private cache;
|
|
92
97
|
private prefetchingUrls;
|
|
@@ -123,7 +128,7 @@ declare class SPARouter {
|
|
|
123
128
|
/**
|
|
124
129
|
* Set the navigation handler that updates React
|
|
125
130
|
*/
|
|
126
|
-
setNavigationHandler(handler: (data: PageData) => Promise<void>): void;
|
|
131
|
+
setNavigationHandler(handler: (data: PageData, info?: FarmNavigationRenderInfo) => Promise<void>): void;
|
|
127
132
|
/**
|
|
128
133
|
* Connect Farm's browser plugin lifecycle to SPA navigation.
|
|
129
134
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RouteRenderingOptions, a as RouteRenderingConfig, D as DirectiveRenderingConfig } from './route-rendering-
|
|
2
|
-
import { ak as RouteModule,
|
|
1
|
+
import { R as RouteRenderingOptions, a as RouteRenderingConfig, D as DirectiveRenderingConfig } from './route-rendering-DamyKVi3.js';
|
|
2
|
+
import { ak as RouteModule, b7 as SSGCollectionResult, b6 as SSGPage } from './client-plugins-kwQuZcWq.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The browser copy of a programmatic page or layout imports only the module that defines its
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RouteRenderingOptions, a as RouteRenderingConfig, D as DirectiveRenderingConfig } from './route-rendering-
|
|
2
|
-
import { ak as RouteModule,
|
|
1
|
+
import { R as RouteRenderingOptions, a as RouteRenderingConfig, D as DirectiveRenderingConfig } from './route-rendering-iTTOwz1f.mjs';
|
|
2
|
+
import { ak as RouteModule, b7 as SSGCollectionResult, b6 as SSGPage } from './client-plugins-Cv0OJtnM.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The browser copy of a programmatic page or layout imports only the module that defines its
|
package/dist/testing.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { av as FarmContextFactory, aw as MiddlewareProps, aj as PluginContextProps, ak as RouteModule } from './client-plugins-
|
|
2
|
+
import { av as FarmContextFactory, aw as MiddlewareProps, aj as PluginContextProps, ak as RouteModule } from './client-plugins-Cv0OJtnM.mjs';
|
|
3
3
|
import './types-CnH8DOqo.mjs';
|
|
4
4
|
import { a as APIRouteParams } from './route-pattern-W-SsJGSp.mjs';
|
|
5
5
|
import { ServerFn } from './server-fn.mjs';
|