@procedures/collections 0.52.2 → 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/CHANGELOG.md +46 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.d.ts +250 -44
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +154 -44
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +128 -43
package/src/index.ts
CHANGED
|
@@ -1,51 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* This module is the root of `@procedures/collections`.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
21
|
-
*
|
|
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
|
|
|
51
15
|
// The storage, the overlay and the undo log stay in this package.
|
|
@@ -55,72 +19,111 @@ export * from "./undo/index.js";
|
|
|
55
19
|
|
|
56
20
|
// The lists, sets, maps, queues, behaviors, channels and lazy operations are in the general package.
|
|
57
21
|
export {
|
|
22
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
58
23
|
type ArrayConvertible,
|
|
59
24
|
ArrayDeque,
|
|
60
25
|
type ArrayDequeOptions,
|
|
61
26
|
ArrayList,
|
|
62
27
|
type ArrayListOptions,
|
|
63
28
|
type Async,
|
|
29
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
64
30
|
AsyncEmitter,
|
|
31
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
65
32
|
type AsyncOption,
|
|
66
33
|
AsyncQueue,
|
|
67
34
|
type AsyncQueueOptions,
|
|
35
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
68
36
|
type AsyncResult,
|
|
37
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
69
38
|
type Asyncify,
|
|
39
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
70
40
|
type BiMap,
|
|
41
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
71
42
|
type BlockingQueue,
|
|
72
43
|
type Bounded,
|
|
73
44
|
type BoundedCollection,
|
|
74
45
|
type BoundedOptions,
|
|
46
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `Channel` of `@mark1russell7/service/channel`. */
|
|
75
47
|
Channel,
|
|
48
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
76
49
|
type CircularList,
|
|
50
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
77
51
|
type Clearable,
|
|
52
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
78
53
|
type Cloneable,
|
|
79
54
|
type Collection,
|
|
55
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
80
56
|
CollectionBuilder,
|
|
81
57
|
type CollectionEvents,
|
|
82
58
|
type Collector,
|
|
59
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
83
60
|
type CompactionPolicy,
|
|
84
61
|
type Compare,
|
|
62
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
85
63
|
type ComparisonProvider,
|
|
64
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
86
65
|
type ConflictResolutionPolicy,
|
|
66
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
87
67
|
DEFAULT_CONFLICT_POLICY,
|
|
68
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
88
69
|
DEFAULT_EVICTION_POLICY,
|
|
70
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
89
71
|
DEFAULT_GROWTH_POLICY,
|
|
72
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
90
73
|
DEFAULT_OVERFLOW_POLICY,
|
|
74
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. The retries of `@mark1russell7/service` replace it. */
|
|
91
75
|
DEFAULT_RETRY_POLICY,
|
|
76
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
92
77
|
DEFAULT_UNDERFLOW_POLICY,
|
|
78
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
93
79
|
DEFAULT_VALIDATION_POLICY,
|
|
80
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
94
81
|
type DelayQueue,
|
|
95
82
|
type Deque,
|
|
96
83
|
type DequeEvents,
|
|
84
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
97
85
|
type Disposable,
|
|
86
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
98
87
|
type ElementOf,
|
|
88
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
99
89
|
type ElementType,
|
|
100
90
|
Emitter,
|
|
91
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
101
92
|
type Emptiable,
|
|
102
93
|
type Entry,
|
|
103
94
|
type Eq,
|
|
95
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
104
96
|
type EqualityProvider,
|
|
97
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `err` of `@mark1russell7/optional`. */
|
|
105
98
|
Err,
|
|
99
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
106
100
|
EventBatcher,
|
|
107
101
|
type EventMap,
|
|
108
102
|
type Evented,
|
|
103
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
109
104
|
type EvictionCandidate,
|
|
105
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
110
106
|
type EvictionMetadata,
|
|
107
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
111
108
|
type EvictionPolicy,
|
|
109
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
112
110
|
type EvictionSelector,
|
|
111
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
113
112
|
type Freezable,
|
|
113
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
114
114
|
type GrowthPolicy,
|
|
115
115
|
type Hash,
|
|
116
116
|
HashMap,
|
|
117
117
|
type HashMapOptions,
|
|
118
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
118
119
|
type HashProvider,
|
|
119
120
|
HashSet,
|
|
120
121
|
type HashSetOptions,
|
|
121
122
|
type IAsyncQueue,
|
|
122
123
|
type IPriorityQueue,
|
|
124
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
123
125
|
type IsReadonly,
|
|
126
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
124
127
|
KEY_DIGITS,
|
|
125
128
|
type KeyCheckOptions,
|
|
126
129
|
type KeyedItem,
|
|
@@ -135,14 +138,20 @@ export {
|
|
|
135
138
|
type Listener,
|
|
136
139
|
type MapEvents,
|
|
137
140
|
type MapLike,
|
|
141
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
138
142
|
type MergeFunction,
|
|
139
143
|
type Middleware,
|
|
144
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
140
145
|
type MultiMap,
|
|
146
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
141
147
|
type MutableCollectionBase,
|
|
142
148
|
type NavigableMap,
|
|
143
149
|
type NavigableSet,
|
|
150
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `none` of `@mark1russell7/optional`. */
|
|
144
151
|
None,
|
|
152
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `ok` of `@mark1russell7/optional`. */
|
|
145
153
|
Ok,
|
|
154
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `Optional` of `@mark1russell7/optional`. */
|
|
146
155
|
type Option,
|
|
147
156
|
type OverflowContext,
|
|
148
157
|
type OverflowHandler,
|
|
@@ -155,25 +164,34 @@ export {
|
|
|
155
164
|
type RandomAccess,
|
|
156
165
|
type Readonly,
|
|
157
166
|
type ReadonlyCollection,
|
|
167
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
158
168
|
type ReadonlyCollectionBase,
|
|
159
169
|
type ReadonlyList,
|
|
160
170
|
type ReadonlyMapLike,
|
|
161
171
|
type ReadonlyOptions,
|
|
162
172
|
type ReadonlyQueue,
|
|
163
173
|
type ReadonlySet,
|
|
174
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `Result` of `@mark1russell7/optional`. */
|
|
164
175
|
type Result,
|
|
176
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. The retries of `@mark1russell7/service` replace it. */
|
|
165
177
|
type RetryContext,
|
|
178
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. The retries of `@mark1russell7/service` replace it. */
|
|
166
179
|
type RetryPolicy,
|
|
180
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. The retries of `@mark1russell7/service` replace it. */
|
|
167
181
|
type RetryPredicate,
|
|
182
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
168
183
|
type SafeCollection,
|
|
169
184
|
type SafeDequeOperations,
|
|
170
185
|
type SafeListOperations,
|
|
171
186
|
type SafeMapOperations,
|
|
172
187
|
type SafeQueueOperations,
|
|
188
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `SelectCase` of `@mark1russell7/service/channel`. */
|
|
173
189
|
type SelectCase,
|
|
174
190
|
type Set,
|
|
175
191
|
type Settled,
|
|
192
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
176
193
|
type Sized,
|
|
194
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `some` of `@mark1russell7/optional`. */
|
|
177
195
|
Some,
|
|
178
196
|
type SortedMap,
|
|
179
197
|
type SortedSet,
|
|
@@ -186,26 +204,40 @@ export {
|
|
|
186
204
|
SummaryTree,
|
|
187
205
|
TTLCache,
|
|
188
206
|
type TTLOptions,
|
|
207
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
189
208
|
type TransferQueue,
|
|
190
209
|
TreeMap,
|
|
191
210
|
type TreeMapOptions,
|
|
192
211
|
TreeSet,
|
|
193
212
|
type TreeSetOptions,
|
|
213
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
194
214
|
type UnderflowContext,
|
|
215
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
195
216
|
type UnderflowHandler,
|
|
217
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
196
218
|
type UnderflowPolicy,
|
|
197
219
|
type Unsubscribe,
|
|
220
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
198
221
|
type ValidationContext,
|
|
222
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
199
223
|
type ValidationHandler,
|
|
224
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
200
225
|
type ValidationPolicy,
|
|
226
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
201
227
|
type Vector,
|
|
228
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
202
229
|
type WeakMapLike,
|
|
230
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
203
231
|
type WithCapability,
|
|
232
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
204
233
|
arrayContains,
|
|
205
234
|
arrayDeque,
|
|
235
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
206
236
|
arrayIterator,
|
|
207
237
|
arrayList,
|
|
238
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
208
239
|
arrayRemove,
|
|
240
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
209
241
|
arrayRemoveAll,
|
|
210
242
|
asSettled,
|
|
211
243
|
asyncQueue,
|
|
@@ -218,15 +250,21 @@ export {
|
|
|
218
250
|
boundedList,
|
|
219
251
|
boundedMap,
|
|
220
252
|
boundedQueue,
|
|
253
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `buffered` of `@mark1russell7/service/channel`. */
|
|
221
254
|
buffered,
|
|
222
255
|
buildList,
|
|
223
256
|
buildMap,
|
|
224
257
|
bundle,
|
|
258
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `channel` of `@mark1russell7/service/channel`. */
|
|
225
259
|
channel,
|
|
260
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
226
261
|
checkBounds,
|
|
262
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
227
263
|
checkInsertBounds,
|
|
264
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
228
265
|
checkRangeBounds,
|
|
229
266
|
chunk,
|
|
267
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
230
268
|
clamp,
|
|
231
269
|
collect,
|
|
232
270
|
collectToArray,
|
|
@@ -263,22 +301,32 @@ export {
|
|
|
263
301
|
eventedMap,
|
|
264
302
|
eventedQueue,
|
|
265
303
|
every,
|
|
304
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `fanIn` of `@mark1russell7/service/channel`. */
|
|
266
305
|
fanIn,
|
|
306
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `fanOut` of `@mark1russell7/service/channel`. */
|
|
267
307
|
fanOut,
|
|
268
308
|
filter,
|
|
269
309
|
filtering,
|
|
270
310
|
find,
|
|
311
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
271
312
|
findIndex,
|
|
313
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
272
314
|
findLastIndex,
|
|
273
315
|
first,
|
|
274
316
|
flatMap,
|
|
317
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `flatMap` of `@mark1russell7/optional`. */
|
|
275
318
|
flatMapOption,
|
|
319
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `flatMapResult` of `@mark1russell7/optional`. */
|
|
276
320
|
flatMapResult,
|
|
277
321
|
flatMapping,
|
|
278
322
|
flatten,
|
|
323
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
279
324
|
forwardEvent,
|
|
325
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `fromNullable` of `@mark1russell7/optional`. */
|
|
280
326
|
fromNullable,
|
|
327
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `getOr` of `@mark1russell7/optional`. */
|
|
281
328
|
getOrElse,
|
|
329
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `getOkOr` of `@mark1russell7/optional`. */
|
|
282
330
|
getOrElseResult,
|
|
283
331
|
groupBy,
|
|
284
332
|
groupingBy,
|
|
@@ -292,9 +340,13 @@ export {
|
|
|
292
340
|
immutableListOf,
|
|
293
341
|
immutableMapOf,
|
|
294
342
|
interceptMethods,
|
|
343
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `isErr` of `@mark1russell7/optional`. */
|
|
295
344
|
isErr,
|
|
345
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `isNone` of `@mark1russell7/optional`. */
|
|
296
346
|
isNone,
|
|
347
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `isOk` of `@mark1russell7/optional`. */
|
|
297
348
|
isOk,
|
|
349
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `isSome` of `@mark1russell7/optional`. */
|
|
298
350
|
isSome,
|
|
299
351
|
isValidKey,
|
|
300
352
|
iterToMap,
|
|
@@ -309,30 +361,41 @@ export {
|
|
|
309
361
|
lruCache,
|
|
310
362
|
lruMap,
|
|
311
363
|
map,
|
|
364
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
312
365
|
mapAsyncOption,
|
|
366
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
313
367
|
mapAsyncResult,
|
|
368
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `mapErr` of `@mark1russell7/optional`. */
|
|
314
369
|
mapError,
|
|
315
370
|
mapOf,
|
|
371
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `map` of `@mark1russell7/optional`. */
|
|
316
372
|
mapOption,
|
|
373
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `mapResult` of `@mark1russell7/optional`. */
|
|
317
374
|
mapResult,
|
|
318
375
|
mapping,
|
|
319
376
|
max,
|
|
320
377
|
maxBy,
|
|
378
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `merge` of `@mark1russell7/service/channel`. */
|
|
321
379
|
merge,
|
|
322
380
|
min,
|
|
323
381
|
minBy,
|
|
382
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `listOf`. */
|
|
324
383
|
mutableListOf,
|
|
384
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `mapOf`. */
|
|
325
385
|
mutableMapOf,
|
|
326
386
|
nCopies,
|
|
327
387
|
none,
|
|
328
388
|
nullsFirst,
|
|
329
389
|
nullsLast,
|
|
330
390
|
numberCompare,
|
|
391
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
331
392
|
onWhen,
|
|
393
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `fromOptional` of `@mark1russell7/optional`. */
|
|
332
394
|
optionToResult,
|
|
333
395
|
partition,
|
|
334
396
|
partitioningBy,
|
|
335
397
|
pipe,
|
|
398
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `pipeline` of `@mark1russell7/service/channel`. */
|
|
336
399
|
pipeline,
|
|
337
400
|
priorityQueue,
|
|
338
401
|
queueOf,
|
|
@@ -347,21 +410,30 @@ export {
|
|
|
347
410
|
reduce,
|
|
348
411
|
reducing,
|
|
349
412
|
reducingWith,
|
|
413
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `synchronized`, and do not nest locked uses. */
|
|
350
414
|
reentrantSynchronized,
|
|
415
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
351
416
|
requireNonEmpty,
|
|
417
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
352
418
|
requireNonNull,
|
|
419
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `toOptional` of `@mark1russell7/optional`. */
|
|
353
420
|
resultToOption,
|
|
354
421
|
reverse,
|
|
422
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
355
423
|
reverseArrayIterator,
|
|
356
424
|
reversed,
|
|
425
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `safeList`, `safeQueue`, `safeDeque` or `safeMap`. */
|
|
357
426
|
safe,
|
|
358
427
|
safeDeque,
|
|
359
428
|
safeList,
|
|
360
429
|
safeMap,
|
|
361
430
|
safeQueue,
|
|
362
431
|
scan,
|
|
432
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `select` of `@mark1russell7/service/channel`. */
|
|
363
433
|
select,
|
|
434
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
364
435
|
sequence,
|
|
436
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
365
437
|
sequenceResults,
|
|
366
438
|
shallowEq,
|
|
367
439
|
singletonList,
|
|
@@ -372,6 +444,7 @@ export {
|
|
|
372
444
|
sort,
|
|
373
445
|
stringCompare,
|
|
374
446
|
stringCompareIgnoreCase,
|
|
447
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
375
448
|
stringHashCode,
|
|
376
449
|
sum,
|
|
377
450
|
summarizingNumber,
|
|
@@ -387,27 +460,39 @@ export {
|
|
|
387
460
|
tap,
|
|
388
461
|
teeing,
|
|
389
462
|
thenComparing,
|
|
463
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `ticker` of `@mark1russell7/service/channel`. */
|
|
390
464
|
ticker,
|
|
465
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `timeout` of `@mark1russell7/service/channel`. */
|
|
391
466
|
timeout,
|
|
392
467
|
toArray,
|
|
393
468
|
toList,
|
|
394
469
|
toMap,
|
|
470
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `unwrap` of `@mark1russell7/optional`. */
|
|
395
471
|
toNullable,
|
|
396
472
|
toSet,
|
|
397
473
|
treeMap,
|
|
398
474
|
treeSet,
|
|
475
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `tryCatch` of `@mark1russell7/optional`. */
|
|
399
476
|
tryCatch,
|
|
477
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name. Use `tryCatchAsync` of `@mark1russell7/optional`. */
|
|
400
478
|
tryCatchAsync,
|
|
401
479
|
ttlCache,
|
|
402
480
|
ttlCollection,
|
|
403
481
|
ttlMap,
|
|
482
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `unbuffered` of `@mark1russell7/service/channel`. */
|
|
404
483
|
unbuffered,
|
|
484
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `readonlyCollection`. */
|
|
405
485
|
unmodifiableCollection,
|
|
486
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `readonlyList`. */
|
|
406
487
|
unmodifiableList,
|
|
488
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `readonlyMap`. */
|
|
407
489
|
unmodifiableMap,
|
|
490
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
408
491
|
unwrap,
|
|
492
|
+
/** @deprecated Version 0.7.0 of `@mark1russell7/collections` removes this name, with no replacement. */
|
|
409
493
|
unwrapResult,
|
|
410
494
|
window,
|
|
495
|
+
/** @deprecated Version 0.10.0 of `@mark1russell7/collections` removes this name. Use `workerPool` of `@mark1russell7/service/channel`. */
|
|
411
496
|
workerPool,
|
|
412
497
|
zip,
|
|
413
498
|
} from "@mark1russell7/collections";
|