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