Skip to content

Commit

Permalink
lib: add note about removing node:sys module
Browse files Browse the repository at this point in the history
PR-URL: nodejs#54743
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
RafaelGSS authored and tpoisseau committed Nov 21, 2024
1 parent c6cefba commit a3b9413
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/sys.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

0 comments on commit a3b9413

Please sign in to comment.