stream: move _stream_* to end-of-life

PR-URL: https://github.com/nodejs/node/pull/60657
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Aviv Keller <me@aviv.sh>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
This commit is contained in:
Sebastian Beltran authored and GitHub committed 2026-01-22 19:11:45 +00:00
1 parent e9b0849606
commit c755b0113c
18 files changed
+8 -131

No files matched your search

-1
View File
@@ -29,7 +29,6 @@
# streams
/lib/_stream* @nodejs/streams
/lib/internal/streams/* @nodejs/streams
/lib/stream.js @nodejs/streams
/lib/stream/* @nodejs/streams
+8 -2
View File
@@ -2812,12 +2812,15 @@ This property is a reference to the instance itself.
<!-- YAML
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/60657
description: End-of-Life.
- version: v12.0.0
pr-url: https://github.com/nodejs/node/pull/26245
description: Runtime deprecation.
-->
Type: Runtime
Type: End-of-Life
The `node:_stream_wrap` module is deprecated.
@@ -4199,6 +4202,9 @@ an internal nodejs implementation rather than a public facing API, use `node:tls
<!-- YAML
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/60657
description: End-of-Life.
- version:
- v24.2.0
- v22.17.0
@@ -4207,7 +4213,7 @@ changes:
description: Runtime deprecation.
-->
Type: Runtime
Type: End-of-Life
The `node:_stream_duplex`, `node:_stream_passthrough`, `node:_stream_readable`, `node:_stream_transform`,
`node:_stream_wrap` and `node:_stream_writable` modules are deprecated as they should be considered
-6
View File
@@ -1,6 +0,0 @@
'use strict';
module.exports = require('stream').Duplex;
process.emitWarning('The _stream_duplex module is deprecated. Use `node:stream` instead.',
'DeprecationWarning', 'DEP0193');
-6
View File
@@ -1,6 +0,0 @@
'use strict';
module.exports = require('stream').PassThrough;
process.emitWarning('The _stream_passthrough module is deprecated. Use `node:stream` instead.',
'DeprecationWarning', 'DEP0193');
-6
View File
@@ -1,6 +0,0 @@
'use strict';
module.exports = require('stream').Readable;
process.emitWarning('The _stream_readable module is deprecated. Use `node:stream` instead.',
'DeprecationWarning', 'DEP0193');
-6
View File
@@ -1,6 +0,0 @@
'use strict';
module.exports = require('stream').Transform;
process.emitWarning('The _stream_transform module is deprecated. Use `node:stream` instead.',
'DeprecationWarning', 'DEP0193');
-6
View File
@@ -1,6 +0,0 @@
'use strict';
module.exports = require('internal/js_stream_socket');
process.emitWarning('The _stream_wrap module is deprecated. Use `node:stream` instead.',
'DeprecationWarning', 'DEP0125');
-6
View File
@@ -1,6 +0,0 @@
'use strict';
module.exports = require('stream').Writable;
process.emitWarning('The _stream_writable module is deprecated. Use `node:stream` instead.',
'DeprecationWarning', 'DEP0193');
-6
View File
@@ -42,12 +42,6 @@ const supportedModules = new SafeSet(new SafeArrayIterator([
// '_http_incoming',
// '_http_outgoing',
// '_http_server',
'_stream_duplex',
'_stream_passthrough',
'_stream_readable',
'_stream_transform',
'_stream_wrap',
'_stream_writable',
// '_tls_common',
// '_tls_wrap',
'assert',
@@ -24,12 +24,6 @@ const expectedPublicModules = new Set([
'_http_incoming',
'_http_outgoing',
'_http_server',
'_stream_duplex',
'_stream_passthrough',
'_stream_readable',
'_stream_transform',
'_stream_wrap',
'_stream_writable',
'_tls_common',
'_tls_wrap',
'assert',
@@ -1,14 +0,0 @@
'use strict';
require('../common');
const assert = require('assert');
const stream = require('stream');
// Verify that all individual aliases are left in place.
assert.strictEqual(stream.Readable, require('_stream_readable'));
assert.strictEqual(stream.Writable, require('_stream_writable'));
assert.strictEqual(stream.Duplex, require('_stream_duplex'));
assert.strictEqual(stream.Transform, require('_stream_transform'));
assert.strictEqual(stream.PassThrough, require('_stream_passthrough'));
@@ -1,10 +0,0 @@
'use strict';
const common = require('../common');
// _stream_duplex is deprecated.
common.expectWarning('DeprecationWarning',
'The _stream_duplex module is deprecated. Use `node:stream` instead.', 'DEP0193');
require('_stream_duplex');
@@ -1,10 +0,0 @@
'use strict';
const common = require('../common');
// _stream_passthrough is deprecated.
common.expectWarning('DeprecationWarning',
'The _stream_passthrough module is deprecated. Use `node:stream` instead.', 'DEP0193');
require('_stream_passthrough');
@@ -1,10 +0,0 @@
'use strict';
const common = require('../common');
// _stream_readable is deprecated.
common.expectWarning('DeprecationWarning',
'The _stream_readable module is deprecated. Use `node:stream` instead.', 'DEP0193');
require('_stream_readable');
@@ -1,10 +0,0 @@
'use strict';
const common = require('../common');
// _stream_transform is deprecated.
common.expectWarning('DeprecationWarning',
'The _stream_transform module is deprecated. Use `node:stream` instead.', 'DEP0193');
require('_stream_transform');
@@ -1,10 +0,0 @@
'use strict';
const common = require('../common');
// _stream_wrap is deprecated.
common.expectWarning('DeprecationWarning',
'The _stream_wrap module is deprecated. Use `node:stream` instead.', 'DEP0125');
require('_stream_wrap');
@@ -1,10 +0,0 @@
'use strict';
const common = require('../common');
// _stream_writable is deprecated.
common.expectWarning('DeprecationWarning',
'The _stream_writable module is deprecated. Use `node:stream` instead.', 'DEP0193');
require('_stream_writable');
-6
View File
@@ -20,12 +20,6 @@
"_http_incoming": ["./lib/_http_incoming.js"],
"_http_outgoing": ["./lib/_http_outgoing.js"],
"_http_server": ["./lib/_http_server.js"],
"_stream_duplex": ["./lib/_stream_duplex.js"],
"_stream_passthrough": ["./lib/_stream_passthrough.js"],
"_stream_readable": ["./lib/_stream_readable.js"],
"_stream_transform": ["./lib/_stream_transform.js"],
"_stream_wrap": ["./lib/_stream_wrap.js"],
"_stream_writable": ["./lib/_stream_writable.js"],
"_tls_common": ["./lib/_tls_common.js"],
"_tls_wrap": ["./lib/_tls_wrap.js"],
"assert": ["./lib/assert.js"],