From 7d95c5c062c7d836bab912e95587bf7fa52326c4 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Thu, 5 Sep 2024 21:23:37 +1000 Subject: BREAKING(fs): remove `Deno.funlock[Sync]()` (#25442) Towards #22079 --------- Signed-off-by: Asher Gomez --- cli/tools/test/fmt.rs | 1 - cli/tsc/99_main_compiler.js | 2 -- cli/tsc/dts/lib.deno.unstable.d.ts | 18 ------------------ 3 files changed, 21 deletions(-) (limited to 'cli') diff --git a/cli/tools/test/fmt.rs b/cli/tools/test/fmt.rs index 733e860d2..7a24c854a 100644 --- a/cli/tools/test/fmt.rs +++ b/cli/tools/test/fmt.rs @@ -323,7 +323,6 @@ pub const OP_DETAILS: phf::Map<&'static str, [&'static str; 2]> = phf_map! { "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_file_truncate_async" => ["truncate a file", "awaiting the result of a `Deno.FsFile.prototype.truncate` call"], - "op_fs_funlock_async_unstable" => ["unlock a file", "awaiting the result of a `Deno.funlock` call"], "op_fs_funlock_async" => ["unlock a file", "awaiting the result of a `Deno.FsFile.unlock` call"], "op_fs_link_async" => ["create a hard link", "awaiting the result of a `Deno.link` call"], "op_fs_lstat_async" => ["get file metadata", "awaiting the result of a `Deno.lstat` call"], diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js index a6ec59125..f35fa7b5d 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", - "funlock", - "funlockSync", "listen", "listenDatagram", "openKv", diff --git a/cli/tsc/dts/lib.deno.unstable.d.ts b/cli/tsc/dts/lib.deno.unstable.d.ts index 9dee14f7f..a478b2e14 100644 --- a/cli/tsc/dts/lib.deno.unstable.d.ts +++ b/cli/tsc/dts/lib.deno.unstable.d.ts @@ -1130,24 +1130,6 @@ declare namespace Deno { options: UnixListenOptions & { transport: "unixpacket" }, ): DatagramConn; - /** **UNSTABLE**: New API, yet to be vetted. - * - * Release an advisory file-system lock for the provided file. - * - * @category File System - * @experimental - */ - export function funlock(rid: number): Promise; - - /** **UNSTABLE**: New API, yet to be vetted. - * - * Release an advisory file-system lock for the provided file synchronously. - * - * @category File System - * @experimental - */ - export function funlockSync(rid: number): void; - /** **UNSTABLE**: New API, yet to be vetted. * * Open a new {@linkcode Deno.Kv} connection to persist data. -- cgit v1.2.3