Skip to content

Commit c08a361

Browse files
authored
doc: add history entries for DEP0162 on fs.md
PR-URL: #42608 Refs: #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>
1 parent 4fade6a commit c08a361

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

doc/api/fs.md

+12-6
Original file line numberDiff line numberDiff line change
@@ -4395,6 +4395,10 @@ the end of the file.
43954395
<!-- YAML
43964396
added: v0.11.5
43974397
changes:
4398+
- version: v17.8.0
4399+
pr-url: https://github.com/nodejs/node/pull/42149
4400+
description: Passing to the `string` parameter an object with an own
4401+
`toString` function is deprecated.
43984402
- version: v14.12.0
43994403
pr-url: https://github.com/nodejs/node/pull/34993
44004404
description: The `string` parameter will stringify an object with an
@@ -4464,6 +4468,10 @@ changes:
44644468
description: Passing an invalid callback to the `callback` argument
44654469
now throws `ERR_INVALID_ARG_TYPE` instead of
44664470
`ERR_INVALID_CALLBACK`.
4471+
- version: v17.8.0
4472+
pr-url: https://github.com/nodejs/node/pull/42149
4473+
description: Passing to the `string` parameter an object with an own
4474+
`toString` function is deprecated.
44674475
- version: v16.0.0
44684476
pr-url: https://github.com/nodejs/node/pull/37460
44694477
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.
45244532
The `mode` option only affects the newly created file. See [`fs.open()`][]
45254533
for more details.
45264534
4527-
If `data` is a plain object, it must have an own (not inherited) `toString`
4528-
function property.
4529-
45304535
```mjs
45314536
import { writeFile } from 'fs';
45324537
import { Buffer } from 'buffer';
@@ -5694,6 +5699,10 @@ this API: [`fs.utimes()`][].
56945699
<!-- YAML
56955700
added: v0.1.29
56965701
changes:
5702+
- version: v17.8.0
5703+
pr-url: https://github.com/nodejs/node/pull/42149
5704+
description: Passing to the `data` parameter an object with an own
5705+
`toString` function is deprecated.
56975706
- version: v14.12.0
56985707
pr-url: https://github.com/nodejs/node/pull/34993
56995708
description: The `data` parameter will stringify an object with an
@@ -5723,9 +5732,6 @@ changes:
57235732
57245733
Returns `undefined`.
57255734
5726-
If `data` is a plain object, it must have an own (not inherited) `toString`
5727-
function property.
5728-
57295735
The `mode` option only affects the newly created file. See [`fs.open()`][]
57305736
for more details.
57315737

0 commit comments

Comments
 (0)