NodeBB
-
v1.17.0-beta.0
Published by nodebb-misty over 3 years ago
Prerelease build of NodeBB @ 2021-02-19T19:43:25.102Z -- Not meant for production usage
v1.17.0-beta.0 (2021-02-19)
Breaking Changes
- remove deprecated
User.emailConfirm
[breaking] (fb84c785)
- remove deprecated plugin hook
filter:privileges:isUserAllowedTo
[breaking] (5a775e09)
- remove deprecated plugin hook methods [breaking] (d41de481)
- more removals of thumb specific backwards-compatibility [breaking] (cc0d562e)
- remove deprecated
filter:admin/header.build
hook [breaking] (5f9f241e)
- remove deprecated v2 style responses for thumbs upload route [breaking] (84dfdfe6)
- remove deprecated getObject routes [breaking] (2ad0d0d0)
- remove 'filters' and 'categories' from flag details API return [breaking] (8b72479f)
- filtering logic of flags [breaking] (1603566b)
- feature flag for auto-resolving a user's flags on ban [breaking] (6b1c97db)
- allow interstitial callbacks to be async functions [breaking] (280285cd)
Chores
- incrementing version number - v1.17.0-beta.0 (b61257ef)
- incrementing version number - v1.16.3-beta.0 (477157cc)
- extra console.log (1ae8dda8)
- up composer (1c9acef6)
- eslint max-len (cc9d6fd0)
- eslint no-restricted-syntax (5c2f0f05)
- eslint prefer-rest-params, prefer-spread (115d19e2)
- eslint prefer-destructuring (23f212a4)
- eslint object-curly-newline (8d1462ff)
- eslint function-paren-newline (62869bae)
- eslint no-var, vars-on-top (dab3b235)
- eslint prefer-arrow-callback (b56d9e12)
- eslint prefer-template (707b55b6)
- eslint import/newline-after-import (4ee0f145)
- eslint no-script-url (9f6a682c)
- eslint no-bitwise (dad01e30)
- eslint rules matching existing styles (58528d1a)
- fallbacks (74be1a59)
- deprecation notices for plugins using plugin old hook methods (3052256d)
- add deprecation notice in comments for ajaxify.loadExtraScripts (8b09292e)
- incrementing version number - v1.16.2 (ea7f8381)
- update changelog for v1.16.2 (d3883d4b)
-
deps:
- update dependency eslint to v7.20.0 (9ec0b2ed)
- update dependency mocha to v8.3.0 (73f07958)
- update dependency husky to v5 (d89ccf26)
- update dependency lint-staged to v10.5.4 (030ecffa)
- update dependency eslint to v7.19.0 (3696a199)
Documentation Changes
- added comment re: #9305 (65c57c73)
- update deprecation-removal version for plugin hook helper methods in 1.18.0 (15ba0abb)
New Features
- pass user picture object into change_picture_modal (c96fd3b1)
- add logout to invalid session (beb14273)
- category search test (a592ebd1)
- pass post object to filter:post.tools (ed3d9dcb)
- allow defining a list of system tags (0e07f3c9)
- add category search test, #9307 (bbaaead0)
- add tag filter to getSortedTopics (9ce6f8ad)
- ability to re-order topic thumbnails (7223074f)
- add close button to topic thumbnail modal (db027170)
- #9304, add category/topic/username to post queue notification emails (0738dae8)
- add failing test for list append/prepend with list (#9303) (8f0386d9)
- link to post-queue from topic event (a4b4a556)
- post-queue topic event (8fd78ce5)
- add post-queue cache (3f35fd33)
- newsletter opt-in/out in UCP, closes #21 (3c7cd9a6)
- load user posts/topics via xhr on infinitescroll (35954734)
- #9294, put new categories at top (4b2bf12f)
- add invalid event name to error message (670cde78)
- new notifications load/loaded hooks on client side (7edc8f45)
- pass req.session into buildReqObject (a6fa351b)
- new hook
action:login.continue
(4f976390)
- banned-users group (53e0d4d2)
- #9109, ability to delete a post's diffs (eb642f40)
- add .delete() method to api module (501441b7)
- doc add description (cc560ca3)
- add doc for query param (ed11e171)
- #9234, add pagination to /api/recent/posts/:term? (fffdc4e0)
- allow sorted-lists on multiple pages (d5d24594)
- #9232, add profile picture into exported zip (f6cd2862)
- new hook
filter:login.override
, deprecate action:auth.overrideLogin
(b820d234)
- guard password fields in login/register against accidental caps lock (4bb3b032)
- ability to search categories, #8813 (34c42c6f)
- restore action:script.load, allow modifying loaded module via static:script.init (05be1c66)
- async/await redis connection (fdfbc902)
- async/await psql connection (33bf1b0e)
- add group name to csv event (672959c1)
-
user: icon background selector in change picture modal (95502124)
-
remountable-routes:
- allow category and account routes to be remounted (9021f071)
- allow /admin and /post to be remountable (f01af62b)
-
topic-events:
- topic events GET route in write API (dc84559d)
- server-side tests for topic events (449c379d)
- clear out topic events when a topic is purged (0d4a3775)
- client-side handling on topic event log (8e93bf73)
- handle newest_to_oldest sort in topic events, WIP (882e6a15)
- generic css for timeline-event (2293a07a)
- support for uids in topic event payloads (611d1f87)
- work in progress topic events logic and client-side implementation (ab2e1ecb)
-
hooks:
- update action:ajaxify.end to use new hooks module (1d775721)
- client-side hooks module (01c9b184)
Bug Fixes
- use root context if buildAvatar context is undefined (b4c0b32b)
- use bootbox module (fa91525a)
- #9307, use _.flatten (25c8f026)
- awaiting res.render in send404 controller > > A plugin wanted to use
response:rotuer.page
to 404 a specific page on some condition. res.render returns early in send404 and so must be awaited otherwise multiple responses will be sent (2fef4627)
- do not overwrite
config.port
from URL, if it's already set (34096b73)
- switch back to getSortedSetRange (8686fbfa)
- settings v3 (91734a64)
- another topic thumb test fix (782bef5e)
- thumbs.associate logic fix + tests (7ebb6d30)
- missing awaits, possible test fix (7665adf7)
- #9301, dont call sitemapstream if there are no entries in categories/pages/topics.xml (9a6cf3d9)
- properly incase its the same path (807b0d43)
- numThumbs count on associate (76bcc0c9)
- missing cache deletion calls for post-queue cache (1490b32d)
- use of removed URL to get post data (36e8d251)
- init topic events from webserver.js (b81508c4)
- check null topics (b753c69c)
- guard against null topics (58cd797e)
- tests, new categories go to top now (fc90f32e)
- #9292, messageobj.content already parsed (c953b1b3)
- clear category cache on copy parent (765db86d)
- delete category cache key on category create (ed3e9ce2)
- typo (c61cc37b)
- wait for event.log to finish before killing process (a5fa212f)
- tests, only generate csrf_token on 404 gets (b6493f89)
- #9287, generate csrf_token on 404 (94f72d60)
- do not blindly escape a notification's bodyLong (783786cf)
- pass jquery object in to action:notifications.loaded hook (16610b2d)
- #9275, (0cca6893)
- don't use global bootbox obj (cfa0d423)
- remove console.log (550cd995)
- move service worker back to relative_path/service-worker.js (fca17cb7)
- spec (ab0ef442)
- markread selector (a4878a5b)
- position when scrolling up (3090a2ae)
- cache key collision (e40af441)
- tests breakage due to 67e3fb64981fe2310b17515e1f18c32021a5e983 (5c21c33e)
- register returnTo logic to match login route (67e3fb64)
- tests (492cbc62)
- posts.uploads.sync dissociates uploaded thumbs of the main pid (f79aeef8)
- update grammar on unban text (68da1c55)
- privileges page - tweak icon position and width, group name wrapping (c729adeb)
- autofocus on search field in ACP > Manage > Plugins (4af9c2fc)
- openapi test specs (cabec378)
- include admins (7c9674de)
- include admins, limit to category mods, correct privilege name (eaf9d2e4)
- http 200 test for api routes (bd583963)
- invalid API call when unfollowing a user (58655e9a)
- example (833c73e8)
- #9127, scope service worker to relative_path for the forum (#9239) (2bc74cff)
- update docs (4c12e0aa)
- broken test after sorted-lists logic change (d6f60f45)
- clear all locks on restart (9834f72f)
-
action:admin.settingsLoaded
to use new hooks lib (5131eb6b)
- crash on firing action hook that had no listeners registered (b0f5d5a5)
- bug where
action:settings.sorted-list.loaded
fired early (1a04ec64)
- regression where
filter:settings.set
no longer received sorted-lists (a8be6fb8)
- #9231, fix redis pubsub connection (5bc1f5b4)
- don't translate message on every ajaxify (a29dd21d)
- tests (05c53394)
- improper override of req.body.username in login logic (74199220)
- full settings hash not passed through to action:settings.set (473d5f4a)
- #9223, don't overwrite stmp settings (a5bf9779)
- multiple sorted-lists do not save to the correct set (4029ec37)
- pass module name to
static:script.init
, +comments (f8bf9e99)
- handle delete and update for categories:name zset (e8429f50)
- tests remove old routes (faeb6373)
- removed object routes (d41ce873)
- removed methods (647d3ba8)
- incorrect return for Thumbs.get() if thumbs were disabled (7b090c58)
- script failure if client-side page script does not exist (7da1b43f)
- bug where
action:ajaxify.end
was never called if there were no init scripts (faf59603)
- update js concatenation logic to bundle scripts.rjs into minfile regardless of build environment (8ff07bc1)
- #7125, allow list for page route, configurable via plugin hook (f975063b)
- error on flag list if no flag filters were saved in session (942d9247)
- mod cid filter accidentally saved in session (35c92d0c)
- more tests for #9217 (ce7c74b2)
- tests for #9217 (f2a5cd0b)
- missing return for #9217 (27cae0d5)
- #9217, render 400 error page on bad access to /register (b2b1450e)
- redis check compat tests (78896fc6)
- registration completion overriding returnTo if it was already set (a186ea0f)
- add missing user delete event types (5c1b7429)
- missing option for user-deleteAccount on ACP Events page (1c420602)
-
deps:
- update dependency nodebb-theme-persona to v10.5.14 (ed503b80)
- update dependency nodebb-theme-persona to v10.5.12 (ddd8fa31)
- update dependency benchpressjs to v2.4.1 (4ee3a8e8)
- update dependency nodebb-theme-persona to v10.5.10 (7f8fd4b0)
- update dependency nodebb-theme-persona to v10.5.9 (5dd748c6)
- require xregexp 5.0.1 (86e911ba)
- update dependency xregexp to v5 (513cd1c3)
- update dependency nodebb-theme-persona to v10.5.8 (54b4dc1d)
- update dependency postcss to v8.2.6 (4d92af5a)
- update dependency nodebb-theme-persona to v10.5.7 (#9288) (c2459fd5)
- update dependency nodebb-plugin-composer-default to v6.5.10 (b312725f)
- update dependency nodebb-theme-persona to v10.5.6 (4599144f)
- update dependency nodebb-widget-essentials to v5.0.3 (#9284) (eb9f058f)
- update dependency nodebb-plugin-composer-default to v6.5.9 (6e14014b)
- update dependency nodebb-plugin-composer-default to v6.5.8 (674a31d1)
- update dependency nodebb-theme-slick to v1.4.3 (#9278) (d3923585)
- update dependency nodebb-theme-vanilla to v11.4.4 (#9279) (1f28e8c3)
- update dependency nodebb-theme-persona to v10.5.5 (#9277) (a7b46adc)
- update dependency connect-redis to v5.1.0 (#9276) (83a0b6b8)
- update dependency nodebb-theme-persona to v10.5.4 (#9270) (dc145284)
- update dependency nodebb-theme-vanilla to v11.4.3 (#9272) (2fda6774)
- update dependency nodebb-theme-slick to v1.4.2 (2b12905d)
- update dependency nodebb-theme-lavender to v5.2.1 (fb2f1143)
- update dependency nodebb-theme-slick to v1.4.1 (#9262) (2cfab367)
- update socket.io packages to v3.1.1 (#9253) (2147d386)
- update dependency postcss to v8.2.5 (1fa0d4f4)
- update dependency nodebb-plugin-emoji-android to v2.0.1 (42e365d9)
- update dependency nodebb-plugin-markdown to v8.12.6 (4fd6027b)
- update dependency nodebb-plugin-mentions to v2.13.7 (8a2fe3d9)
- update dependency nodebb-theme-vanilla to v11.4.2 (2326e9a6)
- update dependency nodebb-theme-persona to v10.5.3 (9245ffaf)
- update dependency nodebb-plugin-dbsearch to v4.2.0 (389690c3)
- update dependency nodebb-plugin-composer-default to v6.5.7 (13e12c95)
- update dependency json2csv to v5.0.6 (0aa8e03f)
- bump theme deps for #9244 (44019e28)
- update dependency mongodb to v3.6.4 (56e4e56b)
- update dependency nodebb-theme-persona to v10.5.1 (04411449)
- update dependency nodebb-theme-vanilla to v11.4.0 (#9238) (897d29ec)
- update dependency nodebb-theme-slick to v1.4.0 (#9237) (8e2deab4)
- update dependency nodebb-theme-persona to v10.5.0 (#9236) (4f842a79)
- update dependency nodebb-theme-lavender to v5.2.0 (47fd1634)
- update dependency nodebb-plugin-dbsearch to v4.1.3 (1e10ebfb)
- update dependency nodebb-plugin-composer-default to v6.5.6 (0e2b329b)
- update dependency autoprefixer to v10.2.4 (6c3b1fde)
- update dependency nodebb-plugin-markdown to v8.12.5 (05901fcd)
- update dependency nodebb-theme-persona to v10.4.1 (a9b3fb37)
- update dependency sharp to v0.27.1 (a90773a6)
- bump persona to get timeline style (ca14c0e2)
- update dependency postcss to v8.2.4 (5b2f0be0)
- update dependency autoprefixer to v10.2.3 (d99cb1cf)
- update dependency postcss-clean to v1.2.0 (4232d97b)
-
remountable-routes:
- more fixes to remountable routes (9d17f397)
- bug with user routes remounting to itself (bc68e990)
-
#9252: pass site domain to nodemailer (#9254) (5e5d37c3)
-
topic-events:
- topicEvents.init() test (aa8b84bb)
- repeated invocations of Posts.addTopicEvents caused dupes to be added to DOM (df2fdd56)
-
hooks:
- bug where hook firing would fail if there were no listeners (efff8e2a)
- fallback handling for core invocations of hooks.fire (412d2858)
Performance Improvements
- cache base_url (cf4002bc)
- single call to get digest topics, dont send duplicate topics (5ce28207)
- single db call to add all uids (90d5c9da)
- make digests a little bit faster (0185ea1b)
- only load thumbs for topics that actually have thumbs (7eebcbdb)
Refactors
- move picture change client-side logic to its own rjs module (28f6931e)
- remove dupe code (5286f208)
- thumbs.associate accepts both relative path and url in path arg (3e6640ef)
- move post queue retrival code to posts.getQueuedPosts (36f20211)
- call topic events init from within file itself (6074a0fb)
- improvements (970bd06f)
- update dom after diff deletion better (a2a7557c)
- removed 3 lines (4447a64e)
- use Map to track sorted lists in Settings.set() (65de2e76)
-
user: all plugins to change list of icon background colours (fbccf6e2)
-
remountable-routes:
- rename
src/routes/accounts.js
to src/routes/user.js
to better match the route prefix (1f28713f)
- allow certain route prefixes to be mounted elsewhere (92758ec5)
-
topic-events:
- expose addTopicEvents method in topic posts lib (9559fad8)
- break out some logic in events.get into local modifyEvent method (cec3fc93)
- fire topic event logging in topics/tools instead, pass uid into payload (425eca14)
-
hooks:
- deprecate
action:script.load
client-side hook (8e5687a4)
- better error handling (e7bd038d)
Reverts
- bring back backwards compat (a1c01446)
Code Style Changes
-
remountable-routes: abstract removable routes code to a separate local fn (16c1d6e9)
Tests
-
user: added additional tests for icon background colour (d3a9e76a)
- fix spec for topic thumbs (4c078084)
- added missing properties to topicObject (1d9ade4c)
- added missing test file (b31f6dd2)
- topic reordering tests (ad54b174)
- additional tests for topic thumbs (50664487)
- added more topic thumbnail tests (28b30134)
- post diff deletion tests (72b050b4)