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: #54743
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
RafaelGSS authored and targos committed Oct 2, 2024
1 parent 4644d05 commit 77c5922
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 77c5922

Please sign in to comment.