Skip to content

Commit

Permalink
docs: add Deno.TcpConnect.rid migration guide (denoland#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
iuioiua authored Feb 5, 2024
1 parent 243008a commit 1a9308b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions runtime/manual/advanced/migrate_deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,33 @@ instead.

See [Deno 1.40 blog post][Deno 1.40 blog post] for details.

### `Deno.TcpConn.rid`

Use [`Deno.TcpConn`](https://deno.land/api?s=Deno.TcpConn) instance methods
instead.

```diff
- await Deno.read(tcpConn.rid, buffer);
+ await tcpConn.read(buffer);
```

```diff
- await Deno.write(tcpConn.rid, data);
+ await tcpConn.write(data);
```

```diff
- Deno.close(tcpConn.rid);
+ tcpConn.close();
```

```diff
- await Deno.shutdown(tcpConn.rid);
+ await tcpConn.closeWrite();
```

See the [Deno 1.40 blog post][Deno 1.40 blog post] for details.

### `Deno.TlsConn.rid`

Use [`Deno.TlsConn`](https://deno.land/api?s=Deno.TlsConn) instance methods
Expand Down

0 comments on commit 1a9308b

Please sign in to comment.