@farm.js/core 0.1.64 → 0.1.66
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/{analyzer-Q3QXC6PD.mjs → analyzer-4UFP4HVP.mjs} +3 -3
- package/dist/analyzer-H7SIX6BJ.cjs +16 -0
- package/dist/{chunk-XVWSDSUM.mjs → chunk-27FPUFWR.mjs} +60 -5
- package/dist/{chunk-JCEFKP5M.mjs → chunk-423SSBYQ.mjs} +6 -0
- package/dist/{chunk-SLYDIHLW.mjs → chunk-435QJNC2.mjs} +2 -2
- package/dist/{chunk-XZLZ6YPP.cjs → chunk-4OSOLDPL.cjs} +118 -50
- package/dist/{chunk-MG356ROI.cjs → chunk-4TVPYN32.cjs} +3 -3
- package/dist/chunk-672ISQIG.mjs +3704 -0
- package/dist/{chunk-NXFA7G3Y.cjs → chunk-752IHQTD.cjs} +4 -4
- package/dist/chunk-7ONGIFYX.cjs +3704 -0
- package/dist/{chunk-RAH5MT53.mjs → chunk-AZUUKA66.mjs} +153 -42
- package/dist/{chunk-O2XFIPNL.cjs → chunk-BIF5MLTH.cjs} +1 -1
- package/dist/{chunk-FH45OB37.mjs → chunk-BYRZ5VTH.mjs} +1 -1
- package/dist/{chunk-V727H3RI.cjs → chunk-CCAUIBIS.cjs} +6 -0
- package/dist/{chunk-DUSHDZQL.cjs → chunk-CHYTADNK.cjs} +15 -13
- package/dist/chunk-CJNAUEVC.mjs +34 -0
- package/dist/{chunk-S25BQIFW.cjs → chunk-DVKH2RVN.cjs} +2 -2
- package/dist/{chunk-FAP7CX7C.cjs → chunk-E4UDLFWR.cjs} +527 -3019
- package/dist/{chunk-EFZGB7JC.cjs → chunk-E5UN4OWX.cjs} +1 -0
- package/dist/{chunk-WNYRYI4D.mjs → chunk-EMNKZGF4.mjs} +380 -2872
- package/dist/{chunk-VVTJTMGQ.cjs → chunk-GL7N5UHF.cjs} +4 -4
- package/dist/{chunk-UR25Z5Z6.mjs → chunk-HCGWDRZO.mjs} +1 -1
- package/dist/{chunk-EL4364S2.cjs → chunk-HZPKJRYA.cjs} +74 -19
- package/dist/{chunk-3EBHJET2.cjs → chunk-IT6WRNGB.cjs} +380 -269
- package/dist/{chunk-LQDLEWPO.mjs → chunk-MPIGW42F.mjs} +1 -1
- package/dist/{chunk-S7ZW72JH.cjs → chunk-MPJEIHW2.cjs} +2 -2
- package/dist/{chunk-53ZCZ46B.cjs → chunk-NHQM2Q4I.cjs} +2 -1
- package/dist/{chunk-UYRI6U3P.mjs → chunk-O75GQVUK.mjs} +2 -1
- package/dist/{chunk-OYF23QLG.mjs → chunk-OB7VKCUZ.mjs} +38 -33
- package/dist/{chunk-JCPSA4X5.cjs → chunk-OP7LHY4Y.cjs} +128 -123
- package/dist/{chunk-O7IEMY55.cjs → chunk-RY4ABNPE.cjs} +3 -3
- package/dist/{chunk-6NHSGVVA.mjs → chunk-SK7QSNWE.mjs} +1 -1
- package/dist/{chunk-NNLFW3P4.mjs → chunk-TKK5QHKZ.mjs} +1 -1
- package/dist/{chunk-ZNXTU4YH.mjs → chunk-TM2E623I.mjs} +1 -0
- package/dist/{chunk-PAKCHVUS.mjs → chunk-TPA2PV5J.mjs} +3 -35
- package/dist/{chunk-6NNYPY5W.mjs → chunk-UBMHQVWN.mjs} +78 -10
- package/dist/{chunk-BPNOYILC.cjs → chunk-UVV3I5QA.cjs} +3 -35
- package/dist/{chunk-N3Z3PLHC.cjs → chunk-VBCQ5WOI.cjs} +6 -6
- package/dist/{chunk-WFNAOWH4.mjs → chunk-WFWFECDW.mjs} +2 -2
- package/dist/{chunk-SNFTMSHX.mjs → chunk-WVYRLP5E.mjs} +1 -1
- package/dist/{chunk-O4FWNLQK.mjs → chunk-XBSLKXBL.mjs} +10 -8
- package/dist/chunk-ZIHWAN55.cjs +34 -0
- package/dist/{devtools-WET5NAKO.cjs → devtools-N2JQCMXB.cjs} +5 -4
- package/dist/{devtools-MX3FE733.mjs → devtools-NZUVNUP3.mjs} +4 -3
- package/dist/docs.cjs +6 -5
- package/dist/docs.mjs +5 -4
- package/dist/environment/vite.cjs +9 -2
- package/dist/environment/vite.d.mts +3 -0
- package/dist/environment/vite.d.ts +3 -0
- package/dist/environment/vite.mjs +8 -1
- package/dist/index.cjs +22 -21
- package/dist/index.mjs +21 -20
- package/dist/internal/build-runtime.cjs +20 -19
- package/dist/internal/build-runtime.mjs +19 -18
- package/dist/internal/cli-runtime.cjs +6 -5
- package/dist/internal/cli-runtime.mjs +5 -4
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/config-runtime.cjs +6 -5
- package/dist/internal/config-runtime.mjs +5 -4
- package/dist/internal/infra-analytics-runtime.cjs +6 -6
- package/dist/internal/infra-analytics-runtime.mjs +4 -4
- package/dist/internal/native-server-fns.cjs +5 -5
- package/dist/internal/native-server-fns.mjs +4 -4
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +7 -7
- package/dist/internal/production-runtime.d.mts +14 -0
- package/dist/internal/production-runtime.d.ts +14 -0
- package/dist/internal/production-runtime.mjs +6 -6
- package/dist/{native-tree-WOX3JMBG.cjs → native-tree-7LPH57Z4.cjs} +3 -3
- package/dist/{native-tree-BPEE2LAL.mjs → native-tree-VV6WN3GX.mjs} +2 -2
- package/dist/plugin.cjs +11 -10
- package/dist/plugin.mjs +10 -9
- package/dist/{port-UFUZL6RI.mjs → port-CLL4BC4O.mjs} +1 -1
- package/dist/{port-VTLHPZOI.cjs → port-HASZTQGY.cjs} +9 -9
- package/dist/{rsc-pipeline-3LNVP2OO.mjs → rsc-pipeline-7PNVJSTR.mjs} +6 -5
- package/dist/{rsc-pipeline-G5WELVW3.cjs → rsc-pipeline-Z7QBZOIJ.cjs} +7 -6
- package/dist/{runtime-DMEULPE7.cjs → runtime-FKFCUHSK.cjs} +21 -20
- package/dist/{runtime-HQJ2LLQL.mjs → runtime-QQHX4BP3.mjs} +12 -11
- package/dist/server.cjs +36 -35
- package/dist/server.mjs +19 -18
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +14 -12
- package/dist/vite.mjs +13 -11
- package/package.json +1 -1
- package/dist/analyzer-ODLF2Z6O.cjs +0 -16
- package/dist/chunk-NK2VWS7P.cjs +0 -954
- package/dist/chunk-ZQ5BDNKW.mjs +0 -954
|
@@ -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 _chunkBIF5MLTHcjs = require('./chunk-BIF5MLTH.cjs');
|
|
4
4
|
|
|
5
5
|
// src/deployment-environment.ts
|
|
6
6
|
function isFarmProductionDeploymentEnvironment(env = process.env) {
|
|
@@ -90,7 +90,7 @@ function createFarmProductionSiteReporter(options) {
|
|
|
90
90
|
schemaVersion: FARM_PRODUCTION_SITE_TELEMETRY_SCHEMA_VERSION,
|
|
91
91
|
eventType: FARM_PRODUCTION_SITE_ATTESTATION_EVENT_TYPE,
|
|
92
92
|
packageName: FARM_PRODUCTION_SITE_TELEMETRY_PACKAGE_NAME,
|
|
93
|
-
packageVersion: sanitizeDetail(
|
|
93
|
+
packageVersion: sanitizeDetail(_chunkBIF5MLTHcjs.FARM_VERSION, "unknown"),
|
|
94
94
|
renderer: sanitizeDetail(options.renderer, "custom"),
|
|
95
95
|
deployTarget: sanitizeDetail(options.deployTarget, "custom")
|
|
96
96
|
};
|
|
@@ -30,7 +30,8 @@ function escapeRegExp(value) {
|
|
|
30
30
|
}
|
|
31
31
|
var MAX_HELD_TAG = 4096;
|
|
32
32
|
function createFarmMobileShellRewriter(client) {
|
|
33
|
-
const
|
|
33
|
+
const entries = [client.webEntry, ...client.webBoot ? [client.webBoot] : []];
|
|
34
|
+
const entry = new RegExp(`(["'])(?:${entries.map(escapeRegExp).join("|")})\\1`, "g");
|
|
34
35
|
const webOnly = new Set(client.webOnly);
|
|
35
36
|
const preload = /<link rel="modulepreload" href="\/([^"]+)"[^>]*>/g;
|
|
36
37
|
let held = "";
|
|
@@ -30,7 +30,8 @@ function escapeRegExp(value) {
|
|
|
30
30
|
}
|
|
31
31
|
var MAX_HELD_TAG = 4096;
|
|
32
32
|
function createFarmMobileShellRewriter(client) {
|
|
33
|
-
const
|
|
33
|
+
const entries = [client.webEntry, ...client.webBoot ? [client.webBoot] : []];
|
|
34
|
+
const entry = new RegExp(`(["'])(?:${entries.map(escapeRegExp).join("|")})\\1`, "g");
|
|
34
35
|
const webOnly = new Set(client.webOnly);
|
|
35
36
|
const preload = /<link rel="modulepreload" href="\/([^"]+)"[^>]*>/g;
|
|
36
37
|
let held = "";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
finalizeFarmMobileClient,
|
|
7
7
|
hasFarmMobileClientEntry,
|
|
8
8
|
removeFarmMobileClientManifest
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TM2E623I.mjs";
|
|
10
10
|
import {
|
|
11
11
|
loadFarmProductionVite
|
|
12
12
|
} from "./chunk-PSUYE5HR.mjs";
|
|
@@ -31,14 +31,14 @@ import {
|
|
|
31
31
|
import {
|
|
32
32
|
collectFarmNativeServerFns,
|
|
33
33
|
findFarmNativeScreenFiles
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-SK7QSNWE.mjs";
|
|
35
35
|
import {
|
|
36
36
|
assertFarmDocsAdapterServesNoGuardedPages,
|
|
37
37
|
compileFarmDocsAdapterEdgeManifest,
|
|
38
38
|
createFarmDocsAPIHandler,
|
|
39
39
|
hasFarmDocsRuntimeAdapter,
|
|
40
40
|
listFarmDocsAdapterPages
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-BYRZ5VTH.mjs";
|
|
42
42
|
import {
|
|
43
43
|
FARM_DOCS_LAST_MODIFIED_MANIFEST,
|
|
44
44
|
createFarmDocsHandler,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
} from "./chunk-ALEUMLJN.mjs";
|
|
59
59
|
import {
|
|
60
60
|
FARM_PRERENDER_ENV
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-TKK5QHKZ.mjs";
|
|
62
62
|
import {
|
|
63
63
|
loadFarmDocsEngine
|
|
64
64
|
} from "./chunk-VE3FWJBO.mjs";
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
getDeployTargetForPreset,
|
|
68
68
|
hasCustomFarmRouteContext,
|
|
69
69
|
resolveDeployOutputPath
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-XBSLKXBL.mjs";
|
|
71
71
|
import {
|
|
72
72
|
resolveFarmInstrumentationFile
|
|
73
73
|
} from "./chunk-N35YPV4N.mjs";
|
|
@@ -81,23 +81,16 @@ import {
|
|
|
81
81
|
FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE,
|
|
82
82
|
SHARP_INSTALL_HINT,
|
|
83
83
|
canBootFarmIslandsClient,
|
|
84
|
-
collectFarmServerStylesheets,
|
|
85
84
|
collectFarmWebMCPTools,
|
|
86
85
|
createFarmApp,
|
|
87
86
|
createFarmSourceAlias,
|
|
88
87
|
createFarmThemeCssPlugin,
|
|
89
|
-
createMarkdownPageHydrationPlanner,
|
|
90
|
-
describeSuppressedAsyncHydration,
|
|
91
|
-
enforceFarmIsolatedHydrationRouteBudget,
|
|
92
88
|
farmDocsClientConfigPlugin,
|
|
93
89
|
farmFontImportsPlugin,
|
|
94
90
|
generateClientCachePersistenceCode,
|
|
95
91
|
generateFarmClientPluginEntryCode,
|
|
96
92
|
generateFarmIntegrationProviderClientCode,
|
|
97
93
|
generateFarmIntegrationProviderServerModules,
|
|
98
|
-
getClientModuleHydrationPlan,
|
|
99
|
-
getClientModuleMetadata,
|
|
100
|
-
getFarmClientHydrationPlanOptions,
|
|
101
94
|
mergeFarmFontCss,
|
|
102
95
|
mergeFarmProductionViteConfig,
|
|
103
96
|
mergeFarmViteConfig,
|
|
@@ -105,13 +98,9 @@ import {
|
|
|
105
98
|
resolveFarmClientCacheAdapterEntry,
|
|
106
99
|
resolveFarmImageProviderForRuntime,
|
|
107
100
|
resolveFarmImageServerRuntime,
|
|
108
|
-
resolveFarmIsolatedClientHydrationMode,
|
|
109
101
|
resolveFarmNotFoundComponentPath,
|
|
110
|
-
resolveFarmRouteRootStrategy
|
|
111
|
-
|
|
112
|
-
usesFarmServerTree,
|
|
113
|
-
withPackageClientBoundaryCache
|
|
114
|
-
} from "./chunk-WNYRYI4D.mjs";
|
|
102
|
+
resolveFarmRouteRootStrategy
|
|
103
|
+
} from "./chunk-EMNKZGF4.mjs";
|
|
115
104
|
import {
|
|
116
105
|
loadTailwindVitePlugin
|
|
117
106
|
} from "./chunk-OM7WILES.mjs";
|
|
@@ -149,7 +138,7 @@ import {
|
|
|
149
138
|
listFarmBuiltInRoutePaths,
|
|
150
139
|
resolveFarmApiCatalogInput,
|
|
151
140
|
resolveFarmAppManifestInput
|
|
152
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-435QJNC2.mjs";
|
|
153
142
|
import {
|
|
154
143
|
FARM_DEFAULT_MCP_PATH,
|
|
155
144
|
createFarmDefaultMCPServer,
|
|
@@ -157,13 +146,24 @@ import {
|
|
|
157
146
|
} from "./chunk-MESQF2JC.mjs";
|
|
158
147
|
import {
|
|
159
148
|
isFarmPreviewDeploymentEnvironment
|
|
160
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-WVYRLP5E.mjs";
|
|
161
150
|
import {
|
|
162
151
|
FARM_NATIVE_SERVER_FN_PLUGIN
|
|
163
152
|
} from "./chunk-L4RTTTVE.mjs";
|
|
164
153
|
import {
|
|
165
|
-
|
|
166
|
-
|
|
154
|
+
collectFarmServerStylesheets,
|
|
155
|
+
createMarkdownPageHydrationPlanner,
|
|
156
|
+
describeSuppressedAsyncHydration,
|
|
157
|
+
enforceFarmIsolatedHydrationRouteBudget,
|
|
158
|
+
farmEnvironmentFunctionsPlugin,
|
|
159
|
+
getClientModuleHydrationPlan,
|
|
160
|
+
getClientModuleMetadata,
|
|
161
|
+
getFarmClientHydrationPlanOptions,
|
|
162
|
+
resolveFarmIsolatedClientHydrationMode,
|
|
163
|
+
usePackageClientBoundaryCacheFile,
|
|
164
|
+
usesFarmServerTree,
|
|
165
|
+
withPackageClientBoundaryCache
|
|
166
|
+
} from "./chunk-672ISQIG.mjs";
|
|
167
167
|
import {
|
|
168
168
|
generateFarmDocsAdapterClientRuntime,
|
|
169
169
|
getFarmDocsAdapterConfigModule
|
|
@@ -172,12 +172,19 @@ import {
|
|
|
172
172
|
resolveFarmDocsFontAssets,
|
|
173
173
|
toFarmDocsPublicFontAssets
|
|
174
174
|
} from "./chunk-NRNAHZ57.mjs";
|
|
175
|
-
import {
|
|
176
|
-
resolveFarmServerComponentsMode
|
|
177
|
-
} from "./chunk-PAKCHVUS.mjs";
|
|
178
175
|
import {
|
|
179
176
|
routeRulesToNitroRouteRules
|
|
180
177
|
} from "./chunk-X3XUZWRB.mjs";
|
|
178
|
+
import {
|
|
179
|
+
applyFarmCspHashesToHtml,
|
|
180
|
+
createFarmCspNonce
|
|
181
|
+
} from "./chunk-22W4FNTG.mjs";
|
|
182
|
+
import {
|
|
183
|
+
resolveFarmServerComponentsMode
|
|
184
|
+
} from "./chunk-CJNAUEVC.mjs";
|
|
185
|
+
import {
|
|
186
|
+
getFarmAppDirectories
|
|
187
|
+
} from "./chunk-52Y3C3HG.mjs";
|
|
181
188
|
import {
|
|
182
189
|
REACT_RENDERER,
|
|
183
190
|
getFarmRendererCapabilities,
|
|
@@ -187,13 +194,6 @@ import {
|
|
|
187
194
|
loadFarmRendererVitePlugins,
|
|
188
195
|
resolveFarmRendererAppSetup
|
|
189
196
|
} from "./chunk-ES2LD2YD.mjs";
|
|
190
|
-
import {
|
|
191
|
-
applyFarmCspHashesToHtml,
|
|
192
|
-
createFarmCspNonce
|
|
193
|
-
} from "./chunk-22W4FNTG.mjs";
|
|
194
|
-
import {
|
|
195
|
-
getFarmAppDirectories
|
|
196
|
-
} from "./chunk-52Y3C3HG.mjs";
|
|
197
197
|
import {
|
|
198
198
|
createBundledEnv
|
|
199
199
|
} from "./chunk-N33DLJBC.mjs";
|
|
@@ -264,7 +264,7 @@ import {
|
|
|
264
264
|
} from "./chunk-2I6PUKWJ.mjs";
|
|
265
265
|
import {
|
|
266
266
|
FARM_VERSION
|
|
267
|
-
} from "./chunk-
|
|
267
|
+
} from "./chunk-MPIGW42F.mjs";
|
|
268
268
|
import {
|
|
269
269
|
getFarmPresetRuntime
|
|
270
270
|
} from "./chunk-UAQD67HM.mjs";
|
|
@@ -9350,6 +9350,10 @@ ${hasServerRuntimeIntegrations ? `
|
|
|
9350
9350
|
renderPage: (targetRequest) => fetchFarmInnerRequest(targetRequest, adapterContext),
|
|
9351
9351
|
// The client CSS this build emitted, embedded once it settled (FARM_NATIVE_STYLESHEETS).
|
|
9352
9352
|
loadStylesheet: (href) => farmNativeStylesheets[href],
|
|
9353
|
+
// Behind a TLS-terminating proxy, links and form actions use the forwarded origin.
|
|
9354
|
+
origin: resolveFarmWebRequestOrigin(request, {
|
|
9355
|
+
trustProxy: farmServerConfig.trustProxy === true,
|
|
9356
|
+
}),
|
|
9353
9357
|
});
|
|
9354
9358
|
return applyProductionMiddlewareHeaders(treeResponse, middlewareHeaders);
|
|
9355
9359
|
}
|
|
@@ -11199,6 +11203,7 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
|
|
|
11199
11203
|
buildDir: path10.join(root, distDir),
|
|
11200
11204
|
clientOutputDir,
|
|
11201
11205
|
webEntry: clientJsSrc,
|
|
11206
|
+
webBoot: clientBootSrc,
|
|
11202
11207
|
stylesheet: clientCssHref,
|
|
11203
11208
|
webFiles: clientModulePreloads?.files ?? []
|
|
11204
11209
|
})
|