Skip to content

Commit d6e3056

Browse files
aduh95juanarbol
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 5aa46a2 commit d6e3056

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

doc/api/fs.md

+13-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,11 @@ details.
41964200
<!-- YAML
41974201
added: v0.1.29
41984202
changes:
4203+
- version: REPLACEME
4204+
pr-url: https://github.com/nodejs/node/pull/41678
4205+
description: Passing an invalid callback to the `callback` argument
4206+
now throws `ERR_INVALID_ARG_TYPE` instead of
4207+
`ERR_INVALID_CALLBACK`.
41994208
- version: v16.0.0
42004209
pr-url: https://github.com/nodejs/node/pull/37460
42014210
description: The error returned may be an `AggregateError` if more than one
@@ -4254,9 +4263,6 @@ The `encoding` option is ignored if `data` is a buffer.
42544263
The `mode` option only affects the newly created file. See [`fs.open()`][]
42554264
for more details.
42564265
4257-
If `data` is a plain object, it must have an own (not inherited) `toString`
4258-
function property.
4259-
42604266
```mjs
42614267
import { writeFile } from 'fs';
42624268
import { Buffer } from 'buffer';
@@ -5414,6 +5420,10 @@ this API: [`fs.utimes()`][].
54145420
<!-- YAML
54155421
added: v0.1.29
54165422
changes:
5423+
- version: v17.8.0
5424+
pr-url: https://github.com/nodejs/node/pull/42149
5425+
description: Passing to the `data` parameter an object with an own
5426+
`toString` function is deprecated.
54175427
- version: v14.12.0
54185428
pr-url: https://github.com/nodejs/node/pull/34993
54195429
description: The `data` parameter will stringify an object with an
@@ -5443,9 +5453,6 @@ changes:
54435453
54445454
Returns `undefined`.
54455455
5446-
If `data` is a plain object, it must have an own (not inherited) `toString`
5447-
function property.
5448-
54495456
The `mode` option only affects the newly created file. See [`fs.open()`][]
54505457
for more details.
54515458

0 commit comments

Comments
 (0)