diff options
author | Livia Medeiros <74449973+LiviaMedeiros@users.noreply.github.com> | 2022-04-08 18:16:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-08 11:16:08 +0100 |
commit | 0bac5478eb9d242719f7e19f44db03d36c3647d8 (patch) | |
tree | 8240da4008c1aadec639c4d5999886a56844d3ba /doc/api | |
parent | c08a361f706e60db9a2718282ea12abc1b04b882 (diff) | |
download | node-new-0bac5478eb9d242719f7e19f44db03d36c3647d8.tar.gz |
fs: runtime deprecate string coercion in `fs.write`, `fs.writeFileSync`
This also affects `fs.writeFile`, `fs.appendFile`, and
`fs.appendFileSync`
PR-URL: https://github.com/nodejs/node/pull/42607
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/deprecations.md | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 32b25ee9b8..b154c96c9e 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -3114,12 +3114,15 @@ resources and not the actual references. <!-- YAML changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/42607 + description: Runtime deprecation. - version: v17.8.0 pr-url: https://github.com/nodejs/node/pull/42149 description: Documentation-only deprecation. --> -Type: Documentation-only +Type: Runtime Implicit coercion of objects with own `toString` property, passed as second parameter in [`fs.write()`][], [`fs.writeFile()`][], [`fs.appendFile()`][], |