Skip to content

Commit

Permalink
doc: move history entry to class description
Browse files Browse the repository at this point in the history
Move the history entry for the `TextDecoder` class into the class
description itself instead of its constructor.

Refs: #55938
PR-URL: #55991
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: LiviaMedeiros <[email protected]>
  • Loading branch information
lpinca authored and aduh95 committed Dec 18, 2024
1 parent 3558a19 commit 2e6306a
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions doc/api/util.md
Original file line number Diff line number Diff line change
Expand Up @@ -1964,6 +1964,10 @@ The full list of formats can be found in [modifiers][].
<!-- YAML
added: v8.3.0
changes:
- version: v11.0.0
pr-url: https://github.com/nodejs/node/pull/22281
description: The class is now available on the global object.
-->
An implementation of the [WHATWG Encoding Standard][] `TextDecoder` API.
Expand Down Expand Up @@ -2042,14 +2046,6 @@ is not supported.
### `new TextDecoder([encoding[, options]])`
<!-- YAML
added: v8.3.0
changes:
- version: v11.0.0
pr-url: https://github.com/nodejs/node/pull/22281
description: The class is now available on the global object.
-->
* `encoding` {string} Identifies the `encoding` that this `TextDecoder` instance
supports. **Default:** `'utf-8'`.
* `options` {Object}
Expand Down

0 comments on commit 2e6306a

Please sign in to comment.