nodeBB v1.19.1 Release Notes

Release Date: 2022-01-21 // 7 days ago
  • Chores
    • deps:
      • bump compare-versions from 4.1.2 to 4.1.3 in /install (#10154) (4a5182e4)
      • update dependency lint-staged to v12.2.2 (f090de36)
      • update dependency @commitlint/cli to v16.1.0 (44d81a95)
      • update dependency lint-staged to v12.2.1 (857ac480)
      • update dependency @commitlint/cli to v16.0.3 (9c63d076)
      • update dependency lint-staged to v12.2.0 (1a0c117d)
      • update dependency eslint to v8.7.0 (8abaf3f6)
      • update dependency mocha to v9.1.4 (f5ad173b)
    • up persona (89871d71)
    • โœ… add test.sh to gitignore (d7796f0b)
    • โœ… delete test script (250274c7)
    • ๐Ÿšš remove unused lang key #10180 (2fe91e36)
    • incrementing version number - v1.19.0 (18b0a29f)
    • โšก๏ธ update changelog for v1.19.0 (c8f1bc53)
    • i18n:
      • fallback strings for new resources: nodebb.admin-settings-user (78cd6de7)
      • fallback strings for new resources: nodebb.user (3ec9197c)
      • fallback strings for new resources: nodebb.email (354aa1a5)
    ๐Ÿ†• New Features
    • โช revert label js change (1c80adf1)
    • hide all categories link on flags filters (e9d0db28)
    • nicer error handling for bad jwt in unsubscribe template (31ea2266)
    ๐Ÿ› Bug Fixes
    • deps:
      • update dependency jquery-ui to v1.13.1 (#10186) (55b3a355)
      • update dependency multiparty to v4.2.3 (#10188) (7fa2ba70)
      • update dependency nodebb-theme-persona to v11.3.15 (#10155) (e03d4747)
      • update dependency mongodb to v4.3.1 (#10178) (693ca1f1)
      • update dependency nodebb-plugin-composer-default to v7.0.18 (#10164) (2c75cce6)
    • urls used when recent/unread/popular/top is used as the homepage (28359665)
    • mark unread button showing the selected category (fdfafb44)
    • catch exceptions from sendNotifications (c1ec2047)
    • multiple cid filter on flags page (3e8cb732)
    • post indices if there is a blocked user in topic (f9279b63)
    • dont add duplicate link backs (3b72ff87)
    • #10175, fix topic linkbacks duplicating on post edit (b06c6329)
    • #10173, don't show optional message if email is required (d1eb21c5)
    • #10172, fix postqueue accept/reject notification text (6a75ed50)
    • #10167, fix regression prevent guest post (4799efc7)
    • CSRF handler to go back to saving in session (#10159) (e9ee843b)
    • #10158, fix extra padding (03f5cbcc)
    โ™ป๏ธ Refactors
    • add method to error messages (c9fabb0e)
    โœ… Tests
    • โœ… add failing guest csrf test (#10169) (10949184)

Previous changes from v1.19.0

  • ๐Ÿ’ฅ Breaking Changes
    • GET /chats/:roomId/users [breaking] (6eea6451)
    • ๐Ÿšš remove socket.emit('user.exists') (1f063058)
    • ๐Ÿšš remove socket.emit('user.changeUsernameEmail') (6b45dee9)
    • #10077, store nav items in objects (69c96078)
    • ๐Ÿšš remove socket.emit('topics.follow') (f918a381)
    • ๐Ÿšš remove socket.emit('topics.post') (6ad04721)
    • ๐Ÿšš remove socket.emit('user.banUsers'); (49641a32)
    • ๐Ÿšš remove socket.emit('posts.reply') (4604a572)
    • ๐Ÿšš remove socket.emit('user.changePicture') (6d95684b)
    • ๐Ÿšš remove socket.emit('user.search') (0d694c78)
    • ๐Ÿšš remove socketHelpers.setDefaultPostData (99f865c6)
    • ๐Ÿšš remove deprecated groups socket calls (02ea17ea)
    • ๐Ÿšš remove deprecated methods (0d1e57dc)
    • ๐Ÿšš remove socket.emit('posts.delete') (bd1cb2d4)
    • ๐Ÿšš remove socket.emit('posts.upvote') (ec1d5e38)
    • ๐Ÿšš remove socket.emit('posts.move') (8427c5d9)
    • ๐Ÿšš remove socket.emit('posts.edit') (4247f624)
    • ๐Ÿšš remove socket.emit('posts.bookmark/unbookmark') (f7418ccd)
    • ๐Ÿšš remove deprecated admin.groups methods (07e2741e)
    • ๐Ÿšš remove socket.emit('categories.getCategory') (45d755b6)
    • ๐Ÿšš remove socket.emit('admin.categories.setPrivilege') and socket.emit('admin.categories.getPrivilegeSettings') (cc3f82bc)
    • โšก๏ธ remove deprecated socket.emit('admin.categories.update') (0b9c01f9)
    • ๐Ÿšš remove deprecated socket.emit('admin.categories.purge') (ba5d2e7b)
    • ๐Ÿšš remove deprecated socket.emit('admin.categories.create') (b3353723)
    • ๐Ÿšš remove deprecated socket.emit('admin.categories.getAll') (10c19af2)
    • ๐Ÿšš remove getTopicPosts(tid, ...) usage (170e5dd9)
    • ๐Ÿšš remove deprecated post diff socket calls (8117b7f2)
    • ๐Ÿšš remove deprecated user middlewares (1a7fffc7)
    • ๐Ÿšš remove action:category.loaded, use action:topics.loading (36aa6034)
    • ๐Ÿšš remove setTopicSort/setCategorySort (6dcdf1d3)
    • ๐Ÿšš remove deprecated socket user create/delete functions (a7d1dfb6)
    • ๐Ÿšš remove deprecated uploads.delete (c93d7fdb)
    • ๐Ÿšš remove deprecated methods (79de48c5)
    • ๐Ÿšš remove socket.io/flags.js (c5f08fdc)
    Chores
    • ๐Ÿ”€ org; merge consecutive await calls into one Promise.all (be4dbe34)
    • fix #9213 (0a5420ed)
    • ๐Ÿ“ฆ revert engines change in install/package.json (487f25ba)
    • โšก๏ธ update renovate config (f95acce3)
    • โšก๏ธ update renovate range strategy... (bc0f33df)
    • ๐Ÿšš remove debug logs in test/api.js (82768fcf)
    • โœ… use apiv3 for room rename tests (e745e212)
    • trigger lang (540eeae9)
    • up themes (71fa8175)
    • right dropdown (7aa85882)
    • right dropdown (a998cc1c)
    • โšก๏ธ update readme mongodb version (af5393ec)
    • incrementing version number - v1.18.6 (3a78a151)
    • โšก๏ธ update changelog for v1.18.6 (3c8109e2)
    • deps:
      • update commitlint monorepo (56d134c3)
      • update dependency lint-staged to v12.1.7 (40e7007f)
      • update dependency lint-staged to v12.1.6 (f78108ac)
      • update dependency eslint-plugin-import to v2.25.4 (a69afdb6)
      • update dependency lint-staged to v12.1.5 (12038039)
      • update dependency eslint to v8.6.0 (b546ff4e)
      • update dependency lint-staged to v12.1.4 (87779fc8)
      • update dependency jsdom to v19 (#10053) (ee05b762)
      • update dependency lint-staged to v12.1.3 (c0dd8dcb)
      • update dependency eslint to v8.5.0 (55b9fab1)
      • update dependency eslint to v8.4.1 (ba02f015)
      • update dependency eslint to v8.4.0 (4b113715)
      • update dependency lint-staged to v12 (b3423389)
      • update dependency eslint to v8 (e9aadde1)
      • update commitlint monorepo to v15 (f6c6425d)
      • update dependency jsdom to v18.1.1 (87433b79)
      • bump compare-versions from 3.6.0 to 4.1.1 in /install (ea9f2c73)
      • update dependency jsdom to v18.1.0 (d7c2a311)
    • i18n:
      • fallback strings for new resources: nodebb.user (d79d7e80)
      • fallback strings for new resources: nodebb.admin-settings-uploads (e6a46ef6)
      • fallback strings for new resources: nodebb.error (207ae8cd)
      • fallback strings for new resources: nodebb.post-queue (edba10e2)
      • fallback strings for new resources: nodebb.modules, nodebb.notifications (fd939f8b)
      • fallback strings for new resources: nodebb.admin-admin (4a53adf6)
      • fallback strings for new resources: nodebb.admin-admin (b052a8e7)
      • fallback strings for new resources: nodebb.topic (23c915ba)
      • fallback strings for new resources: nodebb.admin-settings-user, nodebb.login (eecd02fb)
      • fallback strings for new resources: nodebb.admin-settings-email (72e1c281)
    ๐Ÿ“š Documentation Changes
    • comment hint :shipit: (ffdf26af)
    • fix description for route (47ab9526)
    • roomId is number (0aa25f20)
    • ๐Ÿ“š openAPI documentation for routes (55e68e2f)
    • use social media card in readme header (33c8b197)
    • add social media card (f7b3f69f)
    • ๐Ÿ“„ add docs link higher up (1a85aaad)
    • โšก๏ธ update readme blurb (e325aa93)
    ๐Ÿ†• New Features
    • ๐Ÿ”Œ bundling nodebb-plugin-2factor with all NodeBB installations, v1.19.0 onwards :tada: (31b4b8fd)
    • revoke user sessions on successful password reset (6ca216ab)
    • allow % in tags, #10135 (a75a043b)
    • ๐Ÿ‘ท allow isCluster, isPrimary, and jobsDisabled to be passed in as numbers in addition to string/bool (b5b188fd)
    • GET /api/v3/chats/:roomId/messages (2fe53cf8)
    • DELETE /api/v3/chats/:roomId/users and DELETE /api/v3/chats/:roomId/users/:uid (fe17c94c)
    • POST /chats/:roomId/users (d62ee846)
    • POST /chats/:roomId/:mid and DELETE /chats/:roomId/:mid (d5fd098e)
    • middleware.assert.message (90fcbe44)
    • GET /chats/:roomId/:mid (b2929605)
    • PUT /chats/:roomId/:mid (f48ed365)
    • allow API checkRequired middleware error to be internationalized (74f1905e)
    • PUT /api/v3/chats/:roomId (9a4fd5dc)
    • POST /api/v3/chats/:roomId (eeffb9d9)
    • GET /api/v3/chats/:roomId (09cf9c77)
    • โšก๏ธ POST /api/v3/chats, chat room creation, plus openAPI docs update (40b4544e)
    • GET /api/v3/chats (94bead71)
    • stub code for v3 chats api (02e878be)
    • ๐Ÿ‘€ #9506, allow seeing and editing your queued posts (c4042c70)
    • pass in all query params to category search filter (599bffd8)
    • add data param to filter:categories.search (c4156bdd)
    • ๐Ÿ”ง ensure that all requests handled by NodeBB fall under the relative_path as configured (a3bdb706)
    • show 10 members (d9c42c00)
    • closes #10018 (1e535528)
    • #10018 add href (06bfec88)
    • #10018 , wip (0f14f23b)
    • autocomplete for activate/reset (f0d192fb)
    • #10008, add history entry for note deletion (c26870d2)
    • ๐Ÿšš #9957, don't remove existing fields form config.json (0532c1b2)
    • add feature flag to disable verification emails, closes #9996 (09e0c6d5)
    ๐Ÿ› Bug Fixes
    • deps:
      • update dependency nodebb-plugin-markdown to v8.14.6 (ad6f6051)
      • update dependency winston to v3.4.0 (#10150) (2fee1d07)
      • update dependency ioredis to v4.28.3 (#10151) (bfad04ab)
      • pin dependencies (da2bb340)
      • pin dependency socket.io-adapter-cluster to 1.0.1 (#10146) (15bf3db2)
      • update dependency nodebb-theme-vanilla to v12.1.15 (#10149) (2fa3cd0d)
      • update dependency nodebb-theme-slick to v1.4.23 (#10148) (762de2d8)
      • update dependency nodebb-theme-persona to v11.3.13 (#10147) (385d4c71)
      • update dependency winston to v3.3.4 (4bada01b)
      • update dependency autoprefixer to v10.4.2 (a47883e8)
      • update dependency mongodb to v4.3.0 (50eb4556)
      • update socket.io packages to v4.4.1 (9eb00cb2)
      • update dependency nodebb-rewards-essentials to v0.2.1 (0a15c99e)
      • update dependency autoprefixer to v10.4.1 (f1aa5f7d)
      • update dependency yargs to v17.3.1 (5c3335b7)
      • update dependency nodebb-theme-vanilla to v12.1.14 (#10102) (dd8b1f75)
      • update dependency nodebb-theme-slick to v1.4.22 (#10101) (dd1633ff)
      • update dependency nodebb-theme-lavender to v5.3.2 (#10099) (eccdfc9d)
      • update dependency nodebb-theme-persona to v11.3.12 (#10100) (4f6fc10b)
      • update dependency nodebb-theme-persona to v11.3.11 (32cbf760)
      • update dependency nodebb-theme-slick to v1.4.21 (9253519c)
      • update dependency nodebb-theme-slick to v1.4.20 (#10084) (019804e1)
      • update dependency nodebb-theme-vanilla to v12.1.13 (#10085) (66c759ed)
      • update dependency nodebb-theme-persona to v11.3.10 (#10083) (d276c9cd)
      • update dependency nodebb-plugin-composer-default to v7.0.17 (#10082) (0ef9c7ab)
      • update dependency nodebb-theme-vanilla to v12.1.12 (dda7c075)
      • update dependency nodebb-theme-slick to v1.4.19 (4577600e)
      • update dependency nodebb-theme-persona to v11.3.8 (5e2281c3)
      • update dependency mongodb to v4.2.2 (0551a19e)
      • update dependency postcss to v8.4.5 (16398dd9)
      • update dependency compare-versions to v4.1.2 (de1ed01d)
      • bump persona (16c88a97)
      • bump persona (c90a8926)
      • update dependency nodebb-plugin-mentions to v3.0.4 (#10063) (07217762)
      • update dependency nodebb-plugin-spam-be-gone to v0.7.12 (#10064) (a5840c5a)
      • update dependency nodebb-theme-slick to v1.4.18 (#10065) (5477cf32)
      • update dependency nodebb-plugin-markdown to v8.14.5 (#10062) (60d778f0)
      • update dependency nodebb-theme-persona to v11.3.5 (#10059) (8695d370)
      • update dependency nodebb-plugin-dbsearch to v5.1.1 (70068d6c)
      • update dependency nodebb-plugin-composer-default to v7.0.15 (84b03a34)
      • update dependency nodebb-theme-persona to v11.3.3 (8cbe0df2)
      • bump emoji plugin (14e35247)
      • update dependency ioredis to v4.28.2 (597d826b)
      • update dependency yargs to v17.3.0 (115de4e5)
      • update dependency mime to v3 (#9963) (49813cce)
      • update dependency mongodb to v4.2.1 (f72af319)
      • update dependency @socket.io/redis-adapter to v7.1.0 (ed4b0cf7)
      • update dependency postcss to v8.4.4 (b34b8aa9)
      • update dependency postcss to v8.4.3 (2dadf786)
      • update dependency postcss to v8.4.1 (6a273798)
      • update dependency postcss to v8.4.0 (29345275)
      • update dependency ioredis to v4.28.1 (9966a00f)
      • update dependency nodebb-theme-persona to v11.3.1 (fdae6991)
      • update socket.io packages to v4.4.0 (f05d308a)
      • update dependency nodebb-theme-vanilla to v12.1.10 (68dddbd9)
      • update dependency nodebb-theme-persona to v11.2.22 (3eb91a20)
      • update dependency nodebb-plugin-mentions to v3.0.3 (5ec32c31)
      • update dependency mongodb to v4.2.0 (#10011) (2378fc84)
      • update dependency @socket.io/redis-adapter to v7.0.1 (aae7be02)
      • update dependency sharp to v0.29.3 (46162537)
    • ๐Ÿ‘• lint (c9592e17)
    • icon alignment issue that was also bugging me :shipit: (37a71291)
    • #10143, add back ace editor searchbox (42caef7f)
    • #10095, add login info to email interstitial (5eb02f59)
    • #10121, fix error messages in user creation (8ad64ec0)
    • #10115, fix chat autocomplete hook (69a7634a)
    • notice links in subfolder installs (cc27a324)
    • ๐Ÿšง move authenticateRequest before interstitial and maintenance mode middlewares, allowed plugins to disable authentication on certain routes (d89fc44c)
    • retry incrObjtFieldBy (07232a8c)
    • use component instead of class name (b179f0fc)
    • assertion check to ensure messages are in the room when editing/deleting, etc (d95b4ee2)
    • rename language key for incorrect parameter type error (aeb43b9b)
    • ๐Ÿ—„ deprecate chats.leave (16ba16cd)
    • re-allow kicking of the other party in a 1-to-1 chat (6294beea)
    • โœ… isFinite check for room assertion, more test migrating (140f9d24)
    • #10096, don't display preview for links if hostname doesnt match (a115b771)
    • only render preview on topic page (a9f81215)
    • ๐Ÿ“ˆ don't crash server if analytics fails to save (8fb89d76)
    • โฌ†๏ธ upgrade script to handle strings as well (e332acf3)
    • ๐Ÿšš #10090, remove left over necro posts messages (fdaf8274)
    • #10086, if pidfile is empty delete (59214ca2)
    • utils method (91e21ecc)
    • prevent crash if groups is not valid json (cc0a087a)
    • โฌ†๏ธ upgrade script (968d4616)
    • delete left over nav items after removal of some (737e1c19)
    • targetBlank/dropdown not getting cleared (10e890e4)
    • prettier bulk method usage (3b0c42a5)
    • bug where groupChat property was not set for chat rooms (42959df0)
    • #9484 show user history only to admins and gmods (bc7707aa)
    • no need to pass 'img' to teaser tags stripping as images are already converted to alt text (45c9dde3)
    • #10069, don't modify fields array (a8afdc60)
    • โšก๏ธ #10068, update data-index values after sort (236d4e80)
    • โšก๏ธ #10068, baseIndex should be read before sort update fix off by one error (9af23351)
    • โœ… tests (45d8157f)
    • #10067, count posts instead of incr/decr (830166d1)
    • handle start=0 stop=0 for topics.getTopicPosts (906dc567)
    • wrong usage of is ACP (4f423610)
    • don't throw on invalid session, just return early so socket is not opened. (fa01801f)
    • #10052, dont use spaces in tag class name (a2953583)
    • don't crash if tid is falsy (1cdb0b1e)
    • regression from https://github.com/NodeBB/NodeBB/commit/27c05448e1532ce466658513af0e2ff65576b410 (50063fe2)
    • keep query params on /me redirects (941ecaf8)
    • 403/400/500 page not generating csrf_token (65c55041)
    • error pages dont have config.csrf_token (3dd681eb)
    • ๐Ÿ’ป quote button staying on screen on slow computers (d378bf4c)
    • ๐Ÿšš removed unused var (e0caa5e0)
    • #10027, properly auto confirm first user (2473d5d8)
    • cli password reset (71e34be5)
    • #10023, bump persona (a10ea03c)
    • ๐Ÿ’… #10020, /api/post/upload returns v3 style response (242f8e95)
    • ๐Ÿ”Œ consolidate plugin reset logic (449366ca)
    • search crash (9245f71a)
    • #10010, handle reverse sorting for topic events (d5bfd512)
    • #10006, dont allow new rooms or adding to a room if target is blocked (047f031d)
    Other Changes
    • ๐Ÿšš remove unused (afc75ba4)
    • fix (682f6089)
    • missing ; (20e76699)
    • ๐Ÿšš remove unused (cbf198fe)
    • ๐Ÿšš remove unused (a20abdce)
    • fix (0a6eeb93)
    • ๐Ÿšš remove unused utils (82b72f7e)
    • fix (fa1ac04d)
    ๐ŸŽ Performance Improvements
    • only add middleware if relativePath is set (41db9436)
    • don't load all set members to get count (0414356c)
    • create user tooltips on demand (23147235)
    • closes #9994, bulk methods for settings (d412ba44)
    • ๐Ÿšš remove createUserTooltips (facc10e4)
    โ™ป๏ธ Refactors
    • ๐Ÿšš remove unused language key (5278b11a)
    • put message api calls behind /messages prefix, #10097 (aaa6f752)
    • โœ… rewrite messaging tests to use API v3 calls when available, rewrote a bunch of tests to async..await (c990211c)
    • ๐Ÿ“ˆ only write analytics data on nbb that has runJobs=true (35fea58a)
    • ๐Ÿšš remove knonwOwner param (42781467)
    • ๐Ÿšš remove console.log (a7644466)
    • ๐Ÿšš remove unused validator (4e1d4217)
    • only pass qs (b8896d13)
    • change error message (1e60ae87)
    • use hasOwnProperty (9f1b8a3b)
    • ๐Ÿšš remove object.create (dbba0c39)
    • ๐Ÿšš remove unused args (3d3ae82f)
    • ๐Ÿšš remove comment (633061f4)
    • use .map to return promises (d4f3ee67)
    • async (cfd47448)
    • async (f0394c49)
    • use async (8491f67d)
    • ๐Ÿšš remove unused (e3c0f0be)
    • always returns array (9627fa90)
    • use async/await (f4aa249d)
    • change var name (36eb47d9)
    • alerts (621c142f)
    • use alerts.error/success (cba78aee)
    • use lang keys, fix typo (dd02c49f)
    • use alerts module (1980feed)
    • dont need local function (2bb0828a)
    • DRY (324262cb)
    • โœ… use routePrefixMap instead of routeRegexpMap, +tests (#10035) (6c07433d)
    • use hasOwnProprety (daf385cd)
    • tab rules (fb363957)
    • โšก๏ธ change category feed so it is not updated on every reply (697dd376)
    • dont expost entire res._locals to client side (e368feef)
    • shorter meta.settings.get (190532b3)
    • ๐Ÿ‘ฏ clone settings before returning (51cbeccb)
    • ๐Ÿšš remove another async.series (27c05448)
    • ๐Ÿšš remove tabs after declaration (4359e5c9)
    • โšก๏ธ update dates (6d38eab6)
    • ๐Ÿ‘ฏ clone before returning (f729e519)
    • add filter:topic.getPosts (258f368e)
    • setObjectBulk to match sortedSetAddBulk (8379c11b)
    • ๐Ÿšš remove more async.eachSeries/mapSeries (d1964095)
    • make a single call to set widgets per template (8750ee04)
    • ๐Ÿšš remove jshint, remove async.parallel (80f9963b)
    ๐Ÿ’… Code Style Changes
    • ๐Ÿ‘• eslint (d960f601)
    โœ… Tests
    • โœ… fix util test (6c1e184c)
    • โšก๏ธ update tag tests, fix linux symlink error (9b75b1ed)
    • โช fix restore test (0d9ec9d3)
    • โœ… fix user tests calling deprecated socket methods (e747998c)
    • โœ… add email interstitial tests (1264dcb5)
    • don't use csrf_token for get,head, options (5e08f7e6)
    • โœ… fix tests (0e273ab2)
    • ๐Ÿšš remove old test (68fd0875)
    • make it async (5c3d5f1f)
    • fix (26f00ffb)
    • โœ… one more getTopicPosts test (f8f0a83b)
    • utils.params (7b99dc46)
    • ๐Ÿ‘€ regular user shouldn't see admin:privileges (cd2040ac)
    • โœ… add missing tests (58431221)
    • โœ… add api token tests (7434cbf6)
    • โœ… add missing tests (404a8774)
    • โฌ†๏ธ upgrade.runParticular (2bdb4906)
    • โœ… add missing acp root category test (c17ec996)
    • โœ… cache dump test (217aae4c)
    • add missing controllers (bc120dba)
    • fix tpl name (edf7c647)
    • โœ… add mising email.test tpls (6d186ff1)
    • debug routes in dev (754cdab8)
    • โœ… add digest route test (1280d9ae)
    • digest (f11bc33a)
    • fix function name (0e725125)
    • submitUsage (d375dcb8)
    • ๐Ÿšš remove log (d7c32ccb)
    • middleware/expose.js (29b3587d)
    • up mongodb version (500cad78)
    • ๐Ÿšš mainPost removed from inf scroll (aac0792a)