Skip to content
Open
Changes from all commits
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
48 changes: 48 additions & 0 deletions doc/api/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -1680,6 +1680,12 @@ Type: End-of-Life
The `tls.createSecurePair()` API was deprecated in documentation in Node.js
0.11.3. Users should use `tls.Socket` instead.

An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/tls-create-secure-pair-to-tls-socket)):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create reference style links at the bottom of the page, and link them here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't thinks we need that. because it's use one time and it's not supposed to changed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's precedence for that:

An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/tmpdir-to-tmpdir)):
```bash
npx codemod@latest @nodejs/tmpDir-to-tmpdir
```


```bash
npx codemod @nodejs/tls-create-secure-pair-to-tls-socket
```

### DEP0065: `repl.REPL_MODE_MAGIC` and `NODE_REPL_MODE=magic`

<!-- YAML
Expand Down Expand Up @@ -2276,6 +2282,12 @@ Type: End-of-Life
`timers.enroll()` has been removed. Please use the publicly documented
[`setTimeout()`][] or [`setInterval()`][] instead.

An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/timers-deprecations)).

```bash
npx codemod @nodejs/timers-deprecations
```

### DEP0096: `timers.unenroll()`

<!-- YAML
Expand All @@ -2293,6 +2305,12 @@ Type: End-of-Life
`timers.unenroll()` has been removed. Please use the publicly documented
[`clearTimeout()`][] or [`clearInterval()`][] instead.

An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/timers-deprecations)).

```bash
npx codemod @nodejs/timers-deprecations
```

### DEP0097: `MakeCallback` with `domain` property

<!-- YAML
Expand Down Expand Up @@ -2483,6 +2501,12 @@ It is recommended to derive a key using
[`crypto.createCipheriv()`][] and [`crypto.createDecipheriv()`][] to obtain the
[`Cipheriv`][] and [`Decipheriv`][] objects respectively.

An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/crypto-createcipheriv-migration)):

```bash
npx codemod @nodejs/crypto-createcipheriv-migration
```

### DEP0107: `tls.convertNPNProtocols()`

<!-- YAML
Expand Down Expand Up @@ -2872,6 +2896,12 @@ Please use the publicly documented [`timeout.refresh()`][] instead.
If re-referencing the timeout is necessary, [`timeout.ref()`][] can be used
with no performance impact since Node.js 10.

An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/timers-deprecations)).

```bash
npx codemod @nodejs/timers-deprecations
```

### DEP0127: `timers._unrefActive()`

<!-- YAML
Expand All @@ -2891,6 +2921,12 @@ Please use the publicly documented [`timeout.refresh()`][] instead.
If unreferencing the timeout is necessary, [`timeout.unref()`][] can be used
with no performance impact since Node.js 10.

An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/timers-deprecations)).

```bash
npx codemod @nodejs/timers-deprecations
```

### DEP0128: modules with an invalid `main` entry and an `index.js` file

<!-- YAML
Expand Down Expand Up @@ -3559,6 +3595,12 @@ Type: End-of-Life
This error code was removed due to adding more confusion to
the errors used for value type validation.

An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/err-invalid-callback)):

```bash
npx codemod @nodejs/err-invalid-callback
```

### DEP0160: `process.on('multipleResolves', handler)`

<!-- YAML
Expand Down Expand Up @@ -4277,6 +4319,12 @@ Type: End-of-Life

The support for priority signaling has been removed following its deprecation in the [RFC 9113][].

An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/http2-priority-signaling)):

```bash
npx codemod@latest @nodejs/http2-priority-signaling
```

### DEP0195: Instantiating `node:http` classes without `new`

<!-- YAML
Expand Down
Loading