Skip to content

Commit 25ac326

Browse files
authored
Release v1.7.2 (#93)
- deps(all): bump to latest - deps(eslint): upgrade to v9 - style(prettier): moved config into package.json
1 parent 983381b commit 25ac326

File tree

11 files changed

+59
-30
lines changed

11 files changed

+59
-30
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.yml

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

CHANGELOG.md

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

55
### Unreleased
66

7+
### [1.7.2] - 2025-01-31
8+
9+
- deps(all): bump to latest
10+
- deps(eslint): upgrade to v9
11+
- style(prettier): moved config into package.json
12+
713
### [1.7.1] - 2024-11-13
814

915
- deps: bump several versions to latest
@@ -21,7 +27,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
2127

2228
- feat: normalizeDomain, for punycode/IDN names
2329
<!-- prettier-ignore -->
24-
- feat: get\_mx now _also_ returns implicit MX records
30+
- feat: get*mx now \_also* returns implicit MX records
2531
- feat: added get_implicit_mx
2632
- feat: added resolve_mx_hosts
2733
- doc(Changes): fixed broken tag version links
@@ -222,3 +228,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
222228
[1.6.0]: https://github.com/haraka/haraka-net-utils/releases/tag/v1.6.0
223229
[1.7.0]: https://github.com/haraka/haraka-net-utils/releases/tag/v1.7.0
224230
[1.7.1]: https://github.com/haraka/haraka-net-utils/releases/tag/v1.7.1
231+
[1.7.2]: https://github.com/haraka/haraka-net-utils/releases/tag/v1.7.2

CONTRIBUTORS.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +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-net-utils/commits?author=msimerson">59</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/662371?v=4"><br><a href="https://github.com/baudehlo">baudehlo</a> (<a href="https://github.com/haraka/haraka-net-utils/commits?author=baudehlo">4</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/918201?v=4"><br><a href="https://github.com/DoobleD">DoobleD</a> (<a href="https://github.com/haraka/haraka-net-utils/commits?author=DoobleD">2</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-net-utils/commits?author=lnedry">2</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/791835?v=4"><br><a href="https://github.com/Juerd">Juerd</a> (<a href="https://github.com/haraka/haraka-net-utils/commits?author=Juerd">1</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/5957709?v=4"><br><a href="https://github.com/olsonpm">olsonpm</a> (<a href="https://github.com/haraka/haraka-net-utils/commits?author=olsonpm">1</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/260607?v=4"><br><a href="https://github.com/typingArtist">typingArtist</a> (<a href="https://github.com/haraka/haraka-net-utils/commits?author=typingArtist">1</a>) |
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-net-utils/commits?author=msimerson">60</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/662371?v=4"><br><a href="https://github.com/baudehlo">baudehlo</a> (<a href="https://github.com/haraka/haraka-net-utils/commits?author=baudehlo">4</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/918201?v=4"><br><a href="https://github.com/DoobleD">DoobleD</a> (<a href="https://github.com/haraka/haraka-net-utils/commits?author=DoobleD">2</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-net-utils/commits?author=lnedry">2</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/791835?v=4"><br><a href="https://github.com/Juerd">Juerd</a> (<a href="https://github.com/haraka/haraka-net-utils/commits?author=Juerd">1</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/5957709?v=4"><br><a href="https://github.com/olsonpm">olsonpm</a> (<a href="https://github.com/haraka/haraka-net-utils/commits?author=olsonpm">1</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/260607?v=4"><br><a href="https://github.com/typingArtist">typingArtist</a> (<a href="https://github.com/haraka/haraka-net-utils/commits?author=typingArtist">1</a>) |
66
| :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
77

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

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
[![Code Coverage][cov-img]][cov-url]
33
[![Code Climate][clim-img]][clim-url]
44

5-
[![NPM][npm-img]][npm-url]
6-
7-
# Net-Utils
5+
# haraka-net-utils
86

97
This module provides network utility functions.
108

119
## Usage
1210

13-
`const net_utils = require('haraka-net-utils');`
11+
```js
12+
const net_utils = require('haraka-net-utils')`
13+
```
1414

1515
### ip_to_long
1616

@@ -170,5 +170,3 @@ An optional second parameter is an alias for from_dns.
170170
[cov-url]: https://codecov.io/github/haraka/haraka-net-utils
171171
[clim-img]: https://codeclimate.com/github/haraka/haraka-net-utils/badges/gpa.svg
172172
[clim-url]: https://codeclimate.com/github/haraka/haraka-net-utils
173-
[npm-img]: https://nodei.co/npm/haraka-net-utils.png
174-
[npm-url]: https://www.npmjs.com/package/haraka-net-utils

eslint.config.mjs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
rules: {
25+
'no-unused-vars': ['warn', { caughtErrorsIgnorePattern: '^ignore' }],
26+
},
27+
},
28+
]

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ exports.is_local_host = async function (dst_host) {
159159
if (dst_host === local_hostname) return true
160160
dest_ips.push(...(await this.get_ips_by_host(dst_host)))
161161
}
162-
} catch (e) {
163-
// console.error(e)
162+
} catch (ignore) {
163+
// console.error(ignore)
164164
return false
165165
}
166166

package.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "haraka-net-utils",
3-
"version": "1.7.1",
3+
"version": "1.7.2",
44
"description": "haraka network utilities",
55
"main": "index.js",
66
"files": [
@@ -9,8 +9,8 @@
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",
1616
"test": "npx mocha@10",
@@ -37,17 +37,21 @@
3737
},
3838
"homepage": "https://github.com/haraka/haraka-net-utils#readme",
3939
"devDependencies": {
40-
"@haraka/eslint-config": "^1.1.5"
40+
"@haraka/eslint-config": "^2.0.2"
4141
},
4242
"dependencies": {
43-
"haraka-config": "^1.4.0",
44-
"haraka-tld": "^1.2.2",
43+
"haraka-config": "^1.4.2",
44+
"haraka-tld": "^1.2.3",
4545
"ipaddr.js": "^2.2.0",
4646
"punycode.js": "^2.3.1",
4747
"openssl-wrapper": "^0.3.4",
4848
"sprintf-js": "^1.1.3"
4949
},
5050
"optionalDependencies": {
5151
"@msimerson/stun": "^3.0.2"
52+
},
53+
"prettier": {
54+
"singleQuote": true,
55+
"semi": false
5256
}
5357
}

0 commit comments

Comments
 (0)