Skip to content

Commit a5408da

Browse files
committed
feat: remove Node.FS.Sync.fdFlush
1 parent 1319b6b commit a5408da

File tree

2 files changed

+2
-31
lines changed

2 files changed

+2
-31
lines changed

CHANGELOG.md

+2-24
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Breaking changes:
88

99
New features:
1010

11-
- Add functions to `Node.FS.Async`
11+
- Add functions to `Node.FS.Async`, `Node.FS.Aff`, `Node.FS.Sync`
1212

1313
- readdir'
1414
- readdirBuffer
@@ -39,29 +39,7 @@ New features:
3939
- statfs
4040
- writev
4141

42-
- Add functions to `Node.FS.Aff`
43-
44-
- cp
45-
- cp'
46-
- fchmod
47-
- fchown
48-
- fdatasync
49-
- fstat
50-
- fsync
51-
- ftruncate
52-
- futimes
53-
- glob
54-
- glob'
55-
- globDirent
56-
- globDirent'
57-
- lchmod
58-
- lchown
59-
- lutimes
60-
- opendir
61-
- opendir'
62-
- readv
63-
- statfs
64-
- writev
42+
- Deprecate `Node.FS.Sync.fdFlush`, `Node.FS.Sync.fsync` should be used instead
6543

6644
- Add modules `Dir`, `Dir.Aff`, `Dirent`
6745

src/Node/FS/Sync.purs

-7
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ module Node.FS.Sync
5252
, fdWrite'
5353
, fdWriteString
5454
, fdAppend
55-
, fdFlush
5655
, fdClose
5756
, cp
5857
, cp'
@@ -101,7 +100,6 @@ import Node.FS.Internal.Utils (datetimeToUnixEpochTimeInSeconds)
101100
import Node.FS.Perms (Perms, permsToString)
102101
import Node.FS.Stats (Stats)
103102
import Node.Path (FilePath)
104-
import Prim.TypeError (class Warn, Text)
105103
import Unsafe.Coerce (unsafeCoerce)
106104

107105
foreign import accessSyncImpl :: EffectFn2 FilePath AccessMode Unit
@@ -526,11 +524,6 @@ fdAppend fd buff = do
526524
sz <- size buff
527525
fdWrite fd buff 0 sz Nothing
528526

529-
-- | Flush a file synchronously. See the [Node documentation](http://nodejs.org/api/fs.html#fs_fs_fsyncsync_fd)
530-
-- | for details.
531-
fdFlush :: Warn (Text "Deprecated, use fsync") => FileDescriptor -> Effect Unit
532-
fdFlush = fsync
533-
534527
-- | Close a file synchronously. See the [Node documentation](http://nodejs.org/api/fs.html#fs_fs_closesync_fd)
535528
-- | for details.
536529
fdClose :: FileDescriptor -> Effect Unit

0 commit comments

Comments
 (0)