@thi.ng/cache 2.2.0 → 2.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 +7 -1
- package/lru.d.ts +1 -1
- package/package.json +9 -9
- package/tlru.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2024-03-
|
|
3
|
+
- **Last updated**: 2024-03-13T14:04:31Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
### [2.2.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@2.2.1) (2024-03-11)
|
|
13
|
+
|
|
14
|
+
#### 🩹 Bug fixes
|
|
15
|
+
|
|
16
|
+
- fix regression, all ctor args optional again ([54e6b37](https://github.com/thi-ng/umbrella/commit/54e6b37))
|
|
17
|
+
|
|
12
18
|
## [2.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@2.2.0) (2024-03-11)
|
|
13
19
|
|
|
14
20
|
#### 🚀 Features
|
package/lru.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare class LRUCache<K, V> implements ICache<K, V> {
|
|
|
7
7
|
protected items: DCons<CacheEntry<K, V>>;
|
|
8
8
|
protected opts: CacheOpts<K, V>;
|
|
9
9
|
protected _size: number;
|
|
10
|
-
constructor(pairs
|
|
10
|
+
constructor(pairs?: Nullable<Iterable<[K, V]>>, opts?: Partial<CacheOpts<K, V>>);
|
|
11
11
|
get length(): number;
|
|
12
12
|
get size(): number;
|
|
13
13
|
[Symbol.iterator](): IterableIterator<readonly [K, CacheEntry<K, V>]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/cache",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"description": "In-memory cache implementations with ES6 Map-like API and different eviction strategies",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@thi.ng/api": "^8.9.
|
|
40
|
-
"@thi.ng/dcons": "^3.2.
|
|
41
|
-
"@thi.ng/transducers": "^8.9.
|
|
39
|
+
"@thi.ng/api": "^8.9.30",
|
|
40
|
+
"@thi.ng/dcons": "^3.2.101",
|
|
41
|
+
"@thi.ng/transducers": "^8.9.12"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@microsoft/api-extractor": "^7.
|
|
45
|
-
"esbuild": "^0.20.
|
|
44
|
+
"@microsoft/api-extractor": "^7.42.3",
|
|
45
|
+
"esbuild": "^0.20.1",
|
|
46
46
|
"rimraf": "^5.0.5",
|
|
47
|
-
"typedoc": "^0.25.
|
|
48
|
-
"typescript": "^5.
|
|
47
|
+
"typedoc": "^0.25.12",
|
|
48
|
+
"typescript": "^5.4.2"
|
|
49
49
|
},
|
|
50
50
|
"keywords": [
|
|
51
51
|
"acceleration",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
],
|
|
92
92
|
"year": 2018
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "7f3fcbd6c0462b0ce45afa141fe163d1f297fd51\n"
|
|
95
95
|
}
|
package/tlru.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export declare class TLRUCache<K, V> extends LRUCache<K, V> {
|
|
|
32
32
|
protected opts: TLRUCacheOpts<K, V>;
|
|
33
33
|
protected map: Map<K, ConsCell<TLRUCacheEntry<K, V>>>;
|
|
34
34
|
protected items: DCons<TLRUCacheEntry<K, V>>;
|
|
35
|
-
constructor(pairs
|
|
35
|
+
constructor(pairs?: Nullable<Iterable<[K, V]>>, opts?: Partial<TLRUCacheOpts<K, V>>);
|
|
36
36
|
empty(): TLRUCache<K, V>;
|
|
37
37
|
has(key: K): boolean;
|
|
38
38
|
get(key: K, notFound?: V): V | undefined;
|