Skip to content

Commit

Permalink
doc: add history entries for DEP0162 on fs.md
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
aduh95 authored and juanarbol committed May 31, 2022
1 parent 5aa46a2 commit d6e3056
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -4132,6 +4132,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
Expand Down Expand Up @@ -4196,6 +4200,11 @@ details.
<!-- YAML
added: v0.1.29
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/41678
description: Passing an invalid callback to the `callback` argument
now throws `ERR_INVALID_ARG_TYPE` instead of
`ERR_INVALID_CALLBACK`.
- 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
Expand Down Expand Up @@ -4254,9 +4263,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';
Expand Down Expand Up @@ -5414,6 +5420,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
Expand Down Expand Up @@ -5443,9 +5453,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.
Expand Down

0 comments on commit d6e3056

Please sign in to comment.