Skip to content

Commit 7bd4889

Browse files
committed
fs: move SyncWriteStream to end-of-life
This was deprecated in 8.x or 9.x. It was never intended for public use. PR-URL: #20735 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Yuta Hiroto <hello@hiroppy.me> Reviewed-By: Jackson Tian <shyvo1987@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 4d00cd4 commit 7bd4889

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

doc/api/deprecations.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -528,10 +528,11 @@ The [`util._extend()`][] API has been deprecated.
528528
<a id="DEP0061"></a>
529529
### DEP0061: fs.SyncWriteStream
530530

531-
Type: Runtime
531+
Type: End-of-Life
532532

533533
The `fs.SyncWriteStream` class was never intended to be a publicly accessible
534-
API. No alternative API is available. Please use a userland alternative.
534+
API and has been removed. No alternative API is available. Please use a userland
535+
alternative.
535536

536537
<a id="DEP0062"></a>
537538
### DEP0062: node --debug

lib/fs.js

-11
Original file line numberDiff line numberDiff line change
@@ -2360,14 +2360,3 @@ WriteStream.prototype.close = function(cb) {
23602360

23612361
// There is no shutdown() for files.
23622362
WriteStream.prototype.destroySoon = WriteStream.prototype.end;
2363-
2364-
// SyncWriteStream is internal. DO NOT USE.
2365-
// This undocumented API was never intended to be made public.
2366-
var SyncWriteStream = internalFS.SyncWriteStream;
2367-
Object.defineProperty(fs, 'SyncWriteStream', {
2368-
configurable: true,
2369-
get: internalUtil.deprecate(() => SyncWriteStream,
2370-
'fs.SyncWriteStream is deprecated.', 'DEP0061'),
2371-
set: internalUtil.deprecate((val) => { SyncWriteStream = val; },
2372-
'fs.SyncWriteStream is deprecated.', 'DEP0061')
2373-
});

0 commit comments

Comments
 (0)