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
  • Loading branch information
lpinca committed Nov 25, 2024
1 parent b17a1fb commit 895a5ce
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 895a5ce

Please sign in to comment.