@@ -3145,6 +3145,24 @@ parameter in [`fs.write()`][], [`fs.writeFile()`][], [`fs.appendFile()`][],
3145
3145
[ ` fs.writeFileSync() ` ] [ ] , and [ ` fs.appendFileSync() ` ] [ ] is deprecated.
3146
3146
Convert them to primitive strings.
3147
3147
3148
+ ### DEP0163: ` channel.subscribe(onMessage) ` , ` channel.unsubscribe(onMessage) `
3149
+
3150
+ <!-- YAML
3151
+ changes:
3152
+ - version: REPLACEME
3153
+ pr-url: https://github.com/nodejs/node/pull/42714
3154
+ description: Documentation-only deprecation.
3155
+ -->
3156
+
3157
+ Type: Documentation-only
3158
+
3159
+ These methods were deprecated because they can be used in a way which does not
3160
+ hold the channel reference alive long enough to receive the events.
3161
+
3162
+ Use [ ` diagnostics_channel.subscribe(name, onMessage) ` ] [ ] or
3163
+ [ ` diagnostics_channel.unsubscribe(name, onMessage) ` ] [ ] which does the same
3164
+ thing instead.
3165
+
3148
3166
[ Legacy URL API ] : url.md#legacy-url-api
3149
3167
[ NIST SP 800-38D ] : https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
3150
3168
[ RFC 6066 ] : https://tools.ietf.org/html/rfc6066#section-3
@@ -3185,6 +3203,8 @@ Convert them to primitive strings.
3185
3203
[ `crypto.scrypt()` ] : crypto.md#cryptoscryptpassword-salt-keylen-options-callback
3186
3204
[ `decipher.final()` ] : crypto.md#decipherfinaloutputencoding
3187
3205
[ `decipher.setAuthTag()` ] : crypto.md#deciphersetauthtagbuffer-encoding
3206
+ [ `diagnostics_channel.subscribe(name, onMessage)` ] : diagnostics_channel.md#diagnostics_channelsubscribename-onmessage
3207
+ [ `diagnostics_channel.unsubscribe(name, onMessage)` ] : diagnostics_channel.md#diagnostics_channelunsubscribename-onmessage
3188
3208
[ `dns.lookup()` ] : dns.md#dnslookuphostname-options-callback
3189
3209
[ `dnsPromises.lookup()` ] : dns.md#dnspromiseslookuphostname-options
3190
3210
[ `domain` ] : domain.md
0 commit comments