From 9bf10aa1e08ba071092b11fd60670e4a0fcb5491 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Tue, 3 Sep 2024 18:39:37 +1000 Subject: chore(fs): remove `Deno.flock[Sync]()` (#25350) Towards #22079 --- cli/tools/test/fmt.rs | 1 - cli/tsc/99_main_compiler.js | 2 -- cli/tsc/dts/lib.deno.unstable.d.ts | 20 -------------------- 3 files changed, 23 deletions(-) (limited to 'cli') 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 @@ -1216,26 +1216,6 @@ declare namespace Deno { options: UnixListenOptions & { transport: "unixpacket" }, ): DatagramConn; - /** **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; - - /** **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. -- cgit v1.2.3