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>
3 years ago
..
accounts fix: #10805, hide unconfirmed emails from user data retrieval methods 3 years ago
admin Update to lru-cache@^7 (#10815) 3 years ago
write Webpack5 (#10311) 3 years ago
404.js fix(security): explicitly declare cache-control header instead of using middleware 3 years ago
accounts.js chore: eslint no-var, vars-on-top 4 years ago
admin.js chore: eslint no-var, vars-on-top 4 years ago
api.js feat: closes #10296 3 years ago
authentication.js fix: don't crash if req.body.username is not string 3 years ago
categories.js chore: eslint prefer-arrow-callback 4 years ago
category.js fix: dont show system tags in whitelist dropdown to regular users 4 years ago
composer.js chore: eslint prefer-destructuring 4 years ago
errors.js refactor: add method to error messages 3 years ago
globalmods.js refactor: moved ip-blacklist and post-queue styles/tpls to themes 5 years ago
groups.js chore: eslint prefer-template 4 years ago
helpers.js feat: closes #10719, don't trim children if category is marked section 3 years ago
home.js chore: eslint prefer-destructuring 4 years ago
index.js remove email only login (#10030) 4 years ago
mods.js feat: post queue bulk actions closes #10520, fix #10555, 3 years ago
osd.js chore: eslint object-curly-newline 4 years ago
ping.js chore: eslint prefer-template 4 years ago
popular.js chore: eslint prefer-template 4 years ago
posts.js chore: eslint prefer-template 4 years ago
recent.js fix: urls used when recent/unread/popular/top is used as the homepage 3 years ago
search.js refactor: replace deprecated String.prototype.substr() (#10432) 3 years ago
sitemap.js chore: eslint prefer-arrow-callback 4 years ago
tags.js feat: closes #9380, add category filtering and topic tools to tag page 4 years ago
top.js chore: eslint prefer-template 4 years ago
topics.js fix: 'unread' postIndex regression closes #10607 3 years ago
unread.js fix: urls used when recent/unread/popular/top is used as the homepage 3 years ago
uploads.js refactor: replace deprecated String.prototype.substr() (#10432) 3 years ago
user.js fix: use `user.hidePrivateData();` more consistently across user retrieval endpoints 3 years ago
users.js feat: on online users page override timeago cutoff to 24 hours 3 years ago