Commit Graph

2473 Commits (5d8df407a91197541f96a4c44416065a16035056)

Author SHA1 Message Date
Julian Lam 9c576a0758
Email confirmation QOL updates ()
* breaking: remove `SocketUser.emailConfirm`, re: 

* chore: move email confirmation related configs to own section in Settings > Email

* feat: new user email method `getValidationExpiry`, returns expiration in ms.. probably.

* fix: bug where `user.email.isValidationPending` returned an u nexpected non-boolean value if there was no confirmation pending (only when checking email as well)

* fix: update getValidationExpiry to return ms

* test: use emailConfirmInterval for tests, for now

* fix: throw friendly error when attempting an email change within email confirmation window

* feat: new config option `emailConfirmExpiry` in days, governs how long the confirm link is good for

* test: additional tests for user email methods

* fix: add back missing handling of  option

* test: fix tests
Misty Release Bot dd6d104820 chore: incrementing version number - v2.5.7
Barış Soner Uşaklı dc4a850cac show progress
Barış Soner Uşaklı ba484d5478 Esbuild ()
* ci: add minimum GitHub token permissions for workflows
Signed-off-by: Ashish Kurmi <akurmi@stepsecurity.io>

* feat: use esbuild for minification

Co-authored-by: Ashish Kurmi <akurmi@stepsecurity.io>
Misty Release Bot 7dc45afa4c chore: incrementing version number - v2.5.6
Misty Release Bot 58b2f10ee9 chore: incrementing version number - v2.5.5
Barış Soner Uşaklı b91ef6dd76 chore: up plugins
Misty Release Bot 89eb0340d1 chore: incrementing version number - v2.5.4
Misty Release Bot cf6e8101e8 chore: incrementing version number - v2.5.3
Julian Lam 1d80a07ed1 fix(deps): bump composer-default to v9.1.1
Misty Release Bot e351fbe89c chore: incrementing version number - v2.5.2
Misty Release Bot 2bf475299d chore: incrementing version number - v2.5.1
Julian Lam 61d1e9e0d4 fix(deps): temporarily add back old textcomplete dependencies so emoji plugin can import them
Revert this commit once the emoji plugin is patched so it refers to the newer textcomplete module
Misty Release Bot c3e19005f6 chore: incrementing version number - v2.5.0
Opliko 1920732528
feat: remove visibilityjs ()
* feat: remove visibilityjs

* fix: actually remove require

* style: add a newline

* style: forgot a semicolon

* style: accidently removed trailing newline

* fix: move property declaration to its actual previous place
renovate[bot] 884d40756a fix(deps): update dependency compare-versions to v4.1.4
Julian Lam 15b1561fd3 feat: introduce ACP defined option to rescind notif or do nothing on flag resolve/reject
/cc 
Julian Lam b3b48fa62f Merge remote-tracking branch 'origin/master' into develop
Julian Lam 3cbb7a3df0 chore: move @textcomplete and its modules to composer-default
Misty Release Bot d8b1291088 chore: incrementing version number - v2.4.5
Julian Lam 20ebf0a1e0 Merge remote-tracking branch 'origin/master' into develop
renovate[bot] e51004e206 fix(deps): update dependency mongodb to v4.9.0
Misty Release Bot 24221d66e0 chore: incrementing version number - v2.4.4
Misty Release Bot be0256b26e chore: incrementing version number - v2.4.3
renovate[bot] d8a52f8142 fix(deps): update dependency lru-cache to v7.14.0
Julian Lam 81f8d84f10 fix(deps): bump composer-default to v9
Julian Lam b7bcc367c6 fix(deps): remove textcomplete in favour of @textcomplete/core (same package, just refactored)
Julian Lam 9e46dd2090 Merge remote-tracking branch 'origin/master' into develop
Misty Release Bot 1635633acd chore: incrementing version number - v2.4.2
renovate[bot] 444b4d578b
fix(deps): update dependency nodebb-theme-persona to v12.1.1 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Barış Soner Uşaklı aba420a3f3 feat: setting to show signatures only once in topics, closes
renovate[bot] 8fce68d347
chore(deps): update dependency eslint to v8.22.0 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Barış Soner Uşaklı 33458701c1 test: passport0.6 ()
* test: passport0.6

* test: make logout async, fix lint

* test: keepSessionInfo flag

* revert: csrf load
Misty Release Bot fecf31bd15 chore: incrementing version number - v2.4.1
Barış Soner Uşaklı 6b2a6f9006
test: passport0.6 ()
* test: passport0.6

* test: make logout async, fix lint

* test: keepSessionInfo flag

* revert: csrf load
Misty Release Bot 7f5ff2e613 chore: incrementing version number - v2.4.1
renovate[bot] 4c44d12557 fix(deps): update dependency ace-builds to v1.9.5
renovate[bot] 4ddc0c7af9 fix(deps): update dependency lru-cache to v7.13.2
renovate[bot] dd3851849b fix(deps): update dependency nodemailer to v6.7.8
renovate[bot] 150a7488e4 fix(deps): pin dependency @isaacs/ttlcache to 1.2.0
renovate[bot] 9a7dd3a3b1 fix(deps): update dependency nodebb-plugin-composer-default to v8.0.1 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Misty Release Bot 5525442279 chore: incrementing version number - v2.4.0
Julian Lam 9b753d6d57
TTL Cache ()
* refactor: move src/cacheCreate.js to src/cache/lru.js

* fix: call new library location for lru cache creator

* feat: add ttl cache

* fix: update upload throttler to use ttl cache instead of lru cache

* chore: add missing dependency

* fix: avoid pubsub conflicts

* fix: use get instead of peek, which is not available in ttl-cache
Julian Lam c07d595662
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>
renovate[bot] 13a17bd10a chore(deps): update dependency eslint to v8.21.0
dependabot[bot] 993b77478e chore(deps): bump commander from 7.2.0 to 9.4.0 in /install
Bumps [commander](https://github.com/tj/commander.js) from 7.2.0 to 9.4.0.
- [Release notes](https://github.com/tj/commander.js/releases)
- [Changelog](https://github.com/tj/commander.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tj/commander.js/compare/v7.2.0...v9.4.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Julian Lam 1465598d3b fix(deps): bump persona v12.1.0
Julian Lam bd18004d77 fix(deps): bump 2factor to v5.0.2
Julian Lam e092bfeb46 Merge remote-tracking branch 'origin/master' into develop
renovate[bot] f02492bde3
fix(deps): update dependency sanitize-html to v2.7.1 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>