@but212/atom-effect 0.2.2 → 0.3.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/README.md +13 -8
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.mjs +205 -177
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -329,6 +329,7 @@ export declare interface EffectObject {
|
|
|
329
329
|
export declare interface EffectOptions {
|
|
330
330
|
sync?: boolean;
|
|
331
331
|
maxExecutionsPerSecond?: number;
|
|
332
|
+
maxExecutionsPerFlush?: number;
|
|
332
333
|
trackModifications?: boolean;
|
|
333
334
|
}
|
|
334
335
|
|
|
@@ -502,10 +503,20 @@ export declare const scheduler: Scheduler;
|
|
|
502
503
|
* Controls batching behavior and performance limits
|
|
503
504
|
*/
|
|
504
505
|
export declare const SCHEDULER_CONFIG: {
|
|
505
|
-
/** Maximum effect executions per second to detect infinite loops */
|
|
506
|
+
/** Maximum effect executions per second to detect infinite loops (Legacy/Fallback) */
|
|
506
507
|
readonly MAX_EXECUTIONS_PER_SECOND: 100;
|
|
507
508
|
/** Threshold for cleaning up old execution timestamps */
|
|
508
509
|
readonly CLEANUP_THRESHOLD: 100;
|
|
510
|
+
/**
|
|
511
|
+
* Maximum executions per effect within a single flush cycle
|
|
512
|
+
* Increased from 10 to 50 based on evaluation report
|
|
513
|
+
*/
|
|
514
|
+
readonly MAX_EXECUTIONS_PER_EFFECT: 50;
|
|
515
|
+
/**
|
|
516
|
+
* Maximum total executions across all effects in a single flush cycle
|
|
517
|
+
* Increased from 1000 to 5000 based on evaluation report
|
|
518
|
+
*/
|
|
519
|
+
readonly MAX_EXECUTIONS_PER_FLUSH: 5000;
|
|
509
520
|
};
|
|
510
521
|
|
|
511
522
|
/**
|