@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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,80 @@
|
|
|
1
1
|
# @procedures/collections
|
|
2
2
|
|
|
3
|
+
## 0.54.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ef8e080: `@procedures/collections` uses `@mark1russell7/collections` 0.10, and its root removes the 121 names that version 0.10 does not export (roadmap CLI-131 and CLI-113). The last release marked each of these names as `@deprecated`, with its replacement. MINOR: before 1.0.0 a removed export raises MINOR.
|
|
8
|
+
|
|
9
|
+
Migration steps for the site and each app:
|
|
10
|
+
|
|
11
|
+
1. Import `Optional`, `Result` and their functions from `@mark1russell7/optional`. The table gives the new names.
|
|
12
|
+
|
|
13
|
+
| Old name | New name |
|
|
14
|
+
| --- | --- |
|
|
15
|
+
| `Option` | `Optional` |
|
|
16
|
+
| `Some` | `some` |
|
|
17
|
+
| `None` | `none` |
|
|
18
|
+
| `Ok` | `ok` |
|
|
19
|
+
| `Err` | `err` |
|
|
20
|
+
| `getOrElse` | `getOr` |
|
|
21
|
+
| `getOrElseResult` | `getOkOr` |
|
|
22
|
+
| `mapOption` | `map` |
|
|
23
|
+
| `flatMapOption` | `flatMap` |
|
|
24
|
+
| `mapError` | `mapErr` |
|
|
25
|
+
| `optionToResult` | `fromOptional` |
|
|
26
|
+
| `resultToOption` | `toOptional` |
|
|
27
|
+
| `toNullable` | `unwrap` |
|
|
28
|
+
|
|
29
|
+
2. Read the values of the safe middleware (`safeList`, `safeQueue`, `safeDeque` and `safeMap`) with the field `tag`, not `_tag`. A present value is `{ tag: "some", value }`. An absent value is `{ tag: "none" }`.
|
|
30
|
+
3. Import the 13 channel names (`Channel`, `select`, `timeout`, `ticker`, `pipeline`, `fanOut`, `fanIn`, `merge`, `buffered`, `unbuffered`, `channel`, `workerPool` and the type `SelectCase`) from `@mark1russell7/service/channel`.
|
|
31
|
+
4. Use the retries of `@mark1russell7/service` in place of the retry names of collections.
|
|
32
|
+
5. Change the second names to the names of the table. Do not nest the locked uses of `synchronized`.
|
|
33
|
+
|
|
34
|
+
| Old name | New name |
|
|
35
|
+
| --- | --- |
|
|
36
|
+
| `unmodifiableList` | `readonlyList` |
|
|
37
|
+
| `unmodifiableMap` | `readonlyMap` |
|
|
38
|
+
| `unmodifiableCollection` | `readonlyCollection` |
|
|
39
|
+
| `mutableListOf` | `listOf` |
|
|
40
|
+
| `mutableMapOf` | `mapOf` |
|
|
41
|
+
| `safe` | `safeList`, `safeQueue`, `safeDeque` or `safeMap` |
|
|
42
|
+
| `reentrantSynchronized` | `synchronized` |
|
|
43
|
+
|
|
44
|
+
6. The other removed names have no replacement. The `@deprecated` tag of the last release names each of them.
|
|
45
|
+
|
|
46
|
+
These behaviors of the re-exported names change:
|
|
47
|
+
|
|
48
|
+
- `defaultCompare` orders values of different types by type first. A sort of values of mixed types gives a different order. `1` and `"1"` are not equal.
|
|
49
|
+
- `range` gives `start + i * step` at index `i`. So `range(0, 1, 0.1)` gives 10 numbers, not 11. A value that is not finite, or a `step` of 0, throws a `RangeError`.
|
|
50
|
+
- `nCopies` throws a `RangeError` when `n` is not a safe integer of 0 or more.
|
|
51
|
+
- A full `boundedList` with `drop-oldest` drops the last element at `insert(0, x)`, as `unshift(x)` does.
|
|
52
|
+
- A full `boundedDeque` with `drop-oldest` drops the last element at `addFirst`.
|
|
53
|
+
- An expired entry of `ttlMap` is not in `size`, `getOrUndefined` or the iteration.
|
|
54
|
+
- An evented layer gives no event for an element that a layer below refused.
|
|
55
|
+
|
|
56
|
+
`@procedures/dag` and `@procedures/client` use the range `^0.10.0` too. Their exports do not change. These behaviors of `@procedures/dag` change:
|
|
57
|
+
|
|
58
|
+
- With `failFast: false`, `executeDAG` does not start a node whose dependency failed. The node gets a skipped result, and `DAGResult.skippedNodes` has its id. To start each node, as before, give the option `skipDependents: false`.
|
|
59
|
+
- `dag.traverse` with `continueOnError` does not start the visit of a package whose dependency failed or was skipped. Its result has `skipped: true` and a `reason` with the error of the dependency. Before, the traversal visited such a package.
|
|
60
|
+
- A caller of `dag.traverse` with `continueOnError` that reads `visited` or `skipped` finds the dependents of a failed package in `skipped`.
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- c351b59: The entry `@procedures/collections/testing` marks `ContractViolation` and `deepEqual` as deprecated. A later MINOR removes them, and the checks of the contract suite then throw the `AssertionError` of `node:assert`. The suite then uses `node:assert` and `rejects` of `@mark1russell7/rigor-testkit`, and it does not import `@mark1russell7/collections/testing`.
|
|
65
|
+
|
|
66
|
+
Migration: replace `deepEqual(a, b)` with `isDeepStrictEqual(a, b)` of `node:util`. That function also compares the prototypes. A test that expects a `ContractViolation` from the suite expects an `AssertionError` or an `Error`.
|
|
67
|
+
|
|
68
|
+
PATCH: the exports and the behavior do not change in this version.
|
|
69
|
+
- 1401489: The tarball of each package leaves out `dist/.tsbuildinfo`. The `files` list of each package has the entry `!dist/.tsbuildinfo` after `dist`.
|
|
70
|
+
|
|
71
|
+
The build writes this file for incremental builds. An app does not use it, and it added its size to each tarball (61 KB in `@procedures/json` 0.52.3). The conventions rule `pack-no-buildinfo` finds it.
|
|
72
|
+
|
|
73
|
+
PATCH: the exports and the behavior do not change.
|
|
74
|
+
- Updated dependencies [ef8e080]
|
|
75
|
+
- Updated dependencies [1401489]
|
|
76
|
+
- @procedures/client@0.54.0
|
|
77
|
+
|
|
3
78
|
## 0.53.1
|
|
4
79
|
|
|
5
80
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -514,8 +514,10 @@ const job = await queue.dequeue();
|
|
|
514
514
|
|
|
515
515
|
### Channels (Go-style)
|
|
516
516
|
|
|
517
|
+
The channels are in `@mark1russell7/service/channel`. This package does not export them.
|
|
518
|
+
|
|
517
519
|
```typescript
|
|
518
|
-
import { Channel } from "@
|
|
520
|
+
import { Channel } from "@mark1russell7/service/channel";
|
|
519
521
|
|
|
520
522
|
const ch = new Channel<Message>(10); // Buffered channel
|
|
521
523
|
|
package/dist/index.d.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";
|
|
@@ -14,247 +14,5 @@
|
|
|
14
14
|
export * from "./storage/index.js";
|
|
15
15
|
export * from "./overlay/index.js";
|
|
16
16
|
export * from "./undo/index.js";
|
|
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";
|
|
17
|
+
export { ArrayDeque, type ArrayDequeOptions, ArrayList, type ArrayListOptions, type Async, AsyncQueue, type AsyncQueueOptions, type Bounded, type BoundedCollection, type BoundedOptions, type Collection, type CollectionEvents, type Collector, type Compare, type Deque, type DequeEvents, Emitter, type Entry, type Eq, type EventMap, type Evented, type Hash, HashMap, type HashMapOptions, HashSet, type HashSetOptions, type IAsyncQueue, type IPriorityQueue, type KeyCheckOptions, type KeyedItem, LRUCache, type LRUOptions, LinkedHashMap, type LinkedHashMapOptions, LinkedList, type LinkedListOptions, type List, type ListEvents, type Listener, type MapEvents, type MapLike, type Middleware, type NavigableMap, type NavigableSet, type OverflowContext, type OverflowHandler, type OverflowPolicy, type Point, PriorityQueue, type PriorityQueueOptions, type Queue, type QueueEvents, type RandomAccess, type Readonly, type ReadonlyCollection, type ReadonlyList, type ReadonlyMapLike, type ReadonlyOptions, type ReadonlyQueue, type ReadonlySet, type SafeDequeOperations, type SafeListOperations, type SafeMapOperations, type SafeQueueOperations, type Set, type Settled, type SortedMap, type SortedSet, type Stack, type SummaryLocation, type SummaryMonoid, type SummarySearch, type SummarySpec, type SummaryStatistics, SummaryTree, TTLCache, type TTLOptions, TreeMap, type TreeMapOptions, TreeSet, type TreeSetOptions, type Unsubscribe, arrayDeque, arrayList, asSettled, asyncQueue, average, averagingNumber, blockMethods, booleanCompare, bounded, boundedDeque, boundedList, boundedMap, boundedQueue, buildList, buildMap, bundle, chunk, 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, filter, filtering, find, first, flatMap, flatMapping, flatten, groupBy, groupingBy, groupingByWith, hasCapability, hashBy, hashMap, hashNumber, hashSet, hashString, immutableListOf, immutableMapOf, interceptMethods, isValidKey, iterToMap, joining, keyBetween, keysBetween, keysForDrop, last, linkedHashMap, linkedList, listOf, lruCache, lruMap, map, mapOf, mapping, max, maxBy, min, minBy, nCopies, none, nullsFirst, nullsLast, numberCompare, partition, partitioningBy, pipe, priorityQueue, queueOf, range, rangeTo, readWriteLock, readonly, readonlyCollection, readonlyList, readonlyMap, readonlyQueue, reduce, reducing, reducingWith, reverse, reversed, safeDeque, safeList, safeMap, safeQueue, scan, shallowEq, singletonList, singletonMap, skip, skipWhile, some, sort, stringCompare, stringCompareIgnoreCase, sum, summarizingNumber, summaryTree, summingNumber, synchronized, synchronizedCollection, synchronizedList, synchronizedMap, synchronizedSet, take, takeWhile, tap, teeing, thenComparing, toArray, toList, toMap, toSet, treeMap, treeSet, ttlCache, ttlCollection, ttlMap, window, zip, } from "@mark1russell7/collections";
|
|
260
18
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
|
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,EACL,UAAU,EACV,KAAK,iBAAiB,EACtB,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,KAAK,EACV,UAAU,EACV,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,iBAAi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N,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,OAAO,EACP,SAAS,EACT,IAAI,EACJ,SAAS,EACT,aAAa,EACb,YAAY,EACZ,IAAI,EACJ,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,aAAa,EACb,uBAAuB,EACvB,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,OAAO,EACP,MAAM,EACN,KAAK,EACL,KAAK,EACL,OAAO,EACP,OAAO,EACP,QAAQ,EACR,aAAa,EACb,MAAM,EACN,MAAM,EACN,GAAG,GACJ,MAAM,4BAA4B,CAAC"}
|
package/dist/index.js
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";
|
|
@@ -16,151 +16,5 @@ export * from "./storage/index.js";
|
|
|
16
16
|
export * from "./overlay/index.js";
|
|
17
17
|
export * from "./undo/index.js";
|
|
18
18
|
// The lists, sets, maps, queues, behaviors, channels and lazy operations are in the general package.
|
|
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";
|
|
19
|
+
export { ArrayDeque, ArrayList, AsyncQueue, Emitter, HashMap, HashSet, LRUCache, LinkedHashMap, LinkedList, PriorityQueue, SummaryTree, TTLCache, TreeMap, TreeSet, arrayDeque, arrayList, asSettled, asyncQueue, average, averagingNumber, blockMethods, booleanCompare, bounded, boundedDeque, boundedList, boundedMap, boundedQueue, buildList, buildMap, bundle, chunk, 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, filter, filtering, find, first, flatMap, flatMapping, flatten, groupBy, groupingBy, groupingByWith, hasCapability, hashBy, hashMap, hashNumber, hashSet, hashString, immutableListOf, immutableMapOf, interceptMethods, isValidKey, iterToMap, joining, keyBetween, keysBetween, keysForDrop, last, linkedHashMap, linkedList, listOf, lruCache, lruMap, map, mapOf, mapping, max, maxBy, min, minBy, nCopies, none, nullsFirst, nullsLast, numberCompare, partition, partitioningBy, pipe, priorityQueue, queueOf, range, rangeTo, readWriteLock, readonly, readonlyCollection, readonlyList, readonlyMap, readonlyQueue, reduce, reducing, reducingWith, reverse, reversed, safeDeque, safeList, safeMap, safeQueue, scan, shallowEq, singletonList, singletonMap, skip, skipWhile, some, sort, stringCompare, stringCompareIgnoreCase, sum, summarizingNumber, summaryTree, summingNumber, synchronized, synchronizedCollection, synchronizedList, synchronizedMap, synchronizedSet, take, takeWhile, tap, teeing, thenComparing, toArray, toList, toMap, toSet, treeMap, treeSet, ttlCache, ttlCollection, ttlMap, window, zip, } from "@mark1russell7/collections";
|
|
166
20
|
//# 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;;;;;;;;;;;;GAYG;AAEH,kEAAkE;AAClE,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAEhC,qGAAqG;AACrG,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,kEAAkE;AAClE,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAEhC,qGAAqG;AACrG,OAAO,EACL,UAAU,EAEV,SAAS,EAGT,UAAU,EAWV,OAAO,EAMP,OAAO,EAEP,OAAO,EAMP,QAAQ,EAER,aAAa,EAEb,UAAU,EAcV,aAAa,EA0Bb,WAAW,EACX,QAAQ,EAER,OAAO,EAEP,OAAO,EAGP,UAAU,EACV,SAAS,EACT,SAAS,EACT,UAAU,EACV,OAAO,EACP,eAAe,EACf,YAAY,EACZ,cAAc,EACd,OAAO,EACP,YAAY,EACZ,WAAW,EACX,UAAU,EACV,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,MAAM,EACN,KAAK,EACL,OAAO,EACP,cAAc,EACd,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,WAAW,EACX,SAAS,EACT,YAAY,EACZ,OAAO,EACP,MAAM,EACN,KAAK,EACL,QAAQ,EACR,aAAa,EACb,WAA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AAa,EACb,OAAO,EACP,MAAM,EACN,KAAK,EACL,KAAK,EACL,OAAO,EACP,OAAO,EACP,QAAQ,EACR,aAAa,EACb,MAAM,EACN,MAAM,EACN,GAAG,GACJ,MAAM,4BAA4B,CAAC"}
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -6,5 +6,12 @@
|
|
|
6
6
|
* `describe` and `it`. The runtime entries of the package do not import this entry.
|
|
7
7
|
*/
|
|
8
8
|
export { collectionStorageContract, contractVersionOf, describeCollectionStorageContract, type CollectionStorageContractOptions, type ContractCase, type ContractItem, type ContractStorage, type ContractTestApi, type ContractTestContext, } from "./storage-contract.js";
|
|
9
|
-
export {
|
|
9
|
+
export {
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated A later MINOR removes this name. The checks of the suite then throw the `AssertionError` of
|
|
12
|
+
* `node:assert`.
|
|
13
|
+
*/
|
|
14
|
+
ContractViolation,
|
|
15
|
+
/** @deprecated A later MINOR removes this name. Use `isDeepStrictEqual` of `node:util`. */
|
|
16
|
+
deepEqual, } from "@mark1russell7/collections/testing";
|
|
10
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,iCAAiC,EACjC,KAAK,gCAAgC,EACrC,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,mBAAmB,GACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,iCAAiC,EACjC,KAAK,gCAAgC,EACrC,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,mBAAmB,GACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO;AACL;;;GAGG;AACH,iBAAiB;AACjB,2FAA2F;AAC3F,SAAS,GACV,MAAM,oCAAoC,CAAC"}
|
package/dist/testing/index.js
CHANGED
|
@@ -6,5 +6,12 @@
|
|
|
6
6
|
* `describe` and `it`. The runtime entries of the package do not import this entry.
|
|
7
7
|
*/
|
|
8
8
|
export { collectionStorageContract, contractVersionOf, describeCollectionStorageContract, } from "./storage-contract.js";
|
|
9
|
-
export {
|
|
9
|
+
export {
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated A later MINOR removes this name. The checks of the suite then throw the `AssertionError` of
|
|
12
|
+
* `node:assert`.
|
|
13
|
+
*/
|
|
14
|
+
ContractViolation,
|
|
15
|
+
/** @deprecated A later MINOR removes this name. Use `isDeepStrictEqual` of `node:util`. */
|
|
16
|
+
deepEqual, } from "@mark1russell7/collections/testing";
|
|
10
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,iCAAiC,GAOlC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,iCAAiC,GAOlC,MAAM,uBAAuB,CAAC;AAC/B,OAAO;AACL;;;GAGG;AACH,iBAAiB;AACjB,2FAA2F;AAC3F,SAAS,GACV,MAAM,oCAAoC,CAAC"}
|