Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine du Hamel <duhamelantoine1995@gmail.com>2022-04-08 13:16:00 +0300
committerGitHub <noreply@github.com>2022-04-08 13:16:00 +0300
commitc08a361f706e60db9a2718282ea12abc1b04b882 (patch)
tree568fa02b975cee242bfc30b4a35368487348dacc /doc/api/fs.md
parent4fade6acb46ccf0a4f3f637586689019818d81ee (diff)
doc: add history entries for DEP0162 on `fs.md`
PR-URL: https://github.com/nodejs/node/pull/42608 Refs: https://github.com/nodejs/node/pull/42149 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
Diffstat (limited to 'doc/api/fs.md')
-rw-r--r--doc/api/fs.md18
1 files changed, 12 insertions, 6 deletions
diff --git a/doc/api/fs.md b/doc/api/fs.md
index b0cd533a178..25731ecc1ae 100644
--- a/doc/api/fs.md
+++ b/doc/api/fs.md
@@ -4395,6 +4395,10 @@ the end of the file.
<!-- YAML
added: v0.11.5
changes:
+ - version: v17.8.0
+ pr-url: https://github.com/nodejs/node/pull/42149
+ description: Passing to the `string` parameter an object with an own
+ `toString` function is deprecated.
- version: v14.12.0
pr-url: https://github.com/nodejs/node/pull/34993
description: The `string` parameter will stringify an object with an
@@ -4464,6 +4468,10 @@ changes:
description: Passing an invalid callback to the `callback` argument
now throws `ERR_INVALID_ARG_TYPE` instead of
`ERR_INVALID_CALLBACK`.
+ - version: v17.8.0
+ pr-url: https://github.com/nodejs/node/pull/42149
+ description: Passing to the `string` parameter an object with an own
+ `toString` function is deprecated.
- version: v16.0.0
pr-url: https://github.com/nodejs/node/pull/37460
description: The error returned may be an `AggregateError` if more than one
@@ -4524,9 +4532,6 @@ The `encoding` option is ignored if `data` is a buffer.
The `mode` option only affects the newly created file. See [`fs.open()`][]
for more details.
-If `data` is a plain object, it must have an own (not inherited) `toString`
-function property.
-
```mjs
import { writeFile } from 'fs';
import { Buffer } from 'buffer';
@@ -5694,6 +5699,10 @@ this API: [`fs.utimes()`][].
<!-- YAML
added: v0.1.29
changes:
+ - version: v17.8.0
+ pr-url: https://github.com/nodejs/node/pull/42149
+ description: Passing to the `data` parameter an object with an own
+ `toString` function is deprecated.
- version: v14.12.0
pr-url: https://github.com/nodejs/node/pull/34993
description: The `data` parameter will stringify an object with an
@@ -5723,9 +5732,6 @@ changes:
Returns `undefined`.
-If `data` is a plain object, it must have an own (not inherited) `toString`
-function property.
-
The `mode` option only affects the newly created file. See [`fs.open()`][]
for more details.