4
4
<!-- type=misc -->
5
5
6
6
Node.js may deprecate APIs when either: (a) use of the API is considered to be
7
- unsafe, (b) an improved alternative API has been made available, or (c)
8
- breaking changes to the API are expected in a future major release.
7
+ unsafe, (b) an improved alternative API is available, or (c) breaking changes to
8
+ the API are expected in a future major release.
9
9
10
10
Node.js utilizes three kinds of Deprecations:
11
11
@@ -27,8 +27,8 @@ be printed to `stderr` the first time the deprecated API is used. When the
27
27
` --throw-deprecation ` command-line flag is used, a Runtime deprecation will
28
28
cause an error to be thrown.
29
29
30
- An End-of-Life deprecation is used to identify code that either has been
31
- removed or will soon be removed from Node.js.
30
+ An End-of-Life deprecation is used when functionality is or will soon be removed
31
+ from Node.js.
32
32
33
33
## Revoking deprecations
34
34
@@ -123,7 +123,7 @@ precisely describe the actual semantics and was unnecessarily emotion-laden.
123
123
124
124
Type: Documentation-only
125
125
126
- The ` constants ` module has been deprecated. When requiring access to constants
126
+ The ` constants ` module is deprecated. When requiring access to constants
127
127
relevant to specific Node.js builtin modules, developers should instead refer
128
128
to the ` constants ` property exposed by the relevant module. For instance,
129
129
` require('fs').constants ` and ` require('os').constants ` .
@@ -303,7 +303,7 @@ instead.
303
303
304
304
Type: Documentation-only
305
305
306
- The [ ` SlowBuffer ` ] [ ] class has been deprecated. Please use
306
+ The [ ` SlowBuffer ` ] [ ] class is deprecated. Please use
307
307
[ ` Buffer.allocUnsafeSlow(size) ` ] [ ] instead.
308
308
309
309
<a id =" DEP0031 " ></a >
@@ -326,58 +326,58 @@ The [`domain`][] module is deprecated and should not be used.
326
326
327
327
Type: Documentation-only
328
328
329
- The [ ` EventEmitter.listenerCount(emitter, eventName) ` ] [ ] API has been
329
+ The [ ` EventEmitter.listenerCount(emitter, eventName) ` ] [ ] API is
330
330
deprecated. Please use [ ` emitter.listenerCount(eventName) ` ] [ ] instead.
331
331
332
332
<a id =" DEP0034 " ></a >
333
333
### DEP0034: fs.exists(path, callback)
334
334
335
335
Type: Documentation-only
336
336
337
- The [ ` fs.exists(path, callback) ` ] [ ] API has been deprecated. Please use
337
+ The [ ` fs.exists(path, callback) ` ] [ ] API is deprecated. Please use
338
338
[ ` fs.stat() ` ] [ ] or [ ` fs.access() ` ] [ ] instead.
339
339
340
340
<a id =" DEP0035 " ></a >
341
341
### DEP0035: fs.lchmod(path, mode, callback)
342
342
343
343
Type: Documentation-only
344
344
345
- The [ ` fs.lchmod(path, mode, callback) ` ] [ ] API has been deprecated.
345
+ The [ ` fs.lchmod(path, mode, callback) ` ] [ ] API is deprecated.
346
346
347
347
<a id =" DEP0036 " ></a >
348
348
### DEP0036: fs.lchmodSync(path, mode)
349
349
350
350
Type: Documentation-only
351
351
352
- The [ ` fs.lchmodSync(path, mode) ` ] [ ] API has been deprecated.
352
+ The [ ` fs.lchmodSync(path, mode) ` ] [ ] API is deprecated.
353
353
354
354
<a id =" DEP0037 " ></a >
355
355
### DEP0037: fs.lchown(path, uid, gid, callback)
356
356
357
357
Type: Documentation-only
358
358
359
- The [ ` fs.lchown(path, uid, gid, callback) ` ] [ ] API has been deprecated.
359
+ The [ ` fs.lchown(path, uid, gid, callback) ` ] [ ] API is deprecated.
360
360
361
361
<a id =" DEP0038 " ></a >
362
362
### DEP0038: fs.lchownSync(path, uid, gid)
363
363
364
364
Type: Documentation-only
365
365
366
- The [ ` fs.lchownSync(path, uid, gid) ` ] [ ] API has been deprecated.
366
+ The [ ` fs.lchownSync(path, uid, gid) ` ] [ ] API is deprecated.
367
367
368
368
<a id =" DEP0039 " ></a >
369
369
### DEP0039: require.extensions
370
370
371
371
Type: Documentation-only
372
372
373
- The [ ` require.extensions ` ] [ ] property has been deprecated.
373
+ The [ ` require.extensions ` ] [ ] property is deprecated.
374
374
375
375
<a id =" DEP0040 " ></a >
376
376
### DEP0040: punycode module
377
377
378
378
Type: Documentation-only
379
379
380
- The [ ` punycode ` ] [ ] module has been deprecated. Please use a userland alternative
380
+ The [ ` punycode ` ] [ ] module is deprecated. Please use a userland alternative
381
381
instead.
382
382
383
383
<a id =" DEP0041 " ></a >
@@ -393,137 +393,137 @@ The `NODE_REPL_HISTORY_FILE` environment variable was removed. Please use
393
393
394
394
Type: Documentation-only
395
395
396
- The [ ` tls.CryptoStream ` ] [ ] class has been deprecated. Please use
396
+ The [ ` tls.CryptoStream ` ] [ ] class is deprecated. Please use
397
397
[ ` tls.TLSSocket ` ] [ ] instead.
398
398
399
399
<a id =" DEP0043 " ></a >
400
400
### DEP0043: tls.SecurePair
401
401
402
402
Type: Documentation-only
403
403
404
- The [ ` tls.SecurePair ` ] [ ] class has been deprecated. Please use
404
+ The [ ` tls.SecurePair ` ] [ ] class is deprecated. Please use
405
405
[ ` tls.TLSSocket ` ] [ ] instead.
406
406
407
407
<a id =" DEP0044 " ></a >
408
408
### DEP0044: util.isArray()
409
409
410
410
Type: Documentation-only
411
411
412
- The [ ` util.isArray() ` ] [ ] API has been deprecated. Please use ` Array.isArray() `
412
+ The [ ` util.isArray() ` ] [ ] API is deprecated. Please use ` Array.isArray() `
413
413
instead.
414
414
415
415
<a id =" DEP0045 " ></a >
416
416
### DEP0045: util.isBoolean()
417
417
418
418
Type: Documentation-only
419
419
420
- The [ ` util.isBoolean() ` ] [ ] API has been deprecated.
420
+ The [ ` util.isBoolean() ` ] [ ] API is deprecated.
421
421
422
422
<a id =" DEP0046 " ></a >
423
423
### DEP0046: util.isBuffer()
424
424
425
425
Type: Documentation-only
426
426
427
- The [ ` util.isBuffer() ` ] [ ] API has been deprecated. Please use
427
+ The [ ` util.isBuffer() ` ] [ ] API is deprecated. Please use
428
428
[ ` Buffer.isBuffer() ` ] [ ] instead.
429
429
430
430
<a id =" DEP0047 " ></a >
431
431
### DEP0047: util.isDate()
432
432
433
433
Type: Documentation-only
434
434
435
- The [ ` util.isDate() ` ] [ ] API has been deprecated.
435
+ The [ ` util.isDate() ` ] [ ] API is deprecated.
436
436
437
437
<a id =" DEP0048 " ></a >
438
438
### DEP0048: util.isError()
439
439
440
440
Type: Documentation-only
441
441
442
- The [ ` util.isError() ` ] [ ] API has been deprecated.
442
+ The [ ` util.isError() ` ] [ ] API is deprecated.
443
443
444
444
<a id =" DEP0049 " ></a >
445
445
### DEP0049: util.isFunction()
446
446
447
447
Type: Documentation-only
448
448
449
- The [ ` util.isFunction() ` ] [ ] API has been deprecated.
449
+ The [ ` util.isFunction() ` ] [ ] API is deprecated.
450
450
451
451
<a id =" DEP0050 " ></a >
452
452
### DEP0050: util.isNull()
453
453
454
454
Type: Documentation-only
455
455
456
- The [ ` util.isNull() ` ] [ ] API has been deprecated.
456
+ The [ ` util.isNull() ` ] [ ] API is deprecated.
457
457
458
458
<a id =" DEP0051 " ></a >
459
459
### DEP0051: util.isNullOrUndefined()
460
460
461
461
Type: Documentation-only
462
462
463
- The [ ` util.isNullOrUndefined() ` ] [ ] API has been deprecated.
463
+ The [ ` util.isNullOrUndefined() ` ] [ ] API is deprecated.
464
464
465
465
<a id =" DEP0052 " ></a >
466
466
### DEP0052: util.isNumber()
467
467
468
468
Type: Documentation-only
469
469
470
- The [ ` util.isNumber() ` ] [ ] API has been deprecated.
470
+ The [ ` util.isNumber() ` ] [ ] API is deprecated.
471
471
472
472
<a id =" DEP0053 " ></a >
473
473
### DEP0053 util.isObject()
474
474
475
475
Type: Documentation-only
476
476
477
- The [ ` util.isObject() ` ] [ ] API has been deprecated.
477
+ The [ ` util.isObject() ` ] [ ] API is deprecated.
478
478
479
479
<a id =" DEP0054 " ></a >
480
480
### DEP0054: util.isPrimitive()
481
481
482
482
Type: Documentation-only
483
483
484
- The [ ` util.isPrimitive() ` ] [ ] API has been deprecated.
484
+ The [ ` util.isPrimitive() ` ] [ ] API is deprecated.
485
485
486
486
<a id =" DEP0055 " ></a >
487
487
### DEP0055: util.isRegExp()
488
488
489
489
Type: Documentation-only
490
490
491
- The [ ` util.isRegExp() ` ] [ ] API has been deprecated.
491
+ The [ ` util.isRegExp() ` ] [ ] API is deprecated.
492
492
493
493
<a id =" DEP0056 " ></a >
494
494
### DEP0056: util.isString()
495
495
496
496
Type: Documentation-only
497
497
498
- The [ ` util.isString() ` ] [ ] API has been deprecated.
498
+ The [ ` util.isString() ` ] [ ] API is deprecated.
499
499
500
500
<a id =" DEP0057 " ></a >
501
501
### DEP0057: util.isSymbol()
502
502
503
503
Type: Documentation-only
504
504
505
- The [ ` util.isSymbol() ` ] [ ] API has been deprecated.
505
+ The [ ` util.isSymbol() ` ] [ ] API is deprecated.
506
506
507
507
<a id =" DEP0058 " ></a >
508
508
### DEP0058: util.isUndefined()
509
509
510
510
Type: Documentation-only
511
511
512
- The [ ` util.isUndefined() ` ] [ ] API has been deprecated.
512
+ The [ ` util.isUndefined() ` ] [ ] API is deprecated.
513
513
514
514
<a id =" DEP0059 " ></a >
515
515
### DEP0059: util.log()
516
516
517
517
Type: Documentation-only
518
518
519
- The [ ` util.log() ` ] [ ] API has been deprecated.
519
+ The [ ` util.log() ` ] [ ] API is deprecated.
520
520
521
521
<a id =" DEP0060 " ></a >
522
522
### DEP0060: util.\_ extend()
523
523
524
524
Type: Documentation-only
525
525
526
- The [ ` util._extend() ` ] [ ] API has been deprecated.
526
+ The [ ` util._extend() ` ] [ ] API is deprecated.
527
527
528
528
<a id =" DEP0061 " ></a >
529
529
### DEP0061: fs.SyncWriteStream
@@ -539,7 +539,7 @@ alternative.
539
539
540
540
Type: Runtime
541
541
542
- ` --debug ` activates the legacy V8 debugger interface, which has been removed as
542
+ ` --debug ` activates the legacy V8 debugger interface, which was removed as
543
543
of V8 5.8. It is replaced by Inspector which is activated with ` --inspect `
544
544
instead.
545
545
@@ -548,7 +548,7 @@ instead.
548
548
549
549
Type: Documentation-only
550
550
551
- The ` http ` module ` ServerResponse.prototype.writeHeader() ` API has been
551
+ The ` http ` module ` ServerResponse.prototype.writeHeader() ` API is
552
552
deprecated. Please use ` ServerResponse.prototype.writeHead() ` instead.
553
553
554
554
The ` ServerResponse.prototype.writeHeader() ` method was never documented as an
@@ -596,7 +596,7 @@ were never documented as officially supported properties.
596
596
597
597
Type: Documentation-only
598
598
599
- The ` http ` module ` OutgoingMessage.prototype._renderHeaders() ` API has been
599
+ The ` http ` module ` OutgoingMessage.prototype._renderHeaders() ` API is
600
600
deprecated.
601
601
602
602
The ` OutgoingMessage.prototype._renderHeaders ` property was never documented as
@@ -655,7 +655,7 @@ This change was made while `async_hooks` was an experimental API.
655
655
Type: End-of-Life
656
656
657
657
Accessing several internal, undocumented properties of ` net.Server ` instances
658
- with inappropriate names has been deprecated.
658
+ with inappropriate names is deprecated.
659
659
660
660
As the original API was undocumented and not generally useful for non-internal
661
661
code, no replacement API is provided.
@@ -703,7 +703,7 @@ difference is that `querystring.parse()` does url decoding:
703
703
704
704
Type: Runtime
705
705
706
- ` Module._debug()` has been deprecated.
706
+ ` Module._debug()` is deprecated.
707
707
708
708
The ` Module._debug()` function was never documented as an officially
709
709
supported API.
0 commit comments