doc: deprecate util.TextDecoder and util.TextEncoder

Signed-off-by: LiviaMedeiros <livia@cirno.name>
PR-URL: https://github.com/nodejs/node/pull/67461
Reviewed-By: Aviv Keller <me@aviv.sh>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
This commit is contained in:
LiviaMedeiros authored and Antoine du Hamel committed 2026-11-19 15:42:14 +01:00
1 parent add0fde1d1
commit 5e297a0843
3 files changed
+17 -1

No files matched your search

+14
View File
@@ -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`
<!-- YAML
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/67461
description: Documentation-only deprecation.
-->
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
+2
View File
@@ -2928,6 +2928,7 @@ The full list of formats can be found in [modifiers][].
<!-- YAML
added: v8.3.0
deprecated: REPLACEME
changes:
- version: v11.0.0
pr-url: https://github.com/nodejs/node/pull/22281
@@ -3066,6 +3067,7 @@ mark.
<!-- YAML
added: v8.3.0
deprecated: REPLACEME
changes:
- version: v11.0.0
pr-url: https://github.com/nodejs/node/pull/22281
+1 -1
View File
@@ -158,5 +158,5 @@ for await (const dirent of await fs.opendir(new URL('../../out/doc/api/', import
assert.partialDeepStrictEqual(allExpectedKeys, findAllKeys(json));
}
assert.strictEqual(numberOfDeprecatedSections, 47); // Increase this number every time a new API is deprecated.
assert.strictEqual(numberOfDeprecatedSections, 49); // Increase this number every time a new API is deprecated.
assert.strictEqual(numberOfRemovedAPIs, 49); // Increase this number every time a section is marked as removed.