Commit 114f266
authored
fix: update
refs https://github.com/isaacs/node-lru-cache/blob/main/CHANGELOG.md#v7---2022-02
- the `.reset` method became `.clear` in `lru-cache` v7 but the old
method was maintained for backward compatibility and given a
deprecation warning
- without this change, changing user in `node-mysql2` gives the
following warning: `(node:27579) [LRU_CACHE_METHOD_reset] DeprecationWarning: The reset method is deprecated. Please use cache.clear() instead.`lru-cache reset method to clear1 parent 4e7e9de commit 114f266
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
| 47 | + | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
0 commit comments