mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
BREAKING(net): remove Deno.{Conn,TlsConn,TcpConn,UnixConn}.prototype.rid
(#25446)
Towards #22079 --------- Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
This commit is contained in:
parent
5bac4075c3
commit
a9ed06b832
7 changed files with 1 additions and 122 deletions
35
ext/net/lib.deno_net.d.ts
vendored
35
ext/net/lib.deno_net.d.ts
vendored
|
@ -83,14 +83,6 @@ declare namespace Deno {
|
|||
readonly localAddr: A;
|
||||
/** The remote address of the connection. */
|
||||
readonly remoteAddr: A;
|
||||
/**
|
||||
* The resource ID of the connection.
|
||||
*
|
||||
* @deprecated This will be removed in Deno 2.0. See the
|
||||
* {@link https://docs.deno.com/runtime/manual/advanced/migrate_deprecations | Deno 1.x to 2.x Migration Guide}
|
||||
* for migration instructions.
|
||||
*/
|
||||
readonly rid: number;
|
||||
/** Shuts down (`shutdown(2)`) the write side of the connection. Most
|
||||
* callers should just use `close()`. */
|
||||
closeWrite(): Promise<void>;
|
||||
|
@ -123,14 +115,6 @@ declare namespace Deno {
|
|||
* not happened yet. Calling this method is optional; the TLS handshake
|
||||
* will be completed automatically as soon as data is sent or received. */
|
||||
handshake(): Promise<TlsHandshakeInfo>;
|
||||
/**
|
||||
* The resource ID of the connection.
|
||||
*
|
||||
* @deprecated This will be removed in Deno 2.0. See the
|
||||
* {@link https://docs.deno.com/runtime/manual/advanced/migrate_deprecations | Deno 1.x to 2.x Migration Guide}
|
||||
* for migration instructions.
|
||||
*/
|
||||
readonly rid: number;
|
||||
}
|
||||
|
||||
/** @category Network */
|
||||
|
@ -359,14 +343,6 @@ declare namespace Deno {
|
|||
setNoDelay(noDelay?: boolean): void;
|
||||
/** Enable/disable keep-alive functionality. */
|
||||
setKeepAlive(keepAlive?: boolean): void;
|
||||
/**
|
||||
* The resource ID of the connection.
|
||||
*
|
||||
* @deprecated This will be removed in Deno 2.0. See the
|
||||
* {@link https://docs.deno.com/runtime/manual/advanced/migrate_deprecations | Deno 1.x to 2.x Migration Guide}
|
||||
* for migration instructions.
|
||||
*/
|
||||
readonly rid: number;
|
||||
}
|
||||
|
||||
/** @category Network */
|
||||
|
@ -376,16 +352,7 @@ declare namespace Deno {
|
|||
}
|
||||
|
||||
/** @category Network */
|
||||
export interface UnixConn extends Conn<UnixAddr> {
|
||||
/**
|
||||
* The resource ID of the connection.
|
||||
*
|
||||
* @deprecated This will be removed in Deno 2.0. See the
|
||||
* {@link https://docs.deno.com/runtime/manual/advanced/migrate_deprecations | Deno 1.x to 2.x Migration Guide}
|
||||
* for migration instructions.
|
||||
*/
|
||||
readonly rid: number;
|
||||
}
|
||||
export interface UnixConn extends Conn<UnixAddr> {}
|
||||
|
||||
/** Connects to the hostname (default is "127.0.0.1") and port on the named
|
||||
* transport (default is "tcp"), and resolves to the connection (`Conn`).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue