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: nodejs#55938
PR-URL: nodejs#55991
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: LiviaMedeiros <[email protected]>
  • Loading branch information
lpinca authored and nodejs-github-bot committed Dec 4, 2024
1 parent fc3e1f7 commit 923a61b
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 @@ -1998,6 +1998,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 @@ -2076,14 +2080,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 923a61b

Please sign in to comment.