diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-01-24 23:38:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-24 23:38:18 +0100 |
commit | 801ed74118baabef49842bbfb2164f971d2cdb03 (patch) | |
tree | 6195aa063de73500c299382fba7cd52a5d971d21 /ext/node/polyfills/_fs/_fs_fdatasync.ts | |
parent | 316093fec41163be3d0e31e6d61b5bc0b1341b27 (diff) |
revert: Remove deprecations of file sync APIs (#22085)
- `Deno.FsFile.dataSync` -> `Deno.FsFile.syncData`
- `Deno.FsFile.dataSyncSync` -> `Deno.FsFile.syncDataSync`
Also marks these APIs as unstable
Diffstat (limited to 'ext/node/polyfills/_fs/_fs_fdatasync.ts')
-rw-r--r-- | ext/node/polyfills/_fs/_fs_fdatasync.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/node/polyfills/_fs/_fs_fdatasync.ts b/ext/node/polyfills/_fs/_fs_fdatasync.ts index 482b4378c..41990b070 100644 --- a/ext/node/polyfills/_fs/_fs_fdatasync.ts +++ b/ext/node/polyfills/_fs/_fs_fdatasync.ts @@ -10,9 +10,9 @@ export function fdatasync( fd: number, callback: CallbackWithError, ) { - new FsFile(fd).dataSync().then(() => callback(null), callback); + new FsFile(fd).syncData().then(() => callback(null), callback); } export function fdatasyncSync(fd: number) { - new FsFile(fd).dataSyncSync(); + new FsFile(fd).syncDataSync(); } |