mirror of
https://github.com/nodejs/node.git
synced 2024-11-24 03:07:54 +01:00
lib: add note about removing node:sys
module
PR-URL: https://github.com/nodejs/node/pull/54743 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
ce19715cbb
commit
143aca7d1f
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user