@@ -174,14 +174,6 @@ helping to prevent memory leaks. Please do not rely on this behavior because
174
174
it can be unreliable and the file may not be closed. Instead, always explicitly
175
175
close {FileHandle}s. Node.js may change this behavior in the future.
176
176
177
- #### Event: ` 'close' `
178
- <!-- YAML
179
- added: v15.4.0
180
- -->
181
-
182
- The ` 'close' ` event is emitted when the {FileHandle} has been closed and can no
183
- longer be used.
184
-
185
177
#### ` filehandle.appendFile(data[, options]) `
186
178
<!-- YAML
187
179
added: v10.0.0
@@ -334,9 +326,7 @@ of the file.
334
326
335
327
#### ` filehandle .readv (buffers[, position])`
336
328
<!-- YAML
337
- added:
338
- - v13.13.0
339
- - v12.17.0
329
+ added: v14.0.0
340
330
-->
341
331
342
332
* ` buffers` {Buffer[]|TypedArray[]|DataView[]}
@@ -940,7 +930,7 @@ try {
940
930
<!-- YAML
941
931
added: v10.0.0
942
932
changes:
943
- - version: v15.2 .0
933
+ - version: v14.17 .0
944
934
pr-url: https://github.com/nodejs/node/pull/35911
945
935
description: The options argument may include an AbortSignal to abort an
946
936
ongoing readFile request.
@@ -1193,7 +1183,7 @@ The `atime` and `mtime` arguments follow these rules:
1193
1183
<!-- YAML
1194
1184
added: v10.0.0
1195
1185
changes:
1196
- - version: v15.2 .0
1186
+ - version: v14.17 .0
1197
1187
pr-url: https://github.com/nodejs/node/pull/35993
1198
1188
description: The options argument may include an AbortSignal to abort an
1199
1189
ongoing writeFile request.
@@ -1650,7 +1640,7 @@ See the POSIX chown(2) documentation for more detail.
1650
1640
<!-- YAML
1651
1641
added: v0.0.2
1652
1642
changes:
1653
- - version: REPLACEME
1643
+ - version: v14.17.0
1654
1644
pr-url: https://github.com/nodejs/node/pull/37174
1655
1645
description: A default callback is now used if one is not provided.
1656
1646
- version: v10.0.0
@@ -1729,10 +1719,6 @@ copyFile('source.txt', 'destination.txt', constants.COPYFILE_EXCL, callback);
1729
1719
<!-- YAML
1730
1720
added: v0.1.31
1731
1721
changes:
1732
- - version:
1733
- - v15.4.0
1734
- pr-url: https://github.com/nodejs/node/pull/35922
1735
- description: The `fd` option accepts FileHandle arguments.
1736
1722
- version: v14.0.0
1737
1723
pr-url: https://github.com/nodejs/node/pull/31408
1738
1724
description: Change `emitClose` default to `true`.
@@ -1767,7 +1753,7 @@ changes:
1767
1753
* `flags` {string} See [support of file system `flags`][]. **Default:**
1768
1754
`'r'`.
1769
1755
* `encoding` {string} **Default:** `null`
1770
- * `fd` {integer|FileHandle } **Default:** `null`
1756
+ * `fd` {integer} **Default:** `null`
1771
1757
* `mode` {integer} **Default:** `0o666`
1772
1758
* `autoClose` {boolean} **Default:** `true`
1773
1759
* `emitClose` {boolean} **Default:** `true`
@@ -1846,10 +1832,6 @@ If `options` is a string, then it specifies the encoding.
1846
1832
<!-- YAML
1847
1833
added: v0.1.31
1848
1834
changes:
1849
- - version:
1850
- - v15.4.0
1851
- pr-url: https://github.com/nodejs/node/pull/35922
1852
- description: The `fd` option accepts FileHandle arguments.
1853
1835
- version: v14.0.0
1854
1836
pr-url: https://github.com/nodejs/node/pull/31408
1855
1837
description: Change `emitClose` default to `true`.
@@ -1882,7 +1864,7 @@ changes:
1882
1864
* `flags` {string} See [support of file system `flags`][]. **Default:**
1883
1865
`'w'`.
1884
1866
* `encoding` {string} **Default:** `'utf8'`
1885
- * `fd` {integer|FileHandle } **Default:** `null`
1867
+ * `fd` {integer} **Default:** `null`
1886
1868
* `mode` {integer} **Default:** `0o666`
1887
1869
* `autoClose` {boolean} **Default:** `true`
1888
1870
* `emitClose` {boolean} **Default:** `true`
@@ -2756,7 +2738,7 @@ If `options.withFileTypes` is set to `true`, the `files` array will contain
2756
2738
<!-- YAML
2757
2739
added: v0.1.29
2758
2740
changes:
2759
- - version: v15.2 .0
2741
+ - version: v14.17 .0
2760
2742
pr-url: https://github.com/nodejs/node/pull/35911
2761
2743
description: The options argument may include an AbortSignal to abort an
2762
2744
ongoing readFile request.
@@ -3459,7 +3441,7 @@ The `atime` and `mtime` arguments follow these rules:
3459
3441
<!-- YAML
3460
3442
added: v0.5 .10
3461
3443
changes:
3462
- - version: REPLACEME
3444
+ - version: v14. 17 . 0
3463
3445
pr- url: https: // github.com/nodejs/node/pull/37190
3464
3446
description: Added support for closing the watcher with an AbortSignal.
3465
3447
- version: v7.6 .0
@@ -3534,11 +3516,11 @@ to be notified of filesystem changes.
3534
3516
directories.
3535
3517
* On SunOS systems (including Solaris and SmartOS), this uses [` event ports` ][].
3536
3518
* On Windows systems, this feature depends on [` ReadDirectoryChangesW` ][].
3537
- * On Aix systems, this feature depends on [` AHAFS` ][], which must be enabled.
3519
+ * On AIX systems, this feature depends on [` AHAFS` ][], which must be enabled.
3538
3520
* On IBM i systems, this feature is not supported.
3539
3521
3540
3522
If the underlying functionality is not available for some reason, then
3541
- ` fs.watch()` will not be able to function and may thrown an exception.
3523
+ ` fs.watch()` will not be able to function and may throw an exception.
3542
3524
For example, watching files or directories can be unreliable, and in some
3543
3525
cases impossible, on network file systems (NFS , SMB , etc ) or host file systems
3544
3526
when using virtualization software such as Vagrant or Docker.
@@ -3784,7 +3766,7 @@ details.
3784
3766
<!-- YAML
3785
3767
added: v0.1.29
3786
3768
changes:
3787
- - version: v15.2 .0
3769
+ - version: v14.17 .0
3788
3770
pr-url: https://github.com/nodejs/node/pull/35993
3789
3771
description: The options argument may include an AbortSignal to abort an
3790
3772
ongoing writeFile request.
@@ -4331,7 +4313,7 @@ link(2) documentation for more detail. Returns `undefined`.
4331
4313
<!-- YAML
4332
4314
added: v0.1.30
4333
4315
changes:
4334
- - version: v15.3 .0
4316
+ - version: v14.17 .0
4335
4317
pr-url: https://github.com/nodejs/node/pull/33716
4336
4318
description: Accepts a ` throwIfNoEntry` option to specify whether
4337
4319
an exception should be thrown if the entry does not exist.
@@ -4584,13 +4566,9 @@ this API: [`fs.read()`][].
4584
4566
4585
4567
### ` fs .readSync (fd, buffer, [options])`
4586
4568
<!-- YAML
4587
- added:
4588
- - v13.13.0
4589
- - v12.17.0
4569
+ added: v14.0.0
4590
4570
changes:
4591
- - version:
4592
- - v13.13.0
4593
- - v12.17.0
4571
+ - version: v14.0.0
4594
4572
pr-url: https://github.com/nodejs/node/pull/32460
4595
4573
description: Options object can be passed in
4596
4574
to make offset, length and position optional.
@@ -4614,9 +4592,7 @@ this API: [`fs.read()`][].
4614
4592
4615
4593
### ` fs .readvSync (fd, buffers[, position])`
4616
4594
<!-- YAML
4617
- added:
4618
- - v13.13.0
4619
- - v12.17.0
4595
+ added: v14.0.0
4620
4596
-->
4621
4597
4622
4598
* ` fd` {integer}
@@ -4773,7 +4749,7 @@ utility). Returns `undefined`.
4773
4749
<!-- YAML
4774
4750
added: v0.1.21
4775
4751
changes:
4776
- - version: v15.3 .0
4752
+ - version: v14.17 .0
4777
4753
pr-url: https://github.com/nodejs/node/pull/33716
4778
4754
description: Accepts a ` throwIfNoEntry` option to specify whether
4779
4755
an exception should be thrown if the entry does not exist.
0 commit comments