From 5fc2bb763f3419757e2c1f8474fe28fa913c0fd5 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sat, 18 Mar 2023 18:21:51 +0100 Subject: [PATCH] doc: clarify that `fs.create{Read,Write}Stream` support `AbortSignal` Refs: https://github.com/nodejs/node/pull/36431 PR-URL: https://github.com/nodejs/node/pull/47122 Reviewed-By: Yagiz Nizipli Reviewed-By: Debadree Chatterjee Reviewed-By: Luigi Pinca --- doc/api/fs.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/api/fs.md b/doc/api/fs.md index 8b984e92fc8..e4f6f14ea93 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -2314,6 +2314,9 @@ changes: - version: v16.10.0 pr-url: https://github.com/nodejs/node/pull/40013 description: The `fs` option does not need `close` method if `autoClose` is `false`. + - version: v15.5.0 + pr-url: https://github.com/nodejs/node/pull/36431 + description: Add support for `AbortSignal`. - version: - v15.4.0 pr-url: https://github.com/nodejs/node/pull/35922 @@ -2360,6 +2363,7 @@ changes: * `end` {integer} **Default:** `Infinity` * `highWaterMark` {integer} **Default:** `64 * 1024` * `fs` {Object|null} **Default:** `null` + * `signal` {AbortSignal|null} **Default:** `null` * Returns: {fs.ReadStream} Unlike the 16 KiB default `highWaterMark` for a {stream.Readable}, the stream @@ -2439,6 +2443,9 @@ changes: - version: v16.10.0 pr-url: https://github.com/nodejs/node/pull/40013 description: The `fs` option does not need `close` method if `autoClose` is `false`. + - version: v15.5.0 + pr-url: https://github.com/nodejs/node/pull/36431 + description: Add support for `AbortSignal`. - version: - v15.4.0 pr-url: https://github.com/nodejs/node/pull/35922 @@ -2481,6 +2488,7 @@ changes: * `emitClose` {boolean} **Default:** `true` * `start` {integer} * `fs` {Object|null} **Default:** `null` + * `signal` {AbortSignal|null} **Default:** `null` * Returns: {fs.WriteStream} `options` may also include a `start` option to allow writing data at some