From 20bc1ea700bdfd26a74e7d1a14a9aa2f65405db5 Mon Sep 17 00:00:00 2001 From: kirjavascript Date: Fri, 27 Oct 2023 09:52:24 +0100 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20remove=20'buffer'=20from=20BufferEnc?= =?UTF-8?q?oding=C2=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/api.md b/docs/api.md index e76e5b8..e691990 100644 --- a/docs/api.md +++ b/docs/api.md @@ -685,6 +685,5 @@ type BufferEncoding = | 'base64url' | 'latin1' | 'binary' - | 'hex' - | 'buffer'; + | 'hex'; ``` From 30879a6dcb3b8e8d002a535dd4c47d1981f94183 Mon Sep 17 00:00:00 2001 From: kirjavascript Date: Thu, 18 Apr 2024 13:48:53 +0100 Subject: [PATCH 2/2] fix: remove 'recursive' option from fs.watch --- docs/api.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/docs/api.md b/docs/api.md index 98c45de..9004cd3 100644 --- a/docs/api.md +++ b/docs/api.md @@ -521,7 +521,6 @@ Watch for changes to a given file or directory. ```ts interface Options { encoding?: BufferEncoding | null; - recursive?: boolean; } ``` @@ -531,10 +530,6 @@ interface Options { Specifies the character encoding to be used for the filename passed to the listener. Default: `'utf8'`. -#### `recursive?: boolean` - -Indicates whether all subdirectories should be watched, or only the current directory. This applies when a directory is specified, and only on supported platforms. Default: `false`. -

Listener