@@ -1755,6 +1755,9 @@ changes:
1755
1755
- v15.4.0
1756
1756
pr-url: https://github.com/nodejs/node/pull/35922
1757
1757
description: The `fd` option accepts FileHandle arguments.
1758
+ - version: v14.0.0
1759
+ pr-url: https://github.com/nodejs/node/pull/31408
1760
+ description: Change `emitClose` default to `true`.
1758
1761
- version:
1759
1762
- v13.6.0
1760
1763
- v12.17.0
@@ -1789,7 +1792,7 @@ changes:
1789
1792
* ` fd ` {integer|FileHandle} ** Default:** ` null `
1790
1793
* ` mode ` {integer} ** Default:** ` 0o666 `
1791
1794
* ` autoClose ` {boolean} ** Default:** ` true `
1792
- * ` emitClose ` {boolean} ** Default:** ` false `
1795
+ * ` emitClose ` {boolean} ** Default:** ` true `
1793
1796
* ` start ` {integer}
1794
1797
* ` end ` {integer} ** Default:** ` Infinity `
1795
1798
* ` highWaterMark ` {integer} ** Default:** ` 64 * 1024 `
@@ -1817,9 +1820,9 @@ If `fd` points to a character device that only supports blocking reads
1817
1820
available. This can prevent the process from exiting and the stream from
1818
1821
closing naturally.
1819
1822
1820
- By default, the stream will not emit a ` 'close' ` event after it has been
1821
- destroyed. This is the opposite of the default for other ` Readable ` streams.
1822
- Set the ` emitClose ` option to ` true ` to change this behavior.
1823
+ By default, the stream will emit a ` 'close' ` event after it has been
1824
+ destroyed, like most ` Readable ` streams. Set the ` emitClose ` option to
1825
+ ` false ` to change this behavior.
1823
1826
1824
1827
By providing the ` fs ` option, it is possible to override the corresponding ` fs `
1825
1828
implementations for ` open ` , ` read ` , and ` close ` . When providing the ` fs ` option,
@@ -1866,6 +1869,9 @@ changes:
1866
1869
- v15.4.0
1867
1870
pr-url: https://github.com/nodejs/node/pull/35922
1868
1871
description: The `fd` option accepts FileHandle arguments.
1872
+ - version: v14.0.0
1873
+ pr-url: https://github.com/nodejs/node/pull/31408
1874
+ description: Change `emitClose` default to `true`.
1869
1875
- version:
1870
1876
- v13.6.0
1871
1877
- v12.17.0
@@ -1898,7 +1904,7 @@ changes:
1898
1904
* ` fd ` {integer|FileHandle} ** Default:** ` null `
1899
1905
* ` mode ` {integer} ** Default:** ` 0o666 `
1900
1906
* ` autoClose ` {boolean} ** Default:** ` true `
1901
- * ` emitClose ` {boolean} ** Default:** ` false `
1907
+ * ` emitClose ` {boolean} ** Default:** ` true `
1902
1908
* ` start ` {integer}
1903
1909
* ` fs ` {Object|null} ** Default:** ` null `
1904
1910
* Returns: {fs.WriteStream} See [ Writable Stream] [ ] .
@@ -1915,9 +1921,9 @@ then the file descriptor won't be closed, even if there's an error.
1915
1921
It is the application's responsibility to close it and make sure there's no
1916
1922
file descriptor leak.
1917
1923
1918
- By default, the stream will not emit a ` 'close' ` event after it has been
1919
- destroyed. This is the opposite of the default for other ` Writable ` streams.
1920
- Set the ` emitClose ` option to ` true ` to change this behavior.
1924
+ By default, the stream will emit a ` 'close' ` event after it has been
1925
+ destroyed, like most ` Writable ` streams. Set the ` emitClose ` option to
1926
+ ` false ` to change this behavior.
1921
1927
1922
1928
By providing the ` fs ` option it is possible to override the corresponding ` fs `
1923
1929
implementations for ` open ` , ` write ` , ` writev ` and ` close ` . Overriding ` write() `
0 commit comments