You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Julian Lam c9754b09e6
Update to lru-cache@^7 (#10813)
* chore(deps): bump lru-cache from 6.0.0 to 7.13.1 in /install

Bumps [lru-cache](https://github.com/isaacs/node-lru-cache) from 6.0.0 to 7.13.1.
- [Release notes](https://github.com/isaacs/node-lru-cache/releases)
- [Changelog](https://github.com/isaacs/node-lru-cache/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-lru-cache/compare/v6.0.0...v7.13.1)

---
updated-dependencies:
- dependency-name: lru-cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix(lru-cache): remove unneeded `length` params for cache creation, as `maxSize` was not used in those init calls, also renamed some methods to match new method names in lru-cache [breaking]

Added deprecation notices for old params

* fix: replace three direct calls to lru-cache with call to cacheCreate, moved cache creation call in uploads to run on first init as config is not populated at lib init

* test: move configs init above cache reset calls in databasemock

* move some more code above cache clear

* refactor: remove unused

* test: lru

* test: more debug

* test: on more test

* use await helpers.uploadFile

* fix: tests remove logs

* fix: acp cache page

* fix: add in one more guard again cache instantiation with `length` prop but no `maxSize` prop

* fix(deps): bump markdown

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Barış Soner Uşaklı <barisusakli@gmail.com>
3 years ago
..
admin
api feat: add mute history, closes #10596 3 years ago
categories refactor: replace deprecated String.prototype.substr() (#10432) 3 years ago
cli feat: Allow defining active plugins in config (#10767) 3 years ago
controllers Update to lru-cache@^7 (#10813) 3 years ago
database Update to lru-cache@^7 (#10813) 3 years ago
groups Update to lru-cache@^7 (#10813) 3 years ago
messaging feat: closes #10501, minimum reputation to chat 3 years ago
meta feat: Allow defining active plugins in config (#10767) 3 years ago
middleware Update to lru-cache@^7 (#10813) 3 years ago
navigation fix: #10528, gray out disabled nav items 3 years ago
plugins feat: Allow defining active plugins in config (#10767) 3 years ago
posts Update to lru-cache@^7 (#10813) 3 years ago
privileges Webpack5 (#10311) 3 years ago
rewards
routes chore: remove optional `middleware` parameter from setupPageRoute and setupAdminPageRoute calls 3 years ago
socket.io feat: Allow defining active plugins in config (#10767) 3 years ago
topics fix: #10692 3 years ago
upgrades refactor: replace deprecated String.prototype.substr() (#10432) 3 years ago
user Update to lru-cache@^7 (#10813) 3 years ago
views Update to lru-cache@^7 (#10813) 3 years ago
widgets refactor: setObjectBulk to match sortedSetAddBulk 3 years ago
als.js
analytics.js Update to lru-cache@^7 (#10813) 3 years ago
batch.js
cache.js Update to lru-cache@^7 (#10813) 3 years ago
cacheCreate.js Update to lru-cache@^7 (#10813) 3 years ago
constants.js
coverPhoto.js
emailer.js refactor: replace deprecated String.prototype.substr() (#10432) 3 years ago
events.js feat: new admin events, closes #10405 3 years ago
file.js fix: handle ENOENT on file deletion, closes #10645 3 years ago
flags.js fix: don't crash if target/user is undefined 3 years ago
helpers.js Webpack5 (#10311) 3 years ago
image.js feat: add filter:image.stripEXIF 3 years ago
install.js fix: #10334, use the correct env vars for web install 3 years ago
languages.js fix: translator path traversal 3 years ago
logger.js
notifications.js perf: WIP #10449, allow array of pids for posts.purge (#10465) 3 years ago
pagination.js
password.js feat: add node 16 (#9847) 3 years ago
prestart.js fix: #10473, trim trailing slashes on config url 3 years ago
promisify.js
pubsub.js
search.js feat: #10460, add cutoff to suggested topics 3 years ago
settings.js
sitemap.js
slugify.js
social.js fix: cannot turn off all networks 3 years ago
start.js
translator.js Webpack5 (#10311) 3 years ago
upgrade.js feat: Allow defining active plugins in config (#10767) 3 years ago
utils.js test: fix tests again 3 years ago
webserver.js fix: use different emoji on NodeBB Ready — again because procrastination 3 years ago