@farm.js/core 0.1.14 → 0.1.16
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 +5 -2
- package/dist/agent-runtime.d.ts +5 -2
- package/dist/api/client.d.mts +3 -2
- package/dist/api/client.d.ts +3 -2
- package/dist/api/route-manager.d.mts +5 -2
- package/dist/api/route-manager.d.ts +5 -2
- package/dist/api/runtime.d.mts +3 -2
- package/dist/api/runtime.d.ts +3 -2
- package/dist/{api-client-C8d7BZNp.d.mts → api-client-B-n3pm_Q.d.mts} +2 -1
- package/dist/{api-client-BWrEbxfO.d.ts → api-client-C0_NZEBl.d.ts} +2 -1
- package/dist/api.d.mts +7 -4
- package/dist/api.d.ts +7 -4
- package/dist/{app-wIYse61b.d.ts → app-AyjEsCBq.d.ts} +3 -3
- package/dist/{app-B3nVSjen.d.mts → app-CYPHeOo_.d.mts} +3 -3
- package/dist/app-markdown.d.mts +6 -3
- package/dist/app-markdown.d.ts +6 -3
- package/dist/{chunk-FOGLGRDS.mjs → chunk-7HDZYYS4.mjs} +100 -8
- package/dist/{chunk-DNCKVMSV.mjs → chunk-IL5RWYK7.mjs} +1 -1
- package/dist/{chunk-GNTPTTLA.mjs → chunk-IXTEENRS.mjs} +1 -1
- package/dist/{chunk-J2F5LFQ2.mjs → chunk-NHHKW2T6.mjs} +175 -8
- package/dist/{chunk-NJ47VORC.mjs → chunk-NUD6XBMO.mjs} +1 -1
- package/dist/{chunk-U6CRU23N.mjs → chunk-TYVVIQ5M.mjs} +10 -7
- package/dist/{chunk-W7IVHTOP.mjs → chunk-UQZPTIML.mjs} +15 -2
- package/dist/{chunk-S3QW3BIS.mjs → chunk-VVTREAG5.mjs} +89 -4
- package/dist/{client-plugins-C1EgdoJM.d.mts → client-plugins-CIPRtSsW.d.mts} +16 -4
- package/dist/{client-plugins-CslwYp3E.d.ts → client-plugins-CqVtZi5X.d.ts} +16 -4
- package/dist/client-plugins.d.mts +5 -2
- package/dist/client-plugins.d.ts +5 -2
- package/dist/client.d.mts +8 -7
- package/dist/client.d.ts +8 -7
- package/dist/config.d.mts +5 -2
- package/dist/config.d.ts +5 -2
- package/dist/{devtools-PCGEBRSC.mjs → devtools-IU7LKZOH.mjs} +2 -2
- package/dist/docs.cjs +74 -3
- package/dist/docs.mjs +3 -3
- package/dist/{route-C6UClI1z.d.mts → endpoint-Bu3XgeMK.d.mts} +3 -128
- package/dist/{route-CHBaW55F.d.ts → endpoint-kSAxE52R.d.ts} +3 -128
- package/dist/env.cjs +101 -8
- package/dist/env.d.mts +20 -2
- package/dist/env.d.ts +20 -2
- package/dist/env.mjs +3 -1
- package/dist/index.cjs +383 -24
- package/dist/index.d.mts +16 -15
- package/dist/index.d.ts +16 -15
- package/dist/index.mjs +20 -8
- package/dist/integrations.d.mts +5 -2
- package/dist/integrations.d.ts +5 -2
- package/dist/internal/app-markdown-runtime.d.mts +5 -2
- package/dist/internal/app-markdown-runtime.d.ts +5 -2
- package/dist/internal/build-runtime.cjs +435 -174
- package/dist/internal/build-runtime.d.mts +7 -4
- package/dist/internal/build-runtime.d.ts +7 -4
- package/dist/internal/build-runtime.mjs +6 -6
- package/dist/internal/cli-runtime.cjs +68 -4
- package/dist/internal/cli-runtime.mjs +2 -2
- package/dist/internal/client-error-overlay.cjs +1 -1
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/compression-runtime.d.mts +5 -2
- package/dist/internal/compression-runtime.d.ts +5 -2
- package/dist/internal/config-runtime.cjs +68 -4
- package/dist/internal/config-runtime.d.mts +6 -3
- package/dist/internal/config-runtime.d.ts +6 -3
- package/dist/internal/config-runtime.mjs +2 -2
- package/dist/internal/product-telemetry-runtime.cjs +1 -1
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.d.mts +11 -8
- package/dist/internal/production-runtime.d.ts +11 -8
- package/dist/{metadata-BsUcOEXg.d.ts → metadata-8g__AMPM.d.ts} +1 -1
- package/dist/{metadata-B1bxCPUY.d.mts → metadata-OMX6wFNf.d.mts} +1 -1
- package/dist/middleware.d.mts +7 -4
- package/dist/middleware.d.ts +7 -4
- package/dist/{nitro-ICBP5APY.mjs → nitro-3N4ZXRYM.mjs} +5 -2
- package/dist/plugin.cjs +278 -11
- package/dist/plugin.d.mts +5 -2
- package/dist/plugin.d.ts +5 -2
- package/dist/plugin.mjs +3 -3
- package/dist/{production-runtime-CsNn2-zx.d.ts → production-runtime-BJh7o6Cr.d.ts} +1 -1
- package/dist/{production-runtime-BDllolVh.d.mts → production-runtime-W3M0eNDV.d.mts} +1 -1
- package/dist/{render-plan-EG4hNFjy.d.ts → render-plan-Be4ZGTJP.d.ts} +1 -1
- package/dist/{render-plan-CNUlzylR.d.mts → render-plan-io7pvDNc.d.mts} +1 -1
- package/dist/renderer-client.d.mts +5 -4
- package/dist/renderer-client.d.ts +5 -4
- package/dist/{request-Blh_f7Z3.d.mts → request-DZkHYQ89.d.mts} +1 -1
- package/dist/{request-DsVSQVfD.d.ts → request-G8JhKr4F.d.ts} +1 -1
- package/dist/request.d.mts +6 -3
- package/dist/request.d.ts +6 -3
- package/dist/route-BxNJT447.d.ts +128 -0
- package/dist/route-C_eLaFTZ.d.mts +128 -0
- package/dist/{route-rendering-hUETRCbM.d.ts → route-rendering-BcLLPJgN.d.ts} +1 -1
- package/dist/{route-rendering-LT4XSoQK.d.mts → route-rendering-CbAKr1TY.d.mts} +1 -1
- package/dist/routes.d.mts +4 -2
- package/dist/routes.d.ts +4 -2
- package/dist/server-fn-client.d.mts +3 -2
- package/dist/server-fn-client.d.ts +3 -2
- package/dist/server-fn.cjs +141 -3
- package/dist/server-fn.d.mts +72 -1
- package/dist/server-fn.d.ts +72 -1
- package/dist/server-fn.mjs +12 -1
- package/dist/server-plugins.d.mts +6 -3
- package/dist/server-plugins.d.ts +6 -3
- package/dist/server-query-client.d.mts +1 -0
- package/dist/server-query-client.d.ts +1 -0
- package/dist/server-query.cjs +60 -3
- package/dist/server-query.d.mts +6 -1
- package/dist/server-query.d.ts +6 -1
- package/dist/server-query.mjs +3 -2
- package/dist/server.cjs +331 -15
- package/dist/server.d.mts +9 -8
- package/dist/server.d.ts +9 -8
- package/dist/server.mjs +6 -6
- package/dist/{spa-router-csKR9Ebj.d.mts → spa-router-BcS_4nqm.d.mts} +2 -2
- package/dist/{spa-router-Y_2FSJQK.d.ts → spa-router-BzFBUJkn.d.ts} +2 -2
- package/dist/testing.d.mts +5 -3
- package/dist/testing.d.ts +5 -3
- package/dist/{utils-DR2wfZAn.d.mts → utils-5kQP1mFR.d.mts} +1 -1
- package/dist/{utils-jISOE9SD.d.ts → utils-C4yrAhNc.d.ts} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +416 -153
- package/dist/vite.d.mts +5 -2
- package/dist/vite.d.ts +5 -2
- package/dist/vite.mjs +3 -3
- package/package.json +3 -3
package/dist/middleware.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { ep as MiddlewareChain, eu as RateLimitStorage, ev as RateLimitStatus, ew as MemoryRateLimitStorageOptions, an as MiddlewareContext, ak as FarmMiddlewareConfig, el as MiddlewareFunction, am as MiddlewareConfig, u as MiddlewareProps } from './client-plugins-CqVtZi5X.js';
|
|
2
|
+
export { eq as CookieJar, er as CookieOptions, ey as MiddlewareResult, eo as MiddlewareStore, ex as NextFunction, es as RateLimitConfig, et as RateLimitIncrementResult, aj as ReadonlyMiddlewareStore, em as RequestMiddleware, en as RequestMiddlewareContext } from './client-plugins-CqVtZi5X.js';
|
|
3
3
|
import { IncomingMessage, ServerResponse } from 'http';
|
|
4
4
|
import { ViteDevServer, Plugin } from 'vite';
|
|
5
5
|
import { a as FarmServerConfig, R as ResolvedFarmServerConfig } from './workflows-CR9ex-gz.js';
|
|
6
6
|
import { R as ResolvedFarmI18nConfig } from './types-Z0aotQ8w.js';
|
|
7
|
-
export { _ as _runWithMiddlewareContext, b as _runWithMiddlewareData, a as applyProductionMiddlewareHeaders, c as createProductionMiddlewareRunner, g as getMiddlewareContext, d as getMiddlewareData, e as getMiddlewareValue, m as matchesMiddlewareConfig } from './production-runtime-
|
|
7
|
+
export { _ as _runWithMiddlewareContext, b as _runWithMiddlewareData, a as applyProductionMiddlewareHeaders, c as createProductionMiddlewareRunner, g as getMiddlewareContext, d as getMiddlewareData, e as getMiddlewareValue, m as matchesMiddlewareConfig } from './production-runtime-BJh7o6Cr.js';
|
|
8
8
|
import './lifecycle-DK06VuKP.js';
|
|
9
|
-
import './route-
|
|
9
|
+
import './route-BxNJT447.js';
|
|
10
|
+
import './endpoint-kSAxE52R.js';
|
|
10
11
|
import './cache.js';
|
|
11
12
|
import './renderer.js';
|
|
12
13
|
import './deployment.js';
|
|
@@ -29,6 +30,8 @@ import './server-action-security.js';
|
|
|
29
30
|
import './server-fn-error-DDh14a0V.js';
|
|
30
31
|
import 'esbuild';
|
|
31
32
|
import './image-config-Duob7wER.js';
|
|
33
|
+
import './server-fn.js';
|
|
34
|
+
import './server-query.js';
|
|
32
35
|
import './types-DQnyD3VD.js';
|
|
33
36
|
import './font.js';
|
|
34
37
|
import './after.js';
|
|
@@ -6,6 +6,9 @@ import {
|
|
|
6
6
|
mergeScheduledTasks,
|
|
7
7
|
prepareFarmCronForNitro
|
|
8
8
|
} from "./chunk-4L7SZOHZ.mjs";
|
|
9
|
+
import {
|
|
10
|
+
createBundledEnv
|
|
11
|
+
} from "./chunk-7HDZYYS4.mjs";
|
|
9
12
|
import {
|
|
10
13
|
prepareFarmWorkflowsForNitro
|
|
11
14
|
} from "./chunk-MUUZJLCI.mjs";
|
|
@@ -76,7 +79,7 @@ export const farmRegistry: {
|
|
|
76
79
|
clientManifest?: any;
|
|
77
80
|
routePaths?: Record<string, string>;
|
|
78
81
|
} = {
|
|
79
|
-
env: ${JSON.stringify(config.env
|
|
82
|
+
env: ${JSON.stringify(createBundledEnv(config.env), null, 2)},
|
|
80
83
|
deploymentId: ${JSON.stringify(config.deploymentId)},
|
|
81
84
|
basePath: ${JSON.stringify(config.basePath)},
|
|
82
85
|
apiBasePath: ${JSON.stringify(apiBasePath)},
|
|
@@ -580,7 +583,7 @@ export default defineEventHandler(async (event: H3Event) => {
|
|
|
580
583
|
farmRegistry.apiRouteManager = apiRouteManager;
|
|
581
584
|
farmRegistry.routeManager = routeManager;
|
|
582
585
|
farmRegistry.serverRenderer = serverRenderer;
|
|
583
|
-
farmRegistry.env = config.env
|
|
586
|
+
farmRegistry.env = createBundledEnv(config.env);
|
|
584
587
|
farmRegistry.deploymentId = config.deploymentId;
|
|
585
588
|
farmRegistry.basePath = config.basePath;
|
|
586
589
|
};
|
package/dist/plugin.cjs
CHANGED
|
@@ -32,8 +32,27 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
32
32
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
33
33
|
|
|
34
34
|
// src/env.ts
|
|
35
|
+
function createBundledEnv(env2, source = getProcessEnv()) {
|
|
36
|
+
const resolved = normalizeResolvedEnv(env2 ?? {});
|
|
37
|
+
const server = {};
|
|
38
|
+
const runtime3 = {};
|
|
39
|
+
for (const [key, value] of Object.entries(resolved.server)) {
|
|
40
|
+
if (source[key] === void 0) {
|
|
41
|
+
server[key] = value;
|
|
42
|
+
} else {
|
|
43
|
+
runtime3[key] = getRuntimeEnvType(value);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
server,
|
|
48
|
+
public: resolved.public,
|
|
49
|
+
...Object.keys(runtime3).length > 0 ? { runtime: { server: runtime3 } } : {}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
35
52
|
function getResolvedEnv() {
|
|
36
|
-
|
|
53
|
+
const env2 = getCurrentEnv();
|
|
54
|
+
if (typeof window === "undefined") readRuntimeServerEnv(env2);
|
|
55
|
+
return env2;
|
|
37
56
|
}
|
|
38
57
|
function createEnvProxy(scope) {
|
|
39
58
|
return new Proxy(
|
|
@@ -44,7 +63,7 @@ function createEnvProxy(scope) {
|
|
|
44
63
|
return void 0;
|
|
45
64
|
}
|
|
46
65
|
const env2 = getEnvScope(scope);
|
|
47
|
-
return env2[property];
|
|
66
|
+
return scope === "server" ? readServerEnvKey(env2, property) : env2[property];
|
|
48
67
|
},
|
|
49
68
|
ownKeys() {
|
|
50
69
|
return Reflect.ownKeys(getEnvScope(scope));
|
|
@@ -67,10 +86,75 @@ function createEnvProxy(scope) {
|
|
|
67
86
|
);
|
|
68
87
|
}
|
|
69
88
|
function getEnvScope(scope) {
|
|
89
|
+
const env2 = getCurrentEnv();
|
|
70
90
|
if (scope === "server") {
|
|
71
91
|
assertServerEnvAccess();
|
|
92
|
+
readRuntimeServerEnv(env2);
|
|
72
93
|
}
|
|
73
|
-
return
|
|
94
|
+
return env2[scope] || {};
|
|
95
|
+
}
|
|
96
|
+
function readServerEnvKey(server, key) {
|
|
97
|
+
const value = server[key];
|
|
98
|
+
if (value === void 0) {
|
|
99
|
+
const state = getCurrentEnv()[FARM_ENV_RUNTIME_SYMBOL];
|
|
100
|
+
if (state && key in state.pending && !state.warned.has(key)) {
|
|
101
|
+
state.warned.add(key);
|
|
102
|
+
console.warn(
|
|
103
|
+
`[Farm] Server env "${key}" was set when this app was built but is not set where the server runs, so it reads as undefined. Farm reads server env at runtime and does not store it in the build output; set "${key}" in the server's environment.`
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return value;
|
|
108
|
+
}
|
|
109
|
+
function readRuntimeServerEnv(env2) {
|
|
110
|
+
const state = env2[FARM_ENV_RUNTIME_SYMBOL];
|
|
111
|
+
if (!state) return;
|
|
112
|
+
const source = getProcessEnv();
|
|
113
|
+
for (const [key, type] of Object.entries(state.pending)) {
|
|
114
|
+
const raw = source[key];
|
|
115
|
+
if (raw === void 0) continue;
|
|
116
|
+
env2.server[key] = coerceRuntimeEnvValue(raw, type);
|
|
117
|
+
delete state.pending[key];
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
function getRuntimeEnvType(value) {
|
|
121
|
+
if (typeof value === "number") return "number";
|
|
122
|
+
if (typeof value === "boolean") return "boolean";
|
|
123
|
+
if (value !== null && typeof value === "object" && !(value instanceof Date)) return "json";
|
|
124
|
+
return "string";
|
|
125
|
+
}
|
|
126
|
+
function coerceRuntimeEnvValue(raw, type) {
|
|
127
|
+
if (type === "number") {
|
|
128
|
+
const value = Number(raw);
|
|
129
|
+
return raw.trim() !== "" && Number.isFinite(value) ? value : raw;
|
|
130
|
+
}
|
|
131
|
+
if (type === "boolean") {
|
|
132
|
+
if (/^(true|1)$/i.test(raw.trim())) return true;
|
|
133
|
+
if (/^(false|0|)$/i.test(raw.trim())) return false;
|
|
134
|
+
return raw;
|
|
135
|
+
}
|
|
136
|
+
if (type === "json") {
|
|
137
|
+
try {
|
|
138
|
+
return JSON.parse(raw);
|
|
139
|
+
} catch {
|
|
140
|
+
return raw;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
return raw;
|
|
144
|
+
}
|
|
145
|
+
function prepareEnv(env2) {
|
|
146
|
+
const normalized = normalizeResolvedEnv(env2);
|
|
147
|
+
const runtime3 = env2.runtime?.server;
|
|
148
|
+
if (!isRecord(runtime3) || Object.keys(runtime3).length === 0) return normalized;
|
|
149
|
+
const prepared = { server: { ...normalized.server }, public: normalized.public };
|
|
150
|
+
Object.defineProperty(prepared, FARM_ENV_RUNTIME_SYMBOL, {
|
|
151
|
+
value: {
|
|
152
|
+
pending: { ...runtime3 },
|
|
153
|
+
warned: /* @__PURE__ */ new Set()
|
|
154
|
+
},
|
|
155
|
+
enumerable: false
|
|
156
|
+
});
|
|
157
|
+
return prepared;
|
|
74
158
|
}
|
|
75
159
|
function assertServerEnvAccess() {
|
|
76
160
|
if (typeof window !== "undefined") {
|
|
@@ -99,7 +183,7 @@ function getCurrentEnv() {
|
|
|
99
183
|
function getInjectedEnv() {
|
|
100
184
|
try {
|
|
101
185
|
if (typeof __FARM_ENV__ !== "undefined" && __FARM_ENV__) {
|
|
102
|
-
return
|
|
186
|
+
return prepareEnv(__FARM_ENV__);
|
|
103
187
|
}
|
|
104
188
|
} catch {
|
|
105
189
|
}
|
|
@@ -123,18 +207,31 @@ function normalizeResolvedEnv(env2) {
|
|
|
123
207
|
function isRecord(value) {
|
|
124
208
|
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
125
209
|
}
|
|
126
|
-
|
|
210
|
+
function getProcessEnv() {
|
|
211
|
+
if (typeof process !== "undefined" && process.env) {
|
|
212
|
+
return process.env;
|
|
213
|
+
}
|
|
214
|
+
return {};
|
|
215
|
+
}
|
|
216
|
+
var FARM_ENV_SYMBOL, FARM_ENV_RUNTIME_SYMBOL, farmEnvGlobal, currentEnv, env, publicEnv;
|
|
127
217
|
var init_env = __esm({
|
|
128
218
|
"src/env.ts"() {
|
|
129
219
|
"use strict";
|
|
130
220
|
FARM_ENV_SYMBOL = /* @__PURE__ */ Symbol.for("farm.env");
|
|
221
|
+
FARM_ENV_RUNTIME_SYMBOL = /* @__PURE__ */ Symbol.for("farm.env.runtime");
|
|
131
222
|
farmEnvGlobal = globalThis;
|
|
132
223
|
currentEnv = getInitialEnv();
|
|
224
|
+
__name(createBundledEnv, "createBundledEnv");
|
|
133
225
|
__name(getResolvedEnv, "getResolvedEnv");
|
|
134
226
|
env = createEnvProxy("server");
|
|
135
227
|
publicEnv = createEnvProxy("public");
|
|
136
228
|
__name(createEnvProxy, "createEnvProxy");
|
|
137
229
|
__name(getEnvScope, "getEnvScope");
|
|
230
|
+
__name(readServerEnvKey, "readServerEnvKey");
|
|
231
|
+
__name(readRuntimeServerEnv, "readRuntimeServerEnv");
|
|
232
|
+
__name(getRuntimeEnvType, "getRuntimeEnvType");
|
|
233
|
+
__name(coerceRuntimeEnvValue, "coerceRuntimeEnvValue");
|
|
234
|
+
__name(prepareEnv, "prepareEnv");
|
|
138
235
|
__name(assertServerEnvAccess, "assertServerEnvAccess");
|
|
139
236
|
__name(getInitialEnv, "getInitialEnv");
|
|
140
237
|
__name(getCurrentEnv, "getCurrentEnv");
|
|
@@ -142,6 +239,7 @@ var init_env = __esm({
|
|
|
142
239
|
__name(getInjectedPublicEnv, "getInjectedPublicEnv");
|
|
143
240
|
__name(normalizeResolvedEnv, "normalizeResolvedEnv");
|
|
144
241
|
__name(isRecord, "isRecord");
|
|
242
|
+
__name(getProcessEnv, "getProcessEnv");
|
|
145
243
|
}
|
|
146
244
|
});
|
|
147
245
|
|
|
@@ -17249,6 +17347,9 @@ function normalizeRuntimeEndpointRequestPath(pathname) {
|
|
|
17249
17347
|
}
|
|
17250
17348
|
__name(normalizeRuntimeEndpointRequestPath, "normalizeRuntimeEndpointRequestPath");
|
|
17251
17349
|
|
|
17350
|
+
// src/vite.ts
|
|
17351
|
+
init_env();
|
|
17352
|
+
|
|
17252
17353
|
// src/app.ts
|
|
17253
17354
|
init_app_markdown_config();
|
|
17254
17355
|
init_markdown();
|
|
@@ -19055,9 +19156,10 @@ function collectIsolatedClientBoundaries(ownerPath, root, options = {}) {
|
|
|
19055
19156
|
const importedBindings = getStaticImportBindings(content);
|
|
19056
19157
|
let estimatedBoundaryCount2 = 0;
|
|
19057
19158
|
for (const specifier of new Set(getImportSpecifiers(content))) {
|
|
19058
|
-
const
|
|
19159
|
+
const imported = resolveImportedModule(moduleSourcePath, specifier, root);
|
|
19160
|
+
const importedPath = imported.path;
|
|
19059
19161
|
if (!importedPath) continue;
|
|
19060
|
-
if (!
|
|
19162
|
+
if (!imported.local) {
|
|
19061
19163
|
const packageMetadata = inspectPackageClientBoundary(importedPath, root, /* @__PURE__ */ new Set());
|
|
19062
19164
|
if (packageMetadata.shouldHydrate) {
|
|
19063
19165
|
if (options.staticPackageBoundaries) {
|
|
@@ -19126,8 +19228,8 @@ function inspectClientModuleMetadata(resolvedPath, root, visited, inspectIslandE
|
|
|
19126
19228
|
let importsClientBoundary = false;
|
|
19127
19229
|
let importedIslandStrategy = null;
|
|
19128
19230
|
for (const specifier of getImportSpecifiers(content)) {
|
|
19129
|
-
const
|
|
19130
|
-
const importedMetadata =
|
|
19231
|
+
const imported = resolveImportedModule(resolvedPath, specifier, root);
|
|
19232
|
+
const importedMetadata = imported.local ? inspectClientModuleMetadata(imported.path, root, visited, false) : inspectPackageClientBoundary(imported.path, root, visited);
|
|
19131
19233
|
if (importedMetadata.isClientComponent || importedMetadata.shouldHydrate) {
|
|
19132
19234
|
importsClientBoundary = true;
|
|
19133
19235
|
if (importedIslandStrategy === null) {
|
|
@@ -19256,6 +19358,171 @@ function isTypeOnlyNamedClause(tokens, startIndex, endIndex) {
|
|
|
19256
19358
|
return true;
|
|
19257
19359
|
}
|
|
19258
19360
|
__name(isTypeOnlyNamedClause, "isTypeOnlyNamedClause");
|
|
19361
|
+
function resolveImportedModule(importerPath, specifier, root) {
|
|
19362
|
+
if (specifier.startsWith(".") || specifier.startsWith("/")) {
|
|
19363
|
+
return { path: resolveImportedModuleSourcePath(importerPath, specifier, root), local: true };
|
|
19364
|
+
}
|
|
19365
|
+
const aliased = resolveProjectAliasSourcePath(specifier, root);
|
|
19366
|
+
if (aliased !== void 0) return { path: aliased, local: true };
|
|
19367
|
+
return { path: resolvePackageModuleSourcePath(importerPath, specifier, root), local: false };
|
|
19368
|
+
}
|
|
19369
|
+
__name(resolveImportedModule, "resolveImportedModule");
|
|
19370
|
+
var projectImportAliasCache = /* @__PURE__ */ new Map();
|
|
19371
|
+
var PROJECT_ALIAS_FILES = ["tsconfig.json", "jsconfig.json", "package.json"];
|
|
19372
|
+
function resolveProjectAliasSourcePath(specifier, root) {
|
|
19373
|
+
if (!root) return void 0;
|
|
19374
|
+
const projectRoot = import_path4.default.resolve(root);
|
|
19375
|
+
let match;
|
|
19376
|
+
for (const alias of getProjectImportAliases(projectRoot)) {
|
|
19377
|
+
const captured = matchProjectImportAlias(alias, specifier);
|
|
19378
|
+
if (captured === null) continue;
|
|
19379
|
+
if (!match || alias.prefix.length > match.alias.prefix.length) match = { alias, captured };
|
|
19380
|
+
}
|
|
19381
|
+
if (!match) return void 0;
|
|
19382
|
+
return resolveSourceCandidate(
|
|
19383
|
+
match.alias.targets.map(
|
|
19384
|
+
(target) => import_path4.default.normalize(match.alias.wildcard ? target.replace("*", match.captured) : target)
|
|
19385
|
+
)
|
|
19386
|
+
);
|
|
19387
|
+
}
|
|
19388
|
+
__name(resolveProjectAliasSourcePath, "resolveProjectAliasSourcePath");
|
|
19389
|
+
function matchProjectImportAlias(alias, specifier) {
|
|
19390
|
+
if (!alias.wildcard) return specifier === alias.prefix ? "" : null;
|
|
19391
|
+
if (specifier.length < alias.prefix.length + alias.suffix.length || !specifier.startsWith(alias.prefix) || !specifier.endsWith(alias.suffix)) {
|
|
19392
|
+
return null;
|
|
19393
|
+
}
|
|
19394
|
+
return specifier.slice(alias.prefix.length, specifier.length - alias.suffix.length);
|
|
19395
|
+
}
|
|
19396
|
+
__name(matchProjectImportAlias, "matchProjectImportAlias");
|
|
19397
|
+
function getProjectImportAliases(projectRoot) {
|
|
19398
|
+
const stamp = PROJECT_ALIAS_FILES.map((file) => {
|
|
19399
|
+
try {
|
|
19400
|
+
return String(import_fs2.default.statSync(import_path4.default.join(projectRoot, file)).mtimeMs);
|
|
19401
|
+
} catch {
|
|
19402
|
+
return "-";
|
|
19403
|
+
}
|
|
19404
|
+
}).join(":");
|
|
19405
|
+
const cached = projectImportAliasCache.get(projectRoot);
|
|
19406
|
+
if (cached?.stamp === stamp) return cached.aliases;
|
|
19407
|
+
const aliases = [
|
|
19408
|
+
...readTsconfigPathAliases(projectRoot),
|
|
19409
|
+
...readPackageImportAliases(projectRoot)
|
|
19410
|
+
];
|
|
19411
|
+
if (!aliases.some((alias) => alias.prefix === "@/")) {
|
|
19412
|
+
aliases.push({
|
|
19413
|
+
prefix: "@/",
|
|
19414
|
+
suffix: "",
|
|
19415
|
+
wildcard: true,
|
|
19416
|
+
targets: [import_path4.default.join(projectRoot, "src", "*")]
|
|
19417
|
+
});
|
|
19418
|
+
}
|
|
19419
|
+
projectImportAliasCache.set(projectRoot, { stamp, aliases });
|
|
19420
|
+
return aliases;
|
|
19421
|
+
}
|
|
19422
|
+
__name(getProjectImportAliases, "getProjectImportAliases");
|
|
19423
|
+
function readTsconfigPathAliases(projectRoot) {
|
|
19424
|
+
for (const name2 of ["tsconfig.json", "jsconfig.json"]) {
|
|
19425
|
+
const configPath = import_path4.default.join(projectRoot, name2);
|
|
19426
|
+
if (!import_fs2.default.existsSync(configPath)) continue;
|
|
19427
|
+
const resolved = readTsconfigPaths(configPath, /* @__PURE__ */ new Set());
|
|
19428
|
+
if (!resolved?.paths) return [];
|
|
19429
|
+
const base = resolved.baseUrl ?? resolved.pathsDirectory;
|
|
19430
|
+
return Object.entries(resolved.paths).flatMap(([pattern, targets]) => {
|
|
19431
|
+
if (!Array.isArray(targets)) return [];
|
|
19432
|
+
const wildcardIndex = pattern.indexOf("*");
|
|
19433
|
+
return [
|
|
19434
|
+
{
|
|
19435
|
+
prefix: wildcardIndex === -1 ? pattern : pattern.slice(0, wildcardIndex),
|
|
19436
|
+
suffix: wildcardIndex === -1 ? "" : pattern.slice(wildcardIndex + 1),
|
|
19437
|
+
wildcard: wildcardIndex !== -1,
|
|
19438
|
+
targets: targets.filter((target) => typeof target === "string").map((target) => import_path4.default.resolve(base, target))
|
|
19439
|
+
}
|
|
19440
|
+
];
|
|
19441
|
+
});
|
|
19442
|
+
}
|
|
19443
|
+
return [];
|
|
19444
|
+
}
|
|
19445
|
+
__name(readTsconfigPathAliases, "readTsconfigPathAliases");
|
|
19446
|
+
function readTsconfigPaths(configPath, visited) {
|
|
19447
|
+
if (visited.has(configPath)) return null;
|
|
19448
|
+
visited.add(configPath);
|
|
19449
|
+
const config = readJsonWithComments(configPath);
|
|
19450
|
+
if (!config) return null;
|
|
19451
|
+
const directory = import_path4.default.dirname(configPath);
|
|
19452
|
+
const parents = (Array.isArray(config.extends) ? config.extends : [config.extends]).filter(
|
|
19453
|
+
(parent) => typeof parent === "string" && parent.startsWith(".")
|
|
19454
|
+
);
|
|
19455
|
+
let inherited = null;
|
|
19456
|
+
for (const parent of parents) {
|
|
19457
|
+
const parentPath = import_path4.default.resolve(
|
|
19458
|
+
directory,
|
|
19459
|
+
parent.endsWith(".json") ? parent : `${parent}.json`
|
|
19460
|
+
);
|
|
19461
|
+
inherited = readTsconfigPaths(parentPath, visited) ?? inherited;
|
|
19462
|
+
}
|
|
19463
|
+
const options = config.compilerOptions ?? {};
|
|
19464
|
+
const baseUrl = typeof options.baseUrl === "string" ? import_path4.default.resolve(directory, options.baseUrl) : inherited?.baseUrl;
|
|
19465
|
+
if (options.paths && typeof options.paths === "object") {
|
|
19466
|
+
return { paths: options.paths, pathsDirectory: directory, baseUrl };
|
|
19467
|
+
}
|
|
19468
|
+
return inherited ? { ...inherited, baseUrl } : { pathsDirectory: directory, baseUrl };
|
|
19469
|
+
}
|
|
19470
|
+
__name(readTsconfigPaths, "readTsconfigPaths");
|
|
19471
|
+
function readPackageImportAliases(projectRoot) {
|
|
19472
|
+
const imports = readPackageJson(import_path4.default.join(projectRoot, "package.json"))?.imports;
|
|
19473
|
+
if (!imports || typeof imports !== "object") return [];
|
|
19474
|
+
return Object.entries(imports).flatMap(([pattern, value]) => {
|
|
19475
|
+
const target = resolveConditionalExportTarget(value);
|
|
19476
|
+
if (!pattern.startsWith("#") || !target?.startsWith("./")) return [];
|
|
19477
|
+
const wildcardIndex = pattern.indexOf("*");
|
|
19478
|
+
return [
|
|
19479
|
+
{
|
|
19480
|
+
prefix: wildcardIndex === -1 ? pattern : pattern.slice(0, wildcardIndex),
|
|
19481
|
+
suffix: wildcardIndex === -1 ? "" : pattern.slice(wildcardIndex + 1),
|
|
19482
|
+
wildcard: wildcardIndex !== -1,
|
|
19483
|
+
targets: [import_path4.default.resolve(projectRoot, target)]
|
|
19484
|
+
}
|
|
19485
|
+
];
|
|
19486
|
+
});
|
|
19487
|
+
}
|
|
19488
|
+
__name(readPackageImportAliases, "readPackageImportAliases");
|
|
19489
|
+
function readJsonWithComments(filePath) {
|
|
19490
|
+
let source;
|
|
19491
|
+
try {
|
|
19492
|
+
source = import_fs2.default.readFileSync(filePath, "utf8");
|
|
19493
|
+
} catch {
|
|
19494
|
+
return null;
|
|
19495
|
+
}
|
|
19496
|
+
let output = "";
|
|
19497
|
+
let inString = false;
|
|
19498
|
+
for (let index = 0; index < source.length; index++) {
|
|
19499
|
+
const char = source[index];
|
|
19500
|
+
if (inString) {
|
|
19501
|
+
output += char;
|
|
19502
|
+
if (char === "\\") output += source[++index] ?? "";
|
|
19503
|
+
else if (char === '"') inString = false;
|
|
19504
|
+
continue;
|
|
19505
|
+
}
|
|
19506
|
+
if (char === '"') {
|
|
19507
|
+
inString = true;
|
|
19508
|
+
output += char;
|
|
19509
|
+
} else if (char === "/" && source[index + 1] === "/") {
|
|
19510
|
+
while (index < source.length && source[index] !== "\n") index++;
|
|
19511
|
+
output += "\n";
|
|
19512
|
+
} else if (char === "/" && source[index + 1] === "*") {
|
|
19513
|
+
const end = source.indexOf("*/", index + 2);
|
|
19514
|
+
index = end === -1 ? source.length : end + 1;
|
|
19515
|
+
} else {
|
|
19516
|
+
output += char;
|
|
19517
|
+
}
|
|
19518
|
+
}
|
|
19519
|
+
try {
|
|
19520
|
+
return JSON.parse(output.replace(/,(\s*[}\]])/g, "$1"));
|
|
19521
|
+
} catch {
|
|
19522
|
+
return null;
|
|
19523
|
+
}
|
|
19524
|
+
}
|
|
19525
|
+
__name(readJsonWithComments, "readJsonWithComments");
|
|
19259
19526
|
function resolveImportedModuleSourcePath(importerPath, specifier, root) {
|
|
19260
19527
|
if (!specifier.startsWith(".") && !specifier.startsWith("/")) {
|
|
19261
19528
|
return resolvePackageModuleSourcePath(importerPath, specifier, root);
|
|
@@ -24708,7 +24975,7 @@ _setFarmThemeServerSnapshotResolver(() => {
|
|
|
24708
24975
|
});
|
|
24709
24976
|
|
|
24710
24977
|
// package.json
|
|
24711
|
-
var version = "0.1.
|
|
24978
|
+
var version = "0.1.16";
|
|
24712
24979
|
|
|
24713
24980
|
// src/version.ts
|
|
24714
24981
|
var FARM_VERSION = version;
|
|
@@ -31985,7 +32252,7 @@ function getEnvDefines(config, configEnv) {
|
|
|
31985
32252
|
)
|
|
31986
32253
|
};
|
|
31987
32254
|
if (configEnv?.isSsrBuild) {
|
|
31988
|
-
defines.__FARM_ENV__ = JSON.stringify(getFullEnvDefine(config));
|
|
32255
|
+
defines.__FARM_ENV__ = JSON.stringify(createBundledEnv(getFullEnvDefine(config)));
|
|
31989
32256
|
}
|
|
31990
32257
|
return defines;
|
|
31991
32258
|
}
|
package/dist/plugin.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { i as PluginLocalAPI, h as PluginLocalAPIEndpoint, g as PluginRoutes, P as PluginRoutesFactory, d as RouteDefinition, R as RouteMethod } from './route-C_eLaFTZ.mjs';
|
|
2
|
+
export { d as EndpointMCPMetadata, b as EndpointMCPOptions, f as EndpointOpenAPIMetadata, R as RouteSchema } from './endpoint-Bu3XgeMK.mjs';
|
|
3
|
+
export { ca as APIHandlerLifecyclePayload, c6 as APIRouteDiscoveredPayload, cd as BundleLifecyclePayload, B as BundleResultPayload, cb as ErrorLifecyclePayload, fb as FARM_NODE_RESPONSE_END_PENDING, a as FarmPlugin, c0 as FarmPluginBuildHooks, c2 as FarmPluginClientConfig, d as FarmPluginContext, aV as FarmPluginDatabase, aW as FarmPluginDefinition, c1 as FarmPluginDevHooks, bZ as FarmPluginDiscoveredRoute, bE as FarmPluginIntegrationContext, bF as FarmPluginLifecycle, b$ as FarmPluginRenderHooks, bJ as FarmPluginRouteRuntimePayload, b_ as FarmPluginRouterHooks, bR as FarmPluginRuntimeAfterEvent, bM as FarmPluginRuntimeBaseEvent, bQ as FarmPluginRuntimeBeforeEvent, bU as FarmPluginRuntimeCloseEvent, bN as FarmPluginRuntimeContextEvent, bO as FarmPluginRuntimeEndpoint, bP as FarmPluginRuntimeEndpointEvent, bS as FarmPluginRuntimeErrorEvent, bV as FarmPluginRuntimeHooks, bI as FarmPluginRuntimeKind, bX as FarmPluginRuntimeRequestHandler, bW as FarmPluginRuntimeRequestOptions, bY as FarmPluginRuntimeSession, bT as FarmPluginRuntimeStartEvent, bK as FarmPluginSetupContext, bL as FarmPluginStateContext, bG as FarmRequestPluginContext, bH as FarmRequestStore, aT as FarmRuntimeShutdownError, cc as HMRUpdatePayload, c5 as MiddlewareDiscoveredPayload, ce as NitroBuildLifecyclePayload, aU as PluginManager, bD as PluginRequestContext, c9 as RenderLifecyclePayload, c3 as RouteDiscoveredPayload, c7 as RouteMatchPayload, c8 as RouteMatchResultPayload, c4 as RoutesGeneratedPayload, cf as ShutdownPayload, aS as definePlugin, x as farmPlugin } from './client-plugins-CIPRtSsW.mjs';
|
|
3
4
|
import 'vite';
|
|
4
5
|
import './lifecycle-DK06VuKP.mjs';
|
|
5
6
|
import './env.mjs';
|
|
@@ -27,6 +28,8 @@ import './server-fn-error-DDh14a0V.mjs';
|
|
|
27
28
|
import 'esbuild';
|
|
28
29
|
import './image-config-Duob7wER.mjs';
|
|
29
30
|
import './types-Z0aotQ8w.mjs';
|
|
31
|
+
import './server-fn.mjs';
|
|
32
|
+
import './server-query.mjs';
|
|
30
33
|
import './types-DQnyD3VD.mjs';
|
|
31
34
|
import './font.mjs';
|
|
32
35
|
import './after.mjs';
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { i as PluginLocalAPI, h as PluginLocalAPIEndpoint, g as PluginRoutes, P as PluginRoutesFactory, d as RouteDefinition, R as RouteMethod } from './route-BxNJT447.js';
|
|
2
|
+
export { d as EndpointMCPMetadata, b as EndpointMCPOptions, f as EndpointOpenAPIMetadata, R as RouteSchema } from './endpoint-kSAxE52R.js';
|
|
3
|
+
export { ca as APIHandlerLifecyclePayload, c6 as APIRouteDiscoveredPayload, cd as BundleLifecyclePayload, B as BundleResultPayload, cb as ErrorLifecyclePayload, fb as FARM_NODE_RESPONSE_END_PENDING, a as FarmPlugin, c0 as FarmPluginBuildHooks, c2 as FarmPluginClientConfig, d as FarmPluginContext, aV as FarmPluginDatabase, aW as FarmPluginDefinition, c1 as FarmPluginDevHooks, bZ as FarmPluginDiscoveredRoute, bE as FarmPluginIntegrationContext, bF as FarmPluginLifecycle, b$ as FarmPluginRenderHooks, bJ as FarmPluginRouteRuntimePayload, b_ as FarmPluginRouterHooks, bR as FarmPluginRuntimeAfterEvent, bM as FarmPluginRuntimeBaseEvent, bQ as FarmPluginRuntimeBeforeEvent, bU as FarmPluginRuntimeCloseEvent, bN as FarmPluginRuntimeContextEvent, bO as FarmPluginRuntimeEndpoint, bP as FarmPluginRuntimeEndpointEvent, bS as FarmPluginRuntimeErrorEvent, bV as FarmPluginRuntimeHooks, bI as FarmPluginRuntimeKind, bX as FarmPluginRuntimeRequestHandler, bW as FarmPluginRuntimeRequestOptions, bY as FarmPluginRuntimeSession, bT as FarmPluginRuntimeStartEvent, bK as FarmPluginSetupContext, bL as FarmPluginStateContext, bG as FarmRequestPluginContext, bH as FarmRequestStore, aT as FarmRuntimeShutdownError, cc as HMRUpdatePayload, c5 as MiddlewareDiscoveredPayload, ce as NitroBuildLifecyclePayload, aU as PluginManager, bD as PluginRequestContext, c9 as RenderLifecyclePayload, c3 as RouteDiscoveredPayload, c7 as RouteMatchPayload, c8 as RouteMatchResultPayload, c4 as RoutesGeneratedPayload, cf as ShutdownPayload, aS as definePlugin, x as farmPlugin } from './client-plugins-CqVtZi5X.js';
|
|
3
4
|
import 'vite';
|
|
4
5
|
import './lifecycle-DK06VuKP.js';
|
|
5
6
|
import './env.js';
|
|
@@ -27,6 +28,8 @@ import './server-fn-error-DDh14a0V.js';
|
|
|
27
28
|
import 'esbuild';
|
|
28
29
|
import './image-config-Duob7wER.js';
|
|
29
30
|
import './types-Z0aotQ8w.js';
|
|
31
|
+
import './server-fn.js';
|
|
32
|
+
import './server-query.js';
|
|
30
33
|
import './types-DQnyD3VD.js';
|
|
31
34
|
import './font.js';
|
|
32
35
|
import './after.js';
|
package/dist/plugin.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
PluginManager,
|
|
5
5
|
definePlugin,
|
|
6
6
|
farmPlugin
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NHHKW2T6.mjs";
|
|
8
8
|
import "./chunk-27JNCYEK.mjs";
|
|
9
9
|
import "./chunk-DHDVMXYK.mjs";
|
|
10
10
|
import "./chunk-ZMSZZXOR.mjs";
|
|
@@ -31,7 +31,7 @@ import "./chunk-Q3MDL7TM.mjs";
|
|
|
31
31
|
import "./chunk-G2KY33I6.mjs";
|
|
32
32
|
import "./chunk-4L7SZOHZ.mjs";
|
|
33
33
|
import "./chunk-QCFFHV5H.mjs";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-7HDZYYS4.mjs";
|
|
35
35
|
import "./chunk-KATQ6I56.mjs";
|
|
36
36
|
import "./chunk-LUC2FAGW.mjs";
|
|
37
37
|
import "./chunk-FA2W42OV.mjs";
|
|
@@ -69,7 +69,7 @@ import "./chunk-YMCXWPWK.mjs";
|
|
|
69
69
|
import "./chunk-KI3MESHB.mjs";
|
|
70
70
|
import "./chunk-QVKYGNVM.mjs";
|
|
71
71
|
import "./chunk-Z2RZJZIZ.mjs";
|
|
72
|
-
import "./chunk-
|
|
72
|
+
import "./chunk-IL5RWYK7.mjs";
|
|
73
73
|
import "./chunk-54UPOYFS.mjs";
|
|
74
74
|
import "./chunk-WNSDDRNU.mjs";
|
|
75
75
|
import "./chunk-JPLUGGRV.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aj as ReadonlyMiddlewareStore, ak as FarmMiddlewareConfig, al as MiddlewareModule, am as MiddlewareConfig, an as MiddlewareContext } from './client-plugins-
|
|
1
|
+
import { aj as ReadonlyMiddlewareStore, ak as FarmMiddlewareConfig, al as MiddlewareModule, am as MiddlewareConfig, an as MiddlewareContext } from './client-plugins-CqVtZi5X.js';
|
|
2
2
|
import { R as ResolvedFarmI18nConfig } from './types-Z0aotQ8w.js';
|
|
3
3
|
import { R as ResolvedFarmServerConfig } from './workflows-CR9ex-gz.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aj as ReadonlyMiddlewareStore, ak as FarmMiddlewareConfig, al as MiddlewareModule, am as MiddlewareConfig, an as MiddlewareContext } from './client-plugins-
|
|
1
|
+
import { aj as ReadonlyMiddlewareStore, ak as FarmMiddlewareConfig, al as MiddlewareModule, am as MiddlewareConfig, an as MiddlewareContext } from './client-plugins-CIPRtSsW.mjs';
|
|
2
2
|
import { R as ResolvedFarmI18nConfig } from './types-Z0aotQ8w.mjs';
|
|
3
3
|
import { R as ResolvedFarmServerConfig } from './workflows-CR9ex-gz.mjs';
|
|
4
4
|
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { FarmRouterRouteInput } from './router.mjs';
|
|
2
|
-
import { F as FarmNavigationState, a as FarmNavigateOptions } from './spa-router-
|
|
2
|
+
import { F as FarmNavigationState, a as FarmNavigateOptions } from './spa-router-BcS_4nqm.mjs';
|
|
3
3
|
import { F as FarmClientCacheStatus } from './client-cache-di_Nasxa.mjs';
|
|
4
4
|
import { ServerFn } from './server-fn.mjs';
|
|
5
5
|
import { ServerQuery } from './server-query.mjs';
|
|
6
6
|
import { S as ServerQueryFetchOptions } from './server-query-runtime-aP52iuL5.mjs';
|
|
7
7
|
import { F as FarmThemeSnapshot, a as FarmThemePreference } from './types-DQnyD3VD.mjs';
|
|
8
8
|
import { F as FarmI18nClientSnapshot, a as FarmTranslator, b as FarmI18nLocale } from './types-Z0aotQ8w.mjs';
|
|
9
|
-
import './client-plugins-
|
|
9
|
+
import './client-plugins-CIPRtSsW.mjs';
|
|
10
10
|
import './lifecycle-DK06VuKP.mjs';
|
|
11
|
-
import './route-
|
|
11
|
+
import './route-C_eLaFTZ.mjs';
|
|
12
|
+
import './endpoint-Bu3XgeMK.mjs';
|
|
12
13
|
import './cache.mjs';
|
|
13
14
|
import './renderer.mjs';
|
|
14
15
|
import './deployment.mjs';
|
|
@@ -38,7 +39,7 @@ import './font.mjs';
|
|
|
38
39
|
import './after.mjs';
|
|
39
40
|
import 'node:http';
|
|
40
41
|
import './island-CfGru1MO.mjs';
|
|
41
|
-
import './render-plan-
|
|
42
|
+
import './render-plan-io7pvDNc.mjs';
|
|
42
43
|
|
|
43
44
|
interface FarmClientStore<TSnapshot> {
|
|
44
45
|
getSnapshot(): TSnapshot;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { FarmRouterRouteInput } from './router.js';
|
|
2
|
-
import { F as FarmNavigationState, a as FarmNavigateOptions } from './spa-router-
|
|
2
|
+
import { F as FarmNavigationState, a as FarmNavigateOptions } from './spa-router-BzFBUJkn.js';
|
|
3
3
|
import { F as FarmClientCacheStatus } from './client-cache-Deoqq-nM.js';
|
|
4
4
|
import { ServerFn } from './server-fn.js';
|
|
5
5
|
import { ServerQuery } from './server-query.js';
|
|
6
6
|
import { S as ServerQueryFetchOptions } from './server-query-runtime-DXRNhX_3.js';
|
|
7
7
|
import { F as FarmThemeSnapshot, a as FarmThemePreference } from './types-DQnyD3VD.js';
|
|
8
8
|
import { F as FarmI18nClientSnapshot, a as FarmTranslator, b as FarmI18nLocale } from './types-Z0aotQ8w.js';
|
|
9
|
-
import './client-plugins-
|
|
9
|
+
import './client-plugins-CqVtZi5X.js';
|
|
10
10
|
import './lifecycle-DK06VuKP.js';
|
|
11
|
-
import './route-
|
|
11
|
+
import './route-BxNJT447.js';
|
|
12
|
+
import './endpoint-kSAxE52R.js';
|
|
12
13
|
import './cache.js';
|
|
13
14
|
import './renderer.js';
|
|
14
15
|
import './deployment.js';
|
|
@@ -38,7 +39,7 @@ import './font.js';
|
|
|
38
39
|
import './after.js';
|
|
39
40
|
import 'node:http';
|
|
40
41
|
import './island-CfGru1MO.js';
|
|
41
|
-
import './render-plan-
|
|
42
|
+
import './render-plan-Be4ZGTJP.js';
|
|
42
43
|
|
|
43
44
|
interface FarmClientStore<TSnapshot> {
|
|
44
45
|
getSnapshot(): TSnapshot;
|
package/dist/request.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export { g as getCurrentRequest } from './request-
|
|
2
|
-
import './client-plugins-
|
|
1
|
+
export { g as getCurrentRequest } from './request-DZkHYQ89.mjs';
|
|
2
|
+
import './client-plugins-CIPRtSsW.mjs';
|
|
3
3
|
import './lifecycle-DK06VuKP.mjs';
|
|
4
|
-
import './route-
|
|
4
|
+
import './route-C_eLaFTZ.mjs';
|
|
5
|
+
import './endpoint-Bu3XgeMK.mjs';
|
|
5
6
|
import './cache.mjs';
|
|
6
7
|
import './renderer.mjs';
|
|
7
8
|
import './deployment.mjs';
|
|
@@ -28,6 +29,8 @@ import './server-fn-error-DDh14a0V.mjs';
|
|
|
28
29
|
import 'esbuild';
|
|
29
30
|
import './image-config-Duob7wER.mjs';
|
|
30
31
|
import './types-Z0aotQ8w.mjs';
|
|
32
|
+
import './server-fn.mjs';
|
|
33
|
+
import './server-query.mjs';
|
|
31
34
|
import './types-DQnyD3VD.mjs';
|
|
32
35
|
import './font.mjs';
|
|
33
36
|
import './after.mjs';
|