@farm.js/core 0.1.21 → 0.1.22
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/{app-D_6nTit-.d.mts → app-0e-oTC_R.d.mts} +7 -0
- package/dist/{app-DAyPE-gr.d.ts → app-B7qKw8Ny.d.ts} +7 -0
- package/dist/{chunk-Q2TUENW2.cjs → chunk-2HCEC2YO.cjs} +1 -1
- package/dist/{chunk-53G3OLTA.mjs → chunk-AAWTJW2G.mjs} +215 -53
- package/dist/{chunk-OLYK7EAK.mjs → chunk-DAATZTKJ.mjs} +14 -0
- package/dist/{chunk-RWXZKZXB.cjs → chunk-EXUMQVY3.cjs} +166 -205
- package/dist/{chunk-NRS46D4L.mjs → chunk-GKT4ONKN.mjs} +1 -1
- package/dist/{chunk-YP5JZ4LF.cjs → chunk-GXXONIAR.cjs} +3 -3
- package/dist/{chunk-W7MZXRXM.mjs → chunk-ONMW3EVV.mjs} +1 -1
- package/dist/{chunk-L7ARWZYT.cjs → chunk-P5HSJCXI.cjs} +441 -279
- package/dist/{chunk-5L6NBNHI.mjs → chunk-PC33YKTC.mjs} +32 -71
- package/dist/{chunk-TFAXUHWX.cjs → chunk-PSV6XKPO.cjs} +15 -1
- package/dist/{chunk-ZE6ONQ5R.cjs → chunk-Q3PX2TGL.cjs} +2 -2
- package/dist/{chunk-XFFQSD2F.cjs → chunk-SO7CRMP6.cjs} +2 -2
- package/dist/{chunk-RMIJFZU3.mjs → chunk-SPSQFO3Z.mjs} +1 -1
- package/dist/{chunk-PKO4FCTL.mjs → chunk-X2ZUD4GI.mjs} +1 -1
- package/dist/{devtools-R6MDDAZK.cjs → devtools-6DQHO7EK.cjs} +3 -3
- package/dist/{devtools-MTB5SA2B.mjs → devtools-EZ5ORGAK.mjs} +2 -2
- package/dist/docs.cjs +4 -4
- package/dist/docs.mjs +3 -3
- package/dist/index.cjs +8 -8
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +7 -7
- package/dist/internal/build-runtime.cjs +8 -8
- package/dist/internal/build-runtime.mjs +7 -7
- package/dist/internal/cli-runtime.cjs +4 -4
- package/dist/internal/cli-runtime.mjs +3 -3
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/config-runtime.cjs +3 -3
- package/dist/internal/config-runtime.mjs +2 -2
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/plugin.cjs +5 -5
- package/dist/plugin.mjs +4 -4
- package/dist/renderer.cjs +4 -2
- package/dist/renderer.d.mts +9 -1
- package/dist/renderer.d.ts +9 -1
- package/dist/renderer.mjs +3 -1
- package/dist/server.cjs +22 -28
- package/dist/server.d.mts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.mjs +7 -13
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +5 -5
- package/dist/vite.mjs +4 -4
- package/package.json +7 -3
package/dist/server.cjs
CHANGED
|
@@ -16,7 +16,7 @@ require('./chunk-G3HRIVEY.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkGXXONIARcjs = require('./chunk-GXXONIAR.cjs');
|
|
20
20
|
require('./chunk-KR6CKSXT.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
@@ -41,8 +41,9 @@ require('./chunk-SK35NQKK.cjs');
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
require('./chunk-
|
|
44
|
+
|
|
45
|
+
var _chunkP5HSJCXIcjs = require('./chunk-P5HSJCXI.cjs');
|
|
46
|
+
require('./chunk-SO7CRMP6.cjs');
|
|
46
47
|
|
|
47
48
|
|
|
48
49
|
var _chunkE2ROOWQCcjs = require('./chunk-E2ROOWQC.cjs');
|
|
@@ -81,7 +82,7 @@ var _chunkY4YMF2NQcjs = require('./chunk-Y4YMF2NQ.cjs');
|
|
|
81
82
|
|
|
82
83
|
|
|
83
84
|
|
|
84
|
-
var
|
|
85
|
+
var _chunkPSV6XKPOcjs = require('./chunk-PSV6XKPO.cjs');
|
|
85
86
|
require('./chunk-ISTFC3MZ.cjs');
|
|
86
87
|
require('./chunk-YFPGHF5F.cjs');
|
|
87
88
|
require('./chunk-6EXBPJ24.cjs');
|
|
@@ -190,7 +191,7 @@ require('./chunk-QNPEUFHQ.cjs');
|
|
|
190
191
|
var _chunkUQZ4AYTHcjs = require('./chunk-UQZ4AYTH.cjs');
|
|
191
192
|
|
|
192
193
|
|
|
193
|
-
var
|
|
194
|
+
var _chunk2HCEC2YOcjs = require('./chunk-2HCEC2YO.cjs');
|
|
194
195
|
require('./chunk-OYEUREB6.cjs');
|
|
195
196
|
require('./chunk-7W3CPVXS.cjs');
|
|
196
197
|
require('./chunk-NZKJGRB3.cjs');
|
|
@@ -289,7 +290,7 @@ function createBrandingPlugin() {
|
|
|
289
290
|
const pc = _chunkM2L4MYDQcjs.createCliColors.call(void 0, );
|
|
290
291
|
console.log("");
|
|
291
292
|
console.log(
|
|
292
|
-
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${
|
|
293
|
+
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${_chunk2HCEC2YOcjs.FARM_VERSION}`)} ${pc.dim(`ready in ${elapsed}ms`)}`
|
|
293
294
|
);
|
|
294
295
|
console.log("");
|
|
295
296
|
console.log(
|
|
@@ -354,8 +355,8 @@ async function createServer(config = {}, options = {}) {
|
|
|
354
355
|
try {
|
|
355
356
|
const root = config.root || process.cwd();
|
|
356
357
|
const mode = process.env.NODE_ENV === "production" ? "production" : "development";
|
|
357
|
-
const userConfig = await
|
|
358
|
-
const resolvedConfig = userConfig ? await
|
|
358
|
+
const userConfig = await _chunkGXXONIARcjs.loadConfig.call(void 0, root, void 0, mode);
|
|
359
|
+
const resolvedConfig = userConfig ? await _chunkGXXONIARcjs.resolveConfig.call(void 0, userConfig, mode) : null;
|
|
359
360
|
const instrumentationConfig = resolvedConfig || config;
|
|
360
361
|
const instrumentationRoot = instrumentationConfig.root || root;
|
|
361
362
|
const instrumentationFile = _chunkRTHIVJ2Gcjs.resolveFarmInstrumentationFile.call(void 0,
|
|
@@ -372,7 +373,7 @@ async function createServer(config = {}, options = {}) {
|
|
|
372
373
|
runtime: "nodejs"
|
|
373
374
|
});
|
|
374
375
|
await instrumentation.start();
|
|
375
|
-
pluginManager = new (0,
|
|
376
|
+
pluginManager = new (0, _chunkP5HSJCXIcjs.PluginManager)({
|
|
376
377
|
config: resolvedConfig || config,
|
|
377
378
|
isDev: mode === "development",
|
|
378
379
|
isProd: mode === "production"
|
|
@@ -408,9 +409,9 @@ async function createServer(config = {}, options = {}) {
|
|
|
408
409
|
await pluginManager.runHookParallel("init");
|
|
409
410
|
let finalConfig = resolvedConfig || config;
|
|
410
411
|
finalConfig = await pluginManager.runHookSerial("config", finalConfig);
|
|
411
|
-
finalConfig.renderer =
|
|
412
|
+
finalConfig.renderer = _chunkPSV6XKPOcjs.resolveFarmRenderer.call(void 0, finalConfig.renderer);
|
|
412
413
|
const projectRoot = finalConfig.root || process.cwd();
|
|
413
|
-
const rendererVitePlugins = await
|
|
414
|
+
const rendererVitePlugins = await _chunkPSV6XKPOcjs.loadFarmRendererVitePlugins.call(void 0,
|
|
414
415
|
finalConfig.renderer,
|
|
415
416
|
projectRoot,
|
|
416
417
|
{ ssr: true }
|
|
@@ -420,28 +421,21 @@ async function createServer(config = {}, options = {}) {
|
|
|
420
421
|
if (shouldUseProjectPostcss) {
|
|
421
422
|
_chunk5QIKR7RRcjs.logger.info("\u{1F4E6} Using project PostCSS/Tailwind configuration");
|
|
422
423
|
} else {
|
|
423
|
-
|
|
424
|
-
const tailwindcss = (await import("@tailwindcss/vite")).default;
|
|
425
|
-
tailwindVitePlugin = tailwindcss();
|
|
426
|
-
} catch (error) {
|
|
427
|
-
_chunk5QIKR7RRcjs.logger.warn(
|
|
428
|
-
`Tailwind plugin auto-enable failed; continuing without it: ${error.message}`
|
|
429
|
-
);
|
|
430
|
-
}
|
|
424
|
+
tailwindVitePlugin = await _chunkP5HSJCXIcjs.loadTailwindVitePlugin.call(void 0, );
|
|
431
425
|
}
|
|
432
426
|
const server = await _vite.createServer.call(void 0,
|
|
433
|
-
|
|
427
|
+
_chunkP5HSJCXIcjs.mergeFarmViteConfig.call(void 0,
|
|
434
428
|
{
|
|
435
429
|
root: projectRoot,
|
|
436
430
|
css: shouldUseProjectPostcss ? void 0 : { postcss: { plugins: [] } },
|
|
437
431
|
plugins: [
|
|
438
|
-
|
|
432
|
+
_chunkP5HSJCXIcjs.createFarmThemeCssPlugin.call(void 0, finalConfig.theme, finalConfig.basePath),
|
|
439
433
|
...tailwindVitePlugin ? [tailwindVitePlugin] : [],
|
|
440
434
|
...rendererVitePlugins,
|
|
441
435
|
createDevDependencyStubsPlugin(),
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
436
|
+
_chunkP5HSJCXIcjs.farmI18nClientBridgePlugin.call(void 0, ),
|
|
437
|
+
_chunkP5HSJCXIcjs.farmServerOnlyEntriesPlugin.call(void 0, ),
|
|
438
|
+
_chunkP5HSJCXIcjs.farmPlugin.call(void 0, finalConfig, pluginManager),
|
|
445
439
|
_chunk22GUSVNJcjs.farmEnvironmentFunctionsPlugin.call(void 0, ),
|
|
446
440
|
createBrandingPlugin()
|
|
447
441
|
],
|
|
@@ -455,8 +449,8 @@ async function createServer(config = {}, options = {}) {
|
|
|
455
449
|
dedupe: [...finalConfig.renderer.dedupe || []]
|
|
456
450
|
},
|
|
457
451
|
optimizeDeps: {
|
|
458
|
-
...
|
|
459
|
-
|
|
452
|
+
..._chunkP5HSJCXIcjs.createFarmClientOptimizeDepsConfig.call(void 0,
|
|
453
|
+
_chunkP5HSJCXIcjs.createFarmClientOptimizeDepsEntries.call(void 0, projectRoot, _chunkY4YMF2NQcjs.getFarmAppDirectories.call(void 0, finalConfig)),
|
|
460
454
|
finalConfig.renderer
|
|
461
455
|
),
|
|
462
456
|
exclude: [
|
|
@@ -558,7 +552,7 @@ async function createServer(config = {}, options = {}) {
|
|
|
558
552
|
await step("Instrumentation shutdown", () => _optionalChain([instrumentation, 'optionalAccess', _15 => _15.shutdown, 'call', _16 => _16()]));
|
|
559
553
|
if (failures.length === 1) throw failures[0].error;
|
|
560
554
|
if (failures.length > 1) {
|
|
561
|
-
throw new (0,
|
|
555
|
+
throw new (0, _chunkP5HSJCXIcjs.FarmRuntimeShutdownError)(
|
|
562
556
|
`Dev server shutdown failed during ${failures.map(({ label }) => label).join(", ")}`,
|
|
563
557
|
failures.map(({ error }) => error)
|
|
564
558
|
);
|
|
@@ -723,4 +717,4 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, startDevServer, "startDevServer");
|
|
|
723
717
|
|
|
724
718
|
|
|
725
719
|
|
|
726
|
-
exports.DEFAULT_FARM_DEV_SERVER_PORT = DEFAULT_FARM_DEV_SERVER_PORT; exports.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT = _chunkT5CERMEHcjs.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT; exports.FARM_SERVER_QUERY_SYMBOL = _chunkZMN3H73Hcjs.FARM_SERVER_QUERY_SYMBOL; exports.FarmApp =
|
|
720
|
+
exports.DEFAULT_FARM_DEV_SERVER_PORT = DEFAULT_FARM_DEV_SERVER_PORT; exports.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT = _chunkT5CERMEHcjs.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT; exports.FARM_SERVER_QUERY_SYMBOL = _chunkZMN3H73Hcjs.FARM_SERVER_QUERY_SYMBOL; exports.FarmApp = _chunkP5HSJCXIcjs.FarmApp; exports.FarmDataCache = _chunkH6G5INWMcjs.FarmDataCache; exports.FarmEnvironmentError = _chunkW4E7WMXEcjs.FarmEnvironmentError; exports.RouteManager = _chunkP5HSJCXIcjs.RouteManager; exports.ServerActionRequestError = _chunkT5CERMEHcjs.ServerActionRequestError; exports.ServerRenderer = _chunkP5HSJCXIcjs.ServerRenderer; exports._runWithAfterNodeResponse = _chunkMQ3H6LT5cjs._runWithAfterNodeResponse; exports._runWithAfterRequest = _chunkMQ3H6LT5cjs._runWithAfterRequest; exports._withAfterNodeMiddleware = _chunkMQ3H6LT5cjs._withAfterNodeMiddleware; exports.after = _chunkMQ3H6LT5cjs.after; exports.applyFarmCacheInvalidationTargets = _chunkH6G5INWMcjs.applyFarmCacheInvalidationTargets; exports.applyFarmCacheInvalidations = _chunkZEG3OPIBcjs.applyFarmCacheInvalidations; exports.configureFarmCache = _chunkH6G5INWMcjs.configureFarmCache; exports.createClientOnlyFn = _chunkW4E7WMXEcjs.createClientOnlyFn; exports.createFarmApp = _chunkP5HSJCXIcjs.createFarmApp; exports.createFarmCacheInvalidationStream = _chunkH6G5INWMcjs.createFarmCacheInvalidationStream; exports.createFarmCacheKey = _chunkH6G5INWMcjs.createFarmCacheKey; exports.createFarmConfigResolutionPlugin = _chunkY4YMF2NQcjs.createFarmConfigResolutionPlugin; exports.createFarmStorage = _chunk4ZFL5GFNcjs.createFarmStorage; exports.createIsomorphicFn = _chunkW4E7WMXEcjs.createIsomorphicFn; exports.createPathCacheTag = _chunkH6G5INWMcjs.createPathCacheTag; exports.createRouteDataCacheKey = _chunkH6G5INWMcjs.createRouteDataCacheKey; exports.createRouteDataCacheTag = _chunkH6G5INWMcjs.createRouteDataCacheTag; exports.createServer = createServer; exports.createServerActionRequestErrorResponse = _chunkT5CERMEHcjs.createServerActionRequestErrorResponse; exports.createServerOnlyFn = _chunkW4E7WMXEcjs.createServerOnlyFn; exports.createServerQuery = _chunkZMN3H73Hcjs.createServerQuery; exports.createStorageClient = _chunk4ZFL5GFNcjs.createStorageClient; exports.databaseStorage = _chunk4ZFL5GFNcjs.databaseStorage; exports.defineCacheKey = _chunkH6G5INWMcjs.defineCacheKey; exports.defineConfig = _chunkP5HSJCXIcjs.defineConfig; exports.defineStorageClient = _chunk4ZFL5GFNcjs.defineStorageClient; exports.disposeStorage = _chunk4ZFL5GFNcjs.disposeStorage; exports.driverStorage = _chunk4ZFL5GFNcjs.driverStorage; exports.farmPlugin = _chunkP5HSJCXIcjs.farmPlugin; exports.fileExists = _chunk5QIKR7RRcjs.fileExists; exports.getCurrentRequest = _chunk5ZSWG4UXcjs.getCurrentRequest; exports.getFarmAppDirectories = _chunkY4YMF2NQcjs.getFarmAppDirectories; exports.getFarmDataCache = _chunkH6G5INWMcjs.getFarmDataCache; exports.getFarmLayerAliases = _chunkY4YMF2NQcjs.getFarmLayerAliases; exports.getFarmSourceRoots = _chunkY4YMF2NQcjs.getFarmSourceRoots; exports.getServerActionExecutionContext = _chunkT5CERMEHcjs.getServerActionExecutionContext; exports.getServerActionInvalidations = _chunkT5CERMEHcjs.getServerActionInvalidations; exports.getServerActionSignal = _chunkT5CERMEHcjs.getServerActionSignal; exports.getStorage = _chunk4ZFL5GFNcjs.getStorage; exports.getTheme = _chunkXWAWFQFScjs.getTheme; exports.getThemeSnapshot = _chunkXWAWFQFScjs.getThemeSnapshot; exports.globFiles = _chunk5QIKR7RRcjs.globFiles; exports.initStorage = _chunk4ZFL5GFNcjs.initStorage; exports.invalidate = _chunkH6G5INWMcjs.invalidate; exports.invalidateRouteData = _chunkH6G5INWMcjs.invalidateRouteData; exports.libsqlStorage = _chunk4ZFL5GFNcjs.libsqlStorage; exports.loadFarmConfigFile = _chunkY4YMF2NQcjs.loadFarmConfigFile; exports.localStorage = _chunk4ZFL5GFNcjs.localStorage; exports.logger = _chunk5QIKR7RRcjs.logger; exports.matchRoute = _chunk5QIKR7RRcjs.matchRoute; exports.matchRouteParts = _chunk5QIKR7RRcjs.matchRouteParts; exports.matchRoutePrefix = _chunk5QIKR7RRcjs.matchRoutePrefix; exports.matchRoutePrefixParts = _chunk5QIKR7RRcjs.matchRoutePrefixParts; exports.memoryStorage = _chunk4ZFL5GFNcjs.memoryStorage; exports.mongodbStorage = _chunk4ZFL5GFNcjs.mongodbStorage; exports.mysql2Storage = _chunk4ZFL5GFNcjs.mysql2Storage; exports.mysqlStorage = _chunk4ZFL5GFNcjs.mysqlStorage; exports.netlifyBlobsStorage = _chunk4ZFL5GFNcjs.netlifyBlobsStorage; exports.normalizeRevalidatePath = _chunkH6G5INWMcjs.normalizeRevalidatePath; exports.parseRoutePath = _chunk5QIKR7RRcjs.parseRoutePath; exports.parseSearchParams = _chunk5QIKR7RRcjs.parseSearchParams; exports.pgStorage = _chunk4ZFL5GFNcjs.pgStorage; exports.pgliteStorage = _chunk4ZFL5GFNcjs.pgliteStorage; exports.planetscaleStorage = _chunk4ZFL5GFNcjs.planetscaleStorage; exports.postgresStorage = _chunk4ZFL5GFNcjs.postgresStorage; exports.prepareServerActionRequest = _chunkT5CERMEHcjs.prepareServerActionRequest; exports.redisStorage = _chunk4ZFL5GFNcjs.redisStorage; exports.resolveAppPath = _chunk5QIKR7RRcjs.resolveAppPath; exports.resolveFarmLayers = _chunkY4YMF2NQcjs.resolveFarmLayers; exports.resolveServerActionsConfig = _chunkT5CERMEHcjs.resolveServerActionsConfig; exports.resolveStorageRuntimeClient = _chunk4ZFL5GFNcjs.resolveStorageRuntimeClient; exports.revalidatePath = _chunkH6G5INWMcjs.revalidatePath; exports.revalidateTag = _chunkH6G5INWMcjs.revalidateTag; exports.runWithServerActionRequest = _chunkT5CERMEHcjs.runWithServerActionRequest; exports.s3Storage = _chunk4ZFL5GFNcjs.s3Storage; exports.sanitizeServerActionError = _chunkT5CERMEHcjs.sanitizeServerActionError; exports.segmentsToPattern = _chunk5QIKR7RRcjs.segmentsToPattern; exports.sendWebResponse = _chunkUQZ4AYTHcjs.sendWebResponse; exports.splitRoutePath = _chunk5QIKR7RRcjs.splitRoutePath; exports.sqliteStorage = _chunk4ZFL5GFNcjs.sqliteStorage; exports.startDevServer = startDevServer; exports.storageCacheAdapter = _chunkH6G5INWMcjs.storageCacheAdapter; exports.toPosixPath = _chunk5QIKR7RRcjs.toPosixPath; exports.toRootRelativeUrlPath = _chunk5QIKR7RRcjs.toRootRelativeUrlPath; exports.toViteModuleId = _chunk5QIKR7RRcjs.toViteModuleId; exports.unstable_cache = _chunkH6G5INWMcjs.unstable_cache; exports.updateTag = _chunkH6G5INWMcjs.updateTag; exports.upstashStorage = _chunk4ZFL5GFNcjs.upstashStorage; exports.validateServerActionRequest = _chunkT5CERMEHcjs.validateServerActionRequest; exports.vercelBlobStorage = _chunk4ZFL5GFNcjs.vercelBlobStorage; exports.vercelKVStorage = _chunk4ZFL5GFNcjs.vercelKVStorage;
|
package/dist/server.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { F as FarmApp, R as RouteManager, S as ServerRenderer, c as createFarmApp } from './app-
|
|
1
|
+
export { F as FarmApp, R as RouteManager, S as ServerRenderer, c as createFarmApp } from './app-0e-oTC_R.mjs';
|
|
2
2
|
import { G as FarmConfig } from './client-plugins-CWrhb1ir.mjs';
|
|
3
3
|
export { K as AppRoutePattern, ab as BuildOptions, a3 as ErrorBoundary, Y as ErrorProps, m as FarmAppContext, J as FarmComponentType, B as FarmContextFactory, V as FarmContextFactoryInput, W as FarmIsolatedClientHydrationMode, ag as FarmLayerEntry, ak as FarmLayerResolution, Q as FarmMigrationCommand, S as FarmMigrationsConfig, T as FarmMigrationsUserConfig, e as FarmRequest, f as FarmResponse, ai as FarmSourceRoot, a7 as GenerateStaticParams, a1 as Layout, $ as LayoutMetadataProps, a8 as LayoutModule, L as LayoutProps, a2 as Loading, X as LoadingProps, M as Metadata, a9 as MetadataJsonLd, _ as MetadataProps, af as MetadataRobots, ae as MetadataRobotsDirectives, C as MiddlewareProps, O as NitroPreset, a0 as Page, o as PageProps, Z as PagePropsWithMiddleware, N as PageRouteParams, P as ParsedRoute, q as PluginContextProps, aj as ResolveFarmLayersOptions, ah as ResolvedFarmLayer, U as ResolvedFarmMigrationsConfig, s as RouteModule, R as RouteSegment, ad as SSGCollectionResult, ac as SSGPage, aa as ServerAction, a5 as StaticPathParams, a4 as StaticPathPrimitive, a6 as StaticRouteParams, ap as createFarmConfigResolutionPlugin, I as defineConfig, H as farmPlugin, an as getFarmAppDirectories, ao as getFarmLayerAliases, am as getFarmSourceRoots, aq as loadFarmConfigFile, al as resolveFarmLayers } from './client-plugins-CWrhb1ir.mjs';
|
|
4
4
|
export { g as fileExists, h as globFiles, l as logger, m as matchRoute, b as matchRouteParts, c as matchRoutePrefix, d as matchRoutePrefixParts, p as parseRoutePath, i as parseSearchParams, r as resolveAppPath, s as segmentsToPattern, a as splitRoutePath, e as toPosixPath, t as toRootRelativeUrlPath, f as toViteModuleId } from './utils-DSPx34-A.mjs';
|
package/dist/server.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { F as FarmApp, R as RouteManager, S as ServerRenderer, c as createFarmApp } from './app-
|
|
1
|
+
export { F as FarmApp, R as RouteManager, S as ServerRenderer, c as createFarmApp } from './app-B7qKw8Ny.js';
|
|
2
2
|
import { G as FarmConfig } from './client-plugins-DPf0qZey.js';
|
|
3
3
|
export { K as AppRoutePattern, ab as BuildOptions, a3 as ErrorBoundary, Y as ErrorProps, m as FarmAppContext, J as FarmComponentType, B as FarmContextFactory, V as FarmContextFactoryInput, W as FarmIsolatedClientHydrationMode, ag as FarmLayerEntry, ak as FarmLayerResolution, Q as FarmMigrationCommand, S as FarmMigrationsConfig, T as FarmMigrationsUserConfig, e as FarmRequest, f as FarmResponse, ai as FarmSourceRoot, a7 as GenerateStaticParams, a1 as Layout, $ as LayoutMetadataProps, a8 as LayoutModule, L as LayoutProps, a2 as Loading, X as LoadingProps, M as Metadata, a9 as MetadataJsonLd, _ as MetadataProps, af as MetadataRobots, ae as MetadataRobotsDirectives, C as MiddlewareProps, O as NitroPreset, a0 as Page, o as PageProps, Z as PagePropsWithMiddleware, N as PageRouteParams, P as ParsedRoute, q as PluginContextProps, aj as ResolveFarmLayersOptions, ah as ResolvedFarmLayer, U as ResolvedFarmMigrationsConfig, s as RouteModule, R as RouteSegment, ad as SSGCollectionResult, ac as SSGPage, aa as ServerAction, a5 as StaticPathParams, a4 as StaticPathPrimitive, a6 as StaticRouteParams, ap as createFarmConfigResolutionPlugin, I as defineConfig, H as farmPlugin, an as getFarmAppDirectories, ao as getFarmLayerAliases, am as getFarmSourceRoots, aq as loadFarmConfigFile, al as resolveFarmLayers } from './client-plugins-DPf0qZey.js';
|
|
4
4
|
export { g as fileExists, h as globFiles, l as logger, m as matchRoute, b as matchRouteParts, c as matchRoutePrefix, d as matchRoutePrefixParts, p as parseRoutePath, i as parseSearchParams, r as resolveAppPath, s as segmentsToPattern, a as splitRoutePath, e as toPosixPath, t as toRootRelativeUrlPath, f as toViteModuleId } from './utils-Dvuny_08.js';
|
package/dist/server.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import "./chunk-WD4YXVLV.mjs";
|
|
|
15
15
|
import {
|
|
16
16
|
loadConfig,
|
|
17
17
|
resolveConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SPSQFO3Z.mjs";
|
|
19
19
|
import "./chunk-XZNTNMHT.mjs";
|
|
20
20
|
import {
|
|
21
21
|
loadFarmInstrumentation,
|
|
@@ -39,9 +39,10 @@ import {
|
|
|
39
39
|
farmI18nClientBridgePlugin,
|
|
40
40
|
farmPlugin,
|
|
41
41
|
farmServerOnlyEntriesPlugin,
|
|
42
|
+
loadTailwindVitePlugin,
|
|
42
43
|
mergeFarmViteConfig
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
44
|
+
} from "./chunk-AAWTJW2G.mjs";
|
|
45
|
+
import "./chunk-GKT4ONKN.mjs";
|
|
45
46
|
import {
|
|
46
47
|
readSchemaTables
|
|
47
48
|
} from "./chunk-HALDNTIV.mjs";
|
|
@@ -80,7 +81,7 @@ import {
|
|
|
80
81
|
import {
|
|
81
82
|
loadFarmRendererVitePlugins,
|
|
82
83
|
resolveFarmRenderer
|
|
83
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-DAATZTKJ.mjs";
|
|
84
85
|
import "./chunk-7BC6GAL7.mjs";
|
|
85
86
|
import "./chunk-G2KY33I6.mjs";
|
|
86
87
|
import "./chunk-YHOCRI4H.mjs";
|
|
@@ -189,7 +190,7 @@ import {
|
|
|
189
190
|
} from "./chunk-Z2RZJZIZ.mjs";
|
|
190
191
|
import {
|
|
191
192
|
FARM_VERSION
|
|
192
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-X2ZUD4GI.mjs";
|
|
193
194
|
import "./chunk-54UPOYFS.mjs";
|
|
194
195
|
import "./chunk-WNSDDRNU.mjs";
|
|
195
196
|
import "./chunk-JPLUGGRV.mjs";
|
|
@@ -419,14 +420,7 @@ async function createServer(config = {}, options = {}) {
|
|
|
419
420
|
if (shouldUseProjectPostcss) {
|
|
420
421
|
logger.info("\u{1F4E6} Using project PostCSS/Tailwind configuration");
|
|
421
422
|
} else {
|
|
422
|
-
|
|
423
|
-
const tailwindcss = (await import("@tailwindcss/vite")).default;
|
|
424
|
-
tailwindVitePlugin = tailwindcss();
|
|
425
|
-
} catch (error) {
|
|
426
|
-
logger.warn(
|
|
427
|
-
`Tailwind plugin auto-enable failed; continuing without it: ${error.message}`
|
|
428
|
-
);
|
|
429
|
-
}
|
|
423
|
+
tailwindVitePlugin = await loadTailwindVitePlugin();
|
|
430
424
|
}
|
|
431
425
|
const server = await createViteServer(
|
|
432
426
|
mergeFarmViteConfig(
|
package/dist/version.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk2HCEC2YOcjs = require('./chunk-2HCEC2YO.cjs');
|
|
4
4
|
require('./chunk-S3JO3N4H.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.FARM_VERSION =
|
|
7
|
+
exports.FARM_VERSION = _chunk2HCEC2YOcjs.FARM_VERSION;
|
package/dist/version.mjs
CHANGED
package/dist/vite.cjs
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
require('./chunk-
|
|
12
|
+
var _chunkP5HSJCXIcjs = require('./chunk-P5HSJCXI.cjs');
|
|
13
|
+
require('./chunk-SO7CRMP6.cjs');
|
|
14
14
|
require('./chunk-E2ROOWQC.cjs');
|
|
15
15
|
require('./chunk-JSROZYYO.cjs');
|
|
16
16
|
require('./chunk-CIAGU2X4.cjs');
|
|
@@ -32,7 +32,7 @@ require('./chunk-QBPXNZGV.cjs');
|
|
|
32
32
|
require('./chunk-YJRZR7VU.cjs');
|
|
33
33
|
require('./chunk-Q5B3KJBP.cjs');
|
|
34
34
|
require('./chunk-Y4YMF2NQ.cjs');
|
|
35
|
-
require('./chunk-
|
|
35
|
+
require('./chunk-PSV6XKPO.cjs');
|
|
36
36
|
require('./chunk-ISTFC3MZ.cjs');
|
|
37
37
|
require('./chunk-YFPGHF5F.cjs');
|
|
38
38
|
require('./chunk-6EXBPJ24.cjs');
|
|
@@ -77,7 +77,7 @@ require('./chunk-HBTUGXHS.cjs');
|
|
|
77
77
|
require('./chunk-5QIKR7RR.cjs');
|
|
78
78
|
require('./chunk-QNPEUFHQ.cjs');
|
|
79
79
|
require('./chunk-UQZ4AYTH.cjs');
|
|
80
|
-
require('./chunk-
|
|
80
|
+
require('./chunk-2HCEC2YO.cjs');
|
|
81
81
|
require('./chunk-OYEUREB6.cjs');
|
|
82
82
|
require('./chunk-7W3CPVXS.cjs');
|
|
83
83
|
require('./chunk-NZKJGRB3.cjs');
|
|
@@ -117,4 +117,4 @@ require('./chunk-S3JO3N4H.cjs');
|
|
|
117
117
|
|
|
118
118
|
|
|
119
119
|
|
|
120
|
-
exports.createFarmNodeRequestAbortSignal = _chunkEM6SBQKMcjs.createFarmNodeRequestAbortSignal; exports.defineConfig =
|
|
120
|
+
exports.createFarmNodeRequestAbortSignal = _chunkEM6SBQKMcjs.createFarmNodeRequestAbortSignal; exports.defineConfig = _chunkP5HSJCXIcjs.defineConfig; exports.farmI18nClientBridgePlugin = _chunkP5HSJCXIcjs.farmI18nClientBridgePlugin; exports.farmPlugin = _chunkP5HSJCXIcjs.farmPlugin; exports.farmServerOnlyEntriesPlugin = _chunkP5HSJCXIcjs.farmServerOnlyEntriesPlugin; exports.generateClientCachePersistenceCode = _chunkP5HSJCXIcjs.generateClientCachePersistenceCode; exports.resolveFarmClientCacheAdapterEntry = _chunkP5HSJCXIcjs.resolveFarmClientCacheAdapterEntry; exports.rewriteEarlySsrRelativeImports = _chunkP5HSJCXIcjs.rewriteEarlySsrRelativeImports; exports.shouldEmitFarmClientRootHmr = _chunkP5HSJCXIcjs.shouldEmitFarmClientRootHmr; exports.transformIsolatedClientBoundaryModule = _chunkP5HSJCXIcjs.transformIsolatedClientBoundaryModule; exports.withFarmRequestTracing = _chunkP5HSJCXIcjs.withFarmRequestTracing;
|
package/dist/vite.mjs
CHANGED
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
shouldEmitFarmClientRootHmr,
|
|
10
10
|
transformIsolatedClientBoundaryModule,
|
|
11
11
|
withFarmRequestTracing
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-AAWTJW2G.mjs";
|
|
13
|
+
import "./chunk-GKT4ONKN.mjs";
|
|
14
14
|
import "./chunk-HALDNTIV.mjs";
|
|
15
15
|
import "./chunk-ZMSZZXOR.mjs";
|
|
16
16
|
import "./chunk-3NM6SRI6.mjs";
|
|
@@ -32,7 +32,7 @@ import "./chunk-FZC7EEPM.mjs";
|
|
|
32
32
|
import "./chunk-JBSVKMC5.mjs";
|
|
33
33
|
import "./chunk-GHFS7RUB.mjs";
|
|
34
34
|
import "./chunk-IILNZK5G.mjs";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-DAATZTKJ.mjs";
|
|
36
36
|
import "./chunk-7BC6GAL7.mjs";
|
|
37
37
|
import "./chunk-G2KY33I6.mjs";
|
|
38
38
|
import "./chunk-YHOCRI4H.mjs";
|
|
@@ -77,7 +77,7 @@ import "./chunk-YMCXWPWK.mjs";
|
|
|
77
77
|
import "./chunk-KI3MESHB.mjs";
|
|
78
78
|
import "./chunk-QVKYGNVM.mjs";
|
|
79
79
|
import "./chunk-Z2RZJZIZ.mjs";
|
|
80
|
-
import "./chunk-
|
|
80
|
+
import "./chunk-X2ZUD4GI.mjs";
|
|
81
81
|
import "./chunk-54UPOYFS.mjs";
|
|
82
82
|
import "./chunk-WNSDDRNU.mjs";
|
|
83
83
|
import "./chunk-JPLUGGRV.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farm.js/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.22",
|
|
4
4
|
"description": "Core Farm.js framework for modern integrated apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"@farm.js/core",
|
|
@@ -681,7 +681,6 @@
|
|
|
681
681
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
682
682
|
"@mdx-js/mdx": "^3.1.1",
|
|
683
683
|
"@opentelemetry/api": "1.9.1",
|
|
684
|
-
"@tailwindcss/vite": "4.3.3",
|
|
685
684
|
"@vercel/og": "1.0.1",
|
|
686
685
|
"better-call": "^1.0.19",
|
|
687
686
|
"db0": "^0.3.4",
|
|
@@ -698,7 +697,6 @@
|
|
|
698
697
|
"remark-gfm": "^4.0.1",
|
|
699
698
|
"sugar-high": "^0.9.5",
|
|
700
699
|
"supports-color": "^10.2.2",
|
|
701
|
-
"tailwindcss": "4.3.3",
|
|
702
700
|
"unstorage": "2.0.0-alpha.10",
|
|
703
701
|
"vite": "8.3.4",
|
|
704
702
|
"zod": "^4.1.12"
|
|
@@ -707,22 +705,28 @@
|
|
|
707
705
|
"@clerk/react": "^6.4.3",
|
|
708
706
|
"@opentelemetry/sdk-node": "0.221.0",
|
|
709
707
|
"@opentelemetry/sdk-trace-base": "2.10.0",
|
|
708
|
+
"@tailwindcss/vite": "4.3.3",
|
|
710
709
|
"@types/react": "^18.2.45",
|
|
711
710
|
"@types/react-dom": "^18.2.18",
|
|
712
711
|
"@vitest/coverage-v8": "5.0.5",
|
|
713
712
|
"jsdom": "^25.0.0",
|
|
714
713
|
"react": "19.2.8",
|
|
715
714
|
"react-dom": "19.2.8",
|
|
715
|
+
"tailwindcss": "4.3.3",
|
|
716
716
|
"tsup": "^8.3.5",
|
|
717
717
|
"typescript": "^5.3.3",
|
|
718
718
|
"vitest": "5.0.5",
|
|
719
719
|
"@farm.js/renderer-tests": "0.0.0"
|
|
720
720
|
},
|
|
721
721
|
"peerDependencies": {
|
|
722
|
+
"@tailwindcss/vite": "^4.3.3",
|
|
722
723
|
"react": "^18.2.0 || ^19.0.0",
|
|
723
724
|
"react-dom": "^18.2.0 || ^19.0.0"
|
|
724
725
|
},
|
|
725
726
|
"peerDependenciesMeta": {
|
|
727
|
+
"@tailwindcss/vite": {
|
|
728
|
+
"optional": true
|
|
729
|
+
},
|
|
726
730
|
"react": {
|
|
727
731
|
"optional": true
|
|
728
732
|
},
|