1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00

docs: point to "Deno 1.x to 2.x Migration Guide" for net APIs (#22275)

These were missed in #22199.
This commit is contained in:
Asher Gomez 2024-02-08 09:42:33 +11:00 committed by GitHub
parent 96c07e90ca
commit 8a8dffbafc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,8 +38,9 @@ declare namespace Deno {
/** /**
* Return the rid of the `Listener`. * Return the rid of the `Listener`.
* *
* @deprecated Use {@linkcode Deno.Listener} instance methods instead. * @deprecated This will be removed in Deno 2.0. See the
* {@linkcode Deno.Listener.rid} will be removed in Deno 2.0. * {@link https://docs.deno.com/runtime/manual/advanced/migrate_deprecations | Deno 1.x to 2.x Migration Guide}
* for migration instructions.
*/ */
readonly rid: number; readonly rid: number;
@ -72,8 +73,9 @@ declare namespace Deno {
/** /**
* The resource ID of the connection. * The resource ID of the connection.
* *
* @deprecated Use {@linkcode Deno.Conn} instance methods instead. * @deprecated This will be removed in Deno 2.0. See the
* {@linkcode Deno.Conn.rid} will be removed in Deno 2.0. * {@link https://docs.deno.com/runtime/manual/advanced/migrate_deprecations | Deno 1.x to 2.x Migration Guide}
* for migration instructions.
*/ */
readonly rid: number; readonly rid: number;
/** Shuts down (`shutdown(2)`) the write side of the connection. Most /** Shuts down (`shutdown(2)`) the write side of the connection. Most
@ -111,8 +113,9 @@ declare namespace Deno {
/** /**
* The resource ID of the connection. * The resource ID of the connection.
* *
* @deprecated Use {@linkcode Deno.TlsConn} instance methods instead. * @deprecated This will be removed in Deno 2.0. See the
* {@linkcode Deno.TlsConn.rid} will be removed in Deno 2.0. * {@link https://docs.deno.com/runtime/manual/advanced/migrate_deprecations | Deno 1.x to 2.x Migration Guide}
* for migration instructions.
*/ */
readonly rid: number; readonly rid: number;
} }
@ -191,17 +194,17 @@ declare namespace Deno {
* `--allow-read`. * `--allow-read`.
* *
* @tags allow-read * @tags allow-read
* @deprecated Pass the certificate file contents directly to the * @deprecated This will be removed in Deno 2.0. See the
* {@linkcode Deno.ListenTlsOptions.cert} option instead. This option will * {@link https://docs.deno.com/runtime/manual/advanced/migrate_deprecations | Deno 1.x to 2.x Migration Guide}
* be removed in Deno 2.0. * for migration instructions.
*/ */
certFile?: string; certFile?: string;
/** Server private key file. Requires `--allow-read`. /** Server private key file. Requires `--allow-read`.
* *
* @tags allow-read * @tags allow-read
* @deprecated Pass the key file contents directly to the * @deprecated This will be removed in Deno 2.0. See the
* {@linkcode Deno.ListenTlsOptions.key} option instead. This option will * {@link https://docs.deno.com/runtime/manual/advanced/migrate_deprecations | Deno 1.x to 2.x Migration Guide}
* be removed in Deno 2.0. * for migration instructions.
*/ */
keyFile?: string; keyFile?: string;
@ -275,8 +278,9 @@ declare namespace Deno {
/** /**
* The resource ID of the connection. * The resource ID of the connection.
* *
* @deprecated Use {@linkcode Deno.Conn} instance methods instead. * @deprecated This will be removed in Deno 2.0. See the
* {@linkcode Deno.Conn.rid} will be removed in Deno 2.0. * {@link https://docs.deno.com/runtime/manual/advanced/migrate_deprecations | Deno 1.x to 2.x Migration Guide}
* for migration instructions.
*/ */
readonly rid: number; readonly rid: number;
} }
@ -292,8 +296,9 @@ declare namespace Deno {
/** /**
* The resource ID of the connection. * The resource ID of the connection.
* *
* @deprecated Use {@linkcode Deno.UnixConn} instance methods instead. * @deprecated This will be removed in Deno 2.0. See the
* {@linkcode Deno.UnixConn.rid} will be removed in Deno 2.0. * {@link https://docs.deno.com/runtime/manual/advanced/migrate_deprecations | Deno 1.x to 2.x Migration Guide}
* for migration instructions.
*/ */
readonly rid: number; readonly rid: number;
} }
@ -328,9 +333,9 @@ declare namespace Deno {
/** /**
* Server certificate file. * Server certificate file.
* *
* @deprecated Pass the cert file contents directly to the * @deprecated This will be removed in Deno 2.0. See the
* {@linkcode Deno.ConnectTlsOptions.caCerts} option instead. This option * {@link https://docs.deno.com/runtime/manual/advanced/migrate_deprecations | Deno 1.x to 2.x Migration Guide}
* will be removed in Deno 2.0. * for migration instructions.
*/ */
certFile?: string; certFile?: string;
/** A list of root certificates that will be used in addition to the /** A list of root certificates that will be used in addition to the
@ -428,8 +433,9 @@ declare namespace Deno {
* Deno.shutdown(conn.rid); * Deno.shutdown(conn.rid);
* ``` * ```
* *
* @deprecated Use {@linkcode Deno.Conn.closeWrite} instead. * @deprecated This will be removed in Deno 2.0. See the
* {@linkcode Deno.shutdown} will be removed in Deno 2.0. * {@link https://docs.deno.com/runtime/manual/advanced/migrate_deprecations | Deno 1.x to 2.x Migration Guide}
* for migration instructions.
* *
* @category Network * @category Network
*/ */