@agile-team/mach-table 0.36.0 → 0.37.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.
Files changed (42) hide show
  1. package/README.md +23 -18
  2. package/dist/adapter.d.cts +2 -2
  3. package/dist/adapter.d.ts +2 -2
  4. package/dist/analysis.d.cts +2 -2
  5. package/dist/analysis.d.ts +2 -2
  6. package/dist/{api-Di5SQHAP.d.cts → api-DH2BoJ9I.d.cts} +2 -2
  7. package/dist/{api-Di5SQHAP.d.ts → api-DH2BoJ9I.d.ts} +2 -2
  8. package/dist/business.cjs +1 -1
  9. package/dist/business.d.cts +1 -26
  10. package/dist/business.d.ts +1 -26
  11. package/dist/business.js +1 -1
  12. package/dist/{configuration-nh5lvWDe.d.ts → configuration-CDG7IuBP.d.ts} +1 -1
  13. package/dist/{configuration-DlRW86iR.d.cts → configuration-DPbk9Afw.d.cts} +1 -1
  14. package/dist/import.d.cts +1 -1
  15. package/dist/import.d.ts +1 -1
  16. package/dist/index.cjs +5 -5
  17. package/dist/index.d.cts +4 -13
  18. package/dist/index.d.ts +4 -13
  19. package/dist/index.js +5 -5
  20. package/dist/mach-table.css +1 -1
  21. package/dist/multi-range.d.cts +1 -1
  22. package/dist/multi-range.d.ts +1 -1
  23. package/dist/ordering.d.cts +1 -1
  24. package/dist/ordering.d.ts +1 -1
  25. package/dist/preferences.d.cts +1 -1
  26. package/dist/preferences.d.ts +1 -1
  27. package/dist/server-side.cjs +1 -1
  28. package/dist/server-side.d.cts +1 -1
  29. package/dist/server-side.d.ts +1 -1
  30. package/dist/server-side.js +1 -1
  31. package/dist/{shared-O6pPO8H8.d.cts → shared-C-HciMdN.d.cts} +1 -1
  32. package/dist/{shared-BusgJSf4.d.ts → shared-CvUdCijb.d.ts} +1 -1
  33. package/dist/workbench.cjs +1 -1
  34. package/dist/workbench.css +1 -1
  35. package/dist/workbench.d.cts +3 -3
  36. package/dist/workbench.d.ts +3 -3
  37. package/dist/workbench.js +1 -1
  38. package/dist/worker.d.cts +2 -2
  39. package/dist/worker.d.ts +2 -2
  40. package/package.json +2 -2
  41. package/dist/cachedDictionary-C26hMT22.d.cts +0 -30
  42. package/dist/cachedDictionary-C26hMT22.d.ts +0 -30
@@ -1,30 +0,0 @@
1
- type DictionaryKey = string | number;
2
- interface DictionaryEntry<TKey extends DictionaryKey = DictionaryKey> {
3
- value: TKey;
4
- label: string;
5
- }
6
- interface CachedDictionaryOptions<TKey extends DictionaryKey = DictionaryKey> {
7
- load(keys: readonly TKey[], signal: AbortSignal): Promise<readonly DictionaryEntry<TKey>[]>;
8
- /** Positive values expire labels and missing keys; 0 caches until invalidation. */
9
- ttlMs?: number;
10
- /** LRU capacity shared by resolved labels and missing keys. */
11
- maxSize?: number;
12
- batchDelayMs?: number;
13
- onError?(error: unknown, keys: readonly TKey[]): void;
14
- }
15
- interface CachedDictionary<TKey extends DictionaryKey = DictionaryKey> {
16
- get(key: TKey): string | undefined;
17
- resolve(key: TKey): Promise<string | undefined>;
18
- resolveMany(keys: readonly TKey[]): Promise<ReadonlyMap<TKey, string>>;
19
- /** Explicit entries supersede queued/in-flight work for the same keys. */
20
- prime(entries: readonly DictionaryEntry<TKey>[]): void;
21
- /** Evicts keys and settles their pending lookups with undefined; later resolves load anew. */
22
- invalidate(keys?: readonly TKey[]): void;
23
- destroy(): void;
24
- /** Cached labels and missing keys, bounded by maxSize. */
25
- readonly size: number;
26
- }
27
- /** Bounded TTL/LRU resolver; pending entry identity isolates invalidated generations. */
28
- declare function createCachedDictionary<TKey extends DictionaryKey = DictionaryKey>(options: CachedDictionaryOptions<TKey>): CachedDictionary<TKey>;
29
-
30
- export { type CachedDictionary as C, type DictionaryKey as D, type CachedDictionaryOptions as a, type DictionaryEntry as b, createCachedDictionary as c };