@but212/atom-effect 0.2.2 → 0.3.1

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.ts CHANGED
@@ -225,9 +225,24 @@ export declare interface DebugConfig {
225
225
  export declare interface Dependency {
226
226
  readonly id: number;
227
227
  version: number;
228
+ /**
229
+ * Last epoch seen by this dependency (used for invalidation)
230
+ */
228
231
  _lastSeenEpoch: number;
232
+ /* Excluded from this release type: _tempUnsub */
233
+ /* Excluded from this release type: _modifiedAtEpoch */
234
+ /* Excluded from this release type: _visitedEpoch */
235
+ /**
236
+ * Subscribe to dependency updates
237
+ */
229
238
  subscribe(listener: (() => void) | Subscriber): () => void;
239
+ /**
240
+ * Peek at value without subscribing
241
+ */
230
242
  peek?(): unknown;
243
+ /**
244
+ * Current value (if cached)
245
+ */
231
246
  value?: unknown;
232
247
  }
233
248
 
@@ -329,6 +344,7 @@ export declare interface EffectObject {
329
344
  export declare interface EffectOptions {
330
345
  sync?: boolean;
331
346
  maxExecutionsPerSecond?: number;
347
+ maxExecutionsPerFlush?: number;
332
348
  trackModifications?: boolean;
333
349
  }
334
350
 
@@ -502,10 +518,20 @@ export declare const scheduler: Scheduler;
502
518
  * Controls batching behavior and performance limits
503
519
  */
504
520
  export declare const SCHEDULER_CONFIG: {
505
- /** Maximum effect executions per second to detect infinite loops */
521
+ /** Maximum effect executions per second to detect infinite loops (Legacy/Fallback) */
506
522
  readonly MAX_EXECUTIONS_PER_SECOND: 100;
507
523
  /** Threshold for cleaning up old execution timestamps */
508
524
  readonly CLEANUP_THRESHOLD: 100;
525
+ /**
526
+ * Maximum executions per effect within a single flush cycle
527
+ * Increased from 10 to 50 based on evaluation report
528
+ */
529
+ readonly MAX_EXECUTIONS_PER_EFFECT: 50;
530
+ /**
531
+ * Maximum total executions across all effects in a single flush cycle
532
+ * Increased from 1000 to 5000 based on evaluation report
533
+ */
534
+ readonly MAX_EXECUTIONS_PER_FLUSH: 5000;
509
535
  };
510
536
 
511
537
  /**