From f1fd9b1838d72cb10039287e56da74f8afa223ba Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 21 Oct 2020 20:38:52 +0200 Subject: [PATCH 1/2] doc: add history section for fs Promises API Fixes: https://github.com/nodejs/node/issues/35740 --- doc/api/fs.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/doc/api/fs.md b/doc/api/fs.md index aab3adaaa32afb..14aa6651f38fad 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -4594,6 +4594,21 @@ For detailed information, see the documentation of the asynchronous version of this API: [`fs.writev()`][]. ## `fs` Promises API + The `fs.promises` API provides an alternative set of asynchronous file system methods that return `Promise` objects rather than using callbacks. The From 76d7f3331145907a1df77de2e0a2ce89829793ec Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 21 Oct 2020 20:43:22 +0200 Subject: [PATCH 2/2] fixup! doc: add history section for fs Promises API --- doc/api/fs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 14aa6651f38fad..728ac1d42d8b63 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -4599,7 +4599,7 @@ added: v10.0.0 changes: - version: v14.0.0 pr-url: https://github.com/nodejs/node/pull/31553 - description: The API is also accessible by `require('fs/promises')`. + description: The API is also accessible via `require('fs/promises')`. - version: - v11.14.0 - v10.17.0 @@ -4607,7 +4607,7 @@ changes: description: Remove experimental warning. - version: v10.1.0 pr-url: https://github.com/nodejs/node/pull/20504 - description: The API is accessible by `require('fs').promises` only. + description: The API is accessible via `require('fs').promises` only. --> The `fs.promises` API provides an alternative set of asynchronous file system