Skip to content

This site describes solve-engine 2.44.0, the version npm installs.

EngineConfig

Defined in: packages/engine/src/constants/Configuration.ts:513

Complete engine configuration.

Every field has a default in DEFAULT_CONFIG. To customize, pass a Partial<EngineConfig> when constructing ExpressionEngine. Only the sections/fields you supply are overridden; all others use their defaults.

import { ExpressionEngine } from "solve-js";
const engine = new ExpressionEngine({ config: {
validation: {
maxExpressionLength: 1000,
maxComplexity: 200,
},
// date, performance, vm, worker, diagnostic all use defaults
} });
readonly backgroundRefresh: BackgroundRefreshConfig;

Defined in: packages/engine/src/constants/Configuration.ts:527

Proactive background refresh of live async values


readonly date: DateConfig;

Defined in: packages/engine/src/constants/Configuration.ts:515

Date/time expression evaluation bounds and formatting


readonly diagnostic: DiagnosticConfig;

Defined in: packages/engine/src/constants/Configuration.ts:525

Diagnostic pipeline configuration


readonly network: NetworkConfig;

Defined in: packages/engine/src/constants/Configuration.ts:529

Whether live data may be fetched at all. See NetworkConfig.


readonly performance: PerformanceConfig;

Defined in: packages/engine/src/constants/Configuration.ts:517

Performance budgets and cache sizing


readonly validation: ValidationConfig;

Defined in: packages/engine/src/constants/Configuration.ts:519

Safety limits for expression complexity


readonly vm: VMConfig;

Defined in: packages/engine/src/constants/Configuration.ts:521

Internal bytecode VM configuration


readonly worker: WorkerConfig;

Defined in: packages/engine/src/constants/Configuration.ts:523

Parallel worker pool configuration