@@ -225,6 +225,9 @@ always `[0, 0, 0]`.
225225<!-- YAML
226226added: v0.6.0
227227changes:
228+ - version: REPLACEME
229+ pr-url: https://github.com/nodejs/node/pull/43054
230+ description: The `family` property now returns a string instead of a number.
228231 - version: v18.0.0
229232 pr-url: https://github.com/nodejs/node/pull/41431
230233 description: The `family` property now returns a number instead of a string.
@@ -242,12 +245,12 @@ The properties available on the assigned network address object include:
242245
243246* ` address ` {string} The assigned IPv4 or IPv6 address
244247* ` netmask ` {string} The IPv4 or IPv6 network mask
245- * ` family ` {number } Either ` 4 ` (for IPv4) or ` 6 ` (for IPv6)
248+ * ` family ` {string } Either ` IPv4 ` or ` IPv6 `
246249* ` mac ` {string} The MAC address of the network interface
247250* ` internal ` {boolean} ` true ` if the network interface is a loopback or
248251 similar interface that is not remotely accessible; otherwise ` false `
249252* ` scopeid ` {number} The numeric IPv6 scope ID (only specified when ` family `
250- is ` 6 ` )
253+ is ` IPv6 ` )
251254* ` cidr ` {string} The assigned IPv4 or IPv6 address with the routing prefix
252255 in CIDR notation. If the ` netmask ` is invalid, this property is set
253256 to ` null ` .
@@ -260,15 +263,15 @@ The properties available on the assigned network address object include:
260263 {
261264 address: ' 127.0.0.1' ,
262265 netmask: ' 255.0.0.0' ,
263- family: 4 ,
266+ family: ' IPv4 ' ,
264267 mac: ' 00:00:00:00:00:00' ,
265268 internal: true ,
266269 cidr: ' 127.0.0.1/8'
267270 },
268271 {
269272 address: ' ::1' ,
270273 netmask: ' ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff' ,
271- family: 6 ,
274+ family: ' IPv6 ' ,
272275 mac: ' 00:00:00:00:00:00' ,
273276 scopeid: 0 ,
274277 internal: true ,
@@ -279,15 +282,15 @@ The properties available on the assigned network address object include:
279282 {
280283 address: ' 192.168.1.108' ,
281284 netmask: ' 255.255.255.0' ,
282- family: 4 ,
285+ family: ' IPv4 ' ,
283286 mac: ' 01:02:03:0a:0b:0c' ,
284287 internal: false ,
285288 cidr: ' 192.168.1.108/24'
286289 },
287290 {
288291 address: ' fe80::a00:27ff:fe4e:66a1' ,
289292 netmask: ' ffff:ffff:ffff:ffff::' ,
290- family: 6 ,
293+ family: ' IPv6 ' ,
291294 mac: ' 01:02:03:0a:0b:0c' ,
292295 scopeid: 1 ,
293296 internal: false ,
0 commit comments