Skip to content

Commit

Permalink
release 2.1.0 (#48)
Browse files Browse the repository at this point in the history
- fix: in disconnect, call redis_unsub after skip check. Avoids unsightly log error.
- dep(redis): 4 -> 4.1
- dep(pi-redis): 2 -> 2.0.5
  • Loading branch information
msimerson authored Nov 30, 2022
1 parent e7bdd87 commit 44d5d5e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .release
Submodule .release updated 10 files
+29 −0 CHANGELOG.md
+37 −23 README.md
+15 −2 base.sh
+0 −10 cleanup.sh
+0 −51 do.sh
+22 −0 finish.sh
+16 −0 npm/prepend-scope.cjs
+0 −23 push.sh
+124 −0 start.sh
+28 −0 submit.sh
8 changes: 8 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
#### N.N.N - YYYY-MM-DD


### [2.1.0] - 2022-11-29

- fix: in disconnect, call redis_unsub after skip check
- dep(redis): 4 -> 4.1
- dep(pi-redis): 2 -> 2.0.5


#### 2.0.4 - 2022-05-28

- use .release as submodule
Expand Down Expand Up @@ -97,3 +104,4 @@
#### 1.0.2 - 2017-01-24

- use redis.merge_redis_ini()
[2.1.0]: https://github.com/haraka/haraka-plugin-karma/releases/tag/2.1.0
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -684,10 +684,10 @@ exports.increment = function (connection, key, val) {
exports.hook_disconnect = function (next, connection) {
const plugin = this

plugin.redis_unsubscribe(connection)

if (plugin.should_we_skip(connection)) return next()

plugin.redis_unsubscribe(connection)

const k = connection.results.get('karma')
if (!k || k.score === undefined) {
connection.results.add(plugin, {err: 'karma results missing'})
Expand All @@ -708,7 +708,7 @@ exports.hook_disconnect = function (next, connection) {
}

connection.results.add(plugin, {emit: true })
return next()
next()
}

exports.get_award_loc_from_note = function (connection, award) {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "haraka-plugin-karma",
"version": "2.0.4",
"version": "2.1.0",
"description": "A heuristics scoring and reputation engine for SMTP connections",
"main": "index.js",
"scripts": {
Expand All @@ -26,8 +26,8 @@
"address-rfc2821": "*",
"haraka-constants": ">=1.0.2",
"haraka-utils": "*",
"haraka-plugin-redis": "2",
"redis": "4"
"haraka-plugin-redis": "2.0.5",
"redis": "4.1"
},
"devDependencies": {
"eslint": "8",
Expand Down

0 comments on commit 44d5d5e

Please sign in to comment.