Skip to content

Commit 15d49e3

Browse files
committed
Use lru-cache@11.
1 parent d449ad3 commit 15d49e3

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# bedrock-tokenization ChangeLog
22

3+
## 23.1.0 - 2025-05-dd
4+
5+
### Changed
6+
- Use `lru-cache@11`.
7+
38
## 23.0.1 - 2025-04-24
49

510
### Changed

lib/batchVersions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import * as bedrock from '@bedrock/core';
55
import * as database from '@bedrock/mongodb';
66
import assert from 'assert-plus';
7-
import LRU from 'lru-cache';
7+
import {LRUCache as LRU} from 'lru-cache';
88

99
const {util: {BedrockError}} = bedrock;
1010

@@ -14,7 +14,7 @@ const {util: {BedrockError}} = bedrock;
1414
const CACHE = new LRU({
1515
max: 100,
1616
// 24 hour ttl
17-
maxAge: 1000 * 60 * 60 * 24,
17+
ttl: 1000 * 60 * 60 * 24,
1818
});
1919

2020
// a special ID, the literal string "NEXT_OPTIONS", is used to identify the

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"bnid": "^3.0.0",
3535
"canonicalize": "^2.1.0",
3636
"cit-context": "^2.0.1",
37-
"lru-cache": "^6.0.0",
37+
"lru-cache": "^11.1.0",
3838
"p-limit": "^6.2.0"
3939
},
4040
"peerDependencies": {

0 commit comments

Comments
 (0)