From 5e297a0843e693e85299c9af9bfaa535fbb1a31f Mon Sep 17 00:00:00 2001 From: LiviaMedeiros Date: Sat, 14 Nov 2026 07:02:31 +0800 Subject: [PATCH] doc: deprecate `util.TextDecoder` and `util.TextEncoder` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: LiviaMedeiros PR-URL: https://github.com/nodejs/node/pull/67461 Reviewed-By: Aviv Keller Reviewed-By: James M Snell Reviewed-By: Antoine du Hamel Reviewed-By: Filip Skokan Reviewed-By: Gürgün Dayıoğlu --- doc/api/deprecations.md | 14 ++++++++++++++ doc/api/util.md | 2 ++ test/doctool/test-doc-api-json.mjs | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index fc333e937d6..b31bfffc11b 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -4847,6 +4847,20 @@ Type: Documentation-only `node:sqlite`'s `StatementSync` class was renamed to `Statement`. `StatementSync` is kept as a deprecated alias. Use `Statement` instead. +### DEP0212: `util.TextDecoder` and `util.TextEncoder` + + + +Type: Documentation-only + +`node:util`'s `util.TextDecoder` and `util.TextEncoder` are deprecated. +Use global `TextDecoder` and `TextEncoder` instead. + [DEP0142]: #dep0142-repl_builtinlibs [DEP0156]: #dep0156-aborted-property-and-abort-aborted-event-in-http [NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf diff --git a/doc/api/util.md b/doc/api/util.md index c30831019d0..176722568e4 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -2928,6 +2928,7 @@ The full list of formats can be found in [modifiers][].