@@ -3110,6 +3110,21 @@ releases.
3110
3110
Use [ ` process.getActiveResourcesInfo() ` ] [ ] to get a list of types of active
3111
3111
resources and not the actual references.
3112
3112
3113
+ ### DEP0162: ` fs.write ` , ` fs.writeFile ` , ` fs.appendFile ` coercion to string
3114
+
3115
+ <!-- YAML
3116
+ changes:
3117
+ - version: REPLACEME
3118
+ pr-url: https://github.com/nodejs/node/pull/42149
3119
+ description: Documentation-only deprecation.
3120
+ -->
3121
+
3122
+ Type: Documentation-only
3123
+
3124
+ Implicit coercion of objects with own ` toString ` property, passed as second
3125
+ parameter in [ ` fs.write() ` ] [ ] , [ ` fs.writeFile() ` ] [ ] and [ ` fs.appendFile() ` ] [ ] ,
3126
+ is deprecated. Convert them to primitive strings.
3127
+
3113
3128
[ Legacy URL API ] : url.md#legacy-url-api
3114
3129
[ NIST SP 800-38D ] : https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
3115
3130
[ RFC 6066 ] : https://tools.ietf.org/html/rfc6066#section-3
@@ -3158,6 +3173,7 @@ resources and not the actual references.
3158
3173
[ `events.listenerCount(emitter, eventName)` ] : events.md#eventslistenercountemitter-eventname
3159
3174
[ `fs.FileHandle` ] : fs.md#class-filehandle
3160
3175
[ `fs.access()` ] : fs.md#fsaccesspath-mode-callback
3176
+ [ `fs.appendFile()` ] : fs.md#fsappendfilepath-data-options-callback
3161
3177
[ `fs.createReadStream()` ] : fs.md#fscreatereadstreampath-options
3162
3178
[ `fs.createWriteStream()` ] : fs.md#fscreatewritestreampath-options
3163
3179
[ `fs.exists(path, callback)` ] : fs.md#fsexistspath-callback
@@ -3168,6 +3184,8 @@ resources and not the actual references.
3168
3184
[ `fs.read()` ] : fs.md#fsreadfd-buffer-offset-length-position-callback
3169
3185
[ `fs.readSync()` ] : fs.md#fsreadsyncfd-buffer-offset-length-position
3170
3186
[ `fs.stat()` ] : fs.md#fsstatpath-options-callback
3187
+ [ `fs.write()` ] : fs.md#fswritefd-buffer-offset-length-position-callback
3188
+ [ `fs.writeFile()` ] : fs.md#fswritefilefile-data-options-callback
3171
3189
[ `http.ClientRequest` ] : http.md#class-httpclientrequest
3172
3190
[ `http.IncomingMessage` ] : http.md#class-httpincomingmessage
3173
3191
[ `http.ServerResponse` ] : http.md#class-httpserverresponse
0 commit comments