chore(net): mark getNetworkAddress() unstable (#5348)

This commit is contained in:
Yoshiya Hinosawa 2024-07-08 13:38:51 +09:00 committed by GitHub
parent 01587e3409
commit a0b4103ac3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
/** /**
* **UNSTABLE**: New API, yet to be vetted.
*
* Gets the IPv4 or IPv6 network address of the machine. * Gets the IPv4 or IPv6 network address of the machine.
* *
* This is inspired by the util of the same name in * This is inspired by the util of the same name in
@ -29,6 +31,8 @@
* *
* Deno.serve({ port: 0, hostname }, () => new Response("Hello, world!")); * Deno.serve({ port: 0, hostname }, () => new Response("Hello, world!"));
* ``` * ```
*
* @experimental
*/ */
export function getNetworkAddress( export function getNetworkAddress(
family: Deno.NetworkInterfaceInfo["family"] = "IPv4", family: Deno.NetworkInterfaceInfo["family"] = "IPv4",