deno icon indicating copy to clipboard operation
deno copied to clipboard

suggestion: finalize replacements for `Deno.fdatasync[Sync]()` and `Deno.fsync[Sync]()`

Open iuioiua opened this issue 1 year ago • 2 comments

The following I/O APIs should be replaced with Deno.FsFile methods. This has partially been done already. However, we haven't been able to finalize the new API names, as indicated in #22085.

  1. Deno.fdatasync[Sync]() (currently Deno.FsFile.syncData[Sync]())
  2. Deno.fsync[Sync]() (currently Deno.FsFile.sync[Sync])

iuioiua avatar Feb 02 '24 01:02 iuioiua

Are there any plans for stabilizing these (and the file locking) APIs?

This is blocking deno sqlite from upgrading to the new API: https://github.com/dyedgreen/deno-sqlite/pull/259

dyedgreen avatar Apr 17 '24 07:04 dyedgreen

We're stabilizing these APIs in the next minor release in #23733.

iuioiua avatar May 08 '24 04:05 iuioiua