ip-utilties 1.4.14 → 2.0.1

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/README.md CHANGED
@@ -8,7 +8,6 @@
8
8
  [![Styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
9
9
  [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
10
10
  [![Known Vulnerabilities](https://snyk.io/test/github/arlac77/ip-utilties/badge.svg)](https://snyk.io/test/github/arlac77/ip-utilties)
11
- [![Coverage Status](https://coveralls.io/repos/arlac77/ip-utilties/badge.svg)](https://coveralls.io/github/arlac77/ip-utilties)
12
11
 
13
12
  ip v4/v6 utility functions
14
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ip-utilties",
3
- "version": "1.4.14",
3
+ "version": "2.0.1",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -41,14 +41,14 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "ava": "^6.4.1",
44
- "browser-ava": "^2.3.44",
44
+ "browser-ava": "^2.3.47",
45
45
  "c8": "^10.1.3",
46
46
  "documentation": "^14.0.3",
47
47
  "semantic-release": "^25.0.2",
48
48
  "typescript": "^5.9.3"
49
49
  },
50
50
  "engines": {
51
- "node": ">=24.11.1"
51
+ "node": ">=24.12.0"
52
52
  },
53
53
  "repository": {
54
54
  "type": "git",
package/src/ip.mjs CHANGED
@@ -331,7 +331,8 @@ export function hasWellKnownSubnet(address) {
331
331
  return isLocalhost(address) || isLinkLocal(address) || isUniqueLocal(address);
332
332
  }
333
333
 
334
- export const IPV6_LINK_LOCAL_BROADCAST = _encode(ipv6, "ff02::1");
335
- export const IPV6_ROUTER_BROADCAST = _encode(ipv6, "ff02::2");
334
+ export const IPV6_ALL_NODES = _encode(ipv6, "ff02::1");
335
+ export const IPV6_ALL_ROUTERS = _encode(ipv6, "ff02::2");
336
+ export const IPV6_ALL_HOSTS = _encode(ipv6, "ff02::3");
336
337
  export const IPV4_LOCALHOST = _encode(ipv4, "127.0.0.1");
337
338
  export const IPV6_LOCALHOST = _encode(ipv6, "::1");
package/types/ip.d.mts CHANGED
@@ -44,7 +44,8 @@ export function isLocalhost(address: any): boolean;
44
44
  export function isLinkLocal(address: any): boolean;
45
45
  export function isUniqueLocal(address: any): boolean;
46
46
  export function hasWellKnownSubnet(address: any): boolean;
47
- export const IPV6_LINK_LOCAL_BROADCAST: any;
48
- export const IPV6_ROUTER_BROADCAST: any;
47
+ export const IPV6_ALL_NODES: any;
48
+ export const IPV6_ALL_ROUTERS: any;
49
+ export const IPV6_ALL_HOSTS: any;
49
50
  export const IPV4_LOCALHOST: any;
50
51
  export const IPV6_LOCALHOST: any;