@farm.js/core 0.1.27 → 0.1.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-runtime.d.mts +3 -2
- package/dist/agent-runtime.d.ts +3 -2
- package/dist/api/client.cjs +4 -6
- package/dist/api/client.d.mts +1 -0
- package/dist/api/client.d.ts +1 -0
- package/dist/api/client.mjs +3 -5
- package/dist/api/route-manager.cjs +9 -8
- package/dist/api/route-manager.d.mts +2 -1
- package/dist/api/route-manager.d.ts +2 -1
- package/dist/api/route-manager.mjs +8 -7
- package/dist/api/runtime.cjs +7 -6
- package/dist/api/runtime.d.mts +3 -2
- package/dist/api/runtime.d.ts +3 -2
- package/dist/api/runtime.mjs +6 -5
- package/dist/api.cjs +12 -11
- package/dist/api.d.mts +19 -4
- package/dist/api.d.ts +19 -4
- package/dist/api.mjs +11 -10
- package/dist/{app-BfzZdjgX.d.mts → app-DAuUTIZf.d.mts} +3 -3
- package/dist/app-markdown.cjs +6 -5
- package/dist/app-markdown.d.mts +4 -3
- package/dist/app-markdown.d.ts +4 -3
- package/dist/app-markdown.mjs +5 -4
- package/dist/{app-CXK7Prrt.d.ts → app-sUJ3jnTZ.d.ts} +3 -3
- package/dist/cache-invalidation-BD0z_lfu.d.mts +4 -0
- package/dist/cache-invalidation-BD0z_lfu.d.ts +4 -0
- package/dist/cache.cjs +6 -4
- package/dist/cache.d.mts +11 -6
- package/dist/cache.d.ts +11 -6
- package/dist/cache.mjs +7 -5
- package/dist/{chunk-N6UROPT7.mjs → chunk-2FQHH5SC.mjs} +12 -13
- package/dist/{chunk-UUYF3CHN.mjs → chunk-2N5PX3LS.mjs} +2 -2
- package/dist/{chunk-H6G5INWM.cjs → chunk-2SDO73HK.cjs} +14 -156
- package/dist/{chunk-4FHDV7VM.mjs → chunk-2UABTL3Y.mjs} +2 -2
- package/dist/{chunk-LAHZ7LZA.cjs → chunk-3FCFQP5V.cjs} +32 -20
- package/dist/{chunk-3TQWUUNP.cjs → chunk-3LUF2PE2.cjs} +10 -5
- package/dist/{chunk-SYGGPS4A.mjs → chunk-4IEPYMHF.mjs} +3 -3
- package/dist/{chunk-WD5PNSOB.mjs → chunk-4V7GIE2U.mjs} +6 -4
- package/dist/{chunk-UWTQTZFN.mjs → chunk-5KDPVSS3.mjs} +271 -155
- package/dist/{chunk-I7PUUDGY.cjs → chunk-63H6BKXG.cjs} +2 -2
- package/dist/{chunk-ZSO5GWGD.cjs → chunk-6CNX6Q3K.cjs} +168 -51
- package/dist/{chunk-3PTVHMLD.mjs → chunk-6G3ZZ2IE.mjs} +1 -1
- package/dist/{chunk-QBPXNZGV.cjs → chunk-6MVFL3R5.cjs} +25 -6
- package/dist/{chunk-FG5H2VCJ.mjs → chunk-6ZCMSZ5U.mjs} +2 -2
- package/dist/{chunk-YZBV7733.cjs → chunk-74T3CEA7.cjs} +397 -281
- package/dist/{chunk-ZMN3H73H.cjs → chunk-75DYEVXI.cjs} +13 -11
- package/dist/{chunk-WIVTGKLY.mjs → chunk-7CXKSRKL.mjs} +18 -11
- package/dist/{chunk-POXI72VV.mjs → chunk-ATXI6LGT.mjs} +148 -31
- package/dist/{chunk-NL3ZSMZB.cjs → chunk-BJPBQNIE.cjs} +12 -12
- package/dist/{chunk-Q4BHBO6V.mjs → chunk-BXFWA23T.mjs} +2 -2
- package/dist/{chunk-MBFURXAC.mjs → chunk-BZ3CHOFX.mjs} +1 -1
- package/dist/{chunk-TDWFCC2T.cjs → chunk-BZAGKCKB.cjs} +2 -2
- package/dist/chunk-CNOQY6Z7.mjs +156 -0
- package/dist/{chunk-DW34V5SM.cjs → chunk-CTV2TTNP.cjs} +4 -4
- package/dist/{chunk-HG237IEY.mjs → chunk-D234YWNA.mjs} +1 -1
- package/dist/{chunk-YXM74XOW.cjs → chunk-D4JE5NNV.cjs} +12 -12
- package/dist/{chunk-O2LV5XDG.mjs → chunk-DGXN3L4D.mjs} +20 -8
- package/dist/{chunk-4UNKCNSL.mjs → chunk-E76XC6ZG.mjs} +2 -2
- package/dist/{chunk-QQQNJS2E.mjs → chunk-E7UN576T.mjs} +1 -1
- package/dist/{chunk-G3HRIVEY.cjs → chunk-ES4B2IXW.cjs} +2 -2
- package/dist/{chunk-JQGDQO2I.cjs → chunk-EXLKRR4U.cjs} +10 -10
- package/dist/chunk-FJ3M4CUX.cjs +46 -0
- package/dist/chunk-FXEF4PPL.mjs +47 -0
- package/dist/{chunk-WD4YXVLV.mjs → chunk-GZYH4OER.mjs} +1 -1
- package/dist/{chunk-DX4VKYAJ.cjs → chunk-I26CZYPV.cjs} +6 -4
- package/dist/{chunk-F6SJAKFJ.mjs → chunk-IV6CQY7O.mjs} +12 -154
- package/dist/{chunk-6D242YGO.mjs → chunk-JATSG2ZO.mjs} +1 -1
- package/dist/{chunk-KAERLFD3.cjs → chunk-JFHKNFEO.cjs} +30 -23
- package/dist/{chunk-U74A3P2P.cjs → chunk-JLRDISQL.cjs} +7 -7
- package/dist/{chunk-BYODCJD6.cjs → chunk-K7CELQLK.cjs} +12 -13
- package/dist/{chunk-Y4YWHNKU.cjs → chunk-KH7BN726.cjs} +9 -9
- package/dist/{chunk-3IL5UC5I.cjs → chunk-KZLND3D2.cjs} +2 -2
- package/dist/{chunk-TKDY6AJP.mjs → chunk-MKMBQSNQ.mjs} +1 -1
- package/dist/{chunk-OCE65DDM.mjs → chunk-MNUGPHLN.mjs} +1 -1
- package/dist/{chunk-WJKVTJJR.cjs → chunk-NPPL5YDT.cjs} +2 -2
- package/dist/{chunk-HF5SIACK.cjs → chunk-NXG66MR7.cjs} +3 -3
- package/dist/chunk-NYJMY3JA.cjs +156 -0
- package/dist/{chunk-VVJCWBIE.mjs → chunk-O3DTUAX2.mjs} +2 -2
- package/dist/{chunk-R6AIILII.cjs → chunk-OZVEHHMA.cjs} +15 -14
- package/dist/{chunk-FPW4W3VW.mjs → chunk-PQD2AI3B.mjs} +1 -1
- package/dist/{chunk-C7OUJ6JI.cjs → chunk-PZNCMPJF.cjs} +3 -3
- package/dist/{chunk-QI7WQSMI.cjs → chunk-Q5JFU33Q.cjs} +4 -4
- package/dist/{chunk-52SH7TKB.mjs → chunk-QG5HNS7P.mjs} +2 -2
- package/dist/{chunk-CEYUWDWA.mjs → chunk-QZCT2CQ4.mjs} +10 -5
- package/dist/{chunk-FZC7EEPM.mjs → chunk-RSOJ7DRT.mjs} +26 -7
- package/dist/{chunk-QMV4QELL.mjs → chunk-S5GDHOE4.mjs} +4 -2
- package/dist/{chunk-CRQPYWLK.cjs → chunk-SORB3MAR.cjs} +14 -14
- package/dist/{chunk-I4J452B7.cjs → chunk-VHJGDMCG.cjs} +3 -3
- package/dist/{chunk-B6ZCT36X.cjs → chunk-WNLBF77X.cjs} +4 -4
- package/dist/{chunk-FOT7LZEO.cjs → chunk-WPPX4G7Q.cjs} +1 -1
- package/dist/{chunk-UNSKL6BI.cjs → chunk-X4ZV4QC5.cjs} +266 -228
- package/dist/{chunk-6EG7U4NF.mjs → chunk-X7WVQMIB.mjs} +1 -1
- package/dist/chunk-XD32KALF.cjs +47 -0
- package/dist/{chunk-RDV44SED.mjs → chunk-XJJVLDM6.mjs} +15 -14
- package/dist/{chunk-DQMTHWPI.cjs → chunk-XLTV4VOG.cjs} +21 -16
- package/dist/{chunk-5SPPCN5J.mjs → chunk-XNPDONUH.mjs} +1 -1
- package/dist/{chunk-UOXGA6TO.mjs → chunk-YDQZGSDS.mjs} +1 -1
- package/dist/{chunk-JT25KHDI.mjs → chunk-YMUE7L3D.mjs} +18 -13
- package/dist/chunk-Z3HATSKO.mjs +46 -0
- package/dist/{chunk-C3VRMB6H.cjs → chunk-ZCU4NZ3M.cjs} +6 -6
- package/dist/{chunk-NPFGGBM5.cjs → chunk-ZDILFMWN.cjs} +13 -13
- package/dist/{chunk-OGHTEYXS.mjs → chunk-ZYVFAOBT.mjs} +72 -34
- package/dist/{client-plugins-1GS4zubE.d.mts → client-plugins-BX2ptm4H.d.mts} +42 -34
- package/dist/{client-plugins-B1Za6F5x.d.ts → client-plugins-BmxM5KW_.d.ts} +42 -34
- package/dist/client-plugins.d.mts +3 -2
- package/dist/client-plugins.d.ts +3 -2
- package/dist/client.cjs +11 -12
- package/dist/client.d.mts +6 -5
- package/dist/client.d.ts +6 -5
- package/dist/client.mjs +10 -11
- package/dist/config.d.mts +3 -2
- package/dist/config.d.ts +3 -2
- package/dist/{devtools-CQJ3H6MX.cjs → devtools-GGVPZHJX.cjs} +96 -21
- package/dist/{devtools-6RN6KHTW.mjs → devtools-THVNPI2M.mjs} +80 -5
- package/dist/{devtools-client-4WAPJY5L.cjs → devtools-client-CXQ6PXI6.cjs} +1 -1
- package/dist/{devtools-client-LEUIHHAS.mjs → devtools-client-HJS2T34Y.mjs} +1 -1
- package/dist/docs.cjs +9 -8
- package/dist/docs.mjs +8 -7
- package/dist/index.cjs +61 -57
- package/dist/index.d.mts +26 -15
- package/dist/index.d.ts +26 -15
- package/dist/index.mjs +69 -65
- package/dist/integrations.d.mts +3 -2
- package/dist/integrations.d.ts +3 -2
- package/dist/internal/app-markdown-runtime.cjs +5 -4
- package/dist/internal/app-markdown-runtime.d.mts +4 -3
- package/dist/internal/app-markdown-runtime.d.ts +4 -3
- package/dist/internal/app-markdown-runtime.mjs +4 -3
- package/dist/internal/build-runtime.cjs +26 -23
- package/dist/internal/build-runtime.d.mts +5 -4
- package/dist/internal/build-runtime.d.ts +5 -4
- package/dist/internal/build-runtime.mjs +25 -22
- package/dist/internal/cli-runtime.cjs +15 -13
- package/dist/internal/cli-runtime.mjs +14 -12
- 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.cjs +3 -2
- package/dist/internal/compression-runtime.d.mts +6 -3
- package/dist/internal/compression-runtime.d.ts +6 -3
- package/dist/internal/compression-runtime.mjs +2 -1
- package/dist/internal/config-runtime.cjs +7 -6
- package/dist/internal/config-runtime.d.mts +4 -3
- package/dist/internal/config-runtime.d.ts +4 -3
- package/dist/internal/config-runtime.mjs +6 -5
- package/dist/internal/product-telemetry-runtime.cjs +10 -6
- package/dist/internal/product-telemetry-runtime.mjs +9 -5
- package/dist/internal/production-runtime.cjs +29 -13
- package/dist/internal/production-runtime.d.mts +36 -8
- package/dist/internal/production-runtime.d.ts +36 -8
- package/dist/internal/production-runtime.mjs +32 -16
- package/dist/markdown.cjs +4 -3
- package/dist/markdown.d.mts +3 -2
- package/dist/markdown.d.ts +3 -2
- package/dist/markdown.mjs +3 -2
- package/dist/{metadata-B9mCxKgp.d.mts → metadata-DsEaK7mQ.d.mts} +1 -1
- package/dist/{metadata-7LKgQEWF.d.ts → metadata-fwZ3gfG6.d.ts} +1 -1
- package/dist/middleware.cjs +6 -5
- package/dist/middleware.d.mts +4 -3
- package/dist/middleware.d.ts +4 -3
- package/dist/middleware.mjs +5 -4
- package/dist/navigation.cjs +5 -5
- package/dist/navigation.d.mts +5 -4
- package/dist/navigation.d.ts +5 -4
- package/dist/navigation.mjs +4 -4
- package/dist/plugin.cjs +25 -20
- package/dist/plugin.d.mts +3 -2
- package/dist/plugin.d.ts +3 -2
- package/dist/plugin.mjs +25 -20
- package/dist/{production-runtime-DramhI0c.d.mts → production-runtime-Baqgwtvc.d.mts} +1 -1
- package/dist/{production-runtime-B3xnY6fI.d.ts → production-runtime-DNkpFnmg.d.ts} +1 -1
- package/dist/query/client.cjs +6 -6
- package/dist/query/client.mjs +2 -2
- package/dist/{render-plan-CtQB-zHS.d.mts → render-plan-DhwQnmmX.d.mts} +1 -1
- package/dist/{render-plan-CpW32tOL.d.ts → render-plan-rkIK9wd9.d.ts} +1 -1
- package/dist/renderer-client.cjs +13 -14
- package/dist/renderer-client.d.mts +4 -3
- package/dist/renderer-client.d.ts +4 -3
- package/dist/renderer-client.mjs +6 -7
- package/dist/{request-BVGGeQv4.d.ts → request-BcY4RYPC.d.ts} +1 -1
- package/dist/{request-DlLVBKe3.d.mts → request-CFy1BltJ.d.mts} +1 -1
- package/dist/request.d.mts +4 -3
- package/dist/request.d.ts +4 -3
- package/dist/{route-rendering-DChYLNdh.d.mts → route-rendering-BkS0TBlB.d.mts} +1 -1
- package/dist/{route-rendering-BdEldajn.d.ts → route-rendering-D4XpMjam.d.ts} +1 -1
- package/dist/{router-D5htHn_M.d.mts → router-C4zPlC3V.d.mts} +1 -1
- package/dist/{router-D0Az-1Nu.d.ts → router-Cq7BcZxg.d.ts} +1 -1
- package/dist/routes.cjs +6 -5
- package/dist/routes.d.mts +3 -2
- package/dist/routes.d.ts +3 -2
- package/dist/routes.mjs +5 -4
- package/dist/server-fn-client.d.mts +1 -0
- package/dist/server-fn-client.d.ts +1 -0
- package/dist/server-fn.cjs +6 -5
- package/dist/server-fn.d.mts +1 -0
- package/dist/server-fn.d.ts +1 -0
- package/dist/server-fn.mjs +5 -4
- package/dist/server-plugins.cjs +3 -2
- package/dist/server-plugins.d.mts +3 -2
- package/dist/server-plugins.d.ts +3 -2
- package/dist/server-plugins.mjs +2 -1
- package/dist/server-query-client.cjs +5 -7
- package/dist/server-query-client.d.mts +1 -0
- package/dist/server-query-client.d.ts +1 -0
- package/dist/server-query-client.mjs +4 -6
- package/dist/server-query.cjs +7 -6
- package/dist/server-query.d.mts +1 -0
- package/dist/server-query.d.ts +1 -0
- package/dist/server-query.mjs +6 -5
- package/dist/server.cjs +72 -57
- package/dist/server.d.mts +10 -9
- package/dist/server.d.ts +10 -9
- package/dist/server.mjs +56 -41
- package/dist/{spa-router-DmwP_7QL.d.ts → spa-router-B1HI3X9k.d.ts} +2 -2
- package/dist/{spa-router-DVfSJZ5o.d.mts → spa-router-DzPZH-AO.d.mts} +2 -2
- package/dist/testing.cjs +14 -13
- package/dist/testing.d.mts +2 -1
- package/dist/testing.d.ts +2 -1
- package/dist/testing.mjs +11 -10
- package/dist/{utils-B_Rmr0-n.d.mts → utils-CEBktlBG.d.mts} +1 -1
- package/dist/{utils-Dv0OuLtF.d.ts → utils-DMD1Hzta.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +21 -19
- package/dist/vite.d.mts +3 -2
- package/dist/vite.d.ts +3 -2
- package/dist/vite.mjs +20 -18
- package/package.json +1 -1
- package/dist/{chunk-YOYF2E4U.mjs → chunk-LNZ7JZUS.mjs} +0 -0
- package/dist/{chunk-N4RLRSWW.cjs → chunk-SUIBNSNO.cjs} +0 -0
- package/dist/{chunk-TIKNUAU7.mjs → chunk-VUMAE7NC.mjs} +3 -3
- package/dist/{chunk-WM6HL7E7.cjs → chunk-ZHVYQL3H.cjs} +2 -2
package/dist/api.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
farmApiPlugin
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DGXN3L4D.mjs";
|
|
4
4
|
import {
|
|
5
5
|
APIClientError,
|
|
6
6
|
FARM_API_ROUTE_META_SYMBOL,
|
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
isAPIRouteRef,
|
|
14
14
|
resolveServerFnInvalidateTargets,
|
|
15
15
|
settleServerFnOptimisticUpdates
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YDQZGSDS.mjs";
|
|
17
17
|
import "./chunk-72AK62H5.mjs";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-XNPDONUH.mjs";
|
|
19
19
|
import "./chunk-QVYLBY73.mjs";
|
|
20
20
|
import "./chunk-R3DS7A2T.mjs";
|
|
21
21
|
import "./chunk-IOEH4VWN.mjs";
|
|
22
22
|
import {
|
|
23
23
|
APIRouteConflictError,
|
|
24
24
|
APIRouteManager
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-BXFWA23T.mjs";
|
|
26
|
+
import "./chunk-LNZ7JZUS.mjs";
|
|
27
27
|
import "./chunk-CU625VAY.mjs";
|
|
28
28
|
import "./chunk-JNGIWIY6.mjs";
|
|
29
29
|
import "./chunk-FV45CKBC.mjs";
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
isWebResponse,
|
|
36
36
|
normalizeRouteResponse,
|
|
37
37
|
resolveAPIRouteEndpoint
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-X7WVQMIB.mjs";
|
|
39
39
|
import {
|
|
40
40
|
DELETE,
|
|
41
41
|
EndpointFailure,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
createRouteFactory,
|
|
51
51
|
isEndpointFailure,
|
|
52
52
|
resolvePluginRoutes
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-4IEPYMHF.mjs";
|
|
54
54
|
import "./chunk-W3B4PKAW.mjs";
|
|
55
55
|
import "./chunk-5WI2S4CO.mjs";
|
|
56
56
|
import "./chunk-O6XNAMBV.mjs";
|
|
@@ -59,12 +59,14 @@ import {
|
|
|
59
59
|
} from "./chunk-I6XDAKWQ.mjs";
|
|
60
60
|
import "./chunk-EA5K5BKU.mjs";
|
|
61
61
|
import "./chunk-2J7W2WND.mjs";
|
|
62
|
+
import "./chunk-IV6CQY7O.mjs";
|
|
62
63
|
import "./chunk-XF7Q24PF.mjs";
|
|
63
64
|
import "./chunk-I2BHUNBU.mjs";
|
|
64
65
|
import "./chunk-43FMW62B.mjs";
|
|
65
66
|
import "./chunk-YMCXWPWK.mjs";
|
|
66
67
|
import "./chunk-KI3MESHB.mjs";
|
|
67
68
|
import "./chunk-QVKYGNVM.mjs";
|
|
69
|
+
import "./chunk-FUZEBRP3.mjs";
|
|
68
70
|
import "./chunk-Z2RZJZIZ.mjs";
|
|
69
71
|
import "./chunk-G4MWPDSE.mjs";
|
|
70
72
|
import {
|
|
@@ -88,10 +90,9 @@ import {
|
|
|
88
90
|
resolveFarmAPIRequestURL
|
|
89
91
|
} from "./chunk-7LTCDQRS.mjs";
|
|
90
92
|
import "./chunk-IXUY2F5U.mjs";
|
|
91
|
-
import "./chunk-F6SJAKFJ.mjs";
|
|
92
|
-
import "./chunk-4SIYUGRY.mjs";
|
|
93
93
|
import "./chunk-C4NCTZLM.mjs";
|
|
94
|
-
import "./chunk-
|
|
94
|
+
import "./chunk-CNOQY6Z7.mjs";
|
|
95
|
+
import "./chunk-4SIYUGRY.mjs";
|
|
95
96
|
import "./chunk-BSPQVJ4A.mjs";
|
|
96
97
|
import "./chunk-CQ6OSQ3K.mjs";
|
|
97
98
|
import "./chunk-IZY3V5XW.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as FarmConfig, P as ParsedRoute,
|
|
1
|
+
import { J as FarmConfig, P as ParsedRoute, aE as ResolvedFarmRouteRuntimeConfig, aF as ApplicationMetadataRouteKind, s as RouteModule, ae as LayoutModule, aj as SSGCollectionResult, e as FarmRequest, f as FarmResponse, aG as ResolvedFarmAPIConfig, aH as FarmMarkdownResolvedConfig, u as FarmMdxResolvedConfig, aI as ResolvedFarmDevtoolsConfig, aJ as ResolvedFarmDevIndicatorsConfig, aK as ResolvedFarmAuthConfig, aL as ResolvedFarmPerformanceConfig, aM as ResolvedFarmSecurityConfig } from './client-plugins-BX2ptm4H.mjs';
|
|
2
2
|
import { F as FarmDocsResolvedConfig } from './types-DFbjpjXX.mjs';
|
|
3
3
|
import { F as FarmWorkflowsResolvedConfig } from './workflows-CR9ex-gz.mjs';
|
|
4
4
|
import { FarmCronResolvedConfig } from './cron.mjs';
|
|
@@ -6,9 +6,9 @@ import { R as ResolvedFarmImageConfig } from './image-config-Duob7wER.mjs';
|
|
|
6
6
|
import { ProgrammaticRedirectRoute, ProgrammaticRouteSearchClientOptions } from './routes.mjs';
|
|
7
7
|
import { ViteDevServer } from 'vite';
|
|
8
8
|
import { F as FarmIslandStrategy } from './island-CfGru1MO.mjs';
|
|
9
|
-
import { M as MetadataImageKind } from './metadata-
|
|
9
|
+
import { M as MetadataImageKind } from './metadata-DsEaK7mQ.mjs';
|
|
10
10
|
import { FarmServerRendererRuntime, FarmRenderer } from './renderer.mjs';
|
|
11
|
-
import { F as FarmRouteRenderPlan } from './render-plan-
|
|
11
|
+
import { F as FarmRouteRenderPlan } from './render-plan-DhwQnmmX.mjs';
|
|
12
12
|
import { R as ResolvedFarmI18nConfig } from './types-Z0aotQ8w.mjs';
|
|
13
13
|
import { F as FarmI18nRuntime } from './runtime-AOJge4vQ.mjs';
|
|
14
14
|
import { R as ResolvedFarmThemeConfig } from './types-DQnyD3VD.mjs';
|
package/dist/app-markdown.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkBZAGKCKBcjs = require('./chunk-BZAGKCKB.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -10,7 +10,7 @@ var _chunkTDWFCC2Tcjs = require('./chunk-TDWFCC2T.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkNXG66MR7cjs = require('./chunk-NXG66MR7.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -19,13 +19,14 @@ var _chunkOHY2ZWUGcjs = require('./chunk-OHY2ZWUG.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunk6CNX6Q3Kcjs = require('./chunk-6CNX6Q3K.cjs');
|
|
23
23
|
require('./chunk-J63ZH5OQ.cjs');
|
|
24
24
|
require('./chunk-5MKEDGLD.cjs');
|
|
25
25
|
require('./chunk-WPYFSQKK.cjs');
|
|
26
|
+
require('./chunk-E3UK5IIB.cjs');
|
|
26
27
|
require('./chunk-G7HXGLEC.cjs');
|
|
27
28
|
require('./chunk-S3A45T7F.cjs');
|
|
28
|
-
require('./chunk-
|
|
29
|
+
require('./chunk-FJ3M4CUX.cjs');
|
|
29
30
|
require('./chunk-I57LW5VZ.cjs');
|
|
30
31
|
require('./chunk-NO3WWW3N.cjs');
|
|
31
32
|
require('./chunk-S3JO3N4H.cjs');
|
|
@@ -44,4 +45,4 @@ require('./chunk-S3JO3N4H.cjs');
|
|
|
44
45
|
|
|
45
46
|
|
|
46
47
|
|
|
47
|
-
exports.FARM_MARKDOWN_CONTENT_TYPE =
|
|
48
|
+
exports.FARM_MARKDOWN_CONTENT_TYPE = _chunk6CNX6Q3Kcjs.FARM_MARKDOWN_CONTENT_TYPE; exports.createFarmMarkdownErrorBody = _chunk6CNX6Q3Kcjs.createFarmMarkdownErrorBody; exports.createFarmMarkdownRouteModule = _chunkNXG66MR7cjs.createFarmMarkdownRouteModule; exports.createFarmMarkdownRouteModuleFromFile = _chunkBZAGKCKBcjs.createFarmMarkdownRouteModuleFromFile; exports.createFarmMarkdownSourceResponse = _chunkNXG66MR7cjs.createFarmMarkdownSourceResponse; exports.createMarkdownMetadata = _chunkNXG66MR7cjs.createMarkdownMetadata; exports.farmRequestWantsMarkdown = _chunk6CNX6Q3Kcjs.farmRequestWantsMarkdown; exports.isFarmMarkdownPageFile = _chunkNXG66MR7cjs.isFarmMarkdownPageFile; exports.loadFarmMdxComponents = _chunkBZAGKCKBcjs.loadFarmMdxComponents; exports.normalizeFarmMarkdownRoutePath = _chunkNXG66MR7cjs.normalizeFarmMarkdownRoutePath; exports.parseMarkdownFrontmatter = _chunkNXG66MR7cjs.parseMarkdownFrontmatter; exports.resolveFarmMdxComponentsModulePath = _chunkOHY2ZWUGcjs.resolveFarmMdxComponentsModulePath; exports.resolveMdxConfig = _chunkOHY2ZWUGcjs.resolveMdxConfig; exports.titleFromMarkdown = _chunkNXG66MR7cjs.titleFromMarkdown;
|
package/dist/app-markdown.d.mts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { t as FarmMdxComponents, u as FarmMdxResolvedConfig, s as RouteModule } from './client-plugins-
|
|
2
|
-
export { z as FARM_MARKDOWN_CONTENT_TYPE, x as FarmMdxComponent, y as FarmMdxUserConfig, A as createFarmMarkdownErrorBody, B as farmRequestWantsMarkdown, v as resolveFarmMdxComponentsModulePath, w as resolveMdxConfig } from './client-plugins-
|
|
1
|
+
import { t as FarmMdxComponents, u as FarmMdxResolvedConfig, s as RouteModule } from './client-plugins-BX2ptm4H.mjs';
|
|
2
|
+
export { z as FARM_MARKDOWN_CONTENT_TYPE, x as FarmMdxComponent, y as FarmMdxUserConfig, A as createFarmMarkdownErrorBody, B as farmRequestWantsMarkdown, v as resolveFarmMdxComponentsModulePath, w as resolveMdxConfig } from './client-plugins-BX2ptm4H.mjs';
|
|
3
3
|
export { FarmMarkdownPageModuleInput, FarmMarkdownPageSource, createFarmMarkdownRouteModule, createFarmMarkdownSourceResponse, createMarkdownMetadata, isFarmMarkdownPageFile, normalizeFarmMarkdownRoutePath, parseMarkdownFrontmatter, titleFromMarkdown } from './internal/app-markdown-runtime.mjs';
|
|
4
4
|
import './lifecycle-DK06VuKP.mjs';
|
|
5
5
|
import './integration-api-0y4FXJpC.mjs';
|
|
6
6
|
import './endpoint-CCHFqyTE.mjs';
|
|
7
7
|
import './cache.mjs';
|
|
8
|
+
import './cache-invalidation-BD0z_lfu.mjs';
|
|
8
9
|
import './renderer.mjs';
|
|
9
10
|
import './deployment.mjs';
|
|
10
11
|
import 'http';
|
|
11
12
|
import './server-fn.mjs';
|
|
12
13
|
import './server-fn-error-DDh14a0V.mjs';
|
|
13
14
|
import './server-query.mjs';
|
|
14
|
-
import './types-Z0aotQ8w.mjs';
|
|
15
15
|
import './types-Cc8l9IqS.mjs';
|
|
16
16
|
import 'db0';
|
|
17
17
|
import 'unstorage';
|
|
@@ -30,6 +30,7 @@ import './server-action-security.mjs';
|
|
|
30
30
|
import 'rolldown/utils';
|
|
31
31
|
import 'rolldown';
|
|
32
32
|
import './image-config-Duob7wER.mjs';
|
|
33
|
+
import './types-Z0aotQ8w.mjs';
|
|
33
34
|
import './types-DQnyD3VD.mjs';
|
|
34
35
|
import './font.mjs';
|
|
35
36
|
import './after.mjs';
|
package/dist/app-markdown.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { t as FarmMdxComponents, u as FarmMdxResolvedConfig, s as RouteModule } from './client-plugins-
|
|
2
|
-
export { z as FARM_MARKDOWN_CONTENT_TYPE, x as FarmMdxComponent, y as FarmMdxUserConfig, A as createFarmMarkdownErrorBody, B as farmRequestWantsMarkdown, v as resolveFarmMdxComponentsModulePath, w as resolveMdxConfig } from './client-plugins-
|
|
1
|
+
import { t as FarmMdxComponents, u as FarmMdxResolvedConfig, s as RouteModule } from './client-plugins-BmxM5KW_.js';
|
|
2
|
+
export { z as FARM_MARKDOWN_CONTENT_TYPE, x as FarmMdxComponent, y as FarmMdxUserConfig, A as createFarmMarkdownErrorBody, B as farmRequestWantsMarkdown, v as resolveFarmMdxComponentsModulePath, w as resolveMdxConfig } from './client-plugins-BmxM5KW_.js';
|
|
3
3
|
export { FarmMarkdownPageModuleInput, FarmMarkdownPageSource, createFarmMarkdownRouteModule, createFarmMarkdownSourceResponse, createMarkdownMetadata, isFarmMarkdownPageFile, normalizeFarmMarkdownRoutePath, parseMarkdownFrontmatter, titleFromMarkdown } from './internal/app-markdown-runtime.js';
|
|
4
4
|
import './lifecycle-DK06VuKP.js';
|
|
5
5
|
import './integration-api-BPJo5oXb.js';
|
|
6
6
|
import './endpoint-CA-TNX60.js';
|
|
7
7
|
import './cache.js';
|
|
8
|
+
import './cache-invalidation-BD0z_lfu.js';
|
|
8
9
|
import './renderer.js';
|
|
9
10
|
import './deployment.js';
|
|
10
11
|
import 'http';
|
|
11
12
|
import './server-fn.js';
|
|
12
13
|
import './server-fn-error-DDh14a0V.js';
|
|
13
14
|
import './server-query.js';
|
|
14
|
-
import './types-Z0aotQ8w.js';
|
|
15
15
|
import './types-Cc8l9IqS.js';
|
|
16
16
|
import 'db0';
|
|
17
17
|
import 'unstorage';
|
|
@@ -30,6 +30,7 @@ import './server-action-security.js';
|
|
|
30
30
|
import 'rolldown/utils';
|
|
31
31
|
import 'rolldown';
|
|
32
32
|
import './image-config-Duob7wER.js';
|
|
33
|
+
import './types-Z0aotQ8w.js';
|
|
33
34
|
import './types-DQnyD3VD.js';
|
|
34
35
|
import './font.js';
|
|
35
36
|
import './after.js';
|
package/dist/app-markdown.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createFarmMarkdownRouteModuleFromFile,
|
|
3
3
|
loadFarmMdxComponents
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6G3ZZ2IE.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createFarmMarkdownRouteModule,
|
|
7
7
|
createFarmMarkdownSourceResponse,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
normalizeFarmMarkdownRoutePath,
|
|
11
11
|
parseMarkdownFrontmatter,
|
|
12
12
|
titleFromMarkdown
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BZ3CHOFX.mjs";
|
|
14
14
|
import {
|
|
15
15
|
resolveFarmMdxComponentsModulePath,
|
|
16
16
|
resolveMdxConfig
|
|
@@ -19,13 +19,14 @@ import {
|
|
|
19
19
|
FARM_MARKDOWN_CONTENT_TYPE,
|
|
20
20
|
createFarmMarkdownErrorBody,
|
|
21
21
|
farmRequestWantsMarkdown
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ATXI6LGT.mjs";
|
|
23
23
|
import "./chunk-MVL2RAJW.mjs";
|
|
24
24
|
import "./chunk-O6XNAMBV.mjs";
|
|
25
25
|
import "./chunk-I6XDAKWQ.mjs";
|
|
26
|
+
import "./chunk-FUZEBRP3.mjs";
|
|
26
27
|
import "./chunk-O7BH5O46.mjs";
|
|
27
28
|
import "./chunk-7LTCDQRS.mjs";
|
|
28
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-Z3HATSKO.mjs";
|
|
29
30
|
import "./chunk-4RB44K6Z.mjs";
|
|
30
31
|
import "./chunk-55YI3RRB.mjs";
|
|
31
32
|
import "./chunk-LPEX4YW6.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as FarmConfig, P as ParsedRoute,
|
|
1
|
+
import { J as FarmConfig, P as ParsedRoute, aE as ResolvedFarmRouteRuntimeConfig, aF as ApplicationMetadataRouteKind, s as RouteModule, ae as LayoutModule, aj as SSGCollectionResult, e as FarmRequest, f as FarmResponse, aG as ResolvedFarmAPIConfig, aH as FarmMarkdownResolvedConfig, u as FarmMdxResolvedConfig, aI as ResolvedFarmDevtoolsConfig, aJ as ResolvedFarmDevIndicatorsConfig, aK as ResolvedFarmAuthConfig, aL as ResolvedFarmPerformanceConfig, aM as ResolvedFarmSecurityConfig } from './client-plugins-BmxM5KW_.js';
|
|
2
2
|
import { F as FarmDocsResolvedConfig } from './types-DFbjpjXX.js';
|
|
3
3
|
import { F as FarmWorkflowsResolvedConfig } from './workflows-CR9ex-gz.js';
|
|
4
4
|
import { FarmCronResolvedConfig } from './cron.js';
|
|
@@ -6,9 +6,9 @@ import { R as ResolvedFarmImageConfig } from './image-config-Duob7wER.js';
|
|
|
6
6
|
import { ProgrammaticRedirectRoute, ProgrammaticRouteSearchClientOptions } from './routes.js';
|
|
7
7
|
import { ViteDevServer } from 'vite';
|
|
8
8
|
import { F as FarmIslandStrategy } from './island-CfGru1MO.js';
|
|
9
|
-
import { M as MetadataImageKind } from './metadata-
|
|
9
|
+
import { M as MetadataImageKind } from './metadata-fwZ3gfG6.js';
|
|
10
10
|
import { FarmServerRendererRuntime, FarmRenderer } from './renderer.js';
|
|
11
|
-
import { F as FarmRouteRenderPlan } from './render-plan-
|
|
11
|
+
import { F as FarmRouteRenderPlan } from './render-plan-rkIK9wd9.js';
|
|
12
12
|
import { R as ResolvedFarmI18nConfig } from './types-Z0aotQ8w.js';
|
|
13
13
|
import { F as FarmI18nRuntime } from './runtime-BirxPwbZ.js';
|
|
14
14
|
import { R as ResolvedFarmThemeConfig } from './types-DQnyD3VD.js';
|
package/dist/cache.cjs
CHANGED
|
@@ -15,14 +15,16 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
+
var _chunk2SDO73HKcjs = require('./chunk-2SDO73HK.cjs');
|
|
19
|
+
require('./chunk-E3UK5IIB.cjs');
|
|
20
|
+
require('./chunk-LIUGYUX3.cjs');
|
|
21
|
+
|
|
18
22
|
|
|
19
23
|
|
|
20
|
-
var
|
|
24
|
+
var _chunkNYJMY3JAcjs = require('./chunk-NYJMY3JA.cjs');
|
|
21
25
|
|
|
22
26
|
|
|
23
27
|
var _chunkZEG3OPIBcjs = require('./chunk-ZEG3OPIB.cjs');
|
|
24
|
-
require('./chunk-LIUGYUX3.cjs');
|
|
25
|
-
require('./chunk-E3UK5IIB.cjs');
|
|
26
28
|
require('./chunk-S3JO3N4H.cjs');
|
|
27
29
|
|
|
28
30
|
|
|
@@ -44,4 +46,4 @@ require('./chunk-S3JO3N4H.cjs');
|
|
|
44
46
|
|
|
45
47
|
|
|
46
48
|
|
|
47
|
-
exports.FarmDataCache =
|
|
49
|
+
exports.FarmDataCache = _chunk2SDO73HKcjs.FarmDataCache; exports.applyFarmCacheInvalidationTargets = _chunk2SDO73HKcjs.applyFarmCacheInvalidationTargets; exports.applyFarmCacheInvalidations = _chunkZEG3OPIBcjs.applyFarmCacheInvalidations; exports.configureFarmCache = _chunk2SDO73HKcjs.configureFarmCache; exports.createFarmCacheInvalidationStream = _chunk2SDO73HKcjs.createFarmCacheInvalidationStream; exports.createFarmCacheKey = _chunkNYJMY3JAcjs.createFarmCacheKey; exports.createPathCacheTag = _chunk2SDO73HKcjs.createPathCacheTag; exports.createRouteDataCacheKey = _chunkNYJMY3JAcjs.createRouteDataCacheKey; exports.createRouteDataCacheTag = _chunk2SDO73HKcjs.createRouteDataCacheTag; exports.defineCacheKey = _chunk2SDO73HKcjs.defineCacheKey; exports.getFarmDataCache = _chunk2SDO73HKcjs.getFarmDataCache; exports.invalidate = _chunk2SDO73HKcjs.invalidate; exports.invalidateRouteData = _chunk2SDO73HKcjs.invalidateRouteData; exports.normalizeRevalidatePath = _chunk2SDO73HKcjs.normalizeRevalidatePath; exports.revalidatePath = _chunk2SDO73HKcjs.revalidatePath; exports.revalidateTag = _chunk2SDO73HKcjs.revalidateTag; exports.storageCacheAdapter = _chunk2SDO73HKcjs.storageCacheAdapter; exports.unstable_cache = _chunk2SDO73HKcjs.unstable_cache; exports.updateTag = _chunk2SDO73HKcjs.updateTag;
|
package/dist/cache.d.mts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export { a as applyFarmCacheInvalidations } from './cache-invalidation-BD0z_lfu.mjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Cache key serialization, kept free of server imports: browser code such as
|
|
5
|
+
* the client data cache builds the same keys, and importing `./cache` would
|
|
6
|
+
* pull observability and OpenTelemetry into client bundles.
|
|
7
|
+
*/
|
|
8
|
+
type RouteDataCacheKey = string | readonly unknown[];
|
|
9
|
+
declare function createRouteDataCacheKey(key: RouteDataCacheKey): string;
|
|
10
|
+
declare function createFarmCacheKey(parts: readonly unknown[]): string;
|
|
3
11
|
|
|
4
12
|
interface FarmCacheInvalidationStreamOptions {
|
|
5
13
|
/** Stop the stream when the owning request is aborted. */
|
|
@@ -38,7 +46,6 @@ interface FarmCacheOptions {
|
|
|
38
46
|
interface FarmCacheSetOptions extends FarmCacheOptions {
|
|
39
47
|
createdAt?: number;
|
|
40
48
|
}
|
|
41
|
-
type RouteDataCacheKey = string | readonly unknown[];
|
|
42
49
|
type FarmCacheInvalidationTarget = {
|
|
43
50
|
key: RouteDataCacheKey;
|
|
44
51
|
} | {
|
|
@@ -290,8 +297,6 @@ declare function invalidateRouteData(key: RouteDataCacheKey): void | Promise<voi
|
|
|
290
297
|
declare function applyFarmCacheInvalidationTargets(targets: readonly FarmCacheInvalidationTarget[]): Promise<readonly string[]>;
|
|
291
298
|
declare function createPathCacheTag(routePath: string): string;
|
|
292
299
|
declare function createRouteDataCacheTag(key: RouteDataCacheKey): string;
|
|
293
|
-
declare function createRouteDataCacheKey(key: RouteDataCacheKey): string;
|
|
294
300
|
declare function normalizeRevalidatePath(routePath: string): string;
|
|
295
|
-
declare function createFarmCacheKey(parts: readonly unknown[]): string;
|
|
296
301
|
|
|
297
|
-
export { type CacheKeyFactory, type DefinedCacheKey, type FarmCacheAdapter, type FarmCacheEntry, type FarmCacheInvalidationStreamOptions, type FarmCacheInvalidationTarget, type FarmCacheOptions, type FarmCacheSetOptions, type FarmCacheStorage, type FarmCacheUserConfig, type FarmClientCacheUserConfig, FarmDataCache, type GetFarmCacheEntryOptions, type InferCacheKeyData, type RevalidateTagProfile, type RouteDataCacheKey, type StorageFarmCacheAdapterOptions, applyFarmCacheInvalidationTargets,
|
|
302
|
+
export { type CacheKeyFactory, type DefinedCacheKey, type FarmCacheAdapter, type FarmCacheEntry, type FarmCacheInvalidationStreamOptions, type FarmCacheInvalidationTarget, type FarmCacheOptions, type FarmCacheSetOptions, type FarmCacheStorage, type FarmCacheUserConfig, type FarmClientCacheUserConfig, FarmDataCache, type GetFarmCacheEntryOptions, type InferCacheKeyData, type RevalidateTagProfile, type RouteDataCacheKey, type StorageFarmCacheAdapterOptions, applyFarmCacheInvalidationTargets, configureFarmCache, createFarmCacheInvalidationStream, createFarmCacheKey, createPathCacheTag, createRouteDataCacheKey, createRouteDataCacheTag, defineCacheKey, getFarmDataCache, invalidate, invalidateRouteData, normalizeRevalidatePath, revalidatePath, revalidateTag, storageCacheAdapter, unstable_cache, updateTag };
|
package/dist/cache.d.ts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export { a as applyFarmCacheInvalidations } from './cache-invalidation-BD0z_lfu.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Cache key serialization, kept free of server imports: browser code such as
|
|
5
|
+
* the client data cache builds the same keys, and importing `./cache` would
|
|
6
|
+
* pull observability and OpenTelemetry into client bundles.
|
|
7
|
+
*/
|
|
8
|
+
type RouteDataCacheKey = string | readonly unknown[];
|
|
9
|
+
declare function createRouteDataCacheKey(key: RouteDataCacheKey): string;
|
|
10
|
+
declare function createFarmCacheKey(parts: readonly unknown[]): string;
|
|
3
11
|
|
|
4
12
|
interface FarmCacheInvalidationStreamOptions {
|
|
5
13
|
/** Stop the stream when the owning request is aborted. */
|
|
@@ -38,7 +46,6 @@ interface FarmCacheOptions {
|
|
|
38
46
|
interface FarmCacheSetOptions extends FarmCacheOptions {
|
|
39
47
|
createdAt?: number;
|
|
40
48
|
}
|
|
41
|
-
type RouteDataCacheKey = string | readonly unknown[];
|
|
42
49
|
type FarmCacheInvalidationTarget = {
|
|
43
50
|
key: RouteDataCacheKey;
|
|
44
51
|
} | {
|
|
@@ -290,8 +297,6 @@ declare function invalidateRouteData(key: RouteDataCacheKey): void | Promise<voi
|
|
|
290
297
|
declare function applyFarmCacheInvalidationTargets(targets: readonly FarmCacheInvalidationTarget[]): Promise<readonly string[]>;
|
|
291
298
|
declare function createPathCacheTag(routePath: string): string;
|
|
292
299
|
declare function createRouteDataCacheTag(key: RouteDataCacheKey): string;
|
|
293
|
-
declare function createRouteDataCacheKey(key: RouteDataCacheKey): string;
|
|
294
300
|
declare function normalizeRevalidatePath(routePath: string): string;
|
|
295
|
-
declare function createFarmCacheKey(parts: readonly unknown[]): string;
|
|
296
301
|
|
|
297
|
-
export { type CacheKeyFactory, type DefinedCacheKey, type FarmCacheAdapter, type FarmCacheEntry, type FarmCacheInvalidationStreamOptions, type FarmCacheInvalidationTarget, type FarmCacheOptions, type FarmCacheSetOptions, type FarmCacheStorage, type FarmCacheUserConfig, type FarmClientCacheUserConfig, FarmDataCache, type GetFarmCacheEntryOptions, type InferCacheKeyData, type RevalidateTagProfile, type RouteDataCacheKey, type StorageFarmCacheAdapterOptions, applyFarmCacheInvalidationTargets,
|
|
302
|
+
export { type CacheKeyFactory, type DefinedCacheKey, type FarmCacheAdapter, type FarmCacheEntry, type FarmCacheInvalidationStreamOptions, type FarmCacheInvalidationTarget, type FarmCacheOptions, type FarmCacheSetOptions, type FarmCacheStorage, type FarmCacheUserConfig, type FarmClientCacheUserConfig, FarmDataCache, type GetFarmCacheEntryOptions, type InferCacheKeyData, type RevalidateTagProfile, type RouteDataCacheKey, type StorageFarmCacheAdapterOptions, applyFarmCacheInvalidationTargets, configureFarmCache, createFarmCacheInvalidationStream, createFarmCacheKey, createPathCacheTag, createRouteDataCacheKey, createRouteDataCacheTag, defineCacheKey, getFarmDataCache, invalidate, invalidateRouteData, normalizeRevalidatePath, revalidatePath, revalidateTag, storageCacheAdapter, unstable_cache, updateTag };
|
package/dist/cache.mjs
CHANGED
|
@@ -3,9 +3,7 @@ import {
|
|
|
3
3
|
applyFarmCacheInvalidationTargets,
|
|
4
4
|
configureFarmCache,
|
|
5
5
|
createFarmCacheInvalidationStream,
|
|
6
|
-
createFarmCacheKey,
|
|
7
6
|
createPathCacheTag,
|
|
8
|
-
createRouteDataCacheKey,
|
|
9
7
|
createRouteDataCacheTag,
|
|
10
8
|
defineCacheKey,
|
|
11
9
|
getFarmDataCache,
|
|
@@ -17,12 +15,16 @@ import {
|
|
|
17
15
|
storageCacheAdapter,
|
|
18
16
|
unstable_cache,
|
|
19
17
|
updateTag
|
|
20
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-IV6CQY7O.mjs";
|
|
19
|
+
import "./chunk-FUZEBRP3.mjs";
|
|
20
|
+
import "./chunk-C4NCTZLM.mjs";
|
|
21
|
+
import {
|
|
22
|
+
createFarmCacheKey,
|
|
23
|
+
createRouteDataCacheKey
|
|
24
|
+
} from "./chunk-CNOQY6Z7.mjs";
|
|
21
25
|
import {
|
|
22
26
|
applyFarmCacheInvalidations
|
|
23
27
|
} from "./chunk-4SIYUGRY.mjs";
|
|
24
|
-
import "./chunk-C4NCTZLM.mjs";
|
|
25
|
-
import "./chunk-FUZEBRP3.mjs";
|
|
26
28
|
import "./chunk-LPEX4YW6.mjs";
|
|
27
29
|
export {
|
|
28
30
|
FarmDataCache,
|
|
@@ -11,6 +11,9 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
emitFarmEvent
|
|
13
13
|
} from "./chunk-FUZEBRP3.mjs";
|
|
14
|
+
import {
|
|
15
|
+
_withFarmResponseHeaders
|
|
16
|
+
} from "./chunk-Z3HATSKO.mjs";
|
|
14
17
|
import {
|
|
15
18
|
getFarmRedirectError,
|
|
16
19
|
isFarmNotFoundError,
|
|
@@ -637,21 +640,17 @@ function applyProductionMiddlewareHeaders(response, middlewareHeaders) {
|
|
|
637
640
|
if (!middlewareHeaders || Array.from(middlewareHeaders.keys()).length === 0) {
|
|
638
641
|
return response;
|
|
639
642
|
}
|
|
640
|
-
const headers = new Headers(response.headers);
|
|
641
643
|
const getSetCookie = middlewareHeaders.getSetCookie;
|
|
642
644
|
const setCookies = getSetCookie ? getSetCookie.call(middlewareHeaders) : middlewareHeaders.get("set-cookie") ? [middlewareHeaders.get("set-cookie")] : [];
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
status: response.status,
|
|
653
|
-
statusText: response.statusText,
|
|
654
|
-
headers
|
|
645
|
+
return _withFarmResponseHeaders(response, (headers) => {
|
|
646
|
+
for (const [key, value] of middlewareHeaders) {
|
|
647
|
+
if (key.toLowerCase() === "set-cookie") continue;
|
|
648
|
+
if (headers.has(key)) continue;
|
|
649
|
+
headers.set(key, value);
|
|
650
|
+
}
|
|
651
|
+
for (const cookie of setCookies) {
|
|
652
|
+
headers.append("Set-Cookie", cookie);
|
|
653
|
+
}
|
|
655
654
|
});
|
|
656
655
|
}
|
|
657
656
|
__name(applyProductionMiddlewareHeaders, "applyProductionMiddlewareHeaders");
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getFarmClientDataCache,
|
|
3
3
|
trackFarmClientCacheInvalidations
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XNPDONUH.mjs";
|
|
5
5
|
import {
|
|
6
6
|
isFarmServerQueryResult
|
|
7
7
|
} from "./chunk-KGB5UXJJ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
createFarmCacheKey
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CNOQY6Z7.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-LPEX4YW6.mjs";
|