@tspro/ts-utils-lib 3.0.0 → 3.1.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/CHANGELOG.md CHANGED
@@ -1,4 +1,12 @@
1
1
  # Changelog
2
+ ## [3.1.1] - 2026-01-08
3
+ ## Fixed
4
+ - CallTracker.
5
+
6
+ ## [3.1.0] - 2026-01-08
7
+ ### Added
8
+ - CallTracker.
9
+
2
10
  ## [3.0.0] - 2026-01-08
3
11
  ### Breaking Change
4
12
  - Device module update.
package/dist/index.d.ts CHANGED
@@ -1535,6 +1535,17 @@ declare class LinkedList<V> extends BaseContainer implements Iterable<V> {
1535
1535
  clone(): LinkedList<V>;
1536
1536
  }
1537
1537
 
1538
+ declare class CallTracker<T = unknown> {
1539
+ private counts;
1540
+ track(value: T): void;
1541
+ getCallCountFor(value: T): number;
1542
+ hasBeenCalledWith(value: T): boolean;
1543
+ private static _default;
1544
+ static track(value: any): void;
1545
+ static getCallCountFor(value: any): number;
1546
+ static hasBeenCalledWith(value: any): boolean;
1547
+ }
1548
+
1538
1549
  declare function getLibInfo(): string;
1539
1550
 
1540
- export { AnchoredRect, index$7 as Assert, BaseContainer, BiMap, cookies as Cookies, DefaultArray, DefaultEqualityFn, device as Device, type EqualityFn, index$6 as Guard, IndexArray, type KVComponent, LRUCache, LinkedList, MultiContainer, Rect, SignedIndexArray, Stack, TriMap, UniMap, index as Utils, ValueSet, Vec, asMulti, getLibInfo };
1551
+ export { AnchoredRect, index$7 as Assert, BaseContainer, BiMap, CallTracker, cookies as Cookies, DefaultArray, DefaultEqualityFn, device as Device, type EqualityFn, index$6 as Guard, IndexArray, type KVComponent, LRUCache, LinkedList, MultiContainer, Rect, SignedIndexArray, Stack, TriMap, UniMap, index as Utils, ValueSet, Vec, asMulti, getLibInfo };