@farm.js/core 0.1.0-beta.7 → 0.1.0-beta.9
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/{chunk-6F5OI5GA.mjs → chunk-65IMMCVO.mjs} +2 -2
- package/dist/{chunk-6F5OI5GA.mjs.map → chunk-65IMMCVO.mjs.map} +1 -1
- package/dist/{chunk-5VYHFKWE.mjs → chunk-MKGGT7CR.mjs} +2 -2
- package/dist/{chunk-GFMBXLGP.mjs → chunk-TBIEUO4O.mjs} +7 -10
- package/dist/chunk-TBIEUO4O.mjs.map +1 -0
- package/dist/index.cjs +6 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.mjs +3 -3
- package/dist/internal/build-runtime.cjs +6 -9
- package/dist/internal/build-runtime.cjs.map +1 -1
- package/dist/internal/build-runtime.mjs +3 -3
- package/dist/plugin.mjs +2 -2
- package/dist/server.cjs +1 -1
- package/dist/server.cjs.map +1 -1
- package/dist/server.mjs +2 -2
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +1 -1
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-GFMBXLGP.mjs.map +0 -1
- /package/dist/{chunk-5VYHFKWE.mjs.map → chunk-MKGGT7CR.mjs.map} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -4,7 +4,8 @@ export { f as fileExists, g as globFiles, l as logger, m as matchRoute, p as par
|
|
|
4
4
|
export { createFarmStorage, createStorageClient, databaseStorage, defineStorageClient, disposeStorage, driverStorage, getStorage, initStorage, libsqlStorage, localStorage, memoryStorage, mongodbStorage, mysql2Storage, mysqlStorage, netlifyBlobsStorage, pgStorage, pgliteStorage, planetscaleStorage, postgresStorage, redisStorage, resolveStorageRuntimeClient, s3Storage, sqliteStorage, upstashStorage, vercelBlobStorage, vercelKVStorage } from './storage.mjs';
|
|
5
5
|
export { F as FarmIntegrationAPI, e as FarmIntegrationAPIBodyFormat, f as FarmIntegrationAPIMethod, a as FarmIntegrationAPIOperation, g as FarmIntegrationAPIResponseFormat, h as FarmIntegrationRouteOperationCarrier, I as InferIntegrationAPIFromRoutes, b as api, d as defineIntegrationAPI, c as defineIntegrationAPIOperation, i as endpoint } from './integration-api-CHT2OKAf.mjs';
|
|
6
6
|
export { c as createFarmApp } from './app-BWtqQu3R.mjs';
|
|
7
|
-
import
|
|
7
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
|
+
import { ReactNode } from 'react';
|
|
8
9
|
export { ComponentType, FC, PropsWithChildren, ReactElement, ReactNode } from 'react';
|
|
9
10
|
export { g as getCurrentRequest } from './request-Dsq4kGW0.mjs';
|
|
10
11
|
import { ViteDevServer } from 'vite';
|
|
@@ -71,7 +72,7 @@ interface FarmProviderProps {
|
|
|
71
72
|
/**
|
|
72
73
|
* Farm.js context provider for client-side components
|
|
73
74
|
*/
|
|
74
|
-
declare function FarmProvider({ children, config }: FarmProviderProps):
|
|
75
|
+
declare function FarmProvider({ children, config }: FarmProviderProps): react_jsx_runtime.JSX.Element;
|
|
75
76
|
|
|
76
77
|
declare class HMRManager {
|
|
77
78
|
private server;
|
|
@@ -259,7 +260,7 @@ interface ScalarAPIDocumentationProps {
|
|
|
259
260
|
hideTryItPanel?: boolean;
|
|
260
261
|
};
|
|
261
262
|
}
|
|
262
|
-
declare function ScalarAPIDocumentation({ spec, config }: ScalarAPIDocumentationProps):
|
|
263
|
+
declare function ScalarAPIDocumentation({ spec, config }: ScalarAPIDocumentationProps): react_jsx_runtime.JSX.Element;
|
|
263
264
|
declare global {
|
|
264
265
|
interface Window {
|
|
265
266
|
ScalarApiReference: (config: any) => void;
|
|
@@ -270,7 +271,7 @@ interface DocsRouteProps {
|
|
|
270
271
|
spec: any;
|
|
271
272
|
config?: any;
|
|
272
273
|
}
|
|
273
|
-
declare function DocsRoute({ spec, config }: DocsRouteProps):
|
|
274
|
+
declare function DocsRoute({ spec, config }: DocsRouteProps): react_jsx_runtime.JSX.Element;
|
|
274
275
|
|
|
275
276
|
interface GenerateFarmI18nTypesOptions {
|
|
276
277
|
root: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,8 @@ export { f as fileExists, g as globFiles, l as logger, m as matchRoute, p as par
|
|
|
4
4
|
export { createFarmStorage, createStorageClient, databaseStorage, defineStorageClient, disposeStorage, driverStorage, getStorage, initStorage, libsqlStorage, localStorage, memoryStorage, mongodbStorage, mysql2Storage, mysqlStorage, netlifyBlobsStorage, pgStorage, pgliteStorage, planetscaleStorage, postgresStorage, redisStorage, resolveStorageRuntimeClient, s3Storage, sqliteStorage, upstashStorage, vercelBlobStorage, vercelKVStorage } from './storage.js';
|
|
5
5
|
export { F as FarmIntegrationAPI, e as FarmIntegrationAPIBodyFormat, f as FarmIntegrationAPIMethod, a as FarmIntegrationAPIOperation, g as FarmIntegrationAPIResponseFormat, h as FarmIntegrationRouteOperationCarrier, I as InferIntegrationAPIFromRoutes, b as api, d as defineIntegrationAPI, c as defineIntegrationAPIOperation, i as endpoint } from './integration-api-CHT2OKAf.js';
|
|
6
6
|
export { c as createFarmApp } from './app-xltejvLY.js';
|
|
7
|
-
import
|
|
7
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
|
+
import { ReactNode } from 'react';
|
|
8
9
|
export { ComponentType, FC, PropsWithChildren, ReactElement, ReactNode } from 'react';
|
|
9
10
|
export { g as getCurrentRequest } from './request-udtobOLv.js';
|
|
10
11
|
import { ViteDevServer } from 'vite';
|
|
@@ -71,7 +72,7 @@ interface FarmProviderProps {
|
|
|
71
72
|
/**
|
|
72
73
|
* Farm.js context provider for client-side components
|
|
73
74
|
*/
|
|
74
|
-
declare function FarmProvider({ children, config }: FarmProviderProps):
|
|
75
|
+
declare function FarmProvider({ children, config }: FarmProviderProps): react_jsx_runtime.JSX.Element;
|
|
75
76
|
|
|
76
77
|
declare class HMRManager {
|
|
77
78
|
private server;
|
|
@@ -259,7 +260,7 @@ interface ScalarAPIDocumentationProps {
|
|
|
259
260
|
hideTryItPanel?: boolean;
|
|
260
261
|
};
|
|
261
262
|
}
|
|
262
|
-
declare function ScalarAPIDocumentation({ spec, config }: ScalarAPIDocumentationProps):
|
|
263
|
+
declare function ScalarAPIDocumentation({ spec, config }: ScalarAPIDocumentationProps): react_jsx_runtime.JSX.Element;
|
|
263
264
|
declare global {
|
|
264
265
|
interface Window {
|
|
265
266
|
ScalarApiReference: (config: any) => void;
|
|
@@ -270,7 +271,7 @@ interface DocsRouteProps {
|
|
|
270
271
|
spec: any;
|
|
271
272
|
config?: any;
|
|
272
273
|
}
|
|
273
|
-
declare function DocsRoute({ spec, config }: DocsRouteProps):
|
|
274
|
+
declare function DocsRoute({ spec, config }: DocsRouteProps): react_jsx_runtime.JSX.Element;
|
|
274
275
|
|
|
275
276
|
interface GenerateFarmI18nTypesOptions {
|
|
276
277
|
root: string;
|
package/dist/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-VCANOYFI.mjs";
|
|
10
10
|
import {
|
|
11
11
|
build
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TBIEUO4O.mjs";
|
|
13
13
|
import "./chunk-SL6HTIOK.mjs";
|
|
14
14
|
import "./chunk-4S3ORGFA.mjs";
|
|
15
15
|
import {
|
|
@@ -148,7 +148,7 @@ import {
|
|
|
148
148
|
parseRouteRenderingDirective,
|
|
149
149
|
resolveRouteRenderingConfig,
|
|
150
150
|
resolveRouteRenderingConfigFromFile
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-MKGGT7CR.mjs";
|
|
152
152
|
import {
|
|
153
153
|
APITypeGenerator
|
|
154
154
|
} from "./chunk-LGHEOHBU.mjs";
|
|
@@ -385,7 +385,7 @@ import {
|
|
|
385
385
|
getCurrentRequest
|
|
386
386
|
} from "./chunk-RHIFZZUI.mjs";
|
|
387
387
|
import "./chunk-LM2YNO4U.mjs";
|
|
388
|
-
import "./chunk-
|
|
388
|
+
import "./chunk-65IMMCVO.mjs";
|
|
389
389
|
import {
|
|
390
390
|
SPARouter,
|
|
391
391
|
getRouter,
|
|
@@ -15193,7 +15193,7 @@ var init_type_artifacts = __esm({
|
|
|
15193
15193
|
var version;
|
|
15194
15194
|
var init_package = __esm({
|
|
15195
15195
|
"package.json"() {
|
|
15196
|
-
version = "0.1.0-beta.
|
|
15196
|
+
version = "0.1.0-beta.9";
|
|
15197
15197
|
}
|
|
15198
15198
|
});
|
|
15199
15199
|
|
|
@@ -29305,14 +29305,11 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
29305
29305
|
".prisma/client",
|
|
29306
29306
|
".prisma/client/default"
|
|
29307
29307
|
],
|
|
29308
|
-
//
|
|
29309
|
-
//
|
|
29310
|
-
|
|
29311
|
-
|
|
29312
|
-
|
|
29313
|
-
"better-call",
|
|
29314
|
-
...preset === "cloudflare-module" ? [] : ["react", "react-dom", "react-dom/server"]
|
|
29315
|
-
]
|
|
29308
|
+
// Node deployments must bundle application dependencies with Farm's
|
|
29309
|
+
// React runtime. Leaving a React component package external can make it
|
|
29310
|
+
// resolve a second React instance at runtime and break hooks during SSR.
|
|
29311
|
+
// Native and build-only packages above remain explicitly external.
|
|
29312
|
+
noExternal: preset === "cloudflare-module" ? ["@farm.js/core", "@farm.js/core/image", "better-call"] : true
|
|
29316
29313
|
},
|
|
29317
29314
|
define: {
|
|
29318
29315
|
__FARM_ENV__: JSON.stringify(config.env || { server: {}, public: {} }),
|