@thi.ng/cache 2.2.12 → 2.2.14

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/lru.js +1 -2
  3. package/package.json +9 -9
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-04-23T07:02:17Z
3
+ - **Last updated**: 2024-05-08T18:24: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.
package/lru.js CHANGED
@@ -111,8 +111,7 @@ class LRUCache {
111
111
  const { release, maxsize, maxlen } = this.opts;
112
112
  while (this._size > maxsize || this.length >= maxlen) {
113
113
  const e = this.items.drop();
114
- if (!e)
115
- return false;
114
+ if (!e) return false;
116
115
  this.map.delete(e.k);
117
116
  release?.(e.k, e.v);
118
117
  this._size -= e.s;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/cache",
3
- "version": "2.2.12",
3
+ "version": "2.2.14",
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,15 +36,15 @@
36
36
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/api": "^8.11.1",
40
- "@thi.ng/dcons": "^3.2.111",
41
- "@thi.ng/transducers": "^9.0.3"
39
+ "@thi.ng/api": "^8.11.2",
40
+ "@thi.ng/dcons": "^3.2.113",
41
+ "@thi.ng/transducers": "^9.0.5"
42
42
  },
43
43
  "devDependencies": {
44
- "@microsoft/api-extractor": "^7.43.0",
45
- "esbuild": "^0.20.2",
46
- "typedoc": "^0.25.12",
47
- "typescript": "^5.4.3"
44
+ "@microsoft/api-extractor": "^7.43.2",
45
+ "esbuild": "^0.21.1",
46
+ "typedoc": "^0.25.13",
47
+ "typescript": "^5.4.5"
48
48
  },
49
49
  "keywords": [
50
50
  "acceleration",
@@ -90,5 +90,5 @@
90
90
  ],
91
91
  "year": 2018
92
92
  },
93
- "gitHead": "5dd66c18a3862a3af69a5b2f49563f7cbdd960c2\n"
93
+ "gitHead": "df34b4a9e650cc7323575356de207d78933bdcf3\n"
94
94
  }