@@ -1765,6 +1765,9 @@ changes:
1765
1765
- v15.4.0
1766
1766
pr-url: https://github.com/nodejs/node/pull/35922
1767
1767
description: The `fd` option accepts FileHandle arguments.
1768
+ - version: v14.0.0
1769
+ pr-url: https://github.com/nodejs/node/pull/31408
1770
+ description: Change `emitClose` default to `true`.
1768
1771
- version:
1769
1772
- v13.6.0
1770
1773
- v12.17.0
@@ -1799,7 +1802,7 @@ changes:
1799
1802
* ` fd ` {integer|FileHandle} ** Default:** ` null `
1800
1803
* ` mode ` {integer} ** Default:** ` 0o666 `
1801
1804
* ` autoClose ` {boolean} ** Default:** ` true `
1802
- * ` emitClose ` {boolean} ** Default:** ` false `
1805
+ * ` emitClose ` {boolean} ** Default:** ` true `
1803
1806
* ` start ` {integer}
1804
1807
* ` end ` {integer} ** Default:** ` Infinity `
1805
1808
* ` highWaterMark ` {integer} ** Default:** ` 64 * 1024 `
@@ -1827,9 +1830,9 @@ If `fd` points to a character device that only supports blocking reads
1827
1830
available. This can prevent the process from exiting and the stream from
1828
1831
closing naturally.
1829
1832
1830
- By default, the stream will not emit a ` 'close' ` event after it has been
1831
- destroyed. This is the opposite of the default for other ` Readable ` streams.
1832
- Set the ` emitClose ` option to ` true ` to change this behavior.
1833
+ By default, the stream will emit a ` 'close' ` event after it has been
1834
+ destroyed, like most ` Readable ` streams. Set the ` emitClose ` option to
1835
+ ` false ` to change this behavior.
1833
1836
1834
1837
By providing the ` fs ` option, it is possible to override the corresponding ` fs `
1835
1838
implementations for ` open ` , ` read ` , and ` close ` . When providing the ` fs ` option,
@@ -1876,6 +1879,9 @@ changes:
1876
1879
- v15.4.0
1877
1880
pr-url: https://github.com/nodejs/node/pull/35922
1878
1881
description: The `fd` option accepts FileHandle arguments.
1882
+ - version: v14.0.0
1883
+ pr-url: https://github.com/nodejs/node/pull/31408
1884
+ description: Change `emitClose` default to `true`.
1879
1885
- version:
1880
1886
- v13.6.0
1881
1887
- v12.17.0
@@ -1908,7 +1914,7 @@ changes:
1908
1914
* ` fd ` {integer|FileHandle} ** Default:** ` null `
1909
1915
* ` mode ` {integer} ** Default:** ` 0o666 `
1910
1916
* ` autoClose ` {boolean} ** Default:** ` true `
1911
- * ` emitClose ` {boolean} ** Default:** ` false `
1917
+ * ` emitClose ` {boolean} ** Default:** ` true `
1912
1918
* ` start ` {integer}
1913
1919
* ` fs ` {Object|null} ** Default:** ` null `
1914
1920
* Returns: {fs.WriteStream} See [ Writable Stream] [ ] .
@@ -1925,9 +1931,9 @@ then the file descriptor won't be closed, even if there's an error.
1925
1931
It is the application's responsibility to close it and make sure there's no
1926
1932
file descriptor leak.
1927
1933
1928
- By default, the stream will not emit a ` 'close' ` event after it has been
1929
- destroyed. This is the opposite of the default for other ` Writable ` streams.
1930
- Set the ` emitClose ` option to ` true ` to change this behavior.
1934
+ By default, the stream will emit a ` 'close' ` event after it has been
1935
+ destroyed, like most ` Writable ` streams. Set the ` emitClose ` option to
1936
+ ` false ` to change this behavior.
1931
1937
1932
1938
By providing the ` fs ` option it is possible to override the corresponding ` fs `
1933
1939
implementations for ` open ` , ` write ` , ` writev ` and ` close ` . Overriding ` write() `
0 commit comments