Julian Lam
83fd4311b2
chore: delay filter:email.send removal to v2.0.0
2022-03-08 22:35:00 -05:00
Julian Lam
93b80f170b
refactor: show a louder deprecation notice, alert once for each hook, not per plugin per hook
2022-03-08 22:33:02 -05:00
Barış Soner Uşaklı
29b3587d91
test: middleware/expose.js
2021-11-22 19:56:12 -05:00
Barış Soner Uşaklı
fb363957d1
refactor: tab rules
2021-11-18 16:42:18 -05:00
Barış Soner Uşaklı
c437b33652
fix: crash
2021-09-21 13:51:24 -04:00
Barış Soner Uşaklı
15f9aaa6ee
fix: remove caller from payload after hooks is done
...
only if it was added automatically
2021-09-21 13:48:16 -04:00
Julian Lam
dd4e66e22c
fix: push back some deprecations, remove deprecated stuff scheduled for v1.18.0
2021-09-03 12:04:20 -04:00
Barış Soner Uşaklı
e59d357533
feat: als ( #9749 )
...
* feat: als
* fix: up test timeout
* fix: don't overwrite caller if it already exists
* fix: up test timeout for psql
2021-08-30 10:23:38 -04:00
Barış Soner Uşaklı
7c1e163d82
Revert "feat: add _hooks metadata object to all hooks that have object-type params"
...
This reverts commit 46899ccadb .
2021-04-30 12:16:30 -04:00
Julian Lam
46899ccadb
feat: add _hooks metadata object to all hooks that have object-type params
2021-04-30 11:23:07 -04:00
Barış Soner Uşaklı
084c985117
feat: guard against multiple resolves
2021-04-29 10:47:23 -04:00
Barış Soner Uşaklı
5fe97b9c2e
revert: sync hooks
2021-04-28 15:00:43 -04:00
Barış Soner Uşaklı
01956af43a
feat: remove sync hooks support
2021-04-22 11:35:36 -04:00
Barış Soner Uşaklı
34b9aaedee
feat: allow sync function ( #9379 )
...
* feat: allow sync function
* fix: remove async
2021-03-13 12:03:06 -05:00
Barış Soner Uşaklı
e725beaa4a
Revert "feat: allow filter functions that return promises or the data directly"
...
This reverts commit e6c52cf26c .
2021-03-13 11:39:34 -05:00
Barış Soner Uşaklı
e6c52cf26c
feat: allow filter functions that return promises or the data directly
2021-03-13 11:27:53 -05:00
Barış Soner Uşaklı
53f67ff396
fix: regression from filter hook change
2021-03-13 10:12:30 -05:00
Barış Soner Uşaklı
46270f9f20
feat: bring back static hook timeout
2021-03-11 22:56:14 -05:00
Barış Soner Uşaklı
d05d7091ae
refactor: remove async.each/reduce from hooks for better stack traces
2021-03-11 21:44:37 -05:00
Barış Soner Uşaklı
5eb3132dae
feat: add filter:plugins.firehook
2021-03-10 21:43:37 -05:00
Barış Soner Uşaklı
e74df53997
feat: pass modified params, only affects filter hooks
2021-03-08 18:08:47 -05:00
Julian Lam
bf90d15881
feat: new hook static:email.send
...
deprecates filter:email.send
2021-02-25 15:05:58 -05:00
Peter Jaszkowiak
dab3b23575
chore: eslint no-var, vars-on-top
2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
b56d9e12b5
chore: eslint prefer-arrow-callback
2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
707b55b6a5
chore: eslint prefer-template
2021-02-08 18:06:44 -05:00
Barış Soner Uşaklı
647d3ba810
fix: removed methods
2021-01-27 17:36:58 -05:00
Julian Lam
5a775e09dc
chore: remove deprecated plugin hook filter:privileges:isUserAllowedTo [breaking]
...
Use `filter:privileges:isAllowedTo` instead.
2021-01-27 16:20:45 -05:00
Julian Lam
5f9f241e37
chore: remove deprecated filter:admin/header.build hook [breaking]
...
Use `filter:middleware.renderAdminHeader` instead.
2021-01-27 16:10:19 -05:00
Barış Soner Uşaklı
c608b0e8a3
fix: https://github.com/NodeBB/nodebb-plugin-webhooks/issues/3
2021-01-18 19:31:07 -05:00
Barış Soner Uşaklı
fcc1e24ad0
feat: rename admin middleware header hook
2020-12-23 10:47:51 -05:00
Julian Lam
6e2da9966e
refactor: move plugin hook methods to plugin.hooks.*
2020-11-20 16:32:39 -05:00
Julian Lam
98a05e4dde
chore: add missing plugin hook deprecation warning
2020-11-20 15:22:49 -05:00
Julian Lam
8518404e22
feat: allow groups to specify which cids to show member posts from ( #8875 )
...
* feat: allow groups to specify which cids to show member posts from
* docs: fix tests for openapi
* fix: test breakage caused by improper conditional
* feat: server-side checking of memberPostCids for validity
* feat: admin panel template update to select categories to include
* refactor: privilege helpers.isUserAllowedTo
... to helpers.isAllowedTo, allowing group names to be passed in
2020-11-13 14:15:37 -05:00
Barış Soner Uşaklı
a05905f196
performance improvements ( #8795 )
...
* perf: nconf/winston/render
cache nconf.get calls
modify middleware.pageView to call next earlier
don't call winston.verbose on every hook see https://github.com/winstonjs/winston/issues/1669
translate header/footer separately and cache results for guests
* fix: copy paste fail
* refactor: style and fire hook only log in dev mode
* fix: cache key, header changes based on template
* perf: change replace
* fix: add missing await
* perf: category
* perf: lodash clone
* perf: remove escapeRegexChars
2020-10-26 10:43:18 -04:00
Julian Lam
dde5b6b814
fix: unable to register async method as response hook listener
...
Also fixes #8723 , /api/config now runs middleware.authenticateOrGuest
2020-10-06 09:32:13 -04:00
Peter Jaszkowiak
017af63fb0
fix : #8686 , deprecate plugin.json/library ( #8705 )
...
and also fix deprecated hooks with no alternative
2020-10-01 11:45:27 -04:00
Julian Lam
9e3fd0e479
Revert "feat: #8493 , plugin helper for standardised link/button injection"
...
This reverts commit 0bbb813e4b .
2020-08-07 12:25:17 -04:00
Sam Thompson
0bbb813e4b
feat: #8493 , plugin helper for standardised link/button injection
2020-08-07 11:48:04 -04:00
Barış Soner Uşaklı
4eae927d14
feat: remove deprecated hooks
2020-07-24 10:39:51 -04:00
Barış Soner Uşaklı
01d1ae78c8
fix : #8120 , bubble errors from static hooks
2020-01-17 13:30:57 -05:00
Barış Soner Uşaklı
3775301f24
fix : #7958 , give rewards one by one
...
no need to check group.exists when leaving groups, if group doesn't exists isMember will be false anyways
2019-10-10 22:03:41 -04:00
Barış Soner Uşaklı
ffe3670ff5
feat: deprecate file.isFileTypeAllowed
...
use image.isFileTypeAllowed, this function was always meant for images
2019-09-29 19:53:03 -04:00
Julian Lam
29f96b199c
fix(style): requiring parens in block bodies
2019-08-13 15:12:27 -04:00
Julian Lam
0921230976
fix(style): updated code to follow new eslint recommendations
...
Squashed commit of the following:
commit f9ce878b26
Author: Julian Lam <julian@nodebb.org >
Date: Tue Aug 13 14:30:46 2019 -0400
fix(style): updated code to follow new eslint recommendations
commit 80dd370e41
Author: Julian Lam <julian@nodebb.org >
Date: Tue Aug 13 14:14:58 2019 -0400
fix(deps): update dependency sitemap to v4
Squashed commit of the following:
commit f4dd9cabb2
Author: Julian Lam <julian@nodebb.org >
Date: Tue Aug 13 11:33:05 2019 -0400
fix: resolved breaking changes from sitemap v4 upgrade
commit 9043415ee1
Merge: e3352b272 72590b346
Author: Julian Lam <julian@nodebb.org >
Date: Tue Aug 13 11:09:55 2019 -0400
Merge branch 'master' into renovate/sitemap-4.x
commit e3352b272e
Author: Renovate Bot <bot@renovateapp.com >
Date: Mon Aug 12 07:59:05 2019 +0000
fix(deps): update dependency sitemap to v4
commit 8e3c0cdcae
Author: Renovate Bot <bot@renovateapp.com >
Date: Fri Aug 9 00:49:51 2019 +0000
fix(deps): update dependency commander to v3
commit 2104449d38
Author: Renovate Bot <bot@renovateapp.com >
Date: Tue Aug 13 15:00:27 2019 +0000
fix(deps): update dependency mongodb to v3.3.0
commit d2937f446a
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Tue Aug 13 10:36:48 2019 -0400
feat: async/await admin/controllers
commit 1b97e8b199
Author: Misty (Bot) <deploy@nodebb.org >
Date: Tue Aug 13 09:28:39 2019 +0000
Latest translations and fallbacks
commit 69a48957a2
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Mon Aug 12 21:56:09 2019 -0400
feat: async/await
commit b9b2a7e593
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Mon Aug 12 20:58:29 2019 -0400
feat: async/await refactor
controllers/accounts
commit a8d43a1759
Author: Baris Usakli <barisusakli@gmail.com >
Date: Mon Aug 12 14:49:40 2019 -0400
feat: async/await controllers/accounts
commit 2f25aae57b
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Sun Aug 11 23:09:50 2019 -0400
fix : #7831 , fix pagination
convert to async/await
commit c9e83f2374
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Sun Aug 11 00:14:35 2019 -0400
fix: remove empty line
commit 30be91b26c
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Sun Aug 11 00:13:41 2019 -0400
fix: remove useless catchs and empty line
commit 2e4a71c0b6
Author: Renovate Bot <bot@renovateapp.com >
Date: Sat Aug 10 06:51:50 2019 +0000
chore(deps): update dependency eslint-config-airbnb-base to v14
2019-08-13 15:12:27 -04:00
Barış Soner Uşaklı
3cc7ec63e8
feat: async/await refactor
...
controllers/accounts
2019-08-12 20:58:29 -04:00
Barış Soner Uşaklı
c126cd8572
feat: #7743 plugins
2019-07-22 00:30:47 -04:00
Baris Usakli
f3440ebfca
fix: typo
2019-07-04 11:30:21 -04:00
Barış Soner Uşaklı
bd640a1107
Topic await errors ( #7727 )
...
* feat: derp await
* feat: restore user.getSettings
* feat: cleanup
* feat: make tid const
* feat: cleanup
* fix: tests
* feat: deprecate filter:controllers.topic.get
* feat: rewrite post-index logic
* feat: change calculation to match others
* fix: use .async
* feat: remove try/catch wrapper
2019-07-03 12:48:26 -04:00
Barış Soner Uşaklı
a7600b4bbe
feat: dont log action:plugins.fireHook
2019-06-17 17:06:47 -04:00
Aziz Khoury
a6436716ea
feat: hooks can now return promise or call callbacks
...
* hooks can now return promise or call callbacks, either way works
* cleanups
* moar cleanups and fix callback 1st null arg
* rm unnessesary spread
2019-06-10 12:05:27 -04:00