This site describes solve-engine as it is on main: 2.43.0, which npm does not have yet. npm installs 2.40.0, so a page may show an answer that version does not give yet.
EngineConfig
Defined in: packages/engine/src/constants/Configuration.ts:494
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.
Example
Section titled “Example”import { ExpressionEngine } from "solve-js";
const engine = new ExpressionEngine({ config: { validation: { maxExpressionLength: 1000, maxComplexity: 200, }, // date, performance, vm, worker, diagnostic all use defaults} });Properties
Section titled “Properties”backgroundRefresh
Section titled “backgroundRefresh”readonly backgroundRefresh: BackgroundRefreshConfig;Defined in: packages/engine/src/constants/Configuration.ts:508
Proactive background refresh of live async values
readonly date: DateConfig;Defined in: packages/engine/src/constants/Configuration.ts:496
Date/time expression evaluation bounds and formatting
diagnostic
Section titled “diagnostic”readonly diagnostic: DiagnosticConfig;Defined in: packages/engine/src/constants/Configuration.ts:506
Diagnostic pipeline configuration
network
Section titled “network”readonly network: NetworkConfig;Defined in: packages/engine/src/constants/Configuration.ts:510
Whether live data may be fetched at all. See NetworkConfig.
performance
Section titled “performance”readonly performance: PerformanceConfig;Defined in: packages/engine/src/constants/Configuration.ts:498
Performance budgets and cache sizing
validation
Section titled “validation”readonly validation: ValidationConfig;Defined in: packages/engine/src/constants/Configuration.ts:500
Safety limits for expression complexity
readonly vm: VMConfig;Defined in: packages/engine/src/constants/Configuration.ts:502
Internal bytecode VM configuration
worker
Section titled “worker”readonly worker: WorkerConfig;Defined in: packages/engine/src/constants/Configuration.ts:504
Parallel worker pool configuration