@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/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 React__default, { ReactNode } from 'react';
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): React__default.JSX.Element;
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): React__default.JSX.Element;
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): React__default.JSX.Element;
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 React__default, { ReactNode } from 'react';
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): React__default.JSX.Element;
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): React__default.JSX.Element;
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): React__default.JSX.Element;
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-GFMBXLGP.mjs";
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-5VYHFKWE.mjs";
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-6F5OI5GA.mjs";
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.7";
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
- // Don't externalize these - bundle them into the SSR output
29309
- // Keep this list minimal for faster builds
29310
- noExternal: [
29311
- "@farm.js/core",
29312
- "@farm.js/core/image",
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: {} }),