File tree 4 files changed +7
-36
lines changed
4 files changed +7
-36
lines changed Original file line number Diff line number Diff line change @@ -632,6 +632,9 @@ Type: End-of-Life
632
632
### DEP0029: util.error()
633
633
<!-- YAML
634
634
changes:
635
+ - version: REPLACEME
636
+ pr-url: https://github.com/nodejs/node/pull/xxxxx
637
+ description: End-of-Life.
635
638
- version:
636
639
- v4.8.6
637
640
- v6.12.0
@@ -642,10 +645,9 @@ changes:
642
645
description: Runtime deprecation.
643
646
-->
644
647
645
- Type: Runtime
648
+ Type: End-of-Life
646
649
647
- The [ ` util.error() ` ] [ ] API is deprecated. Please use [ ` console.error() ` ] [ ]
648
- instead.
650
+ ` util.error() ` has been removed. Please use [ ` console.error() ` ] [ ] instead.
649
651
650
652
<a id =" DEP0030 " ></a >
651
653
### DEP0030: SlowBuffer
@@ -2397,7 +2399,6 @@ Setting the TLS ServerName to an IP address is not permitted by
2397
2399
[`url.parse()`]: url.html#url_url_parse_urlstring_parsequerystring_slashesdenotehost
2398
2400
[`url.resolve()`]: url.html#url_url_resolve_from_to
2399
2401
[`util._extend()`]: util.html#util_util_extend_target_source
2400
- [`util.error()`]: util.html#util_util_error_strings
2401
2402
[`util.getSystemErrorName()`]: util.html#util_util_getsystemerrorname_err
2402
2403
[`util.inspect()`]: util.html#util_util_inspect_object_options
2403
2404
[`util.inspect.custom`]: util.html#util_util_inspect_custom
Original file line number Diff line number Diff line change @@ -1714,18 +1714,6 @@ Node.js modules. The community found and used it anyway.
1714
1714
It is deprecated and should not be used in new code. JavaScript comes with very
1715
1715
similar built-in functionality through [ ` Object.assign() ` ] .
1716
1716
1717
- ### util.error([ ...strings] )
1718
- <!-- YAML
1719
- added: v0.3.0
1720
- deprecated: v0.11.3
1721
- -->
1722
-
1723
- > Stability: 0 - Deprecated: Use [ ` console.error() ` ] [ ] instead.
1724
-
1725
- * ` ...strings ` {string} The message to print to ` stderr `
1726
-
1727
- Deprecated predecessor of ` console.error ` .
1728
-
1729
1717
### util.isArray(object)
1730
1718
<!-- YAML
1731
1719
added: v0.6.0
Original file line number Diff line number Diff line change @@ -324,13 +324,6 @@ function _extend(target, source) {
324
324
return target ;
325
325
}
326
326
327
- // Deprecated old stuff.
328
- function error ( ...args ) {
329
- for ( var i = 0 , len = args . length ; i < len ; ++ i ) {
330
- process . stderr . write ( `${ args [ i ] } \n` ) ;
331
- }
332
- }
333
-
334
327
function callbackifyOnRejected ( reason , cb ) {
335
328
// `!reason` guard inspired by bluebird (Ref: https://goo.gl/t5IS6M).
336
329
// Because `null` is a special error value in callbacks which means "no error
@@ -421,10 +414,5 @@ module.exports = exports = {
421
414
promisify,
422
415
TextDecoder,
423
416
TextEncoder,
424
- types,
425
-
426
- // Deprecated Old Stuff
427
- error : deprecate ( error ,
428
- 'util.error is deprecated. Use console.error instead.' ,
429
- 'DEP0029' )
417
+ types
430
418
} ;
Original file line number Diff line number Diff line change 21
21
22
22
'use strict' ;
23
23
// Flags: --expose-internals
24
- const common = require ( '../common' ) ;
24
+ require ( '../common' ) ;
25
25
const assert = require ( 'assert' ) ;
26
26
const util = require ( 'util' ) ;
27
27
const errors = require ( 'internal/errors' ) ;
@@ -144,12 +144,6 @@ assert.strictEqual(util.isFunction(function() {}), true);
144
144
assert . strictEqual ( util . isFunction ( ) , false ) ;
145
145
assert . strictEqual ( util . isFunction ( 'string' ) , false ) ;
146
146
147
- common . expectWarning ( 'DeprecationWarning' , [
148
- [ 'util.error is deprecated. Use console.error instead.' , 'DEP0029' ]
149
- ] ) ;
150
-
151
- util . error ( 'test' ) ;
152
-
153
147
{
154
148
assert . strictEqual ( util . types . isNativeError ( new Error ( ) ) , true ) ;
155
149
assert . strictEqual ( util . types . isNativeError ( new TypeError ( ) ) , true ) ;
You can’t perform that action at this time.
0 commit comments