mailauth 4.9.4 → 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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
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
+
3
10
  ## [4.9.4](https://github.com/postalsys/mailauth/compare/v4.9.3...v4.9.4) (2025-09-02)
4
11
 
5
12
 
@@ -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.4",
3
+ "version": "4.9.5",
4
4
  "description": "Email authentication library for Node.js",
5
5
  "main": "lib/mailauth.js",
6
6
  "scripts": {
@@ -50,8 +50,8 @@
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",
53
+ "tldts": "7.0.13",
54
+ "undici": "7.16.0",
55
55
  "yargs": "17.7.2"
56
56
  },
57
57
  "engines": {