Skip to content

Commit

Permalink
lib: end-of-life the deprecated require('sys')
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-github committed Feb 24, 2019
1 parent 7e0ddf6 commit f24105e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ module.exports = {
'no-path-concat': 'error',
'no-proto': 'error',
'no-redeclare': 'error',
'no-restricted-modules': ['error', 'sys'],
'no-restricted-modules': ['error'],
/* eslint-disable max-len */
'no-restricted-properties': [
'error',
Expand Down
5 changes: 4 additions & 1 deletion doc/api/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,9 @@ The `REPLServer.prototype.convertToContext()` API has been removed.
### DEP0025: require('sys')
<!-- YAML
changes:
- version: REPLACEME
pr-url: XXX
description: End-of-Life.
- version:
- v4.8.6
- v6.12.0
Expand All @@ -561,7 +564,7 @@ changes:
description: Runtime deprecation.
-->

Type: Runtime
Type: End-of-Life

The `sys` module is deprecated. Please use the [`util`][] module instead.

Expand Down
1 change: 0 additions & 1 deletion lib/internal/bootstrap/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const { hasTracing, hasInspector } = internalBinding('config');
// Modules with source code compiled in js2c that
// cannot be compiled with the code cache.
const cannotBeRequired = [
'sys', // Deprecated.
'internal/v8_prof_polyfill',
'internal/v8_prof_processor',

Expand Down
30 changes: 0 additions & 30 deletions lib/sys.js

This file was deleted.

1 change: 0 additions & 1 deletion node.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
'lib/_stream_passthrough.js',
'lib/_stream_wrap.js',
'lib/string_decoder.js',
'lib/sys.js',
'lib/timers.js',
'lib/tls.js',
'lib/_tls_common.js',
Expand Down

0 comments on commit f24105e

Please sign in to comment.