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 c07d595662
Update to lru-cache@^7 (#10815)
* 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>
2 years ago
..
database perf: WIP #10449, allow array of pids for posts.purge (#10465) 3 years ago
files Add more chat hooks, replace toobig.jpg (#9843) 3 years ago
helpers test: fix one last failing test 2 years ago
mocks Update to lru-cache@^7 (#10815) 2 years ago
posts Webpack5 (#10311) 3 years ago
topics test: fix topic thumb tests and topic thumbs to work properly with post upload assoc. 3 years ago
user Webpack5 (#10311) 3 years ago
.eslintrc ESlint no-unused-vars 8 years ago
api.js test: fix tests so that when user.create is called, email is set prior to confirmation 2 years ago
authentication.js test: fix tests so that when user.create is called, email is set prior to confirmation 2 years ago
batch.js chore: eslint no-var, vars-on-top 4 years ago
blacklist.js chore: eslint no-var, vars-on-top 4 years ago
build.js Webpack5 (#10311) 3 years ago
categories.js test: fix category tests 3 years ago
controllers-admin.js test: fix one more test 3 years ago
controllers.js test: additional tests for password challenge on email update 2 years ago
coverPhoto.js chore: eslint no-var, vars-on-top 4 years ago
database.js refactor: remove tabs after declaration 3 years ago
defer-logger.js chore: eslint no-var, vars-on-top 4 years ago
emailer.js fix: properly unregister hooks in emailer tests 3 years ago
feeds.js breaking: remove socket.io/flags.js 3 years ago
file.js chore: eslint no-var, vars-on-top 4 years ago
flags.js Webpack5 (#10311) 3 years ago
groups.js breaking: remove deprecated groups socket calls 3 years ago
i18n.js test: fix i18n tests 3 years ago
image.js chore: eslint no-var, vars-on-top 4 years ago
locale-detect.js refactor: remove tabs after declaration 3 years ago
messaging.js Webpack5 (#10311) 3 years ago
meta.js refactor: tab rules 3 years ago
middleware.js Update to lru-cache@^7 (#10815) 2 years ago
notifications.js feat: als (#9749) 3 years ago
package-install.js Re-introduce lodash into src/package-install.js (#10315) 3 years ago
pagination.js refactor: remove tabs after declaration 3 years ago
password.js feat: allow passwords with length > 73 characters (#8818) 4 years ago
plugins-installed.js fix: #10809, test runner to only run tests for plugins included in `test_plugins` 2 years ago
plugins.js feat: Allow defining active plugins in config (#10767) 3 years ago
posts.js Webpack5 (#10311) 3 years ago
pubsub.js chore: eslint no-var, vars-on-top 4 years ago
rewards.js chore: eslint no-var, vars-on-top 4 years ago
search-admin.js chore: eslint no-var, vars-on-top 4 years ago
search.js refactor: remove tabs after declaration 3 years ago
settings.js chore: eslint no-var, vars-on-top 4 years ago
socket.io.js fix test on redis 2 years ago
template-helpers.js Webpack5 (#10311) 3 years ago
topics.js refactor: move post upload tests to its own file 3 years ago
translator.js Webpack5 (#10311) 3 years ago
upgrade.js test: upgrade.runParticular 3 years ago
uploads.js Update to lru-cache@^7 (#10815) 2 years ago
user.js test: fix user email tests 2 years ago
utils.js test: fix UUID test 3 years ago