@thi.ng/cache 2.3.49 → 2.3.54
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/package.json +94 -94
- package/CHANGELOG.md +0 -83
package/package.json
CHANGED
|
@@ -1,95 +1,95 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
2
|
+
"name": "@thi.ng/cache",
|
|
3
|
+
"version": "2.3.54",
|
|
4
|
+
"description": "In-memory cache implementations with ES6 Map-like API and different eviction strategies",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "./index.js",
|
|
7
|
+
"typings": "./index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/thi-ng/umbrella.git"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://thi.ng/cache",
|
|
14
|
+
"funding": [
|
|
15
|
+
{
|
|
16
|
+
"type": "github",
|
|
17
|
+
"url": "https://github.com/sponsors/postspectacular"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "patreon",
|
|
21
|
+
"url": "https://patreon.com/thing_umbrella"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "liberapay",
|
|
25
|
+
"url": "https://liberapay.com/thi.ng"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
29
|
+
"license": "Apache-2.0",
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "yarn build:esbuild && yarn build:decl",
|
|
32
|
+
"build:decl": "tsc --declaration --emitDeclarationOnly",
|
|
33
|
+
"build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
|
|
34
|
+
"clean": "bun ../../tools/src/clean-package.ts",
|
|
35
|
+
"doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
|
|
36
|
+
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
37
|
+
"pub": "npm publish --access public",
|
|
38
|
+
"test": "bun test",
|
|
39
|
+
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@thi.ng/api": "^8.12.6",
|
|
43
|
+
"@thi.ng/dcons": "^3.2.173"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"esbuild": "^0.25.11",
|
|
47
|
+
"typedoc": "^0.28.14",
|
|
48
|
+
"typescript": "^5.9.3"
|
|
49
|
+
},
|
|
50
|
+
"keywords": [
|
|
51
|
+
"acceleration",
|
|
52
|
+
"cache",
|
|
53
|
+
"datastructure",
|
|
54
|
+
"lru",
|
|
55
|
+
"map",
|
|
56
|
+
"mru",
|
|
57
|
+
"tlru",
|
|
58
|
+
"ttl",
|
|
59
|
+
"typescript"
|
|
60
|
+
],
|
|
61
|
+
"publishConfig": {
|
|
62
|
+
"access": "public"
|
|
63
|
+
},
|
|
64
|
+
"engines": {
|
|
65
|
+
"node": ">=18"
|
|
66
|
+
},
|
|
67
|
+
"files": [
|
|
68
|
+
"./*.js",
|
|
69
|
+
"./*.d.ts"
|
|
70
|
+
],
|
|
71
|
+
"exports": {
|
|
72
|
+
".": {
|
|
73
|
+
"default": "./index.js"
|
|
74
|
+
},
|
|
75
|
+
"./api": {
|
|
76
|
+
"default": "./api.js"
|
|
77
|
+
},
|
|
78
|
+
"./lru": {
|
|
79
|
+
"default": "./lru.js"
|
|
80
|
+
},
|
|
81
|
+
"./mru": {
|
|
82
|
+
"default": "./mru.js"
|
|
83
|
+
},
|
|
84
|
+
"./tlru": {
|
|
85
|
+
"default": "./tlru.js"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"thi.ng": {
|
|
89
|
+
"related": [
|
|
90
|
+
"associative"
|
|
91
|
+
],
|
|
92
|
+
"year": 2018
|
|
93
|
+
},
|
|
94
|
+
"gitHead": "136a5e5ef0b69e82329db00d806c3c4e8f1aa063\n"
|
|
95
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
- **Last updated**: 2025-09-01T16:38:35Z
|
|
4
|
-
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
|
-
|
|
6
|
-
All notable changes to this project will be documented in this file.
|
|
7
|
-
Only versions published since **2022-01-01** are listed here.
|
|
8
|
-
Please consult the Git history for older version information.
|
|
9
|
-
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
10
|
-
|
|
11
|
-
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
12
|
-
and/or version bumps of transitive dependencies.
|
|
13
|
-
|
|
14
|
-
### [2.3.12](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@2.3.12) (2024-10-31)
|
|
15
|
-
|
|
16
|
-
#### ♻️ Refactoring
|
|
17
|
-
|
|
18
|
-
- add MapLike interface to loosen Map impls ([603c76c](https://github.com/thi-ng/umbrella/commit/603c76c))
|
|
19
|
-
|
|
20
|
-
## [2.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@2.3.0) (2024-07-28)
|
|
21
|
-
|
|
22
|
-
#### 🚀 Features
|
|
23
|
-
|
|
24
|
-
- add `TLRUCacheOpts.autoExtend` option ([9fbda4c](https://github.com/thi-ng/umbrella/commit/9fbda4c))
|
|
25
|
-
- add support to auto-extend TTL of cached values upon cache hit
|
|
26
|
-
- add tests
|
|
27
|
-
- add/update docs
|
|
28
|
-
- update readme
|
|
29
|
-
|
|
30
|
-
### [2.2.11](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@2.2.11) (2024-04-20)
|
|
31
|
-
|
|
32
|
-
#### ♻️ Refactoring
|
|
33
|
-
|
|
34
|
-
- update type usage ([a3833d0](https://github.com/thi-ng/umbrella/commit/a3833d0))
|
|
35
|
-
|
|
36
|
-
### [2.2.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@2.2.1) (2024-03-11)
|
|
37
|
-
|
|
38
|
-
#### 🩹 Bug fixes
|
|
39
|
-
|
|
40
|
-
- fix regression, all ctor args optional again ([54e6b37](https://github.com/thi-ng/umbrella/commit/54e6b37))
|
|
41
|
-
|
|
42
|
-
## [2.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@2.2.0) (2024-03-11)
|
|
43
|
-
|
|
44
|
-
#### 🚀 Features
|
|
45
|
-
|
|
46
|
-
- add value update callback, update TLRUCache ([d2fed06](https://github.com/thi-ng/umbrella/commit/d2fed06))
|
|
47
|
-
- add CacheOpts.update
|
|
48
|
-
- update doSetEntry() in all impls
|
|
49
|
-
- refactor TLRUCache.getSet() as async fn
|
|
50
|
-
- update TLRUCache.prune() to return eviction count
|
|
51
|
-
- various other refactoring
|
|
52
|
-
- add tests
|
|
53
|
-
- add docs
|
|
54
|
-
|
|
55
|
-
### [2.1.106](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@2.1.106) (2024-03-11)
|
|
56
|
-
|
|
57
|
-
#### 🩹 Bug fixes
|
|
58
|
-
|
|
59
|
-
- fix ICache.get() return type, add docs ([d9f98f7](https://github.com/thi-ng/umbrella/commit/d9f98f7))
|
|
60
|
-
|
|
61
|
-
### [2.1.89](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@2.1.89) (2024-01-26)
|
|
62
|
-
|
|
63
|
-
#### 🩹 Bug fixes
|
|
64
|
-
|
|
65
|
-
- attempt to add element bigger than "maxsize" blocks addition of any new elements to the cache ([3c855ef](https://github.com/thi-ng/umbrella/commit/3c855ef))
|
|
66
|
-
|
|
67
|
-
### [2.1.76](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@2.1.76) (2023-11-09)
|
|
68
|
-
|
|
69
|
-
#### ♻️ Refactoring
|
|
70
|
-
|
|
71
|
-
- update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))
|
|
72
|
-
|
|
73
|
-
### [2.1.12](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@2.1.12) (2022-07-19)
|
|
74
|
-
|
|
75
|
-
#### ♻️ Refactoring
|
|
76
|
-
|
|
77
|
-
- update deprecated DCons call sites ([2bbacf7](https://github.com/thi-ng/umbrella/commit/2bbacf7))
|
|
78
|
-
|
|
79
|
-
### [2.1.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@2.1.5) (2022-03-11)
|
|
80
|
-
|
|
81
|
-
#### ♻️ Refactoring
|
|
82
|
-
|
|
83
|
-
- update ConsCell refs/imports ([a883993](https://github.com/thi-ng/umbrella/commit/a883993))
|