@thi.ng/cache 2.1.4 → 2.1.7
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/README.md +2 -2
- package/lru.d.ts +2 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**:
|
|
3
|
+
- **Last updated**: 2022-05-07T11:33:35Z
|
|
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.1.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@2.1.5) (2022-03-11)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- update ConsCell refs/imports ([a883993](https://github.com/thi-ng/umbrella/commit/a883993))
|
|
17
|
+
|
|
12
18
|
## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@2.1.0) (2021-11-17)
|
|
13
19
|
|
|
14
20
|
#### 🚀 Features
|
package/README.md
CHANGED
|
@@ -77,7 +77,7 @@ node --experimental-repl-await
|
|
|
77
77
|
> const cache = await import("@thi.ng/cache");
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
-
Package sizes (gzipped, pre-treeshake): ESM: 1.
|
|
80
|
+
Package sizes (gzipped, pre-treeshake): ESM: 1.06 KB
|
|
81
81
|
|
|
82
82
|
## Dependencies
|
|
83
83
|
|
|
@@ -249,4 +249,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
249
249
|
|
|
250
250
|
## License
|
|
251
251
|
|
|
252
|
-
© 2018 -
|
|
252
|
+
© 2018 - 2022 Karsten Schmidt // Apache Software License 2.0
|
package/lru.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Fn0 } from "@thi.ng/api";
|
|
2
|
-
import { ConsCell
|
|
2
|
+
import type { ConsCell } from "@thi.ng/dcons";
|
|
3
|
+
import { DCons } from "@thi.ng/dcons/dcons";
|
|
3
4
|
import type { CacheEntry, CacheOpts, ICache } from "./api.js";
|
|
4
5
|
export declare class LRUCache<K, V> implements ICache<K, V> {
|
|
5
6
|
protected map: Map<K, ConsCell<CacheEntry<K, V>>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/cache",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7",
|
|
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",
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.3.
|
|
38
|
-
"@thi.ng/dcons": "^3.
|
|
39
|
-
"@thi.ng/transducers": "^8.2
|
|
37
|
+
"@thi.ng/api": "^8.3.6",
|
|
38
|
+
"@thi.ng/dcons": "^3.2.2",
|
|
39
|
+
"@thi.ng/transducers": "^8.3.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@microsoft/api-extractor": "^7.
|
|
43
|
-
"@thi.ng/testament": "^0.2.
|
|
42
|
+
"@microsoft/api-extractor": "^7.23.1",
|
|
43
|
+
"@thi.ng/testament": "^0.2.6",
|
|
44
44
|
"rimraf": "^3.0.2",
|
|
45
45
|
"tools": "^0.0.1",
|
|
46
|
-
"typedoc": "^0.22.
|
|
47
|
-
"typescript": "^4.
|
|
46
|
+
"typedoc": "^0.22.15",
|
|
47
|
+
"typescript": "^4.6.4"
|
|
48
48
|
},
|
|
49
49
|
"keywords": [
|
|
50
50
|
"acceleration",
|
|
@@ -69,19 +69,19 @@
|
|
|
69
69
|
],
|
|
70
70
|
"exports": {
|
|
71
71
|
".": {
|
|
72
|
-
"
|
|
72
|
+
"default": "./index.js"
|
|
73
73
|
},
|
|
74
74
|
"./api": {
|
|
75
|
-
"
|
|
75
|
+
"default": "./api.js"
|
|
76
76
|
},
|
|
77
77
|
"./lru": {
|
|
78
|
-
"
|
|
78
|
+
"default": "./lru.js"
|
|
79
79
|
},
|
|
80
80
|
"./mru": {
|
|
81
|
-
"
|
|
81
|
+
"default": "./mru.js"
|
|
82
82
|
},
|
|
83
83
|
"./tlru": {
|
|
84
|
-
"
|
|
84
|
+
"default": "./tlru.js"
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
87
|
"thi.ng": {
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
],
|
|
91
91
|
"year": 2018
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "cf084be5fd5932226054d2dd32bad35481379f5d\n"
|
|
94
94
|
}
|