@farm.js/core 0.1.27 → 0.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-runtime.d.mts +2 -1
- package/dist/agent-runtime.d.ts +2 -1
- 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 +2 -1
- package/dist/api/runtime.d.ts +2 -1
- package/dist/api/runtime.mjs +6 -5
- package/dist/api.cjs +12 -11
- package/dist/api.d.mts +3 -2
- package/dist/api.d.ts +3 -2
- package/dist/api.mjs +11 -10
- package/dist/{app-BfzZdjgX.d.mts → app-DSSq6wiN.d.mts} +3 -3
- package/dist/{app-CXK7Prrt.d.ts → app-M8nVWvNU.d.ts} +3 -3
- package/dist/app-markdown.cjs +5 -5
- package/dist/app-markdown.d.mts +3 -2
- package/dist/app-markdown.d.ts +3 -2
- package/dist/app-markdown.mjs +4 -4
- 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-4FHDV7VM.mjs → chunk-2CNBR3EB.mjs} +2 -2
- package/dist/{chunk-MBFURXAC.mjs → chunk-2DLN6HG4.mjs} +1 -1
- package/dist/{chunk-UUYF3CHN.mjs → chunk-2N5PX3LS.mjs} +2 -2
- package/dist/{chunk-H6G5INWM.cjs → chunk-2SDO73HK.cjs} +14 -156
- 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-DQMTHWPI.cjs → chunk-55ZY4ZA7.cjs} +4 -4
- package/dist/{chunk-I7PUUDGY.cjs → chunk-63H6BKXG.cjs} +2 -2
- package/dist/{chunk-FG5H2VCJ.mjs → chunk-6ZCMSZ5U.mjs} +2 -2
- package/dist/{chunk-ZMN3H73H.cjs → chunk-75DYEVXI.cjs} +13 -11
- package/dist/{chunk-WJKVTJJR.cjs → chunk-A672WZEG.cjs} +2 -2
- package/dist/{chunk-NL3ZSMZB.cjs → chunk-BJPBQNIE.cjs} +12 -12
- package/dist/{chunk-Q4BHBO6V.mjs → chunk-BXFWA23T.mjs} +2 -2
- package/dist/chunk-CNOQY6Z7.mjs +156 -0
- package/dist/{chunk-DW34V5SM.cjs → chunk-CTV2TTNP.cjs} +4 -4
- package/dist/{chunk-YXM74XOW.cjs → chunk-D4JE5NNV.cjs} +12 -12
- package/dist/{chunk-4UNKCNSL.mjs → chunk-E76XC6ZG.mjs} +2 -2
- package/dist/{chunk-G3HRIVEY.cjs → chunk-ES4B2IXW.cjs} +2 -2
- package/dist/{chunk-TDWFCC2T.cjs → chunk-EWZ3XHKQ.cjs} +2 -2
- package/dist/{chunk-JQGDQO2I.cjs → chunk-EXLKRR4U.cjs} +10 -10
- package/dist/{chunk-YZBV7733.cjs → chunk-F52CDFJM.cjs} +81 -81
- package/dist/{chunk-HG237IEY.mjs → chunk-FB3H4INL.mjs} +1 -1
- package/dist/{chunk-UWTQTZFN.mjs → chunk-FVCSLZWT.mjs} +11 -11
- package/dist/{chunk-WD4YXVLV.mjs → chunk-GZYH4OER.mjs} +1 -1
- package/dist/{chunk-DX4VKYAJ.cjs → chunk-I26CZYPV.cjs} +6 -4
- package/dist/{chunk-UNSKL6BI.cjs → chunk-ID6OVSLH.cjs} +163 -129
- package/dist/{chunk-F6SJAKFJ.mjs → chunk-IV6CQY7O.mjs} +12 -154
- package/dist/{chunk-6D242YGO.mjs → chunk-JATSG2ZO.mjs} +1 -1
- package/dist/{chunk-U74A3P2P.cjs → chunk-JLRDISQL.cjs} +7 -7
- package/dist/{chunk-LAHZ7LZA.cjs → chunk-JUFRXDTK.cjs} +18 -18
- package/dist/{chunk-POXI72VV.mjs → chunk-K3YEZLSY.mjs} +53 -8
- package/dist/{chunk-Y4YWHNKU.cjs → chunk-KH7BN726.cjs} +9 -9
- package/dist/{chunk-KAERLFD3.cjs → chunk-KOQ555NR.cjs} +16 -13
- package/dist/{chunk-O2LV5XDG.mjs → chunk-KXGDXYUC.mjs} +3 -3
- package/dist/{chunk-3IL5UC5I.cjs → chunk-KZLND3D2.cjs} +2 -2
- package/dist/{chunk-NPFGGBM5.cjs → chunk-MH24QDVJ.cjs} +13 -13
- package/dist/{chunk-TKDY6AJP.mjs → chunk-MKMBQSNQ.mjs} +1 -1
- package/dist/{chunk-OCE65DDM.mjs → chunk-MNUGPHLN.mjs} +1 -1
- package/dist/{chunk-3PTVHMLD.mjs → chunk-NVBS5WSZ.mjs} +1 -1
- package/dist/chunk-NYJMY3JA.cjs +156 -0
- package/dist/{chunk-VVJCWBIE.mjs → chunk-O3DTUAX2.mjs} +2 -2
- package/dist/{chunk-C7OUJ6JI.cjs → chunk-PZNCMPJF.cjs} +3 -3
- package/dist/{chunk-WIVTGKLY.mjs → chunk-PZPDGOU5.mjs} +9 -6
- package/dist/{chunk-52SH7TKB.mjs → chunk-QG5HNS7P.mjs} +2 -2
- package/dist/{chunk-CEYUWDWA.mjs → chunk-QZCT2CQ4.mjs} +10 -5
- package/dist/{chunk-JT25KHDI.mjs → chunk-REGFZJEJ.mjs} +1 -1
- package/dist/{chunk-QMV4QELL.mjs → chunk-S5GDHOE4.mjs} +4 -2
- package/dist/{chunk-CRQPYWLK.cjs → chunk-SORB3MAR.cjs} +14 -14
- package/dist/{chunk-FPW4W3VW.mjs → chunk-T7HQ3I4C.mjs} +1 -1
- package/dist/{chunk-HF5SIACK.cjs → chunk-TII23GJC.cjs} +3 -3
- package/dist/{chunk-QQQNJS2E.mjs → chunk-UX2DD2VK.mjs} +1 -1
- package/dist/{chunk-I4J452B7.cjs → chunk-VHJGDMCG.cjs} +3 -3
- package/dist/{chunk-QI7WQSMI.cjs → chunk-VQXDC5UV.cjs} +4 -4
- package/dist/{chunk-B6ZCT36X.cjs → chunk-WNLBF77X.cjs} +4 -4
- package/dist/{chunk-6EG7U4NF.mjs → chunk-X7WVQMIB.mjs} +1 -1
- package/dist/{chunk-5SPPCN5J.mjs → chunk-XNPDONUH.mjs} +1 -1
- package/dist/{chunk-ZSO5GWGD.cjs → chunk-XSPGWQWA.cjs} +75 -30
- package/dist/{chunk-FOT7LZEO.cjs → chunk-Y7GW7J46.cjs} +1 -1
- package/dist/{chunk-UOXGA6TO.mjs → chunk-YDQZGSDS.mjs} +1 -1
- package/dist/{chunk-C3VRMB6H.cjs → chunk-ZCU4NZ3M.cjs} +6 -6
- package/dist/{chunk-OGHTEYXS.mjs → chunk-ZRIE4KMG.mjs} +62 -28
- package/dist/{client-plugins-1GS4zubE.d.mts → client-plugins-CgYNY7jF.d.mts} +35 -32
- package/dist/{client-plugins-B1Za6F5x.d.ts → client-plugins-Fl9Og3yB.d.ts} +35 -32
- package/dist/client-plugins.d.mts +2 -1
- package/dist/client-plugins.d.ts +2 -1
- 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 +2 -1
- package/dist/config.d.ts +2 -1
- package/dist/{devtools-6RN6KHTW.mjs → devtools-3E7ZANMZ.mjs} +4 -4
- package/dist/{devtools-CQJ3H6MX.cjs → devtools-5AREISIA.cjs} +5 -5
- package/dist/docs.cjs +7 -7
- package/dist/docs.mjs +6 -6
- package/dist/index.cjs +56 -54
- package/dist/index.d.mts +14 -13
- package/dist/index.d.ts +14 -13
- package/dist/index.mjs +64 -62
- package/dist/integrations.d.mts +2 -1
- package/dist/integrations.d.ts +2 -1
- package/dist/internal/app-markdown-runtime.cjs +4 -4
- package/dist/internal/app-markdown-runtime.d.mts +3 -2
- package/dist/internal/app-markdown-runtime.d.ts +3 -2
- package/dist/internal/app-markdown-runtime.mjs +3 -3
- package/dist/internal/build-runtime.cjs +23 -22
- package/dist/internal/build-runtime.d.mts +4 -3
- package/dist/internal/build-runtime.d.ts +4 -3
- package/dist/internal/build-runtime.mjs +22 -21
- package/dist/internal/cli-runtime.cjs +13 -12
- package/dist/internal/cli-runtime.mjs +12 -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 +2 -1
- package/dist/internal/compression-runtime.d.ts +2 -1
- package/dist/internal/config-runtime.cjs +5 -5
- package/dist/internal/config-runtime.d.mts +3 -2
- package/dist/internal/config-runtime.d.ts +3 -2
- package/dist/internal/config-runtime.mjs +4 -4
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +17 -15
- package/dist/internal/production-runtime.d.mts +8 -7
- package/dist/internal/production-runtime.d.ts +8 -7
- package/dist/internal/production-runtime.mjs +17 -15
- package/dist/markdown.cjs +3 -3
- package/dist/markdown.d.mts +2 -1
- package/dist/markdown.d.ts +2 -1
- package/dist/markdown.mjs +2 -2
- package/dist/{metadata-B9mCxKgp.d.mts → metadata-B0X-qtcQ.d.mts} +1 -1
- package/dist/{metadata-7LKgQEWF.d.ts → metadata-BdDKgd7K.d.ts} +1 -1
- package/dist/middleware.cjs +4 -4
- package/dist/middleware.d.mts +4 -3
- package/dist/middleware.d.ts +4 -3
- package/dist/middleware.mjs +3 -3
- 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 +23 -19
- package/dist/plugin.d.mts +2 -1
- package/dist/plugin.d.ts +2 -1
- package/dist/plugin.mjs +23 -19
- package/dist/{production-runtime-DramhI0c.d.mts → production-runtime-BjgFgDIg.d.mts} +1 -1
- package/dist/{production-runtime-B3xnY6fI.d.ts → production-runtime-Dx_qMA3t.d.ts} +1 -1
- package/dist/query/client.cjs +6 -6
- package/dist/query/client.mjs +2 -2
- package/dist/{render-plan-CpW32tOL.d.ts → render-plan-B41EWmBb.d.ts} +1 -1
- package/dist/{render-plan-CtQB-zHS.d.mts → render-plan-_1TAWODt.d.mts} +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-DlLVBKe3.d.mts → request-BhE4luLv.d.mts} +1 -1
- package/dist/{request-BVGGeQv4.d.ts → request-Dbf3G0zM.d.ts} +1 -1
- package/dist/request.d.mts +3 -2
- package/dist/request.d.ts +3 -2
- package/dist/{route-rendering-BdEldajn.d.ts → route-rendering-Z7PveTZE.d.ts} +1 -1
- package/dist/{route-rendering-DChYLNdh.d.mts → route-rendering-zzfx_GHf.d.mts} +1 -1
- package/dist/{router-D5htHn_M.d.mts → router-BatNMsa1.d.mts} +1 -1
- package/dist/{router-D0Az-1Nu.d.ts → router-DtNRhQl3.d.ts} +1 -1
- package/dist/routes.cjs +6 -5
- package/dist/routes.d.mts +2 -1
- package/dist/routes.d.ts +2 -1
- 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.d.mts +3 -2
- package/dist/server-plugins.d.ts +3 -2
- 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 +64 -54
- package/dist/server.d.mts +9 -8
- package/dist/server.d.ts +9 -8
- package/dist/server.mjs +48 -38
- package/dist/{spa-router-DmwP_7QL.d.ts → spa-router-BE3bwU-J.d.ts} +2 -2
- package/dist/{spa-router-DVfSJZ5o.d.mts → spa-router-DQOnHZVj.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-DLK1ERNl.d.mts} +1 -1
- package/dist/{utils-Dv0OuLtF.d.ts → utils-u7ZBSWAK.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +19 -18
- package/dist/vite.d.mts +2 -1
- package/dist/vite.d.ts +2 -1
- package/dist/vite.mjs +18 -17
- 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/app-markdown.d.mts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
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-CgYNY7jF.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-CgYNY7jF.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';
|
package/dist/app-markdown.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
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-Fl9Og3yB.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-Fl9Og3yB.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';
|
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-NVBS5WSZ.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-2DLN6HG4.mjs";
|
|
14
14
|
import {
|
|
15
15
|
resolveFarmMdxComponentsModulePath,
|
|
16
16
|
resolveMdxConfig
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
FARM_MARKDOWN_CONTENT_TYPE,
|
|
20
20
|
createFarmMarkdownErrorBody,
|
|
21
21
|
farmRequestWantsMarkdown
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-K3YEZLSY.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-FUZEBRP3.mjs";
|
|
29
29
|
import "./chunk-4RB44K6Z.mjs";
|
|
30
30
|
import "./chunk-55YI3RRB.mjs";
|
|
31
31
|
import "./chunk-LPEX4YW6.mjs";
|
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,
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
loadFarmDocsPage,
|
|
4
4
|
resolveFarmDocsContentDir,
|
|
5
5
|
toFarmDocsMarkdownPage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-T7HQ3I4C.mjs";
|
|
7
7
|
import {
|
|
8
8
|
docsEngine,
|
|
9
9
|
loadFarmDocsEngine
|
|
10
10
|
} from "./chunk-2VQKKQ6D.mjs";
|
|
11
11
|
import {
|
|
12
12
|
resolveDocsConfig
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PZPDGOU5.mjs";
|
|
14
14
|
import {
|
|
15
15
|
getFarmDocsAdapterConfigModule
|
|
16
16
|
} from "./chunk-VVBO3QH7.mjs";
|
|
@@ -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";
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
+
var _chunkE3UK5IIBcjs = require('./chunk-E3UK5IIB.cjs');
|
|
3
4
|
|
|
4
5
|
|
|
6
|
+
var _chunkLIUGYUX3cjs = require('./chunk-LIUGYUX3.cjs');
|
|
5
7
|
|
|
6
|
-
var _chunkZEG3OPIBcjs = require('./chunk-ZEG3OPIB.cjs');
|
|
7
8
|
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
|
|
11
|
+
var _chunkNYJMY3JAcjs = require('./chunk-NYJMY3JA.cjs');
|
|
10
12
|
|
|
11
13
|
|
|
12
|
-
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
var _chunkZEG3OPIBcjs = require('./chunk-ZEG3OPIB.cjs');
|
|
13
18
|
|
|
14
19
|
|
|
15
20
|
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
@@ -727,9 +732,9 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, configureFarmCache, "configureFarmCache");
|
|
|
727
732
|
function unstable_cache(fn, keyParts = [], options = {}) {
|
|
728
733
|
return async (...args) => {
|
|
729
734
|
const locale = _optionalChain([_chunkLIUGYUX3cjs.getActiveFarmI18nSnapshot.call(void 0, ), 'optionalAccess', _50 => _50.locale]);
|
|
730
|
-
const key = createFarmCacheKey([
|
|
735
|
+
const key = _chunkNYJMY3JAcjs.createFarmCacheKey.call(void 0, [
|
|
731
736
|
"unstable_cache",
|
|
732
|
-
getFunctionCacheIdentity(fn),
|
|
737
|
+
_chunkNYJMY3JAcjs.getFunctionCacheIdentity.call(void 0, fn),
|
|
733
738
|
locale ? ["locale", locale] : null,
|
|
734
739
|
keyParts,
|
|
735
740
|
args
|
|
@@ -775,7 +780,7 @@ function revalidatePath(routePath) {
|
|
|
775
780
|
}
|
|
776
781
|
_chunkS3JO3N4Hcjs.__name.call(void 0, revalidatePath, "revalidatePath");
|
|
777
782
|
function invalidate(key) {
|
|
778
|
-
const clientKey = createRouteDataCacheKey(key);
|
|
783
|
+
const clientKey = _chunkNYJMY3JAcjs.createRouteDataCacheKey.call(void 0, key);
|
|
779
784
|
const task = updateTag(createRouteDataCacheTag(key));
|
|
780
785
|
_chunkZEG3OPIBcjs.notifyFarmCacheInvalidation.call(void 0, clientKey);
|
|
781
786
|
return task;
|
|
@@ -794,7 +799,7 @@ async function applyFarmCacheInvalidationTargets(targets) {
|
|
|
794
799
|
assertFarmCacheInvalidationTarget(target);
|
|
795
800
|
if ("key" in target) {
|
|
796
801
|
await invalidate(target.key);
|
|
797
|
-
clientKeys.push(createRouteDataCacheKey(target.key));
|
|
802
|
+
clientKeys.push(_chunkNYJMY3JAcjs.createRouteDataCacheKey.call(void 0, target.key));
|
|
798
803
|
} else if ("path" in target) {
|
|
799
804
|
await revalidatePath(target.path);
|
|
800
805
|
} else {
|
|
@@ -809,13 +814,9 @@ function createPathCacheTag(routePath) {
|
|
|
809
814
|
}
|
|
810
815
|
_chunkS3JO3N4Hcjs.__name.call(void 0, createPathCacheTag, "createPathCacheTag");
|
|
811
816
|
function createRouteDataCacheTag(key) {
|
|
812
|
-
return `route-data:${createRouteDataCacheKey(key)}`;
|
|
817
|
+
return `route-data:${_chunkNYJMY3JAcjs.createRouteDataCacheKey.call(void 0, key)}`;
|
|
813
818
|
}
|
|
814
819
|
_chunkS3JO3N4Hcjs.__name.call(void 0, createRouteDataCacheTag, "createRouteDataCacheTag");
|
|
815
|
-
function createRouteDataCacheKey(key) {
|
|
816
|
-
return createFarmCacheKey(Array.isArray(key) ? key : [key]);
|
|
817
|
-
}
|
|
818
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, createRouteDataCacheKey, "createRouteDataCacheKey");
|
|
819
820
|
function normalizeRevalidatePath(routePath) {
|
|
820
821
|
if (typeof routePath !== "string") {
|
|
821
822
|
throw new TypeError("revalidatePath expects a path string.");
|
|
@@ -840,10 +841,6 @@ function normalizeRevalidatePath(routePath) {
|
|
|
840
841
|
return normalized || "/";
|
|
841
842
|
}
|
|
842
843
|
_chunkS3JO3N4Hcjs.__name.call(void 0, normalizeRevalidatePath, "normalizeRevalidatePath");
|
|
843
|
-
function createFarmCacheKey(parts) {
|
|
844
|
-
return stableSerialize(parts);
|
|
845
|
-
}
|
|
846
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, createFarmCacheKey, "createFarmCacheKey");
|
|
847
844
|
function normalizeRevalidate(revalidate) {
|
|
848
845
|
if (revalidate === false || revalidate === void 0) {
|
|
849
846
|
return revalidate;
|
|
@@ -934,145 +931,6 @@ function assertFarmCacheInvalidationTarget(target) {
|
|
|
934
931
|
throw new TypeError("Cache invalidation targets must contain a string/array key, path, or tag.");
|
|
935
932
|
}
|
|
936
933
|
_chunkS3JO3N4Hcjs.__name.call(void 0, assertFarmCacheInvalidationTarget, "assertFarmCacheInvalidationTarget");
|
|
937
|
-
function getFunctionCacheIdentity(fn) {
|
|
938
|
-
const name = fn.name || "anonymous";
|
|
939
|
-
return `${name}:${hashFunctionSource(String(fn))}`;
|
|
940
|
-
}
|
|
941
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, getFunctionCacheIdentity, "getFunctionCacheIdentity");
|
|
942
|
-
function hashFunctionSource(source) {
|
|
943
|
-
let hash = 2166136261;
|
|
944
|
-
for (let index = 0; index < source.length; index++) {
|
|
945
|
-
hash ^= source.charCodeAt(index);
|
|
946
|
-
hash = Math.imul(hash, 16777619);
|
|
947
|
-
}
|
|
948
|
-
return (hash >>> 0).toString(36);
|
|
949
|
-
}
|
|
950
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, hashFunctionSource, "hashFunctionSource");
|
|
951
|
-
function compareCodepoint(a, b) {
|
|
952
|
-
return a < b ? -1 : a > b ? 1 : 0;
|
|
953
|
-
}
|
|
954
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, compareCodepoint, "compareCodepoint");
|
|
955
|
-
function serializeBinaryBytes(bytes) {
|
|
956
|
-
return Array.from(bytes, (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
957
|
-
}
|
|
958
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, serializeBinaryBytes, "serializeBinaryBytes");
|
|
959
|
-
function serializeCanonicalStringEntries(entries, seen) {
|
|
960
|
-
const valuesByKey = /* @__PURE__ */ new Map();
|
|
961
|
-
for (const [key, item] of entries) {
|
|
962
|
-
const values = valuesByKey.get(key);
|
|
963
|
-
if (values) values.push(item);
|
|
964
|
-
else valuesByKey.set(key, [item]);
|
|
965
|
-
}
|
|
966
|
-
return Array.from(valuesByKey.keys()).sort(compareCodepoint).flatMap(
|
|
967
|
-
(key) => valuesByKey.get(key).map((item) => `[${stableSerialize(key, seen)},${stableSerialize(item, seen)}]`)
|
|
968
|
-
).join(",");
|
|
969
|
-
}
|
|
970
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, serializeCanonicalStringEntries, "serializeCanonicalStringEntries");
|
|
971
|
-
function isPlainCacheKeyObject(value) {
|
|
972
|
-
const prototype = Object.getPrototypeOf(value);
|
|
973
|
-
if (prototype === null) return true;
|
|
974
|
-
const constructor = _optionalChain([Object, 'access', _51 => _51.getOwnPropertyDescriptor, 'call', _52 => _52(prototype, "constructor"), 'optionalAccess', _53 => _53.value]);
|
|
975
|
-
return Object.getPrototypeOf(prototype) === null && typeof constructor === "function" && constructor.name === "Object";
|
|
976
|
-
}
|
|
977
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, isPlainCacheKeyObject, "isPlainCacheKeyObject");
|
|
978
|
-
function getCacheKeyValueType(value) {
|
|
979
|
-
const prototype = Object.getPrototypeOf(value);
|
|
980
|
-
const constructor = prototype ? _optionalChain([Object, 'access', _54 => _54.getOwnPropertyDescriptor, 'call', _55 => _55(prototype, "constructor"), 'optionalAccess', _56 => _56.value]) : void 0;
|
|
981
|
-
if (typeof constructor === "function" && constructor.name) {
|
|
982
|
-
return constructor.name;
|
|
983
|
-
}
|
|
984
|
-
return Object.prototype.toString.call(value).slice(8, -1) || "object";
|
|
985
|
-
}
|
|
986
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, getCacheKeyValueType, "getCacheKeyValueType");
|
|
987
|
-
function stableSerialize(value, seen = /* @__PURE__ */ new WeakSet()) {
|
|
988
|
-
if (value === null) return "null";
|
|
989
|
-
if (value === void 0) return "undefined";
|
|
990
|
-
const valueType = typeof value;
|
|
991
|
-
if (valueType === "string") return JSON.stringify(value);
|
|
992
|
-
if (valueType === "number" || valueType === "boolean" || valueType === "bigint") {
|
|
993
|
-
return `${valueType}:${String(value)}`;
|
|
994
|
-
}
|
|
995
|
-
if (valueType === "symbol") {
|
|
996
|
-
return `symbol:${String(value)}`;
|
|
997
|
-
}
|
|
998
|
-
if (valueType === "function") {
|
|
999
|
-
return `function:${getFunctionCacheIdentity(value)}`;
|
|
1000
|
-
}
|
|
1001
|
-
if (value instanceof Date) {
|
|
1002
|
-
return Number.isNaN(value.getTime()) ? "date:invalid" : `date:${value.toISOString()}`;
|
|
1003
|
-
}
|
|
1004
|
-
if (value instanceof URL) {
|
|
1005
|
-
return `url:${value.toString()}`;
|
|
1006
|
-
}
|
|
1007
|
-
if (value instanceof RegExp) {
|
|
1008
|
-
return `regexp:${value.toString()}`;
|
|
1009
|
-
}
|
|
1010
|
-
if (value instanceof ArrayBuffer) {
|
|
1011
|
-
return `arraybuffer:${serializeBinaryBytes(new Uint8Array(value))}`;
|
|
1012
|
-
}
|
|
1013
|
-
if (typeof SharedArrayBuffer !== "undefined" && value instanceof SharedArrayBuffer) {
|
|
1014
|
-
return `sharedarraybuffer:${serializeBinaryBytes(new Uint8Array(value))}`;
|
|
1015
|
-
}
|
|
1016
|
-
if (ArrayBuffer.isView(value)) {
|
|
1017
|
-
const viewType = Object.prototype.toString.call(value).slice(8, -1);
|
|
1018
|
-
const bytes = new Uint8Array(value.buffer, value.byteOffset, value.byteLength);
|
|
1019
|
-
return `binary:${viewType}:${serializeBinaryBytes(bytes)}`;
|
|
1020
|
-
}
|
|
1021
|
-
if (value && typeof value === "object") {
|
|
1022
|
-
if (seen.has(value)) {
|
|
1023
|
-
return "[Circular]";
|
|
1024
|
-
}
|
|
1025
|
-
seen.add(value);
|
|
1026
|
-
if (Array.isArray(value)) {
|
|
1027
|
-
const items = [];
|
|
1028
|
-
for (let index = 0; index < value.length; index++) {
|
|
1029
|
-
items.push(
|
|
1030
|
-
Object.prototype.hasOwnProperty.call(value, index) ? stableSerialize(value[index], seen) : "[Hole]"
|
|
1031
|
-
);
|
|
1032
|
-
}
|
|
1033
|
-
seen.delete(value);
|
|
1034
|
-
return `[${items.join(",")}]`;
|
|
1035
|
-
}
|
|
1036
|
-
if (value instanceof Set) {
|
|
1037
|
-
const items = Array.from(value, (item) => stableSerialize(item, seen)).sort(compareCodepoint);
|
|
1038
|
-
seen.delete(value);
|
|
1039
|
-
return `set:[${items.join(",")}]`;
|
|
1040
|
-
}
|
|
1041
|
-
if (value instanceof Map) {
|
|
1042
|
-
const items = Array.from(
|
|
1043
|
-
value,
|
|
1044
|
-
([key, item]) => `[${stableSerialize(key, seen)},${stableSerialize(item, seen)}]`
|
|
1045
|
-
).sort(compareCodepoint);
|
|
1046
|
-
seen.delete(value);
|
|
1047
|
-
return `map:[${items.join(",")}]`;
|
|
1048
|
-
}
|
|
1049
|
-
if (value instanceof URLSearchParams) {
|
|
1050
|
-
const serialized2 = serializeCanonicalStringEntries(value, seen);
|
|
1051
|
-
seen.delete(value);
|
|
1052
|
-
return `urlsearchparams:[${serialized2}]`;
|
|
1053
|
-
}
|
|
1054
|
-
if (value instanceof Headers) {
|
|
1055
|
-
const serialized2 = serializeCanonicalStringEntries(value, seen);
|
|
1056
|
-
seen.delete(value);
|
|
1057
|
-
return `headers:[${serialized2}]`;
|
|
1058
|
-
}
|
|
1059
|
-
if (!isPlainCacheKeyObject(value)) {
|
|
1060
|
-
throw new TypeError(
|
|
1061
|
-
`Cache keys do not support ${getCacheKeyValueType(value)} values. Convert the value to an explicit stable string or structured key before caching.`
|
|
1062
|
-
);
|
|
1063
|
-
}
|
|
1064
|
-
const entries = Object.entries(value).sort(
|
|
1065
|
-
([a], [b]) => compareCodepoint(a, b)
|
|
1066
|
-
);
|
|
1067
|
-
const serialized = entries.map(([key, item]) => `${JSON.stringify(key)}:${stableSerialize(item, seen)}`).join(",");
|
|
1068
|
-
seen.delete(value);
|
|
1069
|
-
return `{${serialized}}`;
|
|
1070
|
-
}
|
|
1071
|
-
return String(value);
|
|
1072
|
-
}
|
|
1073
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, stableSerialize, "stableSerialize");
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
934
|
|
|
1077
935
|
|
|
1078
936
|
|
|
@@ -1091,4 +949,4 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, stableSerialize, "stableSerialize");
|
|
|
1091
949
|
|
|
1092
950
|
|
|
1093
951
|
|
|
1094
|
-
exports.createFarmCacheInvalidationStream = createFarmCacheInvalidationStream; exports.defineCacheKey = defineCacheKey; exports.storageCacheAdapter = storageCacheAdapter; exports.FarmDataCache = FarmDataCache; exports.getFarmDataCache = getFarmDataCache; exports.configureFarmCache = configureFarmCache; exports.unstable_cache = unstable_cache; exports.revalidateTag = revalidateTag; exports.updateTag = updateTag; exports.revalidatePath = revalidatePath; exports.invalidate = invalidate; exports.invalidateRouteData = invalidateRouteData; exports.applyFarmCacheInvalidationTargets = applyFarmCacheInvalidationTargets; exports.createPathCacheTag = createPathCacheTag; exports.createRouteDataCacheTag = createRouteDataCacheTag; exports.
|
|
952
|
+
exports.createFarmCacheInvalidationStream = createFarmCacheInvalidationStream; exports.defineCacheKey = defineCacheKey; exports.storageCacheAdapter = storageCacheAdapter; exports.FarmDataCache = FarmDataCache; exports.getFarmDataCache = getFarmDataCache; exports.configureFarmCache = configureFarmCache; exports.unstable_cache = unstable_cache; exports.revalidateTag = revalidateTag; exports.updateTag = updateTag; exports.revalidatePath = revalidatePath; exports.invalidate = invalidate; exports.invalidateRouteData = invalidateRouteData; exports.applyFarmCacheInvalidationTargets = applyFarmCacheInvalidationTargets; exports.createPathCacheTag = createPathCacheTag; exports.createRouteDataCacheTag = createRouteDataCacheTag; exports.normalizeRevalidatePath = normalizeRevalidatePath;
|
|
@@ -182,7 +182,10 @@ function renderMetadataHead(metadata, options = {}) {
|
|
|
182
182
|
);
|
|
183
183
|
}
|
|
184
184
|
appendNamedMetaRecord(tags, resolvedMetadata.other);
|
|
185
|
-
appendOpenGraph(tags, resolvedMetadata.openGraph, metadataBase
|
|
185
|
+
appendOpenGraph(tags, resolvedMetadata.openGraph, metadataBase, {
|
|
186
|
+
title: explicitTitle,
|
|
187
|
+
description: resolvedMetadata.description
|
|
188
|
+
});
|
|
186
189
|
appendTwitter(tags, resolvedMetadata.twitter, metadataBase);
|
|
187
190
|
appendVerification(tags, resolvedMetadata.verification);
|
|
188
191
|
if (options.jsonLd) {
|
|
@@ -220,10 +223,12 @@ function mergeNestedMetadata(base, next) {
|
|
|
220
223
|
return _nullishCoalesce(next, () => ( base));
|
|
221
224
|
}
|
|
222
225
|
_chunkS3JO3N4Hcjs.__name.call(void 0, mergeNestedMetadata, "mergeNestedMetadata");
|
|
223
|
-
function appendOpenGraph(tags,
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
226
|
+
function appendOpenGraph(tags, input, metadataBase, page) {
|
|
227
|
+
const description = typeof page.description === "string" ? page.description : void 0;
|
|
228
|
+
if (!isRecord(input) && !page.title && !description) return;
|
|
229
|
+
const openGraph = isRecord(input) ? input : {};
|
|
230
|
+
appendMetaProperty(tags, "og:title", _nullishCoalesce(openGraph.title, () => ( page.title)));
|
|
231
|
+
appendMetaProperty(tags, "og:description", _nullishCoalesce(openGraph.description, () => ( description)));
|
|
227
232
|
appendMetaProperty(tags, "og:url", resolveMetadataUrl(openGraph.url, metadataBase));
|
|
228
233
|
appendMetaProperty(tags, "og:site_name", openGraph.siteName);
|
|
229
234
|
appendMetaProperty(tags, "og:type", _nullishCoalesce(openGraph.type, () => ( "website")));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
applyFarmCacheInvalidationTargets
|
|
3
|
+
} from "./chunk-IV6CQY7O.mjs";
|
|
1
4
|
import {
|
|
2
5
|
isMultipartSchema
|
|
3
6
|
} from "./chunk-EMLAPBEM.mjs";
|
|
4
|
-
import {
|
|
5
|
-
applyFarmCacheInvalidationTargets
|
|
6
|
-
} from "./chunk-F6SJAKFJ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
assertBrowserStableRoutePath,
|
|
9
9
|
assertUniqueRouteParameters,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
_runServerFunctionForCaller,
|
|
5
5
|
createServerFn,
|
|
6
6
|
createServerFunctionDescriptor
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GZYH4OER.mjs";
|
|
8
8
|
import {
|
|
9
9
|
createFarmServerQueryResult
|
|
10
10
|
} from "./chunk-KGB5UXJJ.mjs";
|
|
@@ -12,11 +12,13 @@ import {
|
|
|
12
12
|
getServerActionExecutionContext
|
|
13
13
|
} from "./chunk-QCFFHV5H.mjs";
|
|
14
14
|
import {
|
|
15
|
-
createFarmCacheKey,
|
|
16
|
-
createRouteDataCacheKey,
|
|
17
15
|
createRouteDataCacheTag,
|
|
18
16
|
getFarmDataCache
|
|
19
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IV6CQY7O.mjs";
|
|
18
|
+
import {
|
|
19
|
+
createFarmCacheKey,
|
|
20
|
+
createRouteDataCacheKey
|
|
21
|
+
} from "./chunk-CNOQY6Z7.mjs";
|
|
20
22
|
import {
|
|
21
23
|
__name
|
|
22
24
|
} from "./chunk-LPEX4YW6.mjs";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkXSPGWQWAcjs = require('./chunk-XSPGWQWA.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkJ63ZH5OQcjs = require('./chunk-J63ZH5OQ.cjs');
|
|
@@ -66,12 +66,12 @@ function collectFarmLlmsTxtPages(sources, options) {
|
|
|
66
66
|
for (const source of sources) {
|
|
67
67
|
const path = source.pattern;
|
|
68
68
|
if (path.includes("[") || pages.has(path)) continue;
|
|
69
|
-
if (include.length && !include.some((pattern) =>
|
|
69
|
+
if (include.length && !include.some((pattern) => _chunkXSPGWQWAcjs.matchesFarmMarkdownRoutePattern.call(void 0, pattern, path))) {
|
|
70
70
|
continue;
|
|
71
71
|
}
|
|
72
|
-
if (exclude.some((pattern) =>
|
|
72
|
+
if (exclude.some((pattern) => _chunkXSPGWQWAcjs.matchesFarmMarkdownRoutePattern.call(void 0, pattern, path))) continue;
|
|
73
73
|
if (isMetadataNoIndex(source.metadata)) continue;
|
|
74
|
-
const target =
|
|
74
|
+
const target = _chunkXSPGWQWAcjs.isFarmMarkdownMirrorExposed.call(void 0, options.markdown, path) ? _chunkXSPGWQWAcjs.getFarmMarkdownMirrorPath.call(void 0, path) : path;
|
|
75
75
|
const description = readMetadataString(source.metadata, "description");
|
|
76
76
|
pages.set(path, {
|
|
77
77
|
path,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkNYJMY3JAcjs = require('./chunk-NYJMY3JA.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkZEG3OPIBcjs = require('./chunk-ZEG3OPIB.cjs');
|
|
@@ -377,7 +377,7 @@ function getFarmClientDataCache() {
|
|
|
377
377
|
}
|
|
378
378
|
_chunkS3JO3N4Hcjs.__name.call(void 0, getFarmClientDataCache, "getFarmClientDataCache");
|
|
379
379
|
function normalizeFarmClientCacheKey(key) {
|
|
380
|
-
return typeof key === "string" ? key :
|
|
380
|
+
return typeof key === "string" ? key : _chunkNYJMY3JAcjs.createRouteDataCacheKey.call(void 0, key);
|
|
381
381
|
}
|
|
382
382
|
_chunkS3JO3N4Hcjs.__name.call(void 0, normalizeFarmClientCacheKey, "normalizeFarmClientCacheKey");
|
|
383
383
|
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
attachRevalidationListeners,
|
|
3
3
|
createServerQueryCallKey,
|
|
4
4
|
fetchServerQuery
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2N5PX3LS.mjs";
|
|
6
6
|
import {
|
|
7
7
|
getFarmClientDataCache
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XNPDONUH.mjs";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-LPEX4YW6.mjs";
|