@procedures/collections 0.52.3 → 0.53.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
@@ -1,54 +1,260 @@
1
1
  /**
2
- * Collections Framework - A comprehensive Java Collections-inspired library for TypeScript.
2
+ * This module is the root of `@procedures/collections`.
3
3
  *
4
- * Provides:
5
- * - Core collection interfaces (List, Set, Queue, Map, etc.)
6
- * - Rich implementations (ArrayList, LinkedList, HashSet, HashMap, PriorityQueue, etc.)
7
- * - Composable behaviors (bounded, readonly, safe, evented, synchronized, LRU, TTL)
8
- * - Functional error handling (Option, Result)
9
- * - Event-driven collections with typed events
10
- * - Async/concurrent collections (AsyncQueue, Channels with CSP patterns)
11
- * - Lazy functional operations (map, filter, reduce, etc.)
12
- * - Stream-style collectors (groupBy, counting, summarizing, etc.)
13
- * - Pluggable equality/hashing/comparison
4
+ * The storage, the overlay and the undo log are in this package. The lists, sets, maps, queues, behaviors and lazy
5
+ * operations come from `@mark1russell7/collections`. Each name with a `@deprecated` tag goes away in a later MINOR.
14
6
  *
15
7
  * @example
16
- * // Composable behaviors
17
- * import { arrayList, compose, boundedList, eventedList } from '@common/collections'
8
+ * import { arrayList, compose, boundedList, eventedList } from "@procedures/collections";
18
9
  *
19
- * const list = compose(
20
- * eventedList(),
21
- * boundedList({ capacity: 100, policy: 'drop-oldest' })
22
- * )(arrayList<number>())
23
- *
24
- * list.on('add', ({ value }) => console.log('Added:', value))
25
- * list.add(42)
26
- *
27
- * @example
28
- * // Functional operations with lazy evaluation
29
- * import { pipe, map, filter, take, collect, toList } from '@common/collections'
30
- *
31
- * const result = pipe(
32
- * [1, 2, 3, 4, 5],
33
- * (it) => map(it, x => x * 2),
34
- * (it) => filter(it, x => x > 5),
35
- * (it) => take(it, 2),
36
- * (it) => collect(it, toList())
37
- * )
38
- *
39
- * @example
40
- * // Async channels with Go-style CSP
41
- * import { channel, select, timeout, pipeline } from '@common/collections'
42
- *
43
- * const ch = channel<number>()
44
- * await ch.send(42)
45
- * const value = await select(
46
- * ch.case(v => v),
47
- * timeout(1000).case(() => null)
48
- * )
10
+ * const list = compose(eventedList(), boundedList({ capacity: 100, policy: "drop-oldest" }))(arrayList<number>());
11
+ * list.on("add", ({ value }) => console.log("Added:", value));
12
+ * list.add(42);
49
13
  */
50
14
  export * from "./storage/index.js";
51
15
  export * from "./overlay/index.js";
52
16
  export * from "./undo/index.js";
53
- export { type ArrayConvertible, ArrayDeque, type ArrayDequeOptions, ArrayList, type ArrayListOptions, type Async, AsyncEmitter, type AsyncOption, AsyncQueue, type AsyncQueueOptions, type AsyncResult, type Asyncify, type BiMap, type BlockingQueue, type Bounded, type BoundedCollection, type BoundedOptions, Channel, type CircularList, type Clearable, type Cloneable, type Collection, CollectionBuilder, type CollectionEvents, type Collector, type CompactionPolicy, type Compare, type ComparisonProvider, type ConflictResolutionPolicy, DEFAULT_CONFLICT_POLICY, DEFAULT_EVICTION_POLICY, DEFAULT_GROWTH_POLICY, DEFAULT_OVERFLOW_POLICY, DEFAULT_RETRY_POLICY, DEFAULT_UNDERFLOW_POLICY, DEFAULT_VALIDATION_POLICY, type DelayQueue, type Deque, type DequeEvents, type Disposable, type ElementOf, type ElementType, Emitter, type Emptiable, type Entry, type Eq, type EqualityProvider, Err, EventBatcher, type EventMap, type Evented, type EvictionCandidate, type EvictionMetadata, type EvictionPolicy, type EvictionSelector, type Freezable, type GrowthPolicy, type Hash, HashMap, type HashMapOptions, type HashProvider, HashSet, type HashSetOptions, type IAsyncQueue, type IPriorityQueue, type IsReadonly, KEY_DIGITS, type KeyCheckOptions, type KeyedItem, LRUCache, type LRUOptions, LinkedHashMap, type LinkedHashMapOptions, LinkedList, type LinkedListOptions, type List, type ListEvents, type Listener, type MapEvents, type MapLike, type MergeFunction, type Middleware, type MultiMap, type MutableCollectionBase, type NavigableMap, type NavigableSet, None, Ok, type Option, type OverflowContext, type OverflowHandler, type OverflowPolicy, type Point, PriorityQueue, type PriorityQueueOptions, type Queue, type QueueEvents, type RandomAccess, type Readonly, type ReadonlyCollection, type ReadonlyCollectionBase, type ReadonlyList, type ReadonlyMapLike, type ReadonlyOptions, type ReadonlyQueue, type ReadonlySet, type Result, type RetryContext, type RetryPolicy, type RetryPredicate, type SafeCollection, type SafeDequeOperations, type SafeListOperations, type SafeMapOperations, type SafeQueueOperations, type SelectCase, type Set, type Settled, type Sized, Some, type SortedMap, type SortedSet, type Stack, type SummaryLocation, type SummaryMonoid, type SummarySearch, type SummarySpec, type SummaryStatistics, SummaryTree, TTLCache, type TTLOptions, type TransferQueue, TreeMap, type TreeMapOptions, TreeSet, type TreeSetOptions, type UnderflowContext, type UnderflowHandler, type UnderflowPolicy, type Unsubscribe, type ValidationContext, type ValidationHandler, type ValidationPolicy, type Vector, type WeakMapLike, type WithCapability, arrayContains, arrayDeque, arrayIterator, arrayList, arrayRemove, arrayRemoveAll, asSettled, asyncQueue, average, averagingNumber, blockMethods, booleanCompare, bounded, boundedDeque, boundedList, boundedMap, boundedQueue, buffered, buildList, buildMap, bundle, channel, checkBounds, checkInsertBounds, checkRangeBounds, chunk, clamp, collect, collectToArray, collectToList, collectToMap, collectToSet, combineHashes, compareKeys, comparing, comparingKey, compose, concat, count, counting, createEmitter, dateCompare, deepEq, defaultCompare, defaultEq, defaultHash, delegate, distinct, distinctConsecutive, dropIndex, emptyList, emptyMap, emptyQueue, enhanceMethod, enumerate, eqBy, evented, eventedDeque, eventedList, eventedMap, eventedQueue, every, fanIn, fanOut, filter, filtering, find, findIndex, findLastIndex, first, flatMap, flatMapOption, flatMapResult, flatMapping, flatten, forwardEvent, fromNullable, getOrElse, getOrElseResult, groupBy, groupingBy, groupingByWith, hasCapability, hashBy, hashMap, hashNumber, hashSet, hashString, immutableListOf, immutableMapOf, interceptMethods, isErr, isNone, isOk, isSome, isValidKey, iterToMap, joining, keyBetween, keysBetween, keysForDrop, last, linkedHashMap, linkedList, listOf, lruCache, lruMap, map, mapAsyncOption, mapAsyncResult, mapError, mapOf, mapOption, mapResult, mapping, max, maxBy, merge, min, minBy, mutableListOf, mutableMapOf, nCopies, none, nullsFirst, nullsLast, numberCompare, onWhen, optionToResult, partition, partitioningBy, pipe, pipeline, priorityQueue, queueOf, range, rangeTo, readWriteLock, readonly, readonlyCollection, readonlyList, readonlyMap, readonlyQueue, reduce, reducing, reducingWith, reentrantSynchronized, requireNonEmpty, requireNonNull, resultToOption, reverse, reverseArrayIterator, reversed, safe, safeDeque, safeList, safeMap, safeQueue, scan, select, sequence, sequenceResults, shallowEq, singletonList, singletonMap, skip, skipWhile, some, sort, stringCompare, stringCompareIgnoreCase, stringHashCode, sum, summarizingNumber, summaryTree, summingNumber, synchronized, synchronizedCollection, synchronizedList, synchronizedMap, synchronizedSet, take, takeWhile, tap, teeing, thenComparing, ticker, timeout, toArray, toList, toMap, toNullable, toSet, treeMap, treeSet, tryCatch, tryCatchAsync, ttlCache, ttlCollection, ttlMap, unbuffered, unmodifiableCollection, unmodifiableList, unmodifiableMap, unwrap, unwrapResult, window, workerPool, zip, } from "@mark1russell7/collections";
17
+ export {
18
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
19
+ type ArrayConvertible, ArrayDeque, type ArrayDequeOptions, ArrayList, type ArrayListOptions, type Async,
20
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
21
+ AsyncEmitter,
22
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name, with no replacement. */
23
+ type AsyncOption, AsyncQueue, type AsyncQueueOptions,
24
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name, with no replacement. */
25
+ type AsyncResult,
26
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
27
+ type Asyncify,
28
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
29
+ type BiMap,
30
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
31
+ type BlockingQueue, type Bounded, type BoundedCollection, type BoundedOptions,
32
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `Channel` of `@mark1russell7/service/channel`. */
33
+ Channel,
34
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
35
+ type CircularList,
36
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
37
+ type Clearable,
38
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
39
+ type Cloneable, type Collection,
40
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
41
+ CollectionBuilder, type CollectionEvents, type Collector,
42
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
43
+ type CompactionPolicy, type Compare,
44
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
45
+ type ComparisonProvider,
46
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
47
+ type ConflictResolutionPolicy,
48
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
49
+ DEFAULT_CONFLICT_POLICY,
50
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
51
+ DEFAULT_EVICTION_POLICY,
52
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
53
+ DEFAULT_GROWTH_POLICY,
54
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
55
+ DEFAULT_OVERFLOW_POLICY,
56
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. The retries of `@mark1russell7/service` replace it. */
57
+ DEFAULT_RETRY_POLICY,
58
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
59
+ DEFAULT_UNDERFLOW_POLICY,
60
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
61
+ DEFAULT_VALIDATION_POLICY,
62
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
63
+ type DelayQueue, type Deque, type DequeEvents,
64
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
65
+ type Disposable,
66
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
67
+ type ElementOf,
68
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
69
+ type ElementType, Emitter,
70
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
71
+ type Emptiable, type Entry, type Eq,
72
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
73
+ type EqualityProvider,
74
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `err` of `@mark1russell7/optional`. */
75
+ Err,
76
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
77
+ EventBatcher, type EventMap, type Evented,
78
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
79
+ type EvictionCandidate,
80
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
81
+ type EvictionMetadata,
82
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
83
+ type EvictionPolicy,
84
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
85
+ type EvictionSelector,
86
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
87
+ type Freezable,
88
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
89
+ type GrowthPolicy, type Hash, HashMap, type HashMapOptions,
90
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
91
+ type HashProvider, HashSet, type HashSetOptions, type IAsyncQueue, type IPriorityQueue,
92
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
93
+ type IsReadonly,
94
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
95
+ KEY_DIGITS, type KeyCheckOptions, type KeyedItem, LRUCache, type LRUOptions, LinkedHashMap, type LinkedHashMapOptions, LinkedList, type LinkedListOptions, type List, type ListEvents, type Listener, type MapEvents, type MapLike,
96
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
97
+ type MergeFunction, type Middleware,
98
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
99
+ type MultiMap,
100
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
101
+ type MutableCollectionBase, type NavigableMap, type NavigableSet,
102
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `none` of `@mark1russell7/optional`. */
103
+ None,
104
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `ok` of `@mark1russell7/optional`. */
105
+ Ok,
106
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `Optional` of `@mark1russell7/optional`. */
107
+ type Option, type OverflowContext, type OverflowHandler, type OverflowPolicy, type Point, PriorityQueue, type PriorityQueueOptions, type Queue, type QueueEvents, type RandomAccess, type Readonly, type ReadonlyCollection,
108
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
109
+ type ReadonlyCollectionBase, type ReadonlyList, type ReadonlyMapLike, type ReadonlyOptions, type ReadonlyQueue, type ReadonlySet,
110
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `Result` of `@mark1russell7/optional`. */
111
+ type Result,
112
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. The retries of `@mark1russell7/service` replace it. */
113
+ type RetryContext,
114
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. The retries of `@mark1russell7/service` replace it. */
115
+ type RetryPolicy,
116
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. The retries of `@mark1russell7/service` replace it. */
117
+ type RetryPredicate,
118
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
119
+ type SafeCollection, type SafeDequeOperations, type SafeListOperations, type SafeMapOperations, type SafeQueueOperations,
120
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `SelectCase` of `@mark1russell7/service/channel`. */
121
+ type SelectCase, type Set, type Settled,
122
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
123
+ type Sized,
124
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `some` of `@mark1russell7/optional`. */
125
+ Some, type SortedMap, type SortedSet, type Stack, type SummaryLocation, type SummaryMonoid, type SummarySearch, type SummarySpec, type SummaryStatistics, SummaryTree, TTLCache, type TTLOptions,
126
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
127
+ type TransferQueue, TreeMap, type TreeMapOptions, TreeSet, type TreeSetOptions,
128
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
129
+ type UnderflowContext,
130
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
131
+ type UnderflowHandler,
132
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
133
+ type UnderflowPolicy, type Unsubscribe,
134
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
135
+ type ValidationContext,
136
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
137
+ type ValidationHandler,
138
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
139
+ type ValidationPolicy,
140
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
141
+ type Vector,
142
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
143
+ type WeakMapLike,
144
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
145
+ type WithCapability,
146
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
147
+ arrayContains, arrayDeque,
148
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
149
+ arrayIterator, arrayList,
150
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
151
+ arrayRemove,
152
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
153
+ arrayRemoveAll, asSettled, asyncQueue, average, averagingNumber, blockMethods, booleanCompare, bounded, boundedDeque, boundedList, boundedMap, boundedQueue,
154
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `buffered` of `@mark1russell7/service/channel`. */
155
+ buffered, buildList, buildMap, bundle,
156
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `channel` of `@mark1russell7/service/channel`. */
157
+ channel,
158
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
159
+ checkBounds,
160
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
161
+ checkInsertBounds,
162
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
163
+ checkRangeBounds, chunk,
164
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
165
+ clamp, collect, collectToArray, collectToList, collectToMap, collectToSet, combineHashes, compareKeys, comparing, comparingKey, compose, concat, count, counting, createEmitter, dateCompare, deepEq, defaultCompare, defaultEq, defaultHash, delegate, distinct, distinctConsecutive, dropIndex, emptyList, emptyMap, emptyQueue, enhanceMethod, enumerate, eqBy, evented, eventedDeque, eventedList, eventedMap, eventedQueue, every,
166
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `fanIn` of `@mark1russell7/service/channel`. */
167
+ fanIn,
168
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `fanOut` of `@mark1russell7/service/channel`. */
169
+ fanOut, filter, filtering, find,
170
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
171
+ findIndex,
172
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
173
+ findLastIndex, first, flatMap,
174
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `flatMap` of `@mark1russell7/optional`. */
175
+ flatMapOption,
176
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `flatMapResult` of `@mark1russell7/optional`. */
177
+ flatMapResult, flatMapping, flatten,
178
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
179
+ forwardEvent,
180
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `fromNullable` of `@mark1russell7/optional`. */
181
+ fromNullable,
182
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `getOr` of `@mark1russell7/optional`. */
183
+ getOrElse,
184
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `getOkOr` of `@mark1russell7/optional`. */
185
+ getOrElseResult, groupBy, groupingBy, groupingByWith, hasCapability, hashBy, hashMap, hashNumber, hashSet, hashString, immutableListOf, immutableMapOf, interceptMethods,
186
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `isErr` of `@mark1russell7/optional`. */
187
+ isErr,
188
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `isNone` of `@mark1russell7/optional`. */
189
+ isNone,
190
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `isOk` of `@mark1russell7/optional`. */
191
+ isOk,
192
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `isSome` of `@mark1russell7/optional`. */
193
+ isSome, isValidKey, iterToMap, joining, keyBetween, keysBetween, keysForDrop, last, linkedHashMap, linkedList, listOf, lruCache, lruMap, map,
194
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name, with no replacement. */
195
+ mapAsyncOption,
196
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name, with no replacement. */
197
+ mapAsyncResult,
198
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `mapErr` of `@mark1russell7/optional`. */
199
+ mapError, mapOf,
200
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `map` of `@mark1russell7/optional`. */
201
+ mapOption,
202
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `mapResult` of `@mark1russell7/optional`. */
203
+ mapResult, mapping, max, maxBy,
204
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `merge` of `@mark1russell7/service/channel`. */
205
+ merge, min, minBy,
206
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `listOf`. */
207
+ mutableListOf,
208
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `mapOf`. */
209
+ mutableMapOf, nCopies, none, nullsFirst, nullsLast, numberCompare,
210
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
211
+ onWhen,
212
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `fromOptional` of `@mark1russell7/optional`. */
213
+ optionToResult, partition, partitioningBy, pipe,
214
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `pipeline` of `@mark1russell7/service/channel`. */
215
+ pipeline, priorityQueue, queueOf, range, rangeTo, readWriteLock, readonly, readonlyCollection, readonlyList, readonlyMap, readonlyQueue, reduce, reducing, reducingWith,
216
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `synchronized`, and do not nest locked uses. */
217
+ reentrantSynchronized,
218
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
219
+ requireNonEmpty,
220
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
221
+ requireNonNull,
222
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `toOptional` of `@mark1russell7/optional`. */
223
+ resultToOption, reverse,
224
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
225
+ reverseArrayIterator, reversed,
226
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `safeList`, `safeQueue`, `safeDeque` or `safeMap`. */
227
+ safe, safeDeque, safeList, safeMap, safeQueue, scan,
228
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `select` of `@mark1russell7/service/channel`. */
229
+ select,
230
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name, with no replacement. */
231
+ sequence,
232
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name, with no replacement. */
233
+ sequenceResults, shallowEq, singletonList, singletonMap, skip, skipWhile, some, sort, stringCompare, stringCompareIgnoreCase,
234
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
235
+ stringHashCode, sum, summarizingNumber, summaryTree, summingNumber, synchronized, synchronizedCollection, synchronizedList, synchronizedMap, synchronizedSet, take, takeWhile, tap, teeing, thenComparing,
236
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `ticker` of `@mark1russell7/service/channel`. */
237
+ ticker,
238
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `timeout` of `@mark1russell7/service/channel`. */
239
+ timeout, toArray, toList, toMap,
240
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `unwrap` of `@mark1russell7/optional`. */
241
+ toNullable, toSet, treeMap, treeSet,
242
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `tryCatch` of `@mark1russell7/optional`. */
243
+ tryCatch,
244
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `tryCatchAsync` of `@mark1russell7/optional`. */
245
+ tryCatchAsync, ttlCache, ttlCollection, ttlMap,
246
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `unbuffered` of `@mark1russell7/service/channel`. */
247
+ unbuffered,
248
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `readonlyCollection`. */
249
+ unmodifiableCollection,
250
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `readonlyList`. */
251
+ unmodifiableList,
252
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `readonlyMap`. */
253
+ unmodifiableMap,
254
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name, with no replacement. */
255
+ unwrap,
256
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name, with no replacement. */
257
+ unwrapResult, window,
258
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `workerPool` of `@mark1russell7/service/channel`. */
259
+ workerPool, zip, } from "@mark1russell7/collections";
54
260
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AAGH,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAGhC,OAAO,EACL,KAAK,gBAAgB,EACrB,UAAU,EACV,KAAK,iBAAiB,EACtB,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,KAAK,EACV,YAAY,EACZ,KAAK,WAAW,EAChB,UAAU,EACV,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,KAAK,EACV,KAAK,aAAa,EAClB,KAAK,OAAO,EACZ,KAA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AAI,EACJ,QAAQ,EACR,aAAa,EACb,OAAO,EACP,KAAK,EACL,OAAO,EACP,aAAa,EACb,QAAQ,EACR,kBAAkB,EAClB,YAAY,EACZ,WAAW,EACX,aAAa,EACb,MAAM,EACN,QAAQ,EACR,YAAY,EACZ,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,cAAc,EACd,OAAO,EACP,oBAAoB,EACpB,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,OAAO,EACP,SAAS,EACT,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,eAAe,EACf,SAAS,EACT,aAAa,EACb,YAAY,EACZ,IAAI,EACJ,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,aAAa,EACb,uBAAuB,EACvB,cAAc,EACd,GAAG,EACH,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,YAAY,EACZ,sBAAsB,EACtB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,IAAI,EACJ,SAAS,EACT,GAAG,EACH,MAAM,EACN,aAAa,EACb,MAAM,EACN,OAAO,EACP,OAAO,EACP,MAAM,EACN,KAAK,EACL,UAAU,EACV,KAAK,EACL,OAAO,EACP,OAAO,EACP,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,aAAa,EACb,MAAM,EACN,UAAU,EACV,sBAAsB,EACtB,gBAAgB,EAChB,eAAe,EACf,MAAM,EACN,YAAY,EACZ,MAAM,EACN,UAAU,EACV,GAAG,GACJ,MAAM,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAGhC,OAAO;AACL,yGAAyG;AACzG,KAAK,gBAAgB,EACrB,UAAU,EACV,KAAK,iBAAiB,EACtB,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,KAAK;AACV,yGAAy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,UAAU,EACV,KAAK,EACL,OAAO,EACP,OAAO;AACP,gIAAgI;AAChI,QAAQ;AACR,qIAAqI;AACrI,aAAa,EACb,QAAQ,EACR,aAAa,EACb,MAAM;AACN,0IAA0I;AAC1I,UAAU;AACV,8GAA8G;AAC9G,sBAAsB;AACtB,wGAAwG;AACxG,gBAAgB;AAChB,uGAAuG;AACvG,eAAe;AACf,wGAAwG;AACxG,MAAM;AACN,wGAAwG;AACxG,YAAY,EACZ,MAAM;AACN,0IAA0I;AAC1I,UAAU,EACV,GAAG,GACJ,MAAM,4BAA4B,CAAC"}
package/dist/index.js CHANGED
@@ -1,56 +1,166 @@
1
1
  /**
2
- * Collections Framework - A comprehensive Java Collections-inspired library for TypeScript.
2
+ * This module is the root of `@procedures/collections`.
3
3
  *
4
- * Provides:
5
- * - Core collection interfaces (List, Set, Queue, Map, etc.)
6
- * - Rich implementations (ArrayList, LinkedList, HashSet, HashMap, PriorityQueue, etc.)
7
- * - Composable behaviors (bounded, readonly, safe, evented, synchronized, LRU, TTL)
8
- * - Functional error handling (Option, Result)
9
- * - Event-driven collections with typed events
10
- * - Async/concurrent collections (AsyncQueue, Channels with CSP patterns)
11
- * - Lazy functional operations (map, filter, reduce, etc.)
12
- * - Stream-style collectors (groupBy, counting, summarizing, etc.)
13
- * - Pluggable equality/hashing/comparison
4
+ * The storage, the overlay and the undo log are in this package. The lists, sets, maps, queues, behaviors and lazy
5
+ * operations come from `@mark1russell7/collections`. Each name with a `@deprecated` tag goes away in a later MINOR.
14
6
  *
15
7
  * @example
16
- * // Composable behaviors
17
- * import { arrayList, compose, boundedList, eventedList } from '@common/collections'
8
+ * import { arrayList, compose, boundedList, eventedList } from "@procedures/collections";
18
9
  *
19
- * const list = compose(
20
- * eventedList(),
21
- * boundedList({ capacity: 100, policy: 'drop-oldest' })
22
- * )(arrayList<number>())
23
- *
24
- * list.on('add', ({ value }) => console.log('Added:', value))
25
- * list.add(42)
26
- *
27
- * @example
28
- * // Functional operations with lazy evaluation
29
- * import { pipe, map, filter, take, collect, toList } from '@common/collections'
30
- *
31
- * const result = pipe(
32
- * [1, 2, 3, 4, 5],
33
- * (it) => map(it, x => x * 2),
34
- * (it) => filter(it, x => x > 5),
35
- * (it) => take(it, 2),
36
- * (it) => collect(it, toList())
37
- * )
38
- *
39
- * @example
40
- * // Async channels with Go-style CSP
41
- * import { channel, select, timeout, pipeline } from '@common/collections'
42
- *
43
- * const ch = channel<number>()
44
- * await ch.send(42)
45
- * const value = await select(
46
- * ch.case(v => v),
47
- * timeout(1000).case(() => null)
48
- * )
10
+ * const list = compose(eventedList(), boundedList({ capacity: 100, policy: "drop-oldest" }))(arrayList<number>());
11
+ * list.on("add", ({ value }) => console.log("Added:", value));
12
+ * list.add(42);
49
13
  */
50
14
  // The storage, the overlay and the undo log stay in this package.
51
15
  export * from "./storage/index.js";
52
16
  export * from "./overlay/index.js";
53
17
  export * from "./undo/index.js";
54
18
  // The lists, sets, maps, queues, behaviors, channels and lazy operations are in the general package.
55
- export { ArrayDeque, ArrayList, AsyncEmitter, AsyncQueue, Channel, CollectionBuilder, DEFAULT_CONFLICT_POLICY, DEFAULT_EVICTION_POLICY, DEFAULT_GROWTH_POLICY, DEFAULT_OVERFLOW_POLICY, DEFAULT_RETRY_POLICY, DEFAULT_UNDERFLOW_POLICY, DEFAULT_VALIDATION_POLICY, Emitter, Err, EventBatcher, HashMap, HashSet, KEY_DIGITS, LRUCache, LinkedHashMap, LinkedList, None, Ok, PriorityQueue, Some, SummaryTree, TTLCache, TreeMap, TreeSet, arrayContains, arrayDeque, arrayIterator, arrayList, arrayRemove, arrayRemoveAll, asSettled, asyncQueue, average, averagingNumber, blockMethods, booleanCompare, bounded, boundedDeque, boundedList, boundedMap, boundedQueue, buffered, buildList, buildMap, bundle, channel, checkBounds, checkInsertBounds, checkRangeBounds, chunk, clamp, collect, collectToArray, collectToList, collectToMap, collectToSet, combineHashes, compareKeys, comparing, comparingKey, compose, concat, count, counting, createEmitter, dateCompare, deepEq, defaultCompare, defaultEq, defaultHash, delegate, distinct, distinctConsecutive, dropIndex, emptyList, emptyMap, emptyQueue, enhanceMethod, enumerate, eqBy, evented, eventedDeque, eventedList, eventedMap, eventedQueue, every, fanIn, fanOut, filter, filtering, find, findIndex, findLastIndex, first, flatMap, flatMapOption, flatMapResult, flatMapping, flatten, forwardEvent, fromNullable, getOrElse, getOrElseResult, groupBy, groupingBy, groupingByWith, hasCapability, hashBy, hashMap, hashNumber, hashSet, hashString, immutableListOf, immutableMapOf, interceptMethods, isErr, isNone, isOk, isSome, isValidKey, iterToMap, joining, keyBetween, keysBetween, keysForDrop, last, linkedHashMap, linkedList, listOf, lruCache, lruMap, map, mapAsyncOption, mapAsyncResult, mapError, mapOf, mapOption, mapResult, mapping, max, maxBy, merge, min, minBy, mutableListOf, mutableMapOf, nCopies, none, nullsFirst, nullsLast, numberCompare, onWhen, optionToResult, partition, partitioningBy, pipe, pipeline, priorityQueue, queueOf, range, rangeTo, readWriteLock, readonly, readonlyCollection, readonlyList, readonlyMap, readonlyQueue, reduce, reducing, reducingWith, reentrantSynchronized, requireNonEmpty, requireNonNull, resultToOption, reverse, reverseArrayIterator, reversed, safe, safeDeque, safeList, safeMap, safeQueue, scan, select, sequence, sequenceResults, shallowEq, singletonList, singletonMap, skip, skipWhile, some, sort, stringCompare, stringCompareIgnoreCase, stringHashCode, sum, summarizingNumber, summaryTree, summingNumber, synchronized, synchronizedCollection, synchronizedList, synchronizedMap, synchronizedSet, take, takeWhile, tap, teeing, thenComparing, ticker, timeout, toArray, toList, toMap, toNullable, toSet, treeMap, treeSet, tryCatch, tryCatchAsync, ttlCache, ttlCollection, ttlMap, unbuffered, unmodifiableCollection, unmodifiableList, unmodifiableMap, unwrap, unwrapResult, window, workerPool, zip, } from "@mark1russell7/collections";
19
+ export { ArrayDeque, ArrayList,
20
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
21
+ AsyncEmitter, AsyncQueue,
22
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `Channel` of `@mark1russell7/service/channel`. */
23
+ Channel,
24
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
25
+ CollectionBuilder,
26
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
27
+ DEFAULT_CONFLICT_POLICY,
28
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
29
+ DEFAULT_EVICTION_POLICY,
30
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
31
+ DEFAULT_GROWTH_POLICY,
32
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
33
+ DEFAULT_OVERFLOW_POLICY,
34
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. The retries of `@mark1russell7/service` replace it. */
35
+ DEFAULT_RETRY_POLICY,
36
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
37
+ DEFAULT_UNDERFLOW_POLICY,
38
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
39
+ DEFAULT_VALIDATION_POLICY, Emitter,
40
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `err` of `@mark1russell7/optional`. */
41
+ Err,
42
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
43
+ EventBatcher, HashMap, HashSet,
44
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
45
+ KEY_DIGITS, LRUCache, LinkedHashMap, LinkedList,
46
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `none` of `@mark1russell7/optional`. */
47
+ None,
48
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `ok` of `@mark1russell7/optional`. */
49
+ Ok, PriorityQueue,
50
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `some` of `@mark1russell7/optional`. */
51
+ Some, SummaryTree, TTLCache, TreeMap, TreeSet,
52
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
53
+ arrayContains, arrayDeque,
54
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
55
+ arrayIterator, arrayList,
56
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
57
+ arrayRemove,
58
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
59
+ arrayRemoveAll, asSettled, asyncQueue, average, averagingNumber, blockMethods, booleanCompare, bounded, boundedDeque, boundedList, boundedMap, boundedQueue,
60
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `buffered` of `@mark1russell7/service/channel`. */
61
+ buffered, buildList, buildMap, bundle,
62
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `channel` of `@mark1russell7/service/channel`. */
63
+ channel,
64
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
65
+ checkBounds,
66
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
67
+ checkInsertBounds,
68
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
69
+ checkRangeBounds, chunk,
70
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
71
+ clamp, collect, collectToArray, collectToList, collectToMap, collectToSet, combineHashes, compareKeys, comparing, comparingKey, compose, concat, count, counting, createEmitter, dateCompare, deepEq, defaultCompare, defaultEq, defaultHash, delegate, distinct, distinctConsecutive, dropIndex, emptyList, emptyMap, emptyQueue, enhanceMethod, enumerate, eqBy, evented, eventedDeque, eventedList, eventedMap, eventedQueue, every,
72
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `fanIn` of `@mark1russell7/service/channel`. */
73
+ fanIn,
74
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `fanOut` of `@mark1russell7/service/channel`. */
75
+ fanOut, filter, filtering, find,
76
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
77
+ findIndex,
78
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
79
+ findLastIndex, first, flatMap,
80
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `flatMap` of `@mark1russell7/optional`. */
81
+ flatMapOption,
82
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `flatMapResult` of `@mark1russell7/optional`. */
83
+ flatMapResult, flatMapping, flatten,
84
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
85
+ forwardEvent,
86
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `fromNullable` of `@mark1russell7/optional`. */
87
+ fromNullable,
88
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `getOr` of `@mark1russell7/optional`. */
89
+ getOrElse,
90
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `getOkOr` of `@mark1russell7/optional`. */
91
+ getOrElseResult, groupBy, groupingBy, groupingByWith, hasCapability, hashBy, hashMap, hashNumber, hashSet, hashString, immutableListOf, immutableMapOf, interceptMethods,
92
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `isErr` of `@mark1russell7/optional`. */
93
+ isErr,
94
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `isNone` of `@mark1russell7/optional`. */
95
+ isNone,
96
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `isOk` of `@mark1russell7/optional`. */
97
+ isOk,
98
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `isSome` of `@mark1russell7/optional`. */
99
+ isSome, isValidKey, iterToMap, joining, keyBetween, keysBetween, keysForDrop, last, linkedHashMap, linkedList, listOf, lruCache, lruMap, map,
100
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name, with no replacement. */
101
+ mapAsyncOption,
102
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name, with no replacement. */
103
+ mapAsyncResult,
104
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `mapErr` of `@mark1russell7/optional`. */
105
+ mapError, mapOf,
106
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `map` of `@mark1russell7/optional`. */
107
+ mapOption,
108
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `mapResult` of `@mark1russell7/optional`. */
109
+ mapResult, mapping, max, maxBy,
110
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `merge` of `@mark1russell7/service/channel`. */
111
+ merge, min, minBy,
112
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `listOf`. */
113
+ mutableListOf,
114
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `mapOf`. */
115
+ mutableMapOf, nCopies, none, nullsFirst, nullsLast, numberCompare,
116
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
117
+ onWhen,
118
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `fromOptional` of `@mark1russell7/optional`. */
119
+ optionToResult, partition, partitioningBy, pipe,
120
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `pipeline` of `@mark1russell7/service/channel`. */
121
+ pipeline, priorityQueue, queueOf, range, rangeTo, readWriteLock, readonly, readonlyCollection, readonlyList, readonlyMap, readonlyQueue, reduce, reducing, reducingWith,
122
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `synchronized`, and do not nest locked uses. */
123
+ reentrantSynchronized,
124
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
125
+ requireNonEmpty,
126
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
127
+ requireNonNull,
128
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `toOptional` of `@mark1russell7/optional`. */
129
+ resultToOption, reverse,
130
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
131
+ reverseArrayIterator, reversed,
132
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `safeList`, `safeQueue`, `safeDeque` or `safeMap`. */
133
+ safe, safeDeque, safeList, safeMap, safeQueue, scan,
134
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `select` of `@mark1russell7/service/channel`. */
135
+ select,
136
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name, with no replacement. */
137
+ sequence,
138
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name, with no replacement. */
139
+ sequenceResults, shallowEq, singletonList, singletonMap, skip, skipWhile, some, sort, stringCompare, stringCompareIgnoreCase,
140
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
141
+ stringHashCode, sum, summarizingNumber, summaryTree, summingNumber, synchronized, synchronizedCollection, synchronizedList, synchronizedMap, synchronizedSet, take, takeWhile, tap, teeing, thenComparing,
142
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `ticker` of `@mark1russell7/service/channel`. */
143
+ ticker,
144
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `timeout` of `@mark1russell7/service/channel`. */
145
+ timeout, toArray, toList, toMap,
146
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `unwrap` of `@mark1russell7/optional`. */
147
+ toNullable, toSet, treeMap, treeSet,
148
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `tryCatch` of `@mark1russell7/optional`. */
149
+ tryCatch,
150
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `tryCatchAsync` of `@mark1russell7/optional`. */
151
+ tryCatchAsync, ttlCache, ttlCollection, ttlMap,
152
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `unbuffered` of `@mark1russell7/service/channel`. */
153
+ unbuffered,
154
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `readonlyCollection`. */
155
+ unmodifiableCollection,
156
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `readonlyList`. */
157
+ unmodifiableList,
158
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `readonlyMap`. */
159
+ unmodifiableMap,
160
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name, with no replacement. */
161
+ unwrap,
162
+ /** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name, with no replacement. */
163
+ unwrapResult, window,
164
+ /** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `workerPool` of `@mark1russell7/service/channel`. */
165
+ workerPool, zip, } from "@mark1russell7/collections";
56
166
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AAEH,kEAAkE;AAClE,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAEhC,qGAAqG;AACrG,OAAO,EAEL,UAAU,EAEV,SAAS,EAGT,YAAY,EAEZ,UAAU,EASV,OAAO,EAKP,iBAAiB,EAOjB,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,EACpB,wBAAwB,EACxB,yBAAyB,EAOzB,OAAO,EAKP,GAAG,EACH,YAAY,EAUZ,OAAO,EAGP,OAAO,EAKP,UAAU,EAGV,QAAQ,EAER,aAA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OAAO,EACP,MAAM,EACN,KAAK;AACL,8HAA8H;AAC9H,UAAU,EACV,KAAK,EACL,OAAO,EACP,OAAO;AACP,gIAAgI;AAChI,QAAQ;AACR,qIAAqI;AACrI,aAAa,EACb,QAAQ,EACR,aAAa,EACb,MAAM;AACN,0IAA0I;AAC1I,UAAU;AACV,8GAA8G;AAC9G,sBAAsB;AACtB,wGAAwG;AACxG,gBAAgB;AAChB,uGAAuG;AACvG,eAAe;AACf,wGAAwG;AACxG,MAAM;AACN,wGAAwG;AACxG,YAAY,EACZ,MAAM;AACN,0IAA0I;AAC1I,UAAU,EACV,GAAG,GACJ,MAAM,4BAA4B,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@procedures/collections",
4
- "version": "0.52.3",
4
+ "version": "0.53.1",
5
5
  "description": "Collections for TypeScript: ArrayList, LinkedList, ArrayDeque, HashMap, LinkedHashMap, TreeMap (red-black), PriorityQueue, LRU and TTL maps, async queues, channels and collectors, tested with fast-check.",
6
6
  "keywords": [
7
7
  "collections",
@@ -65,7 +65,7 @@
65
65
  },
66
66
  "dependencies": {
67
67
  "@mark1russell7/collections": "^0.5.0",
68
- "@procedures/client": "0.52.3"
68
+ "@procedures/client": "0.53.1"
69
69
  },
70
70
  "devDependencies": {
71
71
  "typescript": "^7.0.2",