mailauth 4.9.3 → 4.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.ncurc.js CHANGED
@@ -4,6 +4,7 @@ module.exports = {
4
4
  // only works as ESM
5
5
  'chai',
6
6
  'fast-xml-parser',
7
+ 'yargs',
7
8
 
8
9
  // fix later
9
10
  'eslint',
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.9.5](https://github.com/postalsys/mailauth/compare/v4.9.4...v4.9.5) (2025-09-10)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **spf:** expand macros in mx mechanism ([d8c05f9](https://github.com/postalsys/mailauth/commit/d8c05f90589e3fb5a56ecb4498e6dcb795dcc047))
9
+
10
+ ## [4.9.4](https://github.com/postalsys/mailauth/compare/v4.9.3...v4.9.4) (2025-09-02)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * downgraded yargs because of ESM ([215c71a](https://github.com/postalsys/mailauth/commit/215c71aaa108744970533f346408c41b38590500))
16
+
3
17
  ## [4.9.3](https://github.com/postalsys/mailauth/compare/v4.9.2...v4.9.3) (2025-09-02)
4
18
 
5
19
 
@@ -352,6 +352,8 @@ const spfVerify = async (domain, opts) => {
352
352
  let { domain: mxDomain, cidr4, cidr6 } = parseCidrValue(val, domain, type);
353
353
  let cidr = net.isIPv6(opts.ip) ? cidr6 : cidr4;
354
354
 
355
+ mxDomain = macro(mxDomain, opts);
356
+
355
357
  try {
356
358
  mxDomain = punycode.toASCII(mxDomain);
357
359
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mailauth",
3
- "version": "4.9.3",
3
+ "version": "4.9.5",
4
4
  "description": "Email authentication library for Node.js",
5
5
  "main": "lib/mailauth.js",
6
6
  "scripts": {
@@ -50,9 +50,9 @@
50
50
  "libmime": "5.3.7",
51
51
  "nodemailer": "7.0.6",
52
52
  "punycode.js": "2.3.1",
53
- "tldts": "7.0.12",
54
- "undici": "7.15.0",
55
- "yargs": "18.0.0"
53
+ "tldts": "7.0.13",
54
+ "undici": "7.16.0",
55
+ "yargs": "17.7.2"
56
56
  },
57
57
  "engines": {
58
58
  "node": ">=18.0.0"