Skip to content

Commit d4af26c

Browse files
authored
Release v1.2.1 (#10)
- test: update transaction init syntax - fix: don't make a set from a set, #9
1 parent a8bbcc8 commit d4af26c

File tree

6 files changed

+21
-18
lines changed

6 files changed

+21
-18
lines changed

CHANGELOG.md

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

55
### Unreleased
66

7+
### [1.2.1] - 2024-08-22
8+
9+
- fix: don't make a set from a set (happened when periodic_checks < 5), #9
10+
- chore: bump dep versions
11+
712
### [1.2.0] - 2024-04-13
813

914
- dnswl: sending OK on helo & mail hooks disabled by default
@@ -35,3 +40,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
3540
[1.0.3]: https://github.com/haraka/haraka-plugin-dns-list/releases/tag/v1.0.3
3641
[1.1.0]: https://github.com/haraka/haraka-plugin-dns-list/releases/tag/v1.1.0
3742
[1.2.0]: https://github.com/haraka/haraka-plugin-dns-list/releases/tag/v1.2.0
43+
[1.2.1]: https://github.com/haraka/haraka-plugin-dns-list/releases/tag/v1.2.1

CONTRIBUTORS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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">7</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">8</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 maintained by [.release](https://github.com/msimerson/.release)</sub>

index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ exports.load_config = function () {
6868
// active zones
6969
if (this.cfg.main.periodic_checks < 5) {
7070
// all configured are enabled
71-
// The original code is making a Set from the already existing Set created above. It leads to gibberish
72-
//this.zones = new Set(...this.cfg.main.zones)
7371
this.zones = this.cfg.main.zones
7472
} else {
7573
this.zones = new Set() // populated by check_zones()

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "haraka-plugin-dns-list",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "Haraka plugin for DNS lists (DNSBL, DNSWL)",
55
"main": "index.js",
66
"files": [
@@ -14,8 +14,8 @@
1414
"prettier": "npx prettier . --check",
1515
"prettier:fix": "npx prettier . --write --log-level=warn",
1616
"test": "npx mocha@^10",
17-
"versions": "npx @msimerson/dependency-version-checker check",
18-
"versions:fix": "npx @msimerson/dependency-version-checker update && npx prettier package.json --write --log-level=warn"
17+
"versions": "npx dependency-version-checker check",
18+
"versions:fix": "npx dependency-version-checker update && npx prettier package.json --write --log-level=warn"
1919
},
2020
"repository": {
2121
"type": "git",
@@ -35,10 +35,10 @@
3535
},
3636
"homepage": "https://github.com/haraka/haraka-plugin-dns-list#readme",
3737
"devDependencies": {
38-
"@haraka/eslint-config": "^1.1.3",
39-
"haraka-test-fixtures": "^1.3.6"
38+
"@haraka/eslint-config": "^1.1.5",
39+
"haraka-test-fixtures": "^1.3.7"
4040
},
4141
"dependencies": {
42-
"haraka-net-utils": "^1.5.4"
42+
"haraka-net-utils": "^1.7.0"
4343
}
4444
}

test/dns-list.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,39 +32,38 @@ describe('dns-list', function () {
3232

3333
it('sets up a transaction', function () {
3434
this.connection = fixtures.connection.createConnection({})
35-
this.connection.transaction = fixtures.transaction.createTransaction({})
36-
// console.log(this.connection.transaction)
35+
this.connection.init_transaction()
3736
assert.ok(this.connection.transaction.header)
3837
})
3938
})
4039

4140
describe('lookup', function () {
4241
it('Spamcop, test IPv4', async function () {
43-
this.timeout=4000
42+
this.timeout = 4000
4443
const a = await this.plugin.lookup('127.0.0.2', 'bl.spamcop.net')
4544
assert.deepStrictEqual(['127.0.0.2'], a)
4645
})
4746

4847
it('Spamcop, unlisted IPv6', async function () {
49-
this.timeout=4000
48+
this.timeout = 4000
5049
const r = await this.plugin.lookup('::1', 'bl.spamcop.net')
5150
assert.deepStrictEqual(undefined, r)
5251
})
5352

5453
it('b.barracudacentral.org, unlisted IPv6', async function () {
55-
this.timeout=4000
54+
this.timeout = 4000
5655
const r = await this.plugin.lookup('::1', 'b.barracudacentral.org')
5756
assert.deepStrictEqual(undefined, r)
5857
})
5958

6059
it('Spamcop, unlisted IPv4', async function () {
61-
this.timeout=4000
60+
this.timeout = 4000
6261
const a = await this.plugin.lookup('127.0.0.1', 'bl.spamcop.net')
6362
assert.deepStrictEqual(undefined, a)
6463
})
6564

6665
it('CBL', async function () {
67-
this.timeout=4000
66+
this.timeout = 4000
6867
const a = await this.plugin.lookup('127.0.0.2', 'xbl.spamhaus.org')
6968
assert.deepStrictEqual(a, ['127.0.0.4'])
7069
})

0 commit comments

Comments
 (0)