@procedures/client 0.2.0 → 0.2.2
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 +12 -0
- package/README.md +4 -4
- package/dist/.tsbuildinfo +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js.map +1 -1
- package/dist/procedures/invoke.d.ts +6 -1
- package/dist/procedures/invoke.d.ts.map +1 -1
- package/dist/procedures/invoke.js +2 -2
- package/dist/procedures/invoke.js.map +1 -1
- package/dist/procedures/schema.d.ts +4 -1
- package/dist/procedures/schema.d.ts.map +1 -1
- package/dist/procedures/schema.js +27 -2
- package/dist/procedures/schema.js.map +1 -1
- package/dist/server/host-policy.d.ts +3 -3
- package/dist/server/host-policy.d.ts.map +1 -1
- package/dist/server/procedure-server.d.ts +2 -2
- package/dist/server/procedure-server.d.ts.map +1 -1
- package/dist/server/procedure-server.js.map +1 -1
- package/package.json +1 -1
- package/src/browser.ts +1 -0
- package/src/procedures/invoke.ts +10 -4
- package/src/procedures/schema.ts +27 -2
- package/src/server/host-policy.ts +3 -3
- package/src/server/procedure-server.ts +2 -2
- package/dist/client/middleware/batching.d.ts +0 -102
- package/dist/client/middleware/batching.d.ts.map +0 -1
- package/dist/client/middleware/batching.js +0 -245
- package/dist/client/middleware/batching.js.map +0 -1
- package/dist/collections/async/async-queue.d.ts +0 -144
- package/dist/collections/async/async-queue.d.ts.map +0 -1
- package/dist/collections/async/async-queue.js +0 -347
- package/dist/collections/async/async-queue.js.map +0 -1
- package/dist/collections/async/channels.d.ts +0 -188
- package/dist/collections/async/channels.d.ts.map +0 -1
- package/dist/collections/async/channels.js +0 -312
- package/dist/collections/async/channels.js.map +0 -1
- package/dist/collections/behaviors/bounded.d.ts +0 -79
- package/dist/collections/behaviors/bounded.d.ts.map +0 -1
- package/dist/collections/behaviors/bounded.js +0 -384
- package/dist/collections/behaviors/bounded.js.map +0 -1
- package/dist/collections/behaviors/evented.d.ts +0 -154
- package/dist/collections/behaviors/evented.d.ts.map +0 -1
- package/dist/collections/behaviors/evented.js +0 -299
- package/dist/collections/behaviors/evented.js.map +0 -1
- package/dist/collections/behaviors/lru.d.ts +0 -84
- package/dist/collections/behaviors/lru.d.ts.map +0 -1
- package/dist/collections/behaviors/lru.js +0 -330
- package/dist/collections/behaviors/lru.js.map +0 -1
- package/dist/collections/behaviors/readonly.d.ts +0 -73
- package/dist/collections/behaviors/readonly.d.ts.map +0 -1
- package/dist/collections/behaviors/readonly.js +0 -158
- package/dist/collections/behaviors/readonly.js.map +0 -1
- package/dist/collections/behaviors/safe.d.ts +0 -163
- package/dist/collections/behaviors/safe.d.ts.map +0 -1
- package/dist/collections/behaviors/safe.js +0 -172
- package/dist/collections/behaviors/safe.js.map +0 -1
- package/dist/collections/behaviors/synchronized.d.ts +0 -88
- package/dist/collections/behaviors/synchronized.d.ts.map +0 -1
- package/dist/collections/behaviors/synchronized.js +0 -294
- package/dist/collections/behaviors/synchronized.js.map +0 -1
- package/dist/collections/behaviors/ttl.d.ts +0 -118
- package/dist/collections/behaviors/ttl.d.ts.map +0 -1
- package/dist/collections/behaviors/ttl.js +0 -338
- package/dist/collections/behaviors/ttl.js.map +0 -1
- package/dist/collections/core/effects.d.ts +0 -176
- package/dist/collections/core/effects.d.ts.map +0 -1
- package/dist/collections/core/effects.js +0 -180
- package/dist/collections/core/effects.js.map +0 -1
- package/dist/collections/core/events.d.ts +0 -192
- package/dist/collections/core/events.d.ts.map +0 -1
- package/dist/collections/core/events.js +0 -291
- package/dist/collections/core/events.js.map +0 -1
- package/dist/collections/core/middleware.d.ts +0 -231
- package/dist/collections/core/middleware.d.ts.map +0 -1
- package/dist/collections/core/middleware.js +0 -161
- package/dist/collections/core/middleware.js.map +0 -1
- package/dist/collections/core/policies.d.ts +0 -220
- package/dist/collections/core/policies.d.ts.map +0 -1
- package/dist/collections/core/policies.js +0 -48
- package/dist/collections/core/policies.js.map +0 -1
- package/dist/collections/core/traits.d.ts +0 -142
- package/dist/collections/core/traits.d.ts.map +0 -1
- package/dist/collections/core/traits.js +0 -8
- package/dist/collections/core/traits.js.map +0 -1
- package/dist/collections/examples.d.ts +0 -13
- package/dist/collections/examples.d.ts.map +0 -1
- package/dist/collections/examples.js +0 -302
- package/dist/collections/examples.js.map +0 -1
- package/dist/collections/fx/collectors.d.ts +0 -190
- package/dist/collections/fx/collectors.d.ts.map +0 -1
- package/dist/collections/fx/collectors.js +0 -369
- package/dist/collections/fx/collectors.js.map +0 -1
- package/dist/collections/fx/iter.d.ts +0 -166
- package/dist/collections/fx/iter.d.ts.map +0 -1
- package/dist/collections/fx/iter.js +0 -421
- package/dist/collections/fx/iter.js.map +0 -1
- package/dist/collections/impl/array-deque.d.ts +0 -107
- package/dist/collections/impl/array-deque.d.ts.map +0 -1
- package/dist/collections/impl/array-deque.js +0 -381
- package/dist/collections/impl/array-deque.js.map +0 -1
- package/dist/collections/impl/array-list.d.ts +0 -101
- package/dist/collections/impl/array-list.d.ts.map +0 -1
- package/dist/collections/impl/array-list.js +0 -387
- package/dist/collections/impl/array-list.js.map +0 -1
- package/dist/collections/impl/hash-map.d.ts +0 -141
- package/dist/collections/impl/hash-map.d.ts.map +0 -1
- package/dist/collections/impl/hash-map.js +0 -450
- package/dist/collections/impl/hash-map.js.map +0 -1
- package/dist/collections/impl/hash-set.d.ts +0 -125
- package/dist/collections/impl/hash-set.d.ts.map +0 -1
- package/dist/collections/impl/hash-set.js +0 -264
- package/dist/collections/impl/hash-set.js.map +0 -1
- package/dist/collections/impl/linked-hash-map.d.ts +0 -141
- package/dist/collections/impl/linked-hash-map.d.ts.map +0 -1
- package/dist/collections/impl/linked-hash-map.js +0 -472
- package/dist/collections/impl/linked-hash-map.js.map +0 -1
- package/dist/collections/impl/linked-list.d.ts +0 -109
- package/dist/collections/impl/linked-list.d.ts.map +0 -1
- package/dist/collections/impl/linked-list.js +0 -491
- package/dist/collections/impl/linked-list.js.map +0 -1
- package/dist/collections/impl/priority-queue.d.ts +0 -134
- package/dist/collections/impl/priority-queue.d.ts.map +0 -1
- package/dist/collections/impl/priority-queue.js +0 -336
- package/dist/collections/impl/priority-queue.js.map +0 -1
- package/dist/collections/impl/tree-map.d.ts +0 -146
- package/dist/collections/impl/tree-map.d.ts.map +0 -1
- package/dist/collections/impl/tree-map.js +0 -781
- package/dist/collections/impl/tree-map.js.map +0 -1
- package/dist/collections/impl/tree-set.d.ts +0 -112
- package/dist/collections/impl/tree-set.d.ts.map +0 -1
- package/dist/collections/impl/tree-set.js +0 -374
- package/dist/collections/impl/tree-set.js.map +0 -1
- package/dist/collections/index.d.ts +0 -105
- package/dist/collections/index.d.ts.map +0 -1
- package/dist/collections/index.js +0 -135
- package/dist/collections/index.js.map +0 -1
- package/dist/collections/interfaces/collection.d.ts +0 -119
- package/dist/collections/interfaces/collection.d.ts.map +0 -1
- package/dist/collections/interfaces/collection.js +0 -8
- package/dist/collections/interfaces/collection.js.map +0 -1
- package/dist/collections/interfaces/list.d.ts +0 -247
- package/dist/collections/interfaces/list.d.ts.map +0 -1
- package/dist/collections/interfaces/list.js +0 -8
- package/dist/collections/interfaces/list.js.map +0 -1
- package/dist/collections/interfaces/map.d.ts +0 -344
- package/dist/collections/interfaces/map.d.ts.map +0 -1
- package/dist/collections/interfaces/map.js +0 -8
- package/dist/collections/interfaces/map.js.map +0 -1
- package/dist/collections/interfaces/queue.d.ts +0 -304
- package/dist/collections/interfaces/queue.d.ts.map +0 -1
- package/dist/collections/interfaces/queue.js +0 -8
- package/dist/collections/interfaces/queue.js.map +0 -1
- package/dist/collections/interfaces/set.d.ts +0 -137
- package/dist/collections/interfaces/set.d.ts.map +0 -1
- package/dist/collections/interfaces/set.js +0 -8
- package/dist/collections/interfaces/set.js.map +0 -1
- package/dist/collections/storage/api.d.ts +0 -109
- package/dist/collections/storage/api.d.ts.map +0 -1
- package/dist/collections/storage/api.js +0 -182
- package/dist/collections/storage/api.js.map +0 -1
- package/dist/collections/storage/hybrid.d.ts +0 -164
- package/dist/collections/storage/hybrid.d.ts.map +0 -1
- package/dist/collections/storage/hybrid.js +0 -416
- package/dist/collections/storage/hybrid.js.map +0 -1
- package/dist/collections/storage/index.d.ts +0 -16
- package/dist/collections/storage/index.d.ts.map +0 -1
- package/dist/collections/storage/index.js +0 -13
- package/dist/collections/storage/index.js.map +0 -1
- package/dist/collections/storage/interface.d.ts +0 -141
- package/dist/collections/storage/interface.d.ts.map +0 -1
- package/dist/collections/storage/interface.js +0 -23
- package/dist/collections/storage/interface.js.map +0 -1
- package/dist/collections/storage/memory.d.ts +0 -68
- package/dist/collections/storage/memory.d.ts.map +0 -1
- package/dist/collections/storage/memory.js +0 -154
- package/dist/collections/storage/memory.js.map +0 -1
- package/dist/collections/utils/defaults.d.ts +0 -135
- package/dist/collections/utils/defaults.d.ts.map +0 -1
- package/dist/collections/utils/defaults.js +0 -322
- package/dist/collections/utils/defaults.js.map +0 -1
- package/dist/collections/utils/factories.d.ts +0 -144
- package/dist/collections/utils/factories.d.ts.map +0 -1
- package/dist/collections/utils/factories.js +0 -293
- package/dist/collections/utils/factories.js.map +0 -1
- package/dist/collections/utils/helpers.d.ts +0 -137
- package/dist/collections/utils/helpers.d.ts.map +0 -1
- package/dist/collections/utils/helpers.js +0 -221
- package/dist/collections/utils/helpers.js.map +0 -1
- package/dist/collections.d.ts +0 -12
- package/dist/collections.d.ts.map +0 -1
- package/dist/collections.js +0 -10
- package/dist/collections.js.map +0 -1
- package/dist/components/define.d.ts +0 -134
- package/dist/components/define.d.ts.map +0 -1
- package/dist/components/define.js +0 -486
- package/dist/components/define.js.map +0 -1
- package/dist/components/index.d.ts +0 -39
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/index.js +0 -38
- package/dist/components/index.js.map +0 -1
- package/dist/components/types.d.ts +0 -264
- package/dist/components/types.d.ts.map +0 -1
- package/dist/components/types.js +0 -46
- package/dist/components/types.js.map +0 -1
- package/dist/procedures/storage/adapter.d.ts +0 -148
- package/dist/procedures/storage/adapter.d.ts.map +0 -1
- package/dist/procedures/storage/adapter.js +0 -214
- package/dist/procedures/storage/adapter.js.map +0 -1
- package/dist/procedures/storage/api.d.ts +0 -125
- package/dist/procedures/storage/api.d.ts.map +0 -1
- package/dist/procedures/storage/api.js +0 -220
- package/dist/procedures/storage/api.js.map +0 -1
- package/dist/procedures/storage/factory.d.ts +0 -134
- package/dist/procedures/storage/factory.d.ts.map +0 -1
- package/dist/procedures/storage/factory.js +0 -166
- package/dist/procedures/storage/factory.js.map +0 -1
- package/dist/procedures/storage/hybrid.d.ts +0 -193
- package/dist/procedures/storage/hybrid.d.ts.map +0 -1
- package/dist/procedures/storage/hybrid.js +0 -519
- package/dist/procedures/storage/hybrid.js.map +0 -1
- package/dist/procedures/storage/index.d.ts +0 -17
- package/dist/procedures/storage/index.d.ts.map +0 -1
- package/dist/procedures/storage/index.js +0 -17
- package/dist/procedures/storage/index.js.map +0 -1
- package/dist/procedures/storage/procedures.d.ts +0 -39
- package/dist/procedures/storage/procedures.d.ts.map +0 -1
- package/dist/procedures/storage/procedures.js +0 -261
- package/dist/procedures/storage/procedures.js.map +0 -1
- package/dist/procedures/storage/serialization.d.ts +0 -123
- package/dist/procedures/storage/serialization.d.ts.map +0 -1
- package/dist/procedures/storage/serialization.js +0 -216
- package/dist/procedures/storage/serialization.js.map +0 -1
- package/dist/procedures/storage/synced-registry.d.ts +0 -246
- package/dist/procedures/storage/synced-registry.d.ts.map +0 -1
- package/dist/procedures/storage/synced-registry.js +0 -575
- package/dist/procedures/storage/synced-registry.js.map +0 -1
- package/dist/procedures/storage/types.d.ts +0 -130
- package/dist/procedures/storage/types.d.ts.map +0 -1
- package/dist/procedures/storage/types.js +0 -8
- package/dist/procedures/storage/types.js.map +0 -1
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Policy types for configurable collection behaviors.
|
|
3
|
-
*
|
|
4
|
-
* Policies define how collections handle edge cases like overflow,
|
|
5
|
-
* underflow, and eviction. These are used by behavior decorators
|
|
6
|
-
* to provide flexible, composable behavior.
|
|
7
|
-
*/
|
|
8
|
-
// ============================================================================
|
|
9
|
-
// Default policies
|
|
10
|
-
// ============================================================================
|
|
11
|
-
/**
|
|
12
|
-
* Default overflow policy: throw an error.
|
|
13
|
-
*/
|
|
14
|
-
export const DEFAULT_OVERFLOW_POLICY = "throw";
|
|
15
|
-
/**
|
|
16
|
-
* Default underflow policy: throw an error.
|
|
17
|
-
*/
|
|
18
|
-
export const DEFAULT_UNDERFLOW_POLICY = "throw";
|
|
19
|
-
/**
|
|
20
|
-
* Default eviction policy: FIFO (oldest first).
|
|
21
|
-
*/
|
|
22
|
-
export const DEFAULT_EVICTION_POLICY = "fifo";
|
|
23
|
-
/**
|
|
24
|
-
* Default retry policy: 3 attempts with exponential backoff.
|
|
25
|
-
*/
|
|
26
|
-
export const DEFAULT_RETRY_POLICY = {
|
|
27
|
-
maxAttempts: 3,
|
|
28
|
-
initialDelay: 100,
|
|
29
|
-
backoff: "exponential",
|
|
30
|
-
maxDelay: 5000,
|
|
31
|
-
jitter: true,
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Default conflict resolution: last write wins.
|
|
35
|
-
*/
|
|
36
|
-
export const DEFAULT_CONFLICT_POLICY = "last-write-wins";
|
|
37
|
-
/**
|
|
38
|
-
* Default growth policy: double capacity.
|
|
39
|
-
*/
|
|
40
|
-
export const DEFAULT_GROWTH_POLICY = {
|
|
41
|
-
strategy: "double",
|
|
42
|
-
maxCapacity: Number.MAX_SAFE_INTEGER,
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Default validation policy: throw on invalid.
|
|
46
|
-
*/
|
|
47
|
-
export const DEFAULT_VALIDATION_POLICY = "throw";
|
|
48
|
-
//# sourceMappingURL=policies.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"policies.js","sourceRoot":"","sources":["../../../src/collections/core/policies.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAsQH,+EAA+E;AAC/E,mBAAmB;AACnB,+EAA+E;AAE/E;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAmB,OAAO,CAAC;AAE/D;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAoB,OAAO,CAAC;AAEjE;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAmB,MAAM,CAAC;AAE9D;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAgB;IAC/C,WAAW,EAAE,CAAC;IACd,YAAY,EAAE,GAAG;IACjB,OAAO,EAAE,aAAa;IACtB,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;CACb,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAClC,iBAAiB,CAAC;AAEpB;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAiB;IACjD,QAAQ,EAAE,QAAQ;IAClB,WAAW,EAAE,MAAM,CAAC,gBAAgB;CACrC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAqB,OAAO,CAAC"}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Core traits and capability interfaces for the collections framework.
|
|
3
|
-
*
|
|
4
|
-
* These traits define fundamental capabilities that collections can have,
|
|
5
|
-
* following the Interface Segregation Principle (SOLID).
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Equality comparison function.
|
|
9
|
-
* Returns true if two values are considered equal.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* const primitiveEq: Eq<number> = (a, b) => a === b
|
|
13
|
-
* const objectEq: Eq<Person> = (a, b) => a.id === b.id
|
|
14
|
-
*/
|
|
15
|
-
export type Eq<T> = (a: T, b: T) => boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Hash function for creating hash codes.
|
|
18
|
-
* Returns a 32-bit integer hash of the value.
|
|
19
|
-
*
|
|
20
|
-
* Must satisfy: if eq(a, b) === true, then hash(a) === hash(b)
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* const stringHash: Hash<string> = (s) => {
|
|
24
|
-
* let h = 0;
|
|
25
|
-
* for (let i = 0; i < s.length; i++) {
|
|
26
|
-
* h = ((h << 5) - h) + s.charCodeAt(i);
|
|
27
|
-
* h = h & h; // Convert to 32-bit integer
|
|
28
|
-
* }
|
|
29
|
-
* return h;
|
|
30
|
-
* }
|
|
31
|
-
*/
|
|
32
|
-
export type Hash<T> = (value: T) => number;
|
|
33
|
-
/**
|
|
34
|
-
* Comparison function for ordering values.
|
|
35
|
-
* Returns:
|
|
36
|
-
* - negative number if a < b
|
|
37
|
-
* - zero if a === b
|
|
38
|
-
* - positive number if a > b
|
|
39
|
-
*
|
|
40
|
-
* Must be transitive and consistent with equality.
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* const numberCompare: Compare<number> = (a, b) => a - b
|
|
44
|
-
* const reverseCompare = <T>(cmp: Compare<T>): Compare<T> => (a, b) => cmp(b, a)
|
|
45
|
-
*/
|
|
46
|
-
export type Compare<T> = (a: T, b: T) => number;
|
|
47
|
-
/**
|
|
48
|
-
* Capability: Has a size property.
|
|
49
|
-
*/
|
|
50
|
-
export interface Sized {
|
|
51
|
-
/** The number of elements in the collection. */
|
|
52
|
-
readonly size: number;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Capability: Can be cleared (all elements removed).
|
|
56
|
-
*/
|
|
57
|
-
export interface Clearable {
|
|
58
|
-
/** Removes all elements from the collection. */
|
|
59
|
-
clear(): void;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Capability: Can check if empty.
|
|
63
|
-
*/
|
|
64
|
-
export interface Emptiable {
|
|
65
|
-
/** Returns true if the collection contains no elements. */
|
|
66
|
-
readonly isEmpty: boolean;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Capability: Can be cloned.
|
|
70
|
-
*/
|
|
71
|
-
export interface Cloneable<T> {
|
|
72
|
-
/** Creates a shallow copy of the collection. */
|
|
73
|
-
clone(): T;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Capability: Can be converted to an array.
|
|
77
|
-
*/
|
|
78
|
-
export interface ArrayConvertible<T> {
|
|
79
|
-
/** Returns an array containing all elements in the collection. */
|
|
80
|
-
toArray(): T[];
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Base read-only collection capabilities.
|
|
84
|
-
* Combines common traits that most collections share.
|
|
85
|
-
*/
|
|
86
|
-
export interface ReadonlyCollectionBase<T> extends Sized, Emptiable, Iterable<T>, ArrayConvertible<T> {
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Base mutable collection capabilities.
|
|
90
|
-
* Adds mutation operations to readonly base.
|
|
91
|
-
*/
|
|
92
|
-
export interface MutableCollectionBase<T> extends ReadonlyCollectionBase<T>, Clearable {
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Equality provider - allows collections to specify custom equality.
|
|
96
|
-
*/
|
|
97
|
-
export interface EqualityProvider<T> {
|
|
98
|
-
/** The equality function used by this collection. */
|
|
99
|
-
readonly eq: Eq<T>;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Hash provider - allows collections to specify custom hashing.
|
|
103
|
-
*/
|
|
104
|
-
export interface HashProvider<T> {
|
|
105
|
-
/** The hash function used by this collection. */
|
|
106
|
-
readonly hash: Hash<T>;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Comparison provider - allows collections to specify custom ordering.
|
|
110
|
-
*/
|
|
111
|
-
export interface ComparisonProvider<T> {
|
|
112
|
-
/** The comparison function used by this collection. */
|
|
113
|
-
readonly compare: Compare<T>;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Bounded collection - has a maximum capacity.
|
|
117
|
-
*/
|
|
118
|
-
export interface Bounded {
|
|
119
|
-
/** The maximum number of elements this collection can hold. */
|
|
120
|
-
readonly capacity: number;
|
|
121
|
-
/** Returns true if the collection is at capacity. */
|
|
122
|
-
readonly isFull: boolean;
|
|
123
|
-
/** Returns the number of additional elements that can be added. */
|
|
124
|
-
readonly remainingCapacity: number;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Disposable resource - can be explicitly cleaned up.
|
|
128
|
-
*/
|
|
129
|
-
export interface Disposable {
|
|
130
|
-
/** Releases any resources held by this collection. */
|
|
131
|
-
dispose(): void;
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Freezable collection - can be made immutable.
|
|
135
|
-
*/
|
|
136
|
-
export interface Freezable<T> {
|
|
137
|
-
/** Makes this collection immutable. Returns self for chaining. */
|
|
138
|
-
freeze(): T;
|
|
139
|
-
/** Returns true if this collection is frozen. */
|
|
140
|
-
readonly isFrozen: boolean;
|
|
141
|
-
}
|
|
142
|
-
//# sourceMappingURL=traits.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"traits.d.ts","sourceRoot":"","sources":["../../../src/collections/core/traits.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;;GAOG;AACH,MAAM,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,OAAO,CAAC;AAE5C;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,CAAC;AAE3C;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,MAAM,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,gDAAgD;IAChD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB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;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,sDAAsD;IACtD,OAAO,IAAI,IAAI,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS,CAAC,CAAC;IAC1B,kEAAkE;IAClE,MAAM,IAAI,CAAC,CAAC;IAEZ,iDAAiD;IACjD,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Core traits and capability interfaces for the collections framework.
|
|
3
|
-
*
|
|
4
|
-
* These traits define fundamental capabilities that collections can have,
|
|
5
|
-
* following the Interface Segregation Principle (SOLID).
|
|
6
|
-
*/
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=traits.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"traits.js","sourceRoot":"","sources":["../../../src/collections/core/traits.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Examples demonstrating the Collections Framework.
|
|
3
|
-
*
|
|
4
|
-
* These examples show how to use the collections framework
|
|
5
|
-
* with various compositions of behaviors.
|
|
6
|
-
*/
|
|
7
|
-
export declare function basicListExample(): void;
|
|
8
|
-
export declare function hashMapExample(): void;
|
|
9
|
-
export declare function dequeExample(): void;
|
|
10
|
-
export declare function readonlyExample(): void;
|
|
11
|
-
export declare function factoriesExample(): void;
|
|
12
|
-
export declare function runAllExamples(): void;
|
|
13
|
-
//# sourceMappingURL=examples.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"examples.d.ts","sourceRoot":"","sources":["../../src/collections/examples.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AA4BH,wBAAgB,gBAAgB,IAAK,IAAI,CAkBxC;AAyED,wBAAgB,cAAc,IAAK,IAAI,CAyBtC;AAmCD,wBAAgB,YAAY,IAAK,IAAI,CAqBpC;AAMD,wBAAgB,eAAe,IAAK,IAAI,CAsBvC;AAMD,wBAAgB,gBAAgB,IAAK,IAAI,CAmCxC;AAoFD,wBAAgB,cAAc,IAAK,IAAI,CAWtC"}
|
|
@@ -1,302 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Examples demonstrating the Collections Framework.
|
|
3
|
-
*
|
|
4
|
-
* These examples show how to use the collections framework
|
|
5
|
-
* with various compositions of behaviors.
|
|
6
|
-
*/
|
|
7
|
-
import { arrayList, arrayDeque, hashMap,
|
|
8
|
-
// compose,
|
|
9
|
-
// boundedList,
|
|
10
|
-
// eventedList,
|
|
11
|
-
// eventedMap,
|
|
12
|
-
readonly,
|
|
13
|
-
// safeList,
|
|
14
|
-
// synchronized,
|
|
15
|
-
emptyList, singletonList, nCopies, range, listOf, mapOf, groupBy,
|
|
16
|
-
// isSome,
|
|
17
|
-
// isNone,
|
|
18
|
-
} from "./index.js";
|
|
19
|
-
// ============================================================================
|
|
20
|
-
// Example 1: Basic ArrayList usage
|
|
21
|
-
// ============================================================================
|
|
22
|
-
export function basicListExample() {
|
|
23
|
-
console.log("=== Basic ArrayList Example ===");
|
|
24
|
-
const list = arrayList();
|
|
25
|
-
list.add(1);
|
|
26
|
-
list.add(2);
|
|
27
|
-
list.add(3);
|
|
28
|
-
console.log("Size:", list.size); // 3
|
|
29
|
-
console.log("Get(1):", list.get(1)); // 2
|
|
30
|
-
console.log("Contains 2:", list.contains(2)); // true
|
|
31
|
-
list.push(4);
|
|
32
|
-
list.unshift(0);
|
|
33
|
-
console.log("Array:", list.toArray()); // [0, 1, 2, 3, 4]
|
|
34
|
-
list.sort((a, b) => b - a);
|
|
35
|
-
console.log("Sorted desc:", list.toArray()); // [4, 3, 2, 1, 0]
|
|
36
|
-
}
|
|
37
|
-
// ============================================================================
|
|
38
|
-
// Example 2: Bounded + Evented List
|
|
39
|
-
// ============================================================================
|
|
40
|
-
// NOTE: Composition examples temporarily disabled pending middleware type improvements
|
|
41
|
-
/*
|
|
42
|
-
export function boundedEventedListExample() {
|
|
43
|
-
console.log("\n=== Bounded + Evented List Example ===");
|
|
44
|
-
|
|
45
|
-
const list = compose(
|
|
46
|
-
eventedList<number>(),
|
|
47
|
-
boundedList<number>({
|
|
48
|
-
capacity: 3,
|
|
49
|
-
policy: "drop-oldest",
|
|
50
|
-
onOverflow: ({ newElement, currentSize }) => {
|
|
51
|
-
console.log(`Overflow! Adding ${newElement}, size: ${currentSize}`);
|
|
52
|
-
},
|
|
53
|
-
})
|
|
54
|
-
)(arrayList<number>());
|
|
55
|
-
|
|
56
|
-
// Listen to events
|
|
57
|
-
list.on("add", ({ value }) => {
|
|
58
|
-
console.log(`Event: Added ${value}`);
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
// Add elements
|
|
62
|
-
list.add(1); // Event: Added 1
|
|
63
|
-
list.add(2); // Event: Added 2
|
|
64
|
-
list.add(3); // Event: Added 3
|
|
65
|
-
list.add(4); // Overflow! Drops 1, adds 4
|
|
66
|
-
|
|
67
|
-
console.log("Final list:", list.toArray()); // [2, 3, 4]
|
|
68
|
-
console.log("Is full?", list.isFull); // true
|
|
69
|
-
console.log("Remaining capacity:", list.remainingCapacity); // 0
|
|
70
|
-
}
|
|
71
|
-
*/
|
|
72
|
-
// ============================================================================
|
|
73
|
-
// Example 3: Safe List (Option-based error handling)
|
|
74
|
-
// ============================================================================
|
|
75
|
-
// NOTE: Composition examples temporarily disabled pending middleware type improvements
|
|
76
|
-
/*
|
|
77
|
-
export function safeListExample() {
|
|
78
|
-
console.log("\n=== Safe List Example ===");
|
|
79
|
-
|
|
80
|
-
const list = compose(safeList<number>())(arrayList([10, 20, 30]));
|
|
81
|
-
|
|
82
|
-
// Safe get returns Option
|
|
83
|
-
const value1 = list.safe.get(1);
|
|
84
|
-
if (isSome(value1)) {
|
|
85
|
-
console.log("Value at index 1:", value1.value); // 20
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
const value2 = list.safe.get(10);
|
|
89
|
-
if (isNone(value2)) {
|
|
90
|
-
console.log("Index 10 is out of bounds"); // This prints
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Safe pop
|
|
94
|
-
const popped = list.safe.pop();
|
|
95
|
-
if (isSome(popped)) {
|
|
96
|
-
console.log("Popped:", popped.value); // 30
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
*/
|
|
100
|
-
// ============================================================================
|
|
101
|
-
// Example 4: HashMap with custom equality
|
|
102
|
-
// ============================================================================
|
|
103
|
-
export function hashMapExample() {
|
|
104
|
-
console.log("\n=== HashMap Example ===");
|
|
105
|
-
const map = hashMap({
|
|
106
|
-
keyEq: (a, b) => a.id === b.id,
|
|
107
|
-
keyHash: (u) => u.id,
|
|
108
|
-
});
|
|
109
|
-
const alice = { id: 1, name: "Alice" };
|
|
110
|
-
const bob = { id: 2, name: "Bob" };
|
|
111
|
-
map.set(alice, "Engineer");
|
|
112
|
-
map.set(bob, "Designer");
|
|
113
|
-
// Can look up with different object with same id
|
|
114
|
-
const aliceClone = { id: 1, name: "Alice Clone" };
|
|
115
|
-
console.log("Alice's role:", map.get(aliceClone)); // "Engineer"
|
|
116
|
-
console.log("Size:", map.size); // 2
|
|
117
|
-
console.log("Has Bob?", map.has(bob)); // true
|
|
118
|
-
}
|
|
119
|
-
// ============================================================================
|
|
120
|
-
// Example 5: Evented Map with listeners
|
|
121
|
-
// ============================================================================
|
|
122
|
-
// NOTE: Composition examples temporarily disabled pending middleware type improvements
|
|
123
|
-
/*
|
|
124
|
-
export function eventedMapExample() {
|
|
125
|
-
console.log("\n=== Evented Map Example ===");
|
|
126
|
-
|
|
127
|
-
const map = compose(eventedMap<string, number>())(hashMap<string, number>());
|
|
128
|
-
|
|
129
|
-
map.on("set", ({ key, value, oldValue }) => {
|
|
130
|
-
if (oldValue !== undefined) {
|
|
131
|
-
console.log(`Updated ${key}: ${oldValue} -> ${value}`);
|
|
132
|
-
} else {
|
|
133
|
-
console.log(`Added ${key}: ${value}`);
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
|
|
137
|
-
map.on("delete", ({ key, value }) => {
|
|
138
|
-
console.log(`Deleted ${key} (was ${value})`);
|
|
139
|
-
});
|
|
140
|
-
|
|
141
|
-
map.set("score", 100); // Added score: 100
|
|
142
|
-
map.set("score", 150); // Updated score: 100 -> 150
|
|
143
|
-
map.delete("score"); // Deleted score (was 150)
|
|
144
|
-
}
|
|
145
|
-
*/
|
|
146
|
-
// ============================================================================
|
|
147
|
-
// Example 6: ArrayDeque (double-ended queue)
|
|
148
|
-
// ============================================================================
|
|
149
|
-
export function dequeExample() {
|
|
150
|
-
console.log("\n=== ArrayDeque Example ===");
|
|
151
|
-
const deque = arrayDeque();
|
|
152
|
-
// Add to both ends
|
|
153
|
-
deque.addFirst("middle");
|
|
154
|
-
deque.addFirst("front");
|
|
155
|
-
deque.addLast("back");
|
|
156
|
-
console.log("Array:", deque.toArray()); // ["front", "middle", "back"]
|
|
157
|
-
// Use as stack (LIFO)
|
|
158
|
-
deque.push("top");
|
|
159
|
-
console.log("Pop:", deque.pop()); // "top"
|
|
160
|
-
// Use as queue (FIFO)
|
|
161
|
-
deque.offer("end");
|
|
162
|
-
console.log("Poll:", deque.poll()); // "front"
|
|
163
|
-
console.log("Final:", deque.toArray()); // ["middle", "back", "end"]
|
|
164
|
-
}
|
|
165
|
-
// ============================================================================
|
|
166
|
-
// Example 7: Readonly collections
|
|
167
|
-
// ============================================================================
|
|
168
|
-
export function readonlyExample() {
|
|
169
|
-
console.log("\n=== Readonly Example ===");
|
|
170
|
-
const mutableList = arrayList([1, 2, 3]);
|
|
171
|
-
const readonlyList = readonly()(mutableList);
|
|
172
|
-
console.log("Get(0):", readonlyList.get(0)); // 1
|
|
173
|
-
console.log("Size:", readonlyList.size); // 3
|
|
174
|
-
try {
|
|
175
|
-
readonlyList.add(4); // This will throw
|
|
176
|
-
}
|
|
177
|
-
catch (error) {
|
|
178
|
-
console.log("Error:", error.message); // "Cannot modify readonly collection"
|
|
179
|
-
}
|
|
180
|
-
// Immutable factories
|
|
181
|
-
emptyList();
|
|
182
|
-
const singleton = singletonList(42);
|
|
183
|
-
const copies = nCopies(5, "hello");
|
|
184
|
-
console.log("Singleton:", singleton.toArray()); // [42]
|
|
185
|
-
console.log("Copies:", copies.toArray()); // ["hello", "hello", "hello", "hello", "hello"]
|
|
186
|
-
}
|
|
187
|
-
// ============================================================================
|
|
188
|
-
// Example 8: Factory utilities
|
|
189
|
-
// ============================================================================
|
|
190
|
-
export function factoriesExample() {
|
|
191
|
-
console.log("\n=== Factories Example ===");
|
|
192
|
-
// Create from varargs
|
|
193
|
-
const list = listOf(1, 2, 3, 4, 5);
|
|
194
|
-
console.log("listOf:", list.toArray());
|
|
195
|
-
// Create map
|
|
196
|
-
const map = mapOf(["one", 1], ["two", 2], ["three", 3]);
|
|
197
|
-
console.log("mapOf keys:", Array.from(map.keys()));
|
|
198
|
-
// Range
|
|
199
|
-
const numbers = range(0, 10, 2);
|
|
200
|
-
console.log("range(0, 10, 2):", numbers.toArray()); // [0, 2, 4, 6, 8]
|
|
201
|
-
const people = [
|
|
202
|
-
{ name: "Alice", age: 25 },
|
|
203
|
-
{ name: "Bob", age: 30 },
|
|
204
|
-
{ name: "Charlie", age: 25 },
|
|
205
|
-
{ name: "David", age: 30 },
|
|
206
|
-
];
|
|
207
|
-
const byAge = groupBy(people, (p) => p.age);
|
|
208
|
-
console.log("People aged 25:", byAge.get(25)?.toArray());
|
|
209
|
-
console.log("People aged 30:", byAge.get(30)?.toArray());
|
|
210
|
-
}
|
|
211
|
-
// ============================================================================
|
|
212
|
-
// Example 9: Complex composition
|
|
213
|
-
// ============================================================================
|
|
214
|
-
// NOTE: Composition examples temporarily disabled pending middleware type improvements
|
|
215
|
-
/*
|
|
216
|
-
export function complexCompositionExample() {
|
|
217
|
-
console.log("\n=== Complex Composition Example ===");
|
|
218
|
-
|
|
219
|
-
// Create a bounded, evented, safe list
|
|
220
|
-
const list = compose(
|
|
221
|
-
safeList<number>(),
|
|
222
|
-
eventedList<number>(),
|
|
223
|
-
boundedList<number>({ capacity: 5, policy: "reject" })
|
|
224
|
-
)(arrayList<number>());
|
|
225
|
-
|
|
226
|
-
// Subscribe to events
|
|
227
|
-
list.on("add", ({ value }) => console.log(`Added: ${value}`));
|
|
228
|
-
|
|
229
|
-
// Add elements safely
|
|
230
|
-
for (let i = 0; i < 7; i++) {
|
|
231
|
-
const added = list.add(i);
|
|
232
|
-
if (!added) {
|
|
233
|
-
console.log(`Rejected: ${i} (list is full)`);
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
// Use safe operations
|
|
238
|
-
const value = list.safe.get(2);
|
|
239
|
-
if (isSome(value)) {
|
|
240
|
-
console.log("Value at index 2:", value.value);
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
console.log("Final list:", list.toArray());
|
|
244
|
-
console.log("Is full?", list.isFull);
|
|
245
|
-
}
|
|
246
|
-
*/
|
|
247
|
-
// ============================================================================
|
|
248
|
-
// Example 10: All behaviors together
|
|
249
|
-
// ============================================================================
|
|
250
|
-
// NOTE: Composition examples temporarily disabled pending middleware type improvements
|
|
251
|
-
/*
|
|
252
|
-
export function allBehaviorsExample() {
|
|
253
|
-
console.log("\n=== All Behaviors Example ===");
|
|
254
|
-
|
|
255
|
-
const list = compose(
|
|
256
|
-
synchronized<any>(), // Thread-safe
|
|
257
|
-
safeList<number>(), // Option/Result API
|
|
258
|
-
eventedList<number>(), // Mutation events
|
|
259
|
-
boundedList<number>({ capacity: 10, policy: "drop-oldest" }) // Capacity limit
|
|
260
|
-
)(arrayList<number>());
|
|
261
|
-
|
|
262
|
-
list.on("add", ({ value }) => console.log(`[Event] Added: ${value}`));
|
|
263
|
-
|
|
264
|
-
// All operations are now:
|
|
265
|
-
// - Thread-safe (synchronized)
|
|
266
|
-
// - Size-limited (bounded)
|
|
267
|
-
// - Observable (evented)
|
|
268
|
-
// - Have safe alternatives (safe)
|
|
269
|
-
|
|
270
|
-
list.add(1);
|
|
271
|
-
list.add(2);
|
|
272
|
-
list.add(3);
|
|
273
|
-
|
|
274
|
-
const safeValue = list.safe.get(1);
|
|
275
|
-
console.log("Safe get result:", isSome(safeValue) ? safeValue.value : "None");
|
|
276
|
-
|
|
277
|
-
console.log("Final state:", {
|
|
278
|
-
size: list.size,
|
|
279
|
-
capacity: list.capacity,
|
|
280
|
-
isFull: list.isFull,
|
|
281
|
-
array: list.toArray(),
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
|
-
*/
|
|
285
|
-
// ============================================================================
|
|
286
|
-
// Run all examples
|
|
287
|
-
// ============================================================================
|
|
288
|
-
export function runAllExamples() {
|
|
289
|
-
basicListExample();
|
|
290
|
-
// boundedEventedListExample(); // Disabled - pending middleware type improvements
|
|
291
|
-
// safeListExample(); // Disabled - pending middleware type improvements
|
|
292
|
-
hashMapExample();
|
|
293
|
-
// eventedMapExample(); // Disabled - pending middleware type improvements
|
|
294
|
-
dequeExample();
|
|
295
|
-
readonlyExample();
|
|
296
|
-
factoriesExample();
|
|
297
|
-
// complexCompositionExample(); // Disabled - pending middleware type improvements
|
|
298
|
-
// allBehaviorsExample(); // Disabled - pending middleware type improvements
|
|
299
|
-
}
|
|
300
|
-
// Uncomment to run examples:
|
|
301
|
-
// runAllExamples();
|
|
302
|
-
//# sourceMappingURL=examples.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"examples.js","sourceRoot":"","sources":["../../src/collections/examples.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,SAAS,EACT,UAAU,EACV,OAAO;AACP,WAAW;AACX,eAAe;AACf,eAAe;AACf,cAAc;AACd,QAAQ;AACR,YAAY;AACZ,gBAAgB;AAChB,SAAS,EACT,aAAa,EACb,OAAO,EACP,KAAK,EACL,MAAM,EACN,KAAK,EACL,OAAO;AACP,UAAU;AACV,UAAU;EACX,MAAM,YAAY,CAAC;AAEpB,+EAA+E;AAC/E,mCAAmC;AACnC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