| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3359,21 +3359,22 @@ Convert them to primitive strings. | |||
| 3359 | 3359 | ||
| 3360 | 3360 | <!-- YAML | |
| 3361 | 3361 | changes: | |
| 3362 | + - version: REPLACEME | ||
| 3363 | + pr-url: https://github.com/nodejs/node/pull/59758 | ||
| 3364 | + description: Deprecation revoked. | ||
| 3362 | 3365 | - version: | |
| 3363 | 3366 | - v18.7.0 | |
| 3364 | 3367 | - v16.17.0 | |
| 3365 | 3368 | pr-url: https://github.com/nodejs/node/pull/42714 | |
| 3366 | 3369 | description: Documentation-only deprecation. | |
| 3367 | 3370 | --> | |
| 3368 | 3371 | ||
| 3369 | - Type: Documentation-only | ||
| 3370 | - | ||
| 3371 | - These methods were deprecated because they can be used in a way which does not | ||
| 3372 | - hold the channel reference alive long enough to receive the events. | ||
| 3372 | + Type: Deprecation revoked | ||
| 3373 | 3373 | ||
| 3374 | - Use [`diagnostics_channel.subscribe(name, onMessage)`][] or | ||
| 3375 | - [`diagnostics_channel.unsubscribe(name, onMessage)`][] which does the same | ||
| 3376 | - thing instead. | ||
| 3374 | + These methods were deprecated because their use could leave the channel object | ||
| 3375 | + vulnerable to being garbage-collected if not strongly referenced by the user. | ||
| 3376 | + The deprecation was revoked because channel objects are now resistant to | ||
| 3377 | + garbage collection when the channel has active subscribers. | ||
| 3377 | 3378 | ||
| 3378 | 3379 | ### DEP0164: `process.exit(code)`, `process.exitCode` coercion to integer | |
| 3379 | 3380 | ||
@@ -4075,8 +4076,6 @@ an internal nodejs implementation rather than a public facing API, use `node:htt | |||
| 4075 | 4076 | [`crypto.setEngine()`]: crypto.md#cryptosetengineengine-flags | |
| 4076 | 4077 | [`decipher.final()`]: crypto.md#decipherfinaloutputencoding | |
| 4077 | 4078 | [`decipher.setAuthTag()`]: crypto.md#deciphersetauthtagbuffer-encoding | |
| 4078 | - [`diagnostics_channel.subscribe(name, onMessage)`]: diagnostics_channel.md#diagnostics_channelsubscribename-onmessage | ||
| 4079 | - [`diagnostics_channel.unsubscribe(name, onMessage)`]: diagnostics_channel.md#diagnostics_channelunsubscribename-onmessage | ||
| 4080 | 4079 | [`dirent.parentPath`]: fs.md#direntparentpath | |
| 4081 | 4080 | [`dns.lookup()`]: dns.md#dnslookuphostname-options-callback | |
| 4082 | 4081 | [`dnsPromises.lookup()`]: dns.md#dnspromiseslookuphostname-options | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -373,13 +373,17 @@ channel.publish({ | |||
| 373 | 373 | added: | |
| 374 | 374 | - v15.1.0 | |
| 375 | 375 | - v14.17.0 | |
| 376 | - deprecated: | ||
| 377 | - - v18.7.0 | ||
| 378 | - - v16.17.0 | ||
| 376 | + changes: | ||
| 377 | + - version: REPLACEME | ||
| 378 | + pr-url: https://github.com/nodejs/node/pull/59758 | ||
| 379 | + description: Deprecation revoked. | ||
| 380 | + - version: | ||
| 381 | + - v18.7.0 | ||
| 382 | + - v16.17.0 | ||
| 383 | + pr-url: https://github.com/nodejs/node/pull/44943 | ||
| 384 | + description: Documentation-only deprecation. | ||
| 379 | 385 | --> | |
| 380 | 386 | ||
| 381 | - > Stability: 0 - Deprecated: Use [`diagnostics_channel.subscribe(name, onMessage)`][] | ||
| 382 | - | ||
| 383 | 387 | * `onMessage` {Function} The handler to receive channel messages | |
| 384 | 388 | * `message` {any} The message data | |
| 385 | 389 | * `name` {string|symbol} The name of the channel | |
@@ -414,10 +418,15 @@ channel.subscribe((message, name) => { | |||
| 414 | 418 | added: | |
| 415 | 419 | - v15.1.0 | |
| 416 | 420 | - v14.17.0 | |
| 417 | - deprecated: | ||
| 418 | - - v18.7.0 | ||
| 419 | - - v16.17.0 | ||
| 420 | 421 | changes: | |
| 422 | + - version: REPLACEME | ||
| 423 | + pr-url: https://github.com/nodejs/node/pull/59758 | ||
| 424 | + description: Deprecation revoked. | ||
| 425 | + - version: | ||
| 426 | + - v18.7.0 | ||
| 427 | + - v16.17.0 | ||
| 428 | + pr-url: https://github.com/nodejs/node/pull/44943 | ||
| 429 | + description: Documentation-only deprecation. | ||
| 421 | 430 | - version: | |
| 422 | 431 | - v17.1.0 | |
| 423 | 432 | - v16.14.0 | |
@@ -426,8 +435,6 @@ changes: | |||
| 426 | 435 | description: Added return value. Added to channels without subscribers. | |
| 427 | 436 | --> | |
| 428 | 437 | ||
| 429 | - > Stability: 0 - Deprecated: Use [`diagnostics_channel.unsubscribe(name, onMessage)`][] | ||
| 430 | - | ||
| 431 | 438 | * `onMessage` {Function} The previous subscribed handler to remove | |
| 432 | 439 | * Returns: {boolean} `true` if the handler was found, `false` otherwise. | |
| 433 | 440 | ||
@@ -1423,7 +1430,6 @@ Emitted when a new thread is created. | |||
| 1423 | 1430 | [`diagnostics_channel.channel(name)`]: #diagnostics_channelchannelname | |
| 1424 | 1431 | [`diagnostics_channel.subscribe(name, onMessage)`]: #diagnostics_channelsubscribename-onmessage | |
| 1425 | 1432 | [`diagnostics_channel.tracingChannel()`]: #diagnostics_channeltracingchannelnameorchannels | |
| 1426 | - [`diagnostics_channel.unsubscribe(name, onMessage)`]: #diagnostics_channelunsubscribename-onmessage | ||
| 1427 | 1433 | [`end` event]: #endevent | |
| 1428 | 1434 | [`error` event]: #errorevent | |
| 1429 | 1435 | [`net.Server.listen()`]: net.md#serverlisten | |
| Back | FazBrowse Home | New Git URL |
0 commit comments