From 21fef34a53b43bc87dc2c880b92579fd0f05c05f Mon Sep 17 00:00:00 2001 From: Rafael Gonzaga Date: Thu, 5 Sep 2024 16:53:52 -0300 Subject: [PATCH] lib: add note about removing `node:sys` module PR-URL: https://github.com/nodejs/node/pull/54743 Reviewed-By: Antoine du Hamel Reviewed-By: Benjamin Gruenbaum Reviewed-By: Luigi Pinca --- lib/sys.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/sys.js b/lib/sys.js index 1292a38e9ced07..4606412dabc2ef 100644 --- a/lib/sys.js +++ b/lib/sys.js @@ -24,6 +24,8 @@ // The sys module was renamed to 'util'. This shim remains to keep old programs // working. `sys` is deprecated and shouldn't be used. +// Note to maintainers: Although this module has been deprecated for a while +// we do not plan to remove it. See: https://github.com/nodejs/node/pull/35407#issuecomment-700693439 module.exports = require('util'); process.emitWarning('sys is deprecated. Use util instead.', 'DeprecationWarning', 'DEP0025');