nodebb/src
Julian Lam c9754b09e6
Update to lru-cache@^7 ()
* 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>
..
admin feat: add dashboard sub-pages to ACP menu
api feat: add mute history, closes
categories refactor: replace deprecated String.prototype.substr() ()
cli feat: Allow defining active plugins in config ()
controllers Update to lru-cache@^7 ()
database Update to lru-cache@^7 ()
groups Update to lru-cache@^7 ()
messaging feat: closes , minimum reputation to chat
meta feat: Allow defining active plugins in config ()
middleware Update to lru-cache@^7 ()
navigation fix: , gray out disabled nav items
plugins feat: Allow defining active plugins in config ()
posts Update to lru-cache@^7 ()
privileges Webpack5 ()
rewards fix: , fix reward duplication
routes chore: remove optional `middleware` parameter from setupPageRoute and setupAdminPageRoute calls
socket.io feat: Allow defining active plugins in config ()
topics fix:
upgrades refactor: replace deprecated String.prototype.substr() ()
user Update to lru-cache@^7 ()
views Update to lru-cache@^7 ()
widgets refactor: setObjectBulk to match sortedSetAddBulk
als.js feat: als ()
analytics.js Update to lru-cache@^7 ()
batch.js fix: redis batch
cache.js Update to lru-cache@^7 ()
cacheCreate.js Update to lru-cache@^7 ()
constants.js refactor: shared constants ()
coverPhoto.js chore: eslint prefer-template
emailer.js refactor: replace deprecated String.prototype.substr() ()
events.js feat: new admin events, closes
file.js fix: handle ENOENT on file deletion, closes
flags.js fix: don't crash if target/user is undefined
helpers.js Webpack5 ()
image.js feat: add filter:image.stripEXIF
install.js fix: , use the correct env vars for web install
languages.js fix: translator path traversal
logger.js chore: eslint prefer-rest-params, prefer-spread
notifications.js perf: WIP , allow array of pids for posts.purge ()
pagination.js chore: eslint no-var, vars-on-top
password.js feat: add node 16 ()
prestart.js fix: , trim trailing slashes on config url
promisify.js chore: eslint prefer-rest-params, prefer-spread
pubsub.js chore: eslint no-var, vars-on-top
search.js feat: , add cutoff to suggested topics
settings.js fix: prevent crash in expandObjBy
sitemap.js fix: , dont call sitemapstream if there are no entries in categories/pages/topics.xml
slugify.js feat: , add slugify module, deprecate utils.slugify
social.js fix: cannot turn off all networks
start.js feat: scheduled topics ()
translator.js Webpack5 ()
upgrade.js feat: Allow defining active plugins in config ()
utils.js test: fix tests again
webserver.js fix: use different emoji on NodeBB Ready — again because procrastination