@fictjs/compiler 0.8.0 → 0.10.0

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.cts CHANGED
@@ -23,9 +23,9 @@ interface FictCompilerOptions {
23
23
  onWarn?: (warning: CompilerWarning) => void;
24
24
  /** Internal: filename of the module being compiled. */
25
25
  filename?: string;
26
- /** Enable lazy evaluation of conditional derived values (Rule J optimization) */
26
+ /** Enable lazy evaluation of conditional derived values (Rule J optimization). Default: true. */
27
27
  lazyConditional?: boolean;
28
- /** Enable getter caching within the same sync block (Rule L optimization) */
28
+ /** Enable getter caching within the same sync block (Rule L optimization). Default: true. */
29
29
  getterCache?: boolean;
30
30
  /** Emit fine-grained DOM creation/binding code for supported JSX templates */
31
31
  fineGrainedDom?: boolean;
@@ -63,6 +63,19 @@ interface FictCompilerOptions {
63
63
  * Per-warning override. "off" suppresses, "error" throws, "warn" emits.
64
64
  */
65
65
  warningLevels?: Record<string, 'off' | 'warn' | 'error'>;
66
+ /**
67
+ * Strict control-flow reactivity mode.
68
+ * When enabled, control-flow fallback diagnostics (`FICT-R003`, `FICT-R006`)
69
+ * are treated as errors unless explicitly overridden via `warningLevels`.
70
+ */
71
+ strictReactivity?: boolean;
72
+ /**
73
+ * Fail-closed reactivity guarantee mode.
74
+ * When enabled, diagnostics that indicate non-guaranteed reactive behavior are
75
+ * treated as hard errors and cannot be suppressed/downgraded.
76
+ * Default: true.
77
+ */
78
+ strictGuarantee?: boolean;
66
79
  /**
67
80
  * Optional shared module metadata map for cross-module reactive imports.
68
81
  * If omitted, the compiler uses a process-wide cache.
package/dist/index.d.ts CHANGED
@@ -23,9 +23,9 @@ interface FictCompilerOptions {
23
23
  onWarn?: (warning: CompilerWarning) => void;
24
24
  /** Internal: filename of the module being compiled. */
25
25
  filename?: string;
26
- /** Enable lazy evaluation of conditional derived values (Rule J optimization) */
26
+ /** Enable lazy evaluation of conditional derived values (Rule J optimization). Default: true. */
27
27
  lazyConditional?: boolean;
28
- /** Enable getter caching within the same sync block (Rule L optimization) */
28
+ /** Enable getter caching within the same sync block (Rule L optimization). Default: true. */
29
29
  getterCache?: boolean;
30
30
  /** Emit fine-grained DOM creation/binding code for supported JSX templates */
31
31
  fineGrainedDom?: boolean;
@@ -63,6 +63,19 @@ interface FictCompilerOptions {
63
63
  * Per-warning override. "off" suppresses, "error" throws, "warn" emits.
64
64
  */
65
65
  warningLevels?: Record<string, 'off' | 'warn' | 'error'>;
66
+ /**
67
+ * Strict control-flow reactivity mode.
68
+ * When enabled, control-flow fallback diagnostics (`FICT-R003`, `FICT-R006`)
69
+ * are treated as errors unless explicitly overridden via `warningLevels`.
70
+ */
71
+ strictReactivity?: boolean;
72
+ /**
73
+ * Fail-closed reactivity guarantee mode.
74
+ * When enabled, diagnostics that indicate non-guaranteed reactive behavior are
75
+ * treated as hard errors and cannot be suppressed/downgraded.
76
+ * Default: true.
77
+ */
78
+ strictGuarantee?: boolean;
66
79
  /**
67
80
  * Optional shared module metadata map for cross-module reactive imports.
68
81
  * If omitted, the compiler uses a process-wide cache.