File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,9 @@ The `_linklist` module is deprecated. Please use a userland alternative.
82
82
### DEP0003: ` _writableState.buffer `
83
83
<!-- YAML
84
84
changes:
85
+ - version: REPLACEME
86
+ pr-url: https://github.com/nodejs/node/pull/31165
87
+ description: End-of-Life
85
88
- version:
86
89
- v4.8.6
87
90
- v6.12.0
@@ -92,10 +95,10 @@ changes:
92
95
description: Runtime deprecation.
93
96
-->
94
97
95
- Type: Runtime
98
+ Type: End-of-Life
96
99
97
- The ` _writableState.buffer ` property is deprecated . Use the
98
- ` _writableState.getBuffer() ` method instead.
100
+ The ` _writableState.buffer ` has been removed . Use ` _writableState.getBuffer() `
101
+ instead.
99
102
100
103
<a id =" DEP0004 " ></a >
101
104
### DEP0004: ` CryptoStream.prototype.readyState `
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ const {
37
37
module . exports = Writable ;
38
38
Writable . WritableState = WritableState ;
39
39
40
- const internalUtil = require ( 'internal/util' ) ;
41
40
const EE = require ( 'events' ) ;
42
41
const Stream = require ( 'stream' ) ;
43
42
const { Buffer } = require ( 'buffer' ) ;
@@ -195,13 +194,6 @@ WritableState.prototype.getBuffer = function getBuffer() {
195
194
return out ;
196
195
} ;
197
196
198
- ObjectDefineProperty ( WritableState . prototype , 'buffer' , {
199
- get : internalUtil . deprecate ( function writableStateBufferGetter ( ) {
200
- return this . getBuffer ( ) ;
201
- } , '_writableState.buffer is deprecated. Use _writableState.getBuffer ' +
202
- 'instead.' , 'DEP0003' )
203
- } ) ;
204
-
205
197
// Test _writableState for inheritance to account for Duplex streams,
206
198
// whose prototype chain only points to Readable.
207
199
var realHasInstance ;
You can’t perform that action at this time.
0 commit comments