summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-09-09 21:09:57 +1000
committerGitHub <noreply@github.com>2024-09-09 21:09:57 +1000
commit39f2704bd73971867301a7d424d9f2464916785d (patch)
tree9078c96685422de9e060b2ed1b5ac4f2359df9be /cli
parentce1d668929a91da2dc204f6bcc53afd5173c0a33 (diff)
BREAKING(fs): remove `Deno.fdatasync[Sync]()` (#25520)
Diffstat (limited to 'cli')
-rw-r--r--cli/tools/test/fmt.rs2
-rw-r--r--cli/tsc/dts/lib.deno.ns.d.ts34
2 files changed, 1 insertions, 35 deletions
diff --git a/cli/tools/test/fmt.rs b/cli/tools/test/fmt.rs
index 7a24c854a..a1c3922a9 100644
--- a/cli/tools/test/fmt.rs
+++ b/cli/tools/test/fmt.rs
@@ -318,7 +318,7 @@ pub const OP_DETAILS: phf::Map<&'static str, [&'static str; 2]> = phf_map! {
"op_fs_chown_async" => ["change the owner of a file", "awaiting the result of a `Deno.chown` call"],
"op_fs_copy_file_async" => ["copy a file", "awaiting the result of a `Deno.copyFile` call"],
"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_sync_data_async" => ["flush pending data operations for a file to disk", "awaiting the result of a `Deno.FsFile.prototype.syncData` call"],
"op_fs_file_stat_async" => ["get file metadata", "awaiting the result of a `Deno.FsFile.prototype.stat` 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"],
diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts
index 320e6f29b..309f6ade8 100644
--- a/cli/tsc/dts/lib.deno.ns.d.ts
+++ b/cli/tsc/dts/lib.deno.ns.d.ts
@@ -1958,40 +1958,6 @@ declare namespace Deno {
*/
export function fsyncSync(rid: number): void;
- /**
- * Flushes any pending data operations of the given file stream to disk.
- * ```ts
- * const file = await Deno.open(
- * "my_file.txt",
- * { read: true, write: true, create: true },
- * );
- * await file.write(new TextEncoder().encode("Hello World"));
- * await Deno.fdatasync(file.rid);
- * console.log(await Deno.readTextFile("my_file.txt")); // Hello World
- * ```
- *
- * @category File System
- */
- export function fdatasync(rid: number): Promise<void>;
-
- /**
- * Synchronously flushes any pending data operations of the given file stream
- * to disk.
- *
- * ```ts
- * const file = Deno.openSync(
- * "my_file.txt",
- * { read: true, write: true, create: true },
- * );
- * file.writeSync(new TextEncoder().encode("Hello World"));
- * Deno.fdatasyncSync(file.rid);
- * console.log(Deno.readTextFileSync("my_file.txt")); // Hello World
- * ```
- *
- * @category File System
- */
- export function fdatasyncSync(rid: number): void;
-
/** The Deno abstraction for reading and writing files.
*
* This is the most straight forward way of handling files within Deno and is