@thi.ng/cache 2.2.13 → 2.2.15

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-04-23T07:02:17Z
3
+ - **Last updated**: 2024-06-21T19:34:38Z
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/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 192 standalone projects, maintained as part
10
+ > This is one of 193 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/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.13",
3
+ "version": "2.2.15",
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",
@@ -10,7 +10,7 @@
10
10
  "type": "git",
11
11
  "url": "https://github.com/thi-ng/umbrella.git"
12
12
  },
13
- "homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/cache#readme",
13
+ "homepage": "https://thi.ng/cache",
14
14
  "funding": [
15
15
  {
16
16
  "type": "github",
@@ -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.112",
41
- "@thi.ng/transducers": "^9.0.4"
39
+ "@thi.ng/api": "^8.11.3",
40
+ "@thi.ng/dcons": "^3.2.114",
41
+ "@thi.ng/transducers": "^9.0.6"
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.47.0",
45
+ "esbuild": "^0.21.5",
46
+ "typedoc": "^0.25.13",
47
+ "typescript": "^5.5.2"
48
48
  },
49
49
  "keywords": [
50
50
  "acceleration",
@@ -90,5 +90,5 @@
90
90
  ],
91
91
  "year": 2018
92
92
  },
93
- "gitHead": "aed3421c21044c005fbcb7cc37965ccf85a870d2\n"
93
+ "gitHead": "154c95cf9d6bab32174498ec3b5b5d87e42be7f9\n"
94
94
  }