Skip to content

Commit 60530ff

Browse files
authored
Release v1.2.3 (#13)
- doc(README): use URL refs - style(prettier): move config into package.json - dep(all): bump versions to latest - dep(eslint): upgrade to v9
1 parent eeb6785 commit 60530ff

File tree

9 files changed

+59
-25
lines changed

9 files changed

+59
-25
lines changed

.codeclimate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
engines:
22
eslint:
33
enabled: true
4-
channel: 'eslint-8'
4+
channel: 'eslint-9'
55
config:
6-
config: '.eslintrc.yaml'
6+
config: 'eslint.config.mjs'
77

88
ratings:
99
paths:

.eslintrc.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

.prettierrc

Lines changed: 0 additions & 2 deletions
This file was deleted.

.release

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
44

55
### Unreleased
66

7+
### [1.2.3] - 2025-01-26
8+
9+
- doc(README): use URL refs
10+
- style(prettier): move config into package.json
11+
- dep(all): bump versions to latest
12+
- dep(eslint): upgrade to v9
13+
714
### [1.2.2] - 2025-01-02
815

916
- fix: zone specific settings are optional, so check if it exists before accessing properties inside it, #11
@@ -46,3 +53,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
4653
[1.2.0]: https://github.com/haraka/haraka-plugin-dns-list/releases/tag/v1.2.0
4754
[1.2.1]: https://github.com/haraka/haraka-plugin-dns-list/releases/tag/v1.2.1
4855
[1.2.2]: https://github.com/haraka/haraka-plugin-dns-list/releases/tag/v1.2.2
56+
[1.2.3]: https://github.com/haraka/haraka-plugin-dns-list/releases/tag/v1.2.3

CONTRIBUTORS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
This handcrafted artisinal software is brought to you by:
44

5-
| <img height="80" src="https://avatars.githubusercontent.com/u/261635?v=4"><br><a href="https://github.com/msimerson">msimerson</a> (<a href="https://github.com/haraka/haraka-plugin-dns-list/commits?author=msimerson">9</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/82041?v=4"><br><a href="https://github.com/gramakri">gramakri</a> (<a href="https://github.com/haraka/haraka-plugin-dns-list/commits?author=gramakri">1</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/15035337?v=4"><br><a href="https://github.com/gtech99">gtech99</a> (<a href="https://github.com/haraka/haraka-plugin-dns-list/commits?author=gtech99">1</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/203240?v=4"><br><a href="https://github.com/lnedry">lnedry</a> (<a href="https://github.com/haraka/haraka-plugin-dns-list/commits?author=lnedry">1</a>) |
6-
| :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
5+
| <img height="80" src="https://avatars.githubusercontent.com/u/261635?v=4"><br><a href="https://github.com/msimerson">msimerson</a> (<a href="https://github.com/haraka/haraka-plugin-dns-list/commits?author=msimerson">10</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/82041?v=4"><br><a href="https://github.com/gramakri">gramakri</a> (<a href="https://github.com/haraka/haraka-plugin-dns-list/commits?author=gramakri">1</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/15035337?v=4"><br><a href="https://github.com/gtech99">gtech99</a> (<a href="https://github.com/haraka/haraka-plugin-dns-list/commits?author=gtech99">1</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/203240?v=4"><br><a href="https://github.com/lnedry">lnedry</a> (<a href="https://github.com/haraka/haraka-plugin-dns-list/commits?author=lnedry">1</a>) |
6+
| :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
77

88
<sub>this file is generated by [.release](https://github.com/msimerson/.release).
99
Contribute to this project to get your GitHub profile included here.</sub>

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ IMPORTANT! The order of plugins in config/plugins is important when this feature
1919

2020
### karma
2121

22-
Karma lists can have different results for IPs beyond a simple block or allow. See [hostkarma.junkemailfilter.com](https://hostkarma.junkemailfilter.com) for details.
22+
Karma lists can have different results for IPs beyond a simple block or allow. See [hostkarma.junkemailfilter.com][2] for details.
2323

2424
## INSTALL
2525

@@ -58,7 +58,7 @@ An array or comma separated list of zones to query.
5858

5959
#### [stats] enable=true
6060

61-
This feature requires the [redis](https://github.com/haraka/haraka-plugin-redis) plugin. When enabled, this will record several list statistics to redis:
61+
This feature requires the [redis][1] plugin. When enabled, this will record several list statistics to redis:
6262

6363
- the total number of queries (TOTAL)
6464
- the average response time (AVG_RT)
@@ -97,7 +97,7 @@ In the form of `host:port` this option allows you to specify a different host on
9797
The exact name of the DNS zone (as specified above in main.zones) may contain settings about that DNS list.
9898

9999
- type=[ block, allow, karma ]
100-
- reject=true (default: true) Reject connections from IPs on block lists. Setting this to false makes dnsbl informational. reject=false is best used in conjunction with plugins like [karma](https://github.com/haraka/haraka-plugin-karma) that employ a scoring engine to make choices about message delivery.
100+
- reject=true (default: true) Reject connections from IPs on block lists. Setting this to false makes dnsbl informational. reject=false is best used in conjunction with plugins like [karma][3] that employ a scoring engine to make choices about message delivery.
101101
- ipv6=true | false
102102

103103
#### dnswl
@@ -107,7 +107,13 @@ ok_helo=false
107107
ok_mail=false
108108
```
109109

110-
if DNSBL returns OK on the mail hook, it prevents any subsequent mail hooks in other plugins from running. This might include [SPF](haraka-plugin-spf), [known senders](https://github.com/haraka/haraka-plugin-known-senders), [karma](https://github.com/haraka/haraka-plugin-karma), recipient plugins, and any other plugins that want to do transaction initialization on `hook_mail`. It can be dangerous.
110+
if DNSBL returns OK on the mail hook, it prevents any subsequent mail hooks in other plugins from running. This might include [SPF][5], [known senders][4], [karma][3], recipient plugins, and any other plugins that want to do transaction initialization on `hook_mail`. It can be dangerous.
111+
112+
[1]: https://github.com/haraka/haraka-plugin-redis
113+
[2]: https://hostkarma.junkemailfilter.com
114+
[3]: https://github.com/haraka/haraka-plugin-karma
115+
[4]: https://github.com/haraka/haraka-plugin-known-senders
116+
[5]: https://github.com/haraka/haraka-plugin-spf
111117

112118
[ci-img]: https://github.com/haraka/haraka-plugin-dns-list/actions/workflows/ci.yml/badge.svg
113119
[ci-url]: https://github.com/haraka/haraka-plugin-dns-list/actions/workflows/ci.yml

eslint.config.mjs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import globals from 'globals'
2+
import path from 'node:path'
3+
import { fileURLToPath } from 'node:url'
4+
import js from '@eslint/js'
5+
import { FlatCompat } from '@eslint/eslintrc'
6+
7+
const __filename = fileURLToPath(import.meta.url)
8+
const __dirname = path.dirname(__filename)
9+
const compat = new FlatCompat({
10+
baseDirectory: __dirname,
11+
recommendedConfig: js.configs.recommended,
12+
allConfig: js.configs.all,
13+
})
14+
15+
export default [
16+
...compat.extends('@haraka'),
17+
{
18+
languageOptions: {
19+
globals: {
20+
...globals.node,
21+
...globals.mocha,
22+
},
23+
},
24+
},
25+
]

package.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "haraka-plugin-dns-list",
3-
"version": "1.2.2",
3+
"version": "1.2.3",
44
"description": "Haraka plugin for DNS lists (DNSBL, DNSWL)",
55
"main": "index.js",
66
"files": [
@@ -9,11 +9,11 @@
99
],
1010
"scripts": {
1111
"format": "npm run prettier:fix && npm run lint:fix",
12-
"lint": "npx eslint@^8 *.js test",
13-
"lint:fix": "npx eslint@^8 *.js test --fix",
12+
"lint": "npx eslint@^9 *.js test",
13+
"lint:fix": "npx eslint@^9 *.js test --fix",
1414
"prettier": "npx prettier . --check",
1515
"prettier:fix": "npx prettier . --write --log-level=warn",
16-
"test": "npx mocha@^10",
16+
"test": "npx mocha@^11",
1717
"versions": "npx dependency-version-checker check",
1818
"versions:fix": "npx dependency-version-checker update && npx prettier package.json --write --log-level=warn"
1919
},
@@ -35,10 +35,14 @@
3535
},
3636
"homepage": "https://github.com/haraka/haraka-plugin-dns-list#readme",
3737
"devDependencies": {
38-
"@haraka/eslint-config": "^1.1.5",
39-
"haraka-test-fixtures": "^1.3.7"
38+
"@haraka/eslint-config": "^2.0.2",
39+
"haraka-test-fixtures": "^1.3.8"
4040
},
4141
"dependencies": {
42-
"haraka-net-utils": "^1.7.0"
42+
"haraka-net-utils": "^1.7.1"
43+
},
44+
"prettier": {
45+
"singleQuote": true,
46+
"semi": false
4347
}
4448
}

0 commit comments

Comments
 (0)