@thi.ng/cache 2.3.20 → 2.3.22
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 +3 -160
- package/README.md +1 -1
- package/package.json +5 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2025-01-
|
|
3
|
+
- **Last updated**: 2025-01-29T16:25:48Z
|
|
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.
|
|
7
|
+
Only versions published since **2022-01-01** are listed here.
|
|
8
|
+
Please consult the Git history for older version information.
|
|
7
9
|
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
8
10
|
|
|
9
11
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
@@ -79,162 +81,3 @@ and/or version bumps of transitive dependencies.
|
|
|
79
81
|
#### ♻️ Refactoring
|
|
80
82
|
|
|
81
83
|
- update ConsCell refs/imports ([a883993](https://github.com/thi-ng/umbrella/commit/a883993))
|
|
82
|
-
|
|
83
|
-
## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@2.1.0) (2021-11-17)
|
|
84
|
-
|
|
85
|
-
#### 🚀 Features
|
|
86
|
-
|
|
87
|
-
- Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
|
|
88
|
-
Improving the overall build ergonomics
|
|
89
|
-
- introduced a tools workspaces
|
|
90
|
-
- imported it in all needed packages/examples
|
|
91
|
-
- inclusive project root
|
|
92
|
-
|
|
93
|
-
#### ♻️ Refactoring
|
|
94
|
-
|
|
95
|
-
- testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
|
|
96
|
-
this commit reverts (partly) changes made in:
|
|
97
|
-
ef346d7a8753590dc9094108a3d861a8dbd5dd2c
|
|
98
|
-
overall purpose is better testament ergonomics:
|
|
99
|
-
instead of having to pass NODE_OPTIONS with every invocation
|
|
100
|
-
having a binary to handle this for us.
|
|
101
|
-
|
|
102
|
-
### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@2.0.1) (2021-10-13)
|
|
103
|
-
|
|
104
|
-
#### ♻️ Refactoring
|
|
105
|
-
|
|
106
|
-
- update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
|
|
107
|
-
- add .js suffix for all relative imports
|
|
108
|
-
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
109
|
-
|
|
110
|
-
# [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@2.0.0) (2021-10-12)
|
|
111
|
-
|
|
112
|
-
#### 🛑 Breaking changes
|
|
113
|
-
|
|
114
|
-
- major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
|
|
115
|
-
- BREAKING CHANGE: discontinue CommonJS & UMD versions
|
|
116
|
-
- only ESM modules will be published from now on
|
|
117
|
-
- CJS obsolete due to ESM support in recent versions of node:
|
|
118
|
-
- i.e. launch NodeJS via:
|
|
119
|
-
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
120
|
-
- in the node REPL use `await import(...)` instead of `require()`
|
|
121
|
-
- UMD obsolete due to widespread browser support for ESM
|
|
122
|
-
Also:
|
|
123
|
-
- normalize/restructure/reorg all package.json files
|
|
124
|
-
- cleanup all build scripts, remove obsolete
|
|
125
|
-
- switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
|
|
126
|
-
|
|
127
|
-
#### 🩹 Bug fixes
|
|
128
|
-
|
|
129
|
-
- minor updates (TS4.4) ([7e91cc2](https://github.com/thi-ng/umbrella/commit/7e91cc2))
|
|
130
|
-
- redeclare, not override inherited class properties
|
|
131
|
-
|
|
132
|
-
#### ♻️ Refactoring
|
|
133
|
-
|
|
134
|
-
- update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
|
|
135
|
-
- update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
|
|
136
|
-
- update imports ([d02461f](https://github.com/thi-ng/umbrella/commit/d02461f))
|
|
137
|
-
- update imports (transducers) ([09fb93e](https://github.com/thi-ng/umbrella/commit/09fb93e))
|
|
138
|
-
|
|
139
|
-
### [1.0.63](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@1.0.63) (2020-12-07)
|
|
140
|
-
|
|
141
|
-
#### ♻️ Refactoring
|
|
142
|
-
|
|
143
|
-
- update type-only imports ([78d3dee](https://github.com/thi-ng/umbrella/commit/78d3dee))
|
|
144
|
-
|
|
145
|
-
### [1.0.58](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@1.0.58) (2020-09-13)
|
|
146
|
-
|
|
147
|
-
#### ♻️ Refactoring
|
|
148
|
-
|
|
149
|
-
- update imports ([7deb862](https://github.com/thi-ng/umbrella/commit/7deb862))
|
|
150
|
-
|
|
151
|
-
### [1.0.30](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@1.0.30) (2020-02-25)
|
|
152
|
-
|
|
153
|
-
#### ♻️ Refactoring
|
|
154
|
-
|
|
155
|
-
- update imports ([0653e1b](https://github.com/thi-ng/umbrella/commit/0653e1b))
|
|
156
|
-
|
|
157
|
-
### [1.0.24](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@1.0.24) (2019-08-21)
|
|
158
|
-
|
|
159
|
-
#### ♻️ Refactoring
|
|
160
|
-
|
|
161
|
-
- update set(), extract doSetEntry() ([db880fd](https://github.com/thi-ng/umbrella/commit/db880fd))
|
|
162
|
-
|
|
163
|
-
### [1.0.20](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@1.0.20) (2019-07-07)
|
|
164
|
-
|
|
165
|
-
#### ♻️ Refactoring
|
|
166
|
-
|
|
167
|
-
- address TS strictNullChecks flag ([d53056b](https://github.com/thi-ng/umbrella/commit/d53056b))
|
|
168
|
-
|
|
169
|
-
### [1.0.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@1.0.9) (2019-03-10)
|
|
170
|
-
|
|
171
|
-
#### ♻️ Refactoring
|
|
172
|
-
|
|
173
|
-
- update Fn args in various packages ([e453ac3](https://github.com/thi-ng/umbrella/commit/e453ac3))
|
|
174
|
-
|
|
175
|
-
# [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@1.0.0) (2019-01-21)
|
|
176
|
-
|
|
177
|
-
#### 🛑 Breaking changes
|
|
178
|
-
|
|
179
|
-
- update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
|
|
180
|
-
- BREAKING CHANGE: enabled multi-outputs (ES6 modules, CJS, UMD)
|
|
181
|
-
- build scripts now first build ES6 modules in package root, then call
|
|
182
|
-
`scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
|
|
183
|
-
- all imports MUST be updated to only refer to package level
|
|
184
|
-
(not individual files anymore). tree shaking in user land will get rid of
|
|
185
|
-
all unused imported symbols.
|
|
186
|
-
|
|
187
|
-
#### 🩹 Bug fixes
|
|
188
|
-
|
|
189
|
-
- TLRU: expected behavior on getSet() ([c3762e9](https://github.com/thi-ng/umbrella/commit/c3762e9))
|
|
190
|
-
|
|
191
|
-
### [0.2.29](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@0.2.29) (2018-10-17)
|
|
192
|
-
|
|
193
|
-
#### ♻️ Refactoring
|
|
194
|
-
|
|
195
|
-
- update Infinity consts in various packages ([296e1e0](https://github.com/thi-ng/umbrella/commit/296e1e0))
|
|
196
|
-
|
|
197
|
-
### [0.2.18](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@0.2.18) (2018-08-27)
|
|
198
|
-
|
|
199
|
-
#### ♻️ Refactoring
|
|
200
|
-
|
|
201
|
-
- update iterator methods ([866f3cd](https://github.com/thi-ng/umbrella/commit/866f3cd))
|
|
202
|
-
|
|
203
|
-
### [0.2.16](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@0.2.16) (2018-08-24)
|
|
204
|
-
|
|
205
|
-
#### ♻️ Refactoring
|
|
206
|
-
|
|
207
|
-
- update/replace deps (iterators => transducers) ([065d78b](https://github.com/thi-ng/umbrella/commit/065d78b))
|
|
208
|
-
|
|
209
|
-
## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@0.2.0) (2018-04-22)
|
|
210
|
-
|
|
211
|
-
#### 🚀 Features
|
|
212
|
-
|
|
213
|
-
- add TLRUCache.prune(), fix ensureSize() ([9d53ae3](https://github.com/thi-ng/umbrella/commit/9d53ae3))
|
|
214
|
-
|
|
215
|
-
#### 🩹 Bug fixes
|
|
216
|
-
|
|
217
|
-
- TLRUCache.get(), add tests, update package ([aa78d77](https://github.com/thi-ng/umbrella/commit/aa78d77))
|
|
218
|
-
- get() now correctly shifts element to back (LRU)
|
|
219
|
-
|
|
220
|
-
## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/cache@0.1.0) (2018-04-22)
|
|
221
|
-
|
|
222
|
-
#### 🚀 Features
|
|
223
|
-
|
|
224
|
-
- initial import [@thi.ng/cache](https://github.com/thi-ng/umbrella/tree/main/packages/cache) package ([7bbbfa8](https://github.com/thi-ng/umbrella/commit/7bbbfa8))
|
|
225
|
-
- add MRUCache, update package & readme ([26c4cfd](https://github.com/thi-ng/umbrella/commit/26c4cfd))
|
|
226
|
-
- add TLRUCache ([574b5d9](https://github.com/thi-ng/umbrella/commit/574b5d9))
|
|
227
|
-
|
|
228
|
-
#### 🩹 Bug fixes
|
|
229
|
-
|
|
230
|
-
- don't insert new val if > maxsize ([3947419](https://github.com/thi-ng/umbrella/commit/3947419))
|
|
231
|
-
- recompute size in LRUCache.delete(), extract removeEntry() ([c4a9c07](https://github.com/thi-ng/umbrella/commit/c4a9c07))
|
|
232
|
-
|
|
233
|
-
#### ♻️ Refactoring
|
|
234
|
-
|
|
235
|
-
- update/extend ICache & LRUCache, update readme ([d37a91e](https://github.com/thi-ng/umbrella/commit/d37a91e))
|
|
236
|
-
- make LRU ops O(1), update/remove (some) interfaces ([00ca831](https://github.com/thi-ng/umbrella/commit/00ca831))
|
|
237
|
-
- use Map to index dcons cells
|
|
238
|
-
- update CachOpts (add map ctor option)
|
|
239
|
-
- remove LRUEntry
|
|
240
|
-
- update LRU entries iterator
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 201 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/cache",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.22",
|
|
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",
|
|
@@ -33,21 +33,19 @@
|
|
|
33
33
|
"build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
|
|
34
34
|
"clean": "bun ../../tools/src/clean-package.ts",
|
|
35
35
|
"doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
|
|
36
|
-
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
|
|
37
36
|
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
38
37
|
"pub": "yarn npm publish --access public",
|
|
39
38
|
"test": "bun test",
|
|
40
39
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
40
|
},
|
|
42
41
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.11.
|
|
44
|
-
"@thi.ng/dcons": "^3.2.
|
|
42
|
+
"@thi.ng/api": "^8.11.19",
|
|
43
|
+
"@thi.ng/dcons": "^3.2.141"
|
|
45
44
|
},
|
|
46
45
|
"devDependencies": {
|
|
47
|
-
"@microsoft/api-extractor": "^7.48.1",
|
|
48
46
|
"esbuild": "^0.24.2",
|
|
49
47
|
"typedoc": "^0.27.6",
|
|
50
|
-
"typescript": "^5.7.
|
|
48
|
+
"typescript": "^5.7.3"
|
|
51
49
|
},
|
|
52
50
|
"keywords": [
|
|
53
51
|
"acceleration",
|
|
@@ -93,5 +91,5 @@
|
|
|
93
91
|
],
|
|
94
92
|
"year": 2018
|
|
95
93
|
},
|
|
96
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "fc1d498e8d4b690db873c30cc594352a804e7a65\n"
|
|
97
95
|
}
|