Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add missing symbols to "Deno 1.x to 2.x Migration Guide" #828

Merged
merged 4 commits into from
Sep 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update
  • Loading branch information
iuioiua committed Sep 11, 2024
commit e9f99b0fd84d7ae6b1d9de4e0c28aa592cfdbad7
36 changes: 17 additions & 19 deletions runtime/reference/migrate_deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ See [deno#9795][deno#9795] for details.

### Deno.Closer

Use [Closer](https://jsr.io/@std/io/doc/types/~/Closer) from the Standard
Use [`Closer`](https://jsr.io/@std/io/doc/types/~/Closer) from the Standard
Library instead.

```diff
Expand Down Expand Up @@ -218,9 +218,9 @@ See the [Deno 1.40 blog post][Deno 1.40 blog post] for details.

### Deno.ConnectTlsOptions.certChain

Use
[`Deno.TlsCertifiedKeyPem.cert`](https://docs.deno.com/api/deno/~/Deno.TlsCertifiedKeyPem#property_cert)
instead.
Use the
[`cert`](https://docs.deno.com/api/deno/~/Deno.TlsCertifiedKeyPem#property_cert)
option instead.

```diff
const caCert = await Deno.readTextFile("./certs/my_custom_root_CA.pem");
Expand All @@ -238,9 +238,9 @@ See [deno#22274](https://github.com/denoland/deno/pull/22274) for details.

### Deno.ConnectTlsOptions.certFile

Use
[`Deno.TlsCertifiedKeyPem.cert`](https://docs.deno.com/api/deno/~/Deno.TlsCertifiedKeyPem#property_cert)
instead.
Use the
[`cert`](https://docs.deno.com/api/deno/~/Deno.TlsCertifiedKeyPem#property_cert)
option instead.

```diff
const caCert = await Deno.readTextFile("./certs/my_custom_root_CA.pem");
Expand All @@ -258,9 +258,9 @@ See [deno#22274](https://github.com/denoland/deno/pull/22274) for details.

### Deno.ConnectTlsOptions.privateKey

Use
[`Deno.TlsCertifiedKeyPem.cert`](https://docs.deno.com/api/deno/~/Deno.TlsCertifiedKeyPem#property_key)
instead.
Use the
[`key`](https://docs.deno.com/api/deno/~/Deno.TlsCertifiedKeyPem#property_key)
option instead.

```diff
const caCert = await Deno.readTextFile("./certs/my_custom_root_CA.pem");
Expand Down Expand Up @@ -679,9 +679,7 @@ Use [`Deno.Listener`](https://docs.deno.com/api/deno/~/Deno.Listener) instance
methods instead.

```diff
const listener = Deno.listen({ port: 80 });

// ...
const listener = Deno.listen({ port: 80 })

- Deno.close(listener.rid);
+ listener.close();
Expand All @@ -691,9 +689,9 @@ See the [Deno 1.40 blog post][Deno 1.40 blog post] for details.

### Deno.ListenTlsOptions.certFile

Pass the certificate file contents to
[`Deno.ListenTlsOptions.cert`](https://docs.deno.com/api/deno/~/Deno.ListenTlsOptions#property_cert)
instead.
Pass the certificate file contents to the
[`cert`](https://docs.deno.com/api/deno/~/Deno.ListenTlsOptions#property_cert)
option instead.

```diff
using listener = Deno.listenTls({
Expand All @@ -708,9 +706,9 @@ See [deno#12639](https://github.com/denoland/deno/issues/12639) for details.

### Deno.ListenTlsOptions.keyFile

Pass the key file contents to
[`Deno.ListenTlsOptions.key`](https://docs.deno.com/api/deno/~/Deno.ListenTlsOptions#property_key)
instead.
Pass the key file contents to the
[`key`](https://docs.deno.com/api/deno/~/Deno.ListenTlsOptions#property_key)
option instead.

```diff
using listener = Deno.listenTls({
Expand Down