From 957c72ccd93826043d6f49c03df884f36250d284 Mon Sep 17 00:00:00 2001 From: Luigi Pinca <luigipinca@gmail.com> Date: Wed, 27 Nov 2024 15:24:53 +0100 Subject: [PATCH] doc: move history entry to class description Move the history entry for the `TextDecoder` class into the class description itself instead of its constructor. Refs: https://github.com/nodejs/node/issues/55938 PR-URL: https://github.com/nodejs/node/pull/55991 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: LiviaMedeiros <livia@cirno.name> --- doc/api/util.md | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/doc/api/util.md b/doc/api/util.md index 702b9468dc9b47..276cf5ccd82946 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -1879,6 +1879,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. @@ -1957,14 +1961,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}