@signaltree/core 6.1.0 → 6.2.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.
|
@@ -2,7 +2,7 @@ import { copyTreeProperties } from '../utils/copy-tree-properties.js';
|
|
|
2
2
|
|
|
3
3
|
function batching(config = {}) {
|
|
4
4
|
const enabled = config.enabled ?? true;
|
|
5
|
-
const notificationDelayMs = config.notificationDelayMs ??
|
|
5
|
+
const notificationDelayMs = config.notificationDelayMs ?? 0;
|
|
6
6
|
return tree => {
|
|
7
7
|
if (!enabled) {
|
|
8
8
|
const passthrough = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signaltree/core",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"description": "Lightweight, type-safe signal-based state management for Angular. Core package providing hierarchical signal trees, basic entity management, and async actions.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
package/src/lib/types.d.ts
CHANGED
|
@@ -48,10 +48,6 @@ export interface EffectsMethods<T> {
|
|
|
48
48
|
export interface BatchingConfig {
|
|
49
49
|
enabled?: boolean;
|
|
50
50
|
notificationDelayMs?: number;
|
|
51
|
-
debounceMs?: number;
|
|
52
|
-
batchTimeoutMs?: number;
|
|
53
|
-
autoFlushDelay?: number;
|
|
54
|
-
maxBatchSize?: number;
|
|
55
51
|
}
|
|
56
52
|
export interface BatchingMethods<T = unknown> {
|
|
57
53
|
batch(fn: () => void): void;
|