Skip to content

Commit 2f932ca

Browse files
aduh95danielleadams
authored andcommitted
doc: add history entries for DEP0162 on fs.md
PR-URL: #42608 Refs: #42149 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Mestery <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Akhil Marsonya <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
1 parent 524a140 commit 2f932ca

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
@@ -4132,6 +4132,10 @@ the end of the file.
41324132
<!-- YAML
41334133
added: v0.11.5
41344134
changes:
4135+
- version: v17.8.0
4136+
pr-url: https://github.com/nodejs/node/pull/42149
4137+
description: Passing to the `string` parameter an object with an own
4138+
`toString` function is deprecated.
41354139
- version: v14.12.0
41364140
pr-url: https://github.com/nodejs/node/pull/34993
41374141
description: The `string` parameter will stringify an object with an
@@ -4196,6 +4200,10 @@ details.
41964200
<!-- YAML
41974201
added: v0.1.29
41984202
changes:
4203+
- version: v17.8.0
4204+
pr-url: https://github.com/nodejs/node/pull/42149
4205+
description: Passing to the `string` parameter an object with an own
4206+
`toString` function is deprecated.
41994207
- version: v16.0.0
42004208
pr-url: https://github.com/nodejs/node/pull/37460
42014209
description: The error returned may be an `AggregateError` if more than one
@@ -4254,9 +4262,6 @@ The `encoding` option is ignored if `data` is a buffer.
42544262
The `mode` option only affects the newly created file. See [`fs.open()`][]
42554263
for more details.
42564264
4257-
If `data` is a plain object, it must have an own (not inherited) `toString`
4258-
function property.
4259-
42604265
```mjs
42614266
import { writeFile } from 'fs';
42624267
import { Buffer } from 'buffer';
@@ -5414,6 +5419,10 @@ this API: [`fs.utimes()`][].
54145419
<!-- YAML
54155420
added: v0.1.29
54165421
changes:
5422+
- version: v17.8.0
5423+
pr-url: https://github.com/nodejs/node/pull/42149
5424+
description: Passing to the `data` parameter an object with an own
5425+
`toString` function is deprecated.
54175426
- version: v14.12.0
54185427
pr-url: https://github.com/nodejs/node/pull/34993
54195428
description: The `data` parameter will stringify an object with an
@@ -5443,9 +5452,6 @@ changes:
54435452
54445453
Returns `undefined`.
54455454
5446-
If `data` is a plain object, it must have an own (not inherited) `toString`
5447-
function property.
5448-
54495455
The `mode` option only affects the newly created file. See [`fs.open()`][]
54505456
for more details.
54515457

0 commit comments

Comments
 (0)