diff options
| author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-09-11 09:14:50 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-11 01:14:50 +0200 |
| commit | 4865ae13e1a637a86de1266f1f5147b6142872c6 (patch) | |
| tree | 3c1ea1f29f5f5c8b854fba4de1ed504639c3472c /ext | |
| parent | ace1202227abeeac78db0266a13b451c1792a6ce (diff) | |
BREAKING(net): remove `Deno.[Tls]Listener.prototype.rid` (#25556)
Towards #22079
---------
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/net/01_net.js | 18 | ||||
| -rw-r--r-- | ext/net/02_tls.js | 9 | ||||
| -rw-r--r-- | ext/net/lib.deno_net.d.ts | 9 |
3 files changed, 1 insertions, 35 deletions
diff --git a/ext/net/01_net.js b/ext/net/01_net.js index b636ec67a..5b894947e 100644 --- a/ext/net/01_net.js +++ b/ext/net/01_net.js @@ -1,6 +1,6 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -import { core, internals, primordials } from "ext:core/mod.js"; +import { core, primordials } from "ext:core/mod.js"; const { BadResourcePrototype, InterruptedPrototype, @@ -237,13 +237,6 @@ class Listener { #promise = null; constructor(rid, addr) { - if (internals.future) { - ObjectDefineProperty(this, "rid", { - __proto__: null, - enumerable: false, - value: undefined, - }); - } ObjectDefineProperty(this, internalRidSymbol, { __proto__: null, enumerable: false, @@ -253,15 +246,6 @@ class Listener { this.#addr = addr; } - get rid() { - internals.warnOnDeprecatedApi( - "Deno.Listener.rid", - new Error().stack, - "Use `Deno.Listener` instance methods instead.", - ); - return this.#rid; - } - get addr() { return this.#addr; } diff --git a/ext/net/02_tls.js b/ext/net/02_tls.js index a2cb65b83..11d19440f 100644 --- a/ext/net/02_tls.js +++ b/ext/net/02_tls.js @@ -86,15 +86,6 @@ class TlsListener extends Listener { this.#rid = rid; } - get rid() { - internals.warnOnDeprecatedApi( - "Deno.TlsListener.rid", - new Error().stack, - "Use `Deno.TlsListener` instance methods instead.", - ); - return this.#rid; - } - async accept() { const { 0: rid, 1: localAddr, 2: remoteAddr } = await op_net_accept_tls( this.#rid, diff --git a/ext/net/lib.deno_net.d.ts b/ext/net/lib.deno_net.d.ts index f34fcb0fd..b66dcea8d 100644 --- a/ext/net/lib.deno_net.d.ts +++ b/ext/net/lib.deno_net.d.ts @@ -35,15 +35,6 @@ declare namespace Deno { /** Return the address of the `Listener`. */ readonly addr: A; - /** - * Return the rid of the `Listener`. - * - * @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; - [Symbol.asyncIterator](): AsyncIterableIterator<T>; /** |
