diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-09-03 18:39:37 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-03 18:39:37 +1000 |
commit | 9bf10aa1e08ba071092b11fd60670e4a0fcb5491 (patch) | |
tree | cee83a9dd158624732911d088b864730a538ea00 /cli | |
parent | 1f51b5310f85ad28f2d00ce223c59ff0be9619d0 (diff) |
chore(fs): remove `Deno.flock[Sync]()` (#25350)
Towards #22079
Diffstat (limited to 'cli')
-rw-r--r-- | cli/tools/test/fmt.rs | 1 | ||||
-rw-r--r-- | cli/tsc/99_main_compiler.js | 2 | ||||
-rw-r--r-- | cli/tsc/dts/lib.deno.unstable.d.ts | 20 |
3 files changed, 0 insertions, 23 deletions
diff --git a/cli/tools/test/fmt.rs b/cli/tools/test/fmt.rs index e1e7e1fba..0cdb3f05a 100644 --- a/cli/tools/test/fmt.rs +++ b/cli/tools/test/fmt.rs @@ -320,7 +320,6 @@ pub const OP_DETAILS: phf::Map<&'static str, [&'static str; 2]> = phf_map! { "op_fs_events_poll" => ["get the next file system event", "breaking out of a for await loop looping over `Deno.FsEvents`"], "op_fs_fdatasync_async" => ["flush pending data operations for a file to disk", "awaiting the result of a `Deno.fdatasync` or `Deno.FsFile.syncData` call"], "op_fs_file_stat_async" => ["get file metadata", "awaiting the result of a `Deno.fstat` or `Deno.FsFile.stat` call"], - "op_fs_flock_async_unstable" => ["lock a file", "awaiting the result of a `Deno.flock` call"], "op_fs_flock_async" => ["lock a file", "awaiting the result of a `Deno.FsFile.lock` call"], "op_fs_fsync_async" => ["flush pending data operations for a file to disk", "awaiting the result of a `Deno.fsync` or `Deno.FsFile.sync` call"], "op_fs_ftruncate_async" => ["truncate a file", "awaiting the result of a `Deno.ftruncate` or `Deno.FsFile.truncate` call"], diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js index a0bce0133..a6ec59125 100644 --- a/cli/tsc/99_main_compiler.js +++ b/cli/tsc/99_main_compiler.js @@ -46,8 +46,6 @@ delete Object.prototype.__proto__; "UnixListenOptions", "createHttpClient", "dlopen", - "flock", - "flockSync", "funlock", "funlockSync", "listen", diff --git a/cli/tsc/dts/lib.deno.unstable.d.ts b/cli/tsc/dts/lib.deno.unstable.d.ts index 747ce5a7f..64ee74b84 100644 --- a/cli/tsc/dts/lib.deno.unstable.d.ts +++ b/cli/tsc/dts/lib.deno.unstable.d.ts @@ -1218,26 +1218,6 @@ declare namespace Deno { /** **UNSTABLE**: New API, yet to be vetted. * - * Acquire an advisory file-system lock for the provided file. - * - * @param [exclusive=false] - * @category File System - * @experimental - */ - export function flock(rid: number, exclusive?: boolean): Promise<void>; - - /** **UNSTABLE**: New API, yet to be vetted. - * - * Acquire an advisory file-system lock synchronously for the provided file. - * - * @param [exclusive=false] - * @category File System - * @experimental - */ - export function flockSync(rid: number, exclusive?: boolean): void; - - /** **UNSTABLE**: New API, yet to be vetted. - * * Release an advisory file-system lock for the provided file. * * @category File System |