npm / ipaddr.js
ipaddr.js
What changed in ipaddr.js 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-26.
6 breaking1 security1 new APIs and options1 behavior and defaults
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initipaddr.js 29 changes
Breaking changes 6
ipaddr.min.js is removed; end users must provide their own minification or bundling.
Strict IPv6 validation now rejects :: with zero compression and hextets longer than four hex digits.
Malformed input now produces a descriptive error.
toString now compresses the leftmost zero run in accordance with RFC 5952, 4.2.3.
toString now compresses a trailing zero run when a zoneIndex is present.
Bower support was removed.
Security 1
Rejects non-numeric prefix lengths.
New APIs and options 1
Adds a helper to validate IPv4 CIDR in four-part decimal form.
Behavior and default changes 1
Added reserved address ranges from RFC9637, RFC9602, RFC8215, and RFC3879.