Skip to content

Releases: haraka/haraka-net-utils

1.9.3

Choose a tag to compare

@msimerson msimerson released this 13 Aug 21:43
a9d578c
  • get_public_ip: quiet, accurate handling when optional stun is absent (#109)

1.9.2

Choose a tag to compare

@msimerson msimerson released this 08 Jun 17:26
a848151
  • add getHostIPs for use in helo.checks
  • refactor(get_mx): use sanitize() for log output (#107)
  • dep(openssl-wrapper): deleted, not used
  • dep(punycode): removed, use url.domainToASCII

1.9.1

Choose a tag to compare

@msimerson msimerson released this 01 Jun 05:28
baa1a6d
  • fix(HostPool): parse host:port via parseSockaddr (IPv6 safe)
  • fix(get_ips_by_host): async now throws errors

1.9.0

Choose a tag to compare

@msimerson msimerson released this 28 May 07:06
6408836
  • feat(endpoint): import from Haraka.
  • feat(LineSocket): import from Haraka
  • feat(HostPool): import from Haraka.

1.8.3

Choose a tag to compare

@msimerson msimerson released this 26 May 06:32
3af9af8
  • fix(ip_in_list): use Object.hasOwn so inherited properties cannot match
  • fix(is_local_ipv6): cover the full fe80::/10 link-local range
  • fix(HarakaMx.fromString): parse hostname:port with any valid port
    • unbracketed IPv6 literal is the full host — use [IPv6]:port to set a port
  • add proxy helpers #103

1.8.2

Choose a tag to compare

@msimerson msimerson released this 12 May 00:18
12b2743
  • fix(get_public_ip): handle STUN errors by logging an error
  • nuke get_public_ip_async, get_public_ip is now async
  • consolidated both get_public_ip implementations into one

1.8.1

Choose a tag to compare

@msimerson msimerson released this 09 Apr 17:46
1669d8c
  • dep(stun): update to 3.2.0 (#100)
  • fix(add_line_processor): add MAX_LINE_LENGTH bounds
  • fix(get_public_ip): assure STUN response is a valid IP
  • fix(get_public_ip): add null guard to config.get
  • test: convert runner to node:test

1.8.0

Choose a tag to compare

@msimerson msimerson released this 08 Apr 03:30
c9b3812
  • index.js
    • replaced this.xxx with exports.xxx
      — eliminates implicit 'this' dependency that breaks when callers destructure exports
    • removed redundant ? true : false
    • same_ipv4_network: for (let i...) → for...of
    • get_ips_by_host: .map() → for...of with explicit branching
    • ipv6_reverse: function(n) callback → arrow function
    • ipv6_bogus: if (x) return true; return false → return x
    • ip_in_list: for...in → for...of over isArray ? list : Object.keys(list)
      • prevents iteration over inherited properties
  • get_mx.js
    • this.get_implicit_mx → exports.get_implicit_mx
  • get_public_ip.js
    • e.msg → e.message
    • return new Error(...) → console.error(...), now logs if STUN hangs
  • dep(sprintf-js): removed
  • deps(all): updated to latest
  • remove unnecessary done callbacks, update deps #95
  • test: improve coverage

1.7.2

Choose a tag to compare

@msimerson msimerson released this 31 Jan 20:32
25ac326
  • deps(all): bump to latest
  • deps(eslint): upgrade to v9
  • style(prettier): moved config into package.json

1.7.1

Choose a tag to compare

@msimerson msimerson released this 13 Nov 19:44
983381b
  • deps: bump several versions to latest
  • test: fix stale IP, new err code